Player

A player in the game

Properties

Name Type Description
UserIdNumber
UsernameString
RankNumber
MousePlayerMouseGets the player's mouse data
HealthNumberGet/set the player's health
MaxHealthNumberGet/set the player's max health
WalkSpeedNumberGet/set the player's walkspeed
Inherited from Dynamic Name Enabled Root Position Rotation LocalRotation Size Parent TextureID TextureTiling

Functions

Name Returns Description
KickVoidDisconnects a player with an optional message
KillVoidKills the player
TakeDamageVoidDeals damage to the player
PlayAnimationVoidCauses the player to play an animation
SetFirstPersonLockVoid
Inherited from Dynamic SetParent Log IsA FindFirstChild FindFirstChildOfClass FindFirstParentOfClass MoveTo LocalToWorldPoint Clone GetChildren ClearChildren Destroy

Events

Name Description
TouchedOccurs when an object bumps into the player.