Skip to content

World

Inherits Instance

World 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 like this: world.

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

IsLegacyWorld : boolean

Returns true if this world is being ran from a 1.0 world file.

WorldID : number

The ID of the current Polytoria world.

ServerID : number

The server ID of the current instance.

UpTime : number

The uptime of this game in seconds.

ServerTime : number

A synchronized clock that represents the server's current time.

InstanceCount : number

The total number of instances currently loaded.

Events

Rendered

Parameters: ``

Fires every frame after the world has been rendered. The delta parameter is the time between the last frame and the current.