Skip to content

PlayerDefaults

Service Object

This object is automatically created by Polytoria. Additionally, scripts cannot change its parent.

Not newable

This object cannot be created by scripts using Instance.New().

PlayerDefaults is a service used for storing the default values of the Player when created.

Inherits Instance

Methods

LoadDefaults → void

Parameters: player [ Player ]

Resets the specified player back to their default values.

Properties

ChatColor : Color = (255,255,255)

Determines the default color of players' usernames in chat.

JumpPower : float = 36

Determines how high the player jumps by default.

MaxHealth : float = 100

Determines the default maximum health of players.

MaxStamina : float = 3

Determines the default maximum stamina of players.

RespawnTime : float = 5

Determines the default of how long it takes between player's death and respawn.

SprintSpeed : float = 25

Determines the default sprint speed of players.

Stamina : float = 0

Determines the default stamina of players.

StaminaEnabled : boolean = true

Determines whether or not stamina is enabled by default for players.

StaminaRegen : float = 1.2

Determines the default rate at which stamina regenerates after being depleted for players.

WalkSpeed : float = 16

Determines how fast the player walks by default.