Player = game.Players.LocalPlayer
character = Player.Character
humanoid = character:FindFirstChild('Humanoid')
WHAT IS WRONG HERE?
Player = game.Players.LocalPlayer
character = Player.Character
humanoid = character:FindFirstChild('Humanoid')
WHAT IS WRONG HERE?
The problem here is the fact that the character does NOT exist (yet).
Give this a go :
local Player = game.Players.LocalPlayer
local character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = character:WaitForChild('Humanoid')
Make sure it's in a LocalScript in StarterGui or somewhere where LocalScripts can be ran.
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
maybe try WaitForChild
i like just using character= game.workspace:FindFirstChild(player.name)
says attempt to index nil with 'WaitForChild' now
Just do character.Humanoid....
Try Using Qautation marks instead of Highens
I posted an answer, should work.........