Miscellaneous
Everything that doesn't fit elsewhere — teleport queues, Fast Flags, FPS caps, identifiers, HTTP requests, save / load, clipboard and message boxes.
The functions with nowhere else to live, several of which you will use constantly: HTTP requests, the teleport queue, Fast Flags, the FPS cap, clipboard access and saveinstance.
The ones you will actually use
-- HTTP, with headers and a body.
local response = request({
Url = "https://example.com/api",
Method = "POST",
Headers = { ["Content-Type"] = "application/json" },
Body = game:GetService("HttpService"):JSONEncode({ hello = "world" }),
})
print(response.StatusCode, response.Body)
-- Survive a teleport: this runs in the next place.
queueonteleport([[ loadstring(game:HttpGet("https://example.com/s.lua"))() ]])
-- Uncap the framerate.
setfpscap(240)A queued script is held by the client and executed after the next teleport completes, which is the only way to keep something running across a place change.
identifyexecutor is what hub scripts branch on. gethwid identifies the machine, not the account.
saveinstance serialises the place, or a subtree of it, to a file in the workspace. It is how you get a map out of a game to look at in Studio.