Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I get the humanoid from a script located in a gui text button?

I have been having problems trying to get the humanoid from the script and I am looking for answers.

1 comment

1

try a local script instead

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.