Inside a LocalScript:
ply=game.Players.LocalPlayer char=ply.Character hum=char.Humanoid
I have also tried:
ply=game.Players.LocalPlayer char=ply:WaitForChild('Character') hum=char:WaitForChild('Humanoid')
Errors in-game:
attempt to index local 'char', a nil value
You'll have to do
local char = ply.Character or ply.CharacterAdded:wait()
That last one will make the script yield till the characterAdded event is fired, and give the character as return instance.