Skip to content

Game

game is the root instance and provides access to services.

Summary

Properties Properties of `game`.

Methods Methods of `game`.

Callbacks Callbacks of `game`.

Services Services of `game`.

Properties

Workspace

Workspace

The root Workspace service.


Players

Players

A direct alias for the Players service. In Vortex Studio 0.3.4 it is a distinct proxy table from game:GetService("Players").


Methods

GetService()

Instance

game:GetService(serviceName: string)

Returns the service with the specified name.

Parameters

  • serviceName: string — the name of the service to retrieve.

Callbacks

OnClose

Function | nil

An optional callback that can be assigned before the game closes.


Services

Workspace

Instance

The Workspace is the root object that holds anything that is currently in the world. Workspace


Players

Instance

The service that contains the currently connected player objects. Players


ReplicatedStorage

Instance

A container for instances loaded by both the server and the client. ReplicatedStorage


StarterPlayerScripts

Instance

Stub. StarterPlayerScripts


ServerScriptService

Instance

ServerScriptService contains Scripts that run when the server starts. ServerScriptService


Lighting

Unavailable in the tested runtime

game:GetService("Lighting") rejects this service in both Script and LocalScript in Vortex Studio 0.3.4. Lighting


Testing Notes

These observations are from Vortex Studio 0.3.4 and may differ in later releases.

game.Workspace and game:GetService("Workspace") both report ClassName and Name as Workspace. game.OnClose starts as nil; assigning a function succeeds, but callback delivery has not been established.