ROBLOX provides many value types other than the Lua primitives, so it should
be possible to distinguish these types beyond Lua userdata. Like the type
function, a similar function which distinguishes these types should be
implemented. Such a function could be used to enforce stricter typing of
values, improving error detection and logging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local encodeByte = { | |
| 'A','B','C','D','E','F','G','H', | |
| 'I','J','K','L','M','N','O','P', | |
| 'Q','R','S','T','U','V','W','X', | |
| 'Y','Z','a','b','c','d','e','f', | |
| 'g','h','i','j','k','l','m','n', | |
| 'o','p','q','r','s','t','u','v', | |
| 'w','x','y','z','0','1','2','3', | |
| '4','5','6','7','8','9','-','_', | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Replaces Roblox Studio's splash screen with another image. | |
| -- | |
| -- Usage: | |
| -- | |
| -- lua splash-patch.lua [STUDIO_PATH] [IMAGE_PATH] | |
| -- | |
| -- Specifying no options prompts for input. | |
| -- First KB of original splash image file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original: | |
| <string name="Name">TEST</string> | |
| Result Status: | |
| pass file loads, property value is "TEST" | |
| load file loads, property value is default value | |
| fail file does not load, with an error message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hist | |
| type Value interface{} | |
| // Implements both an undo and redo stack using a circular buffer. | |
| type HistoryStack struct { | |
| buffer []Value | |
| head, tail, cur int | |
| ud, rd bool | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- LocalScript; Parent = ReplicatedFirst | |
| -- Adornments not supported. | |
| local WoodReviewerUserIDs = { | |
| [102925343] = true, | |
| } | |
| if not WoodReviewerUserIDs[game:GetService("Players").LocalPlayer.UserId] then | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Brute.lua -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| --[[ | |
| # Instructions | |
| - Create Script in game.ServerStorage, named "Words". | |
| - Fill it with any words that may be a potential instance or member name (one | |
| word per line). | |
| - Exclude words with 3 or less characters (these are generated automatically). | |
| - Run this script via Execute Script. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| # Signal | |
| API-compatible Roblox events. | |
| Addresses two flaws in previous implementations: | |
| - Held a reference to the last set of fired arguments. | |
| - Arguments would be overridden if the signal was fired by a listener. |