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

Defining humanoid after character?

Going with my previous post, I did what I was told, now I'm a bit stuck as to how to define humanoid after defining char.

local char = ply.Character or ply.CharacterAdded:wait()

Tried this,

local hum = char.Humanoid or char:WaitForChild('Humanoid')

1 answer

✓ Accepted answer

Just use:

local Hum = Char:WaitForChild("Humanoid")

You want to make sure it is there. And if it is not, just wait for it. If I were you I'd use :WaitForChild() wherever you can.

I wish you luck with whatever you're doing,

soved

1 comment

0

It's weird that it didn't work before, thank you for clarifying.

This discussion is preserved as it was. New answers, comments, and votes are closed.