I am trying to get the player's humanoid by using a text button, what do I do?

1 comment

0

Well if you are modifying GUI's, it must be inside a local script. You can define the player by local player = Game.Players.LocalPlayer. You can then get the character with player.Character. local character = player.Character. local HP = character.Humanoid.Health