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')
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