useCharacter
useCharacter():
Entity|undefined
The character this side’s player controls, or undefined, as
readLocalCharacter reads it. Read again each time a controllable
entity or a player comes or goes and each time a control or an
authority changes, as a switch from the player’s character to the
player’s drone does. What a HUD reads the character’s health, bag and
cooldowns off. A character with its pose comes before a kart or a drone
the player controls beside it, and a room’s own world reads none.
As Roblox’s Players.LocalPlayer.Character.
Returns
Section titled “Returns”Entity | undefined