function lz4decompress(data: string, size: number): string
local text = "Hello, world! Hello, world!"
local compressed = lz4compress(text)
print(lz4decompress(compressed, #text)) --> "Hello, world! Hello, world!"
function messagebox(text: string, caption: string, flags: number): number
local MB_ICONWARNING = 0x00000030
local MB_CANCELTRYCONTINUE = 0x00000006
local MB_DEFBUTTON2 = 0x00000100
local IDCANCEL = 0x00000002
local IDTRYAGAIN = 0x00000004
local IDCONTINUE = 0x00000005
local input = messagebox(
"Resource not available\nDo you want to try again?",
"Resource not found",
bit32.bor(MB_ICONWARNING, MB_CANCELTRYCONTINUE, MB_DEFBUTTON2)
)
if input == IDCANCEL then
print("Canceled")
elseif input == IDTRYAGAIN then
print("Try again")
elseif input == IDCONTINUE then
print("Continue")
end
function queue_on_teleport(code: string): ()
local source = game:GetObjects("rbxassetid://1234")[1].Source
queue_on_teleport(source)
loadstring(source)()
function request(options: HttpRequest): HttpResponse
local character = game:GetService("Players").LocalPlayer.Character
local components = table.pack(character.PrimaryPart.CFrame:GetComponents())
setclipboard("CFrame.new(" .. table.concat(components, ", ") .. ")")