Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

1
try a local script instead ProjectInfiniti 192 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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")
0
Thanks comrade! WeirdTurtleKid 26 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

I don't think its possible in a normal script

Answer this question