PlayerDefaults¶
Inherits Hidden
PlayerDefaults is a service used for storing the default values of the Player when created.
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¶
MaxHealth : number¶
The default maximum health of the player.
WalkSpeed : number¶
The default walking speed of the player.
SprintSpeed : number¶
The default sprinting speed of the player.
JumpPower : number¶
The default jump power of the player.
RespawnTime : number¶
The default time the player has to wait before respawning.
ChatColor : Color¶
The default chat color of the player.
CanMove : boolean¶
Determines whether the player can move by default.
StaminaBurn : number¶
The rate at which the player's stamina depletes while sprinting.
UseStamina : boolean¶
Determines whether the player uses stamina.
StaminaEnabled : boolean¶
Legacy value for stamina.
Stamina : number¶
Determines the default stamina of players.
MaxStamina : number¶
Determines the default maximum stamina of players.
StaminaRegen : number¶
Determines the rate at which the player's stamina regenerates.
UseHeadTurning : boolean¶
Determines whether the player uses head turning by default.
UseBubbleChat : boolean¶
Determines whether the player uses bubble chat by default.
AutoLoadAppearance : boolean¶
Determines whether the player's appearance is automatically loaded by default.
Methods¶
LoadDefaults → nil¶
Parameters: ``
Resets the specified player back to their default values.