Miscellaneous
Various uncategorised functions
identifyexecutor()
Returns information about the current executor.
Returns: Two strings - the name of the executor and its version.
lz4compress(data)
Compresses data using the LZ4 algorithm.
data
: The string to compress.
Returns: The compressed data as a string.
lz4decompress(data, originalSize)
Decompresses LZ4 compressed data.
data
: The compressed data string.originalSize
: The size of the original, uncompressed data.
Returns: The decompressed data as a string.
messagebox(text, caption, type)
Displays a message box.
text
: The message to display.caption
: The title of the message box.type
: An integer representing the type of message box.
Returns: An integer representing the user's response.
messageboxasync(text, caption, type)
Displays a message box asynchronously.
text
: The message to display.caption
: The title of the message box.type
: An integer representing the type of message box.
Returns: Yields and resumes with an integer representing the user's response.
executescript(script)
Executes an encrypted script.
script
: The encrypted script string to execute.
queue_on_teleport(script)
Queues a script to run after teleporting.
script
: The script to run after teleportation.
setclipboard(text)
Sets the clipboard content.
text
: The text to set as the clipboard content.
setfpscap(fps)
Sets the FPS cap for Roblox.
fps
: The desired FPS cap.
getfpscap()
Gets the current FPS cap for Roblox.
Returns: The current FPS cap as a number.
getreg()
Gets the Lua registry table.
Returns: The Lua registry table.
cloneref(instance)
Clones a Roblox instance reference.
instance
: The Roblox instance to clone.
Returns: A new reference to the same Roblox instance.
compareinstances(instance1, instance2)
Compares two Roblox instances.
instance1
: The first Roblox instance.instance2
: The second Roblox instance.
Returns: A boolean indicating whether the instances are the same.
getobjects(assetId)
Retrieves objects from an asset ID.
assetId
: The asset ID to retrieve objects from.
Returns: A table containing the retrieved objects.
newtable(narray: number, nhash: number): table
Creates a new table with specified array and hash sizes, filled with random data to hide memory from scripts.
Parameters:
- narray
: The size of the array part of the table.
- nhash
: The size of the hash part of the table.
Returns: A new table with hidden memory.
- The array part (indices 1 to
narray
) is filled withfalse
values. - The hash part contains
nhash
elements with random Vector3 keys andfalse
values. - Vector3 keys have random X, Y, and Z values between 0 and 1.
- For effective memory hiding, use
narray
>= 33 andnhash
>= 17. - To maintain hidden memory, avoid reducing the number of array/hash values to prevent table reallocation.
Example usage: