Player
A player in the game
Properties
Name | Type | Description |
---|---|---|
UserId | Number | |
Username | String | |
Rank | Number | |
Mouse | PlayerMouse | Gets the player's mouse data |
Health | Number | Get/set the player's health |
MaxHealth | Number | Get/set the player's max health |
WalkSpeed | Number | Get/set the player's walkspeed |
Inherited from Dynamic | Name Enabled Root Position Rotation LocalRotation Size Parent TextureID TextureTiling |
Functions
Name | Returns | Description |
---|---|---|
Kick | Void | Disconnects a player with an optional message |
Kill | Void | Kills the player |
TakeDamage | Void | Deals damage to the player |
PlayAnimation | Void | Causes the player to play an animation |
SetFirstPersonLock | Void |
Inherited from Dynamic | SetParent Log IsA FindFirstChild FindFirstChildOfClass FindFirstParentOfClass MoveTo LocalToWorldPoint Clone GetChildren ClearChildren Destroy |
Events
Name | Description |
---|---|
Touched | Occurs when an object bumps into the player. |