cheat
Meta namespace for registering event handlers and querying the game window/viewport size.
cheat.Register
Section titled “cheat.Register”cheat.Register(eventName: string, handler: function): void
Registers a handler function to be called when the named event fires, erroring if the event name is not one of the known events.
cheat.Register("onUpdate", function() print("tick") end)cheat.GetWindowSize
Section titled “cheat.GetWindowSize”cheat.GetWindowSize(): (number, number)
Returns the current game window viewport width and height in pixels, reading the Workspace Camera’s ViewportSize, or 0, 0 if unavailable.
local w, h = cheat.GetWindowSize()print(w, h)