StarterPlayerクラス

クラスサービス(game:GetService("StarterPlayer")で取り出す)Instance.newでは作れない日本語解説あり

ひとことで言うと

プレイヤーのキャラクターの初期設定(歩く速さ・ジャンプ・カメラなど)と、プレイヤーに配るスクリプトの置き場所を管理するサービスです。

公式の説明(英語):A service which allows the defaults of properties in the Player object to be set.

クラスの関係

受け継いでいるクラス:Object → Instance → StarterPlayer

プロパティ(25)

名前と書き方説明
AutoJumpEnabled
StarterPlayer.AutoJumpEnabled: boolean
Sets whether the character will automatically jump when hitting an obstacle on a mobile device.
CameraMaxZoomDistance
StarterPlayer.CameraMaxZoomDistance: float
The maximum distance the player's default camera is allowed to zoom out in studs.
CameraMinZoomDistance
StarterPlayer.CameraMinZoomDistance: float
The minimum distance in studs the player's default camera is allowed to zoom in.
CameraMode
StarterPlayer.CameraMode: CameraMode
Changes the default camera's mode to either first or third person.
CharacterBreakJointsOnDeath
StarterPlayer.CharacterBreakJointsOnDeath: boolean
Determines the starting value of Humanoid.BreakJointsOnDeath for Player.Character.
CharacterJumpHeight
StarterPlayer.CharacterJumpHeight: float
Determines the starting value of Humanoid.JumpHeight for Player.Character.
CharacterJumpPower
StarterPlayer.CharacterJumpPower: float
Determines the starting value of Humanoid.JumpPower for Player.Character.
CharacterMaxSlopeAngle
StarterPlayer.CharacterMaxSlopeAngle: float
Determines the starting value of Humanoid.MaxSlopeAngle for Player.Character.
CharacterUseJumpPower
StarterPlayer.CharacterUseJumpPower: boolean
Determines the starting state of Humanoid.UseJumpPower for Player.Character.
CharacterWalkSpeed
StarterPlayer.CharacterWalkSpeed: float
Determines the starting value of Humanoid.WalkSpeed for Player.Character.
ClassicDeath
StarterPlayer.ClassicDeath: boolean
Controls whether the character uses the classic death behavior when the Humanoid's health reaches zero.
CreateDefaultPlayerModule
StarterPlayer.CreateDefaultPlayerModule: boolean
Controls how the default player module and related scripts are handled.
DevCameraOcclusionMode
StarterPlayer.DevCameraOcclusionMode: DevCameraOcclusionMode
Sets how the default camera handles objects between the camera and the player.
DevComputerCameraMovementMode
StarterPlayer.DevComputerCameraMovementMode: DevComputerCameraMovementMode
Lets you overwrite the player's camera mode on a computer.
DevComputerMovementMode
StarterPlayer.DevComputerMovementMode: DevComputerMovementMode
Lets you overwrite the player's movement mode on a computer.
DevTouchCameraMovementMode
StarterPlayer.DevTouchCameraMovementMode: DevTouchCameraMovementMode
Lets you overwrite the player's camera mode on a touch-enabled device.
DevTouchMovementMode
StarterPlayer.DevTouchMovementMode: DevTouchMovementMode
Lets you overwrite the player's movement mode on a touch-enabled device.
EnableDynamicHeads
StarterPlayer.EnableDynamicHeads: LoadDynamicHeads
Sets the use of dynamic heads. When true, enables the use of avatar heads with facial animation data.
EnableMouseLockOption
StarterPlayer.EnableMouseLockOption: boolean
Determines if a player can toggle mouse lock by default.
HealthDisplayDistance
StarterPlayer.HealthDisplayDistance: float
Sets the distance at which this player will see other Humanoid health bars. If set to 0, the health bars will not be displayed.
LoadCharacterAppearance
StarterPlayer.LoadCharacterAppearance: boolean
Whether or not the appearance of a player's character should be loaded.
LoadCharacterLayeredClothing
StarterPlayer.LoadCharacterLayeredClothing : LoadCharacterLayeredClothing
Indicates whether characters spawning into an experience will have layered clothing accessories equipped on them.
LuaCharacterController
StarterPlayer.LuaCharacterController: CharacterControlMode
Sets the character controller mode used by the player's character.
NameDisplayDistance
StarterPlayer.NameDisplayDistance: float
Sets the distance at which this player will see other Humanoid names.
UserEmotesEnabled
StarterPlayer.UserEmotesEnabled: boolean
Determines if user-owned emotes are loaded when loading avatars.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

StarterPlayerを使う記事

英語の説明とメンバーの一覧は、Roblox Creator Documentation(StarterPlayer)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む