Game
game is the root instance and provides access to services.
Summary
Services
Services of `game`.- Workspace
- Players
- ReplicatedStorage
- StarterPlayerScripts
- ServerScriptService
- Lighting (editor-facing; not exposed by
game:GetServicein 0.3.4) - Debris
- RunService
- TweenService
- UserInputService
Properties
Workspace
The root
Workspaceservice.
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|nilAn optional callback that can be assigned before the game closes.
Services
Workspace
InstanceThe Workspace is the root object that holds anything that is currently in the world. Workspace
Players
InstanceThe service that contains the currently connected player objects. Players
ReplicatedStorage
InstanceA container for instances loaded by both the server and the client. ReplicatedStorage
StarterPlayerScripts
InstanceStub. StarterPlayerScripts
ServerScriptService
InstanceServerScriptService 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.