Game¶
Inherits Instance
Game is the root object in the Polytoria instance tree. It is the object from which everything is descended.
Static Class
This object is a static class. It can be accessed by using its name as a keyword.
Additionally, it cannot be created in the creator menu or with Instance.New().
Not newable
This object cannot be created by scripts using Instance.New().
Properties¶
IsLocalTest : boolean¶
Returns true if this current session is being tested locally
GameID : number¶
The ID of the current Polytoria place.
ServerID : number¶
The server ID of the current instance.
UpTime : number¶
The uptime of this game in seconds.
InstanceCount : number¶
The total number of instances currently loaded.
Events¶
Ready¶
Parameters: ``
Fires when the game is ready
Rendered¶
Parameters: delta [ number ]
Fires every frame after the place has been rendered. The delta parameter is the time between the last frame and the current.