1 | Player = game.Players.LocalPlayer |
2 | character = Player.Character |
3 | 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 :
1 | local Player = game.Players.LocalPlayer |
2 | local character = Player.Character or Player.CharacterAdded:Wait() |
3 | local humanoid = character:WaitForChild( 'Humanoid' ) |