What is the pathway to Humanoid

I am making a topbar button that kills you when you click on it and the script is in StarterPlayerScripts

so what is the pathway to humanoid from starterplayerscripts?

1 Like

LocalPlayer is the player that the starterplayerscript is in
You can access the player’s character with .Character
The characters have humanoids in them

game.Players.LocalPlayer.Character.Humanoid

Thanks, this was probably a dumb question so thanks for not pointing that out (I’m learning how to code)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.