I have been having problems trying to get the humanoid from the script and I am looking for answers.
✓ ANSWER ACCEPTED
How can I get the humanoid from a script located in a gui text button?
2 answers
✓ Accepted answer
try this
local player = game.Players.LocalPlayer-- getting the player and the humanoid
local character
repeat
character = player.Character
wait()
until character
local hum = character:WaitForChild("Humanoid")
1 comment
0
Thanks comrade!
I don't think its possible in a normal script
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
try a local script instead