Game
info
This object is generated by Cartoon Blox. Scripts cannot change its parent.
warning
This object cannot be created by scripts using Instance.new().
The Game object is the root container for your game, holding the Workspace, scripts, and all properties that define the world.
Properties
sprintEnabled
Enable or disable sprinting.
Type: bool
Usage (Client & Server):
Game.sprintEnabled = true
staminaEnabled
Enable or disable stamina.
Type: bool
Usage (Client & Server):
Game.staminaEnabled = true
maxStamina
Set the player's total stamina.
Type: int
Usage (Client & Server):
Game.maxStamina = 100
baseSpeed
Set the player's normal movement speed.
Type: int
Usage (Client & Server):
Game.baseSpeed = 5
sprintSpeed
Set the player's sprinting speed.
Type: int
Usage (Client & Server):
Game.sprintSpeed = 10
maxZoom
Set the maximum camera zoom distance.
Type: int
Usage (Client & Server):
Game.maxZoom = 8
minZoom
Set the minimum camera zoom distance.
Type: int
Usage (Client & Server):
Game.minZoom = 2