Service · inherits Instance
StarterPlayer
A service which allows the defaults of properties in the Player object
to be set.
About StarterPlayer
A service which allows the defaults of properties in the Player object
to be set. When a player enters the server, each property of the player object
is set to the current value of the corresponding property in
StarterPlayer.
Additionally, you may add four objects to this service:
- A
StarterPlayerScriptsinstance with scripts that run once for each player. - A
StarterCharacterScriptsinstance with scripts to add to each player's character every time they spawn. - A
Humanoidinstance namedStarterHumanoidwhich will be used as the default humanoid for each player's character. - A
Modelinstance namedStarterCharacterwhich will be used as the character model for all players.
Properties 25
AllowCustomAnimations
: booleanHiddenDescribes the current game's permission levels regarding custom avatar animations from the website.This property describes the current game's permission levels regarding custom avatar
Animationsfrom the website.As such, this value cannot be changed from within the game. It can only be changed by changing the game's permission levels within the game's setting's page on the website.
This property is not intended for use in the game.
AutoJumpEnabled
: booleanSets whether the character will automatically jump when hitting an obstacle on a mobile device.This property sets whether the character will automatically jump when hitting an obstacle on a mobile device.
This property is copied from the
StarterPlayerto aPlayerwhen they join the game. Following that. the value of this property is copied toHumanoid.AutoJumpEnabledproperty of the character'sHumanoidon spawn. In other words, it is possible to set the auto-jump behavior on a per-character, per-player and per-game basis using these three properties.CameraMaxZoomDistance
: floatThe maximum distance the player's default camera is allowed to zoom out in studs.This property sets the maximum distance in studs the camera can be from the character with the default cameras.
This property sets the default value of
Player.CameraMaxZoomDistancefor each player who joins the game. If this value is set to a lower value thanStarterPlayer.CameraMinZoomDistanceit will be increased to CameraMinZoomDistance.CameraMinZoomDistance
: floatThe minimum distance in studs the player's default camera is allowed to zoom in.This property sets the minimum distance in studs the camera can be from the character with the default cameras.
This property sets the default value of
Player.CameraMinZoomDistancefor each player who joins the game. If this value is set to a higher value thanStarterPlayer.CameraMaxZoomDistanceit will be decreased to CameraMaxZoomDistance.CameraMode
: CameraModeChanges the default camera's mode to either first or third person.Sets the default value for
Player.CameraModefor each player in the game. The camera has two modes:First Person
In first person mode, the player's camera is zoomed all the way in. Unless there is a visible GUI present with the
GuiButton.Modalproperty set totrue, the mouse will be locked and the user's camera will turn as the mouse moves.Third Person
In third person mode (default), the character can be seen in the camera. While in third person mode on Roblox:
- You may right-click and drag to rotate your camera, or use the arrow keys at the bottom right-hand corner of the screen.
- When you move your mouse, your camera does not change (unless you move the mouse to the end of the screen).
- When you press any of the arrow keys, the user's character will face in the corresponding arrow key's direction.
- You can zoom in and out freely.
CharacterBreakJointsOnDeath
: booleanDetermines the starting value ofHumanoid.BreakJointsOnDeathforPlayer.Character.This property determines the starting value of
Humanoid.BreakJointsOnDeathfor a player'sPlayer.Character.Note that
AvatarJointUpgrademust be enabled for this property to take effect.CharacterJumpHeight
: floatDetermines the starting value ofHumanoid.JumpHeightforPlayer.Character.This property determines the starting value of
Humanoid.JumpHeightfor a player'sPlayer.Characterin studs, with a default of7.2.This property is only visible in the Properties window If
CharacterUseJumpPoweris set tofalse, as it would not be relevant otherwise.Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
CharacterJumpPower
: floatDetermines the starting value ofHumanoid.JumpPowerforPlayer.Character.This property determines the starting value of
Humanoid.JumpPowerfor a player'sPlayer.Character, with a default of50, minimum of0, and maximum of1000.This property is only visible in the Properties window If
CharacterUseJumpPoweris set totrue, as it would not be relevant otherwise.Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
CharacterMaxSlopeAngle
: floatDetermines the starting value ofHumanoid.MaxSlopeAngleforPlayer.Character.This property determines the starting value of
Humanoid.MaxSlopeAnglefor a player'sPlayer.Characterin degrees. It defaults to89, so humanoids can climb pretty much any slope they want by default.Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
CharacterUseJumpPower
: booleanDetermines the starting state ofHumanoid.UseJumpPowerforPlayer.Character.This property determines the starting value of
Humanoid.UseJumpPowerfor a player'sPlayer.Character. Toggling it will change which property is visible in the Properties window (CharacterJumpHeightiffalseorCharacterJumpPoweriftrue). Defaults totrue.Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
CharacterWalkSpeed
: floatDetermines the starting value ofHumanoid.WalkSpeedforPlayer.Character.This property determines the starting value of
Humanoid.WalkSpeedfor a player'sPlayer.Characterwith a default of16.Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
ClassicDeath
: booleanControls whether the character uses the classic death behavior when the Humanoid's health reaches zero.When enabled, the character uses the classic death behavior (joints break apart and parts scatter). When disabled, characters spawn with
Humanoid.BreakJointsOnDeath=false, and will ragdoll when they die.DevCameraOcclusionMode
: DevCameraOcclusionModeSets how the default camera handles objects between the camera and the player.Defines how the default camera scripts handle objects between the camera and the camera subject. Applies to all players as they join the experience and can't be changed for individual players.
The default value is
Zoom(0). SeeDevCameraOcclusionModefor a list of available modes.DevComputerCameraMovementMode
: DevComputerCameraMovementModeLets you overwrite the player's camera mode on a computer.This property lets you overwrite the player's camera mode on a computer.
If set to
UserChoice, the player's camera movement mode will be determined by whatever they set in the experience's settings. Otherwise, the mode will be set based on this property.This property does not affect players who are not on a computer.
DevComputerMovementMode
: DevComputerMovementModeLets you overwrite the player's movement mode on a computer.This property lets you overwrite the player's movement mode on a computer.
If set to
UserChoice, the player's movement mode will be determined by whatever they set in the experience's settings. Otherwise, the mode will be set based on this property.This property does not affect players who are not on a computer.
DevTouchCameraMovementMode
: DevTouchCameraMovementModeLets you overwrite the player's camera mode on a touch-enabled device.This property lets you overwrite the player's camera mode on a touch-enabled device.
If set to
UserChoice, the player's camera movement mode will be determined by whatever they set in the experience's settings. Otherwise, the mode will be set based on this property.This property does not affect players who are not on a touch-enabled device.
DevTouchMovementMode
: DevTouchMovementModeLets you overwrite the player's movement mode on a touch-enabled device.Lets you overwrite the player's movement mode on a touch-enabled device.
If set to
UserChoice, the player's movement mode will be determined by whatever they set in the experience's settings. Otherwise, the mode will be set based on this property.This property does not affect players who are not on a touch-enabled device.
EnableDynamicHeads
: LoadDynamicHeadsNotScriptableSets the use of dynamic heads. When true, enables the use of avatar heads with facial animation data.EnableMouseLockOption
: booleanDetermines if a player can toggle mouse lock by default.This property determines if a player can toggle mouse lock by default.
Mouselock will lock the player's cursor to the center of the screen. Moving the mouse will rotate the
CameraandPlayerwill move relative to the current rotation of the camera.This property sets the value of
Player.DevEnableMouseLock.Note that shift-lock related APIs are in the process of being deprecated, so it's recommended to use
UserInputService.MouseBehaviorinstead to lock the mouse.HealthDisplayDistance
: floatSets the distance at which this player will see otherHumanoidhealth bars. If set to 0, the health bars will not be displayed.This property sets the distance in studs at which this player will see other
Humanoidhealth bars. If set to 0, the health bars will not be displayed. This property is set to 100 studs by default.To change the display distance for a player once they join the game, you can set the
Player.HealthDisplayDistanceproperty.If a
Humanoidhealth bar is visible, you can set the display type usingHumanoid.DisplayDistanceType.LoadCharacterAppearance
: booleanWhether or not the appearance of a player's character should be loaded.This property sets whether or not the appearance of a player's character should be loaded.
Setting this to
falseresults in the player having no clothes (including hats), body colors, body packages or anything else related to the appearance of the player's avatar. By default, this property is set totrue.Setting this to
trueresults in the player loading the appearance corresponding to the player'sPlayer.CharacterAppearanceId.If
Player.LoadCharacterWithHumanoidDescriptionAsyncis used, it can be advantageous to setStarterPlayer.LoadCharacterAppearanceto false as the player's avatar is not required as all asset IDs to equip on the character will come from the passed inHumanoidDescription.LoadCharacterLayeredClothing
: LoadCharacterLayeredClothingNotReplicatedNotScriptableIndicates whether characters spawning into an experience will have layered clothing accessories equipped on them.Indicates whether characters spawning into an experience will have layered clothing accessories equipped on them (Although
Workspace.MeshPartHeadsAndAccessoriesalso need to be enabled in theWorkspace).This property also gates the
WrapLayer.AutoSkinfeature. When set toDisabled, the automatic skinning transfer pipeline for WrapLayers does not run, andWrapLayer.AutoSkinhas no effect. For more information, see Automatic Skinning Transfer.LuaCharacterController
: CharacterControlModeSets the character controller mode used by the player's character.Determines which character controller implementation drives the player's character movement. Accepts a value from
CharacterControlMode:Default,Legacy,NoCharacterController, orLuaCharacterController.NameDisplayDistance
: floatSets the distance at which this player will see otherHumanoidnames.Sets the distance at which this player will see other
Humanoidnames. If set to0, names are hidden. This property is set to100studs by default.To change the display distance for a player once they join the game, you can set the
Player.NameDisplayDistanceproperty.If a
Humanoidname is visible, you can set the display type usingHumanoid.DisplayDistanceType.UserEmotesEnabled
: booleanDetermines if user-owned emotes are loaded when loading avatars.This property determines if user-owned emotes are loaded when loading avatars. Setting this property to
falsedisables loading. Developers can set the property in Studio directly.When emote loading is disabled, the emotes UI will still work as long as developers choose to use the emotes feature by adding emotes within their game.
See also Avatar Emotes, an article detailing how to control, customize, and play avatar emotes.
StarterPlayer also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.