player = game.Players.LocalPlayers if player.character.humanoid then end
Make sure you have "Capitalized Sensitivity" that will be:
player = game.Players.LocalPlayers if player.Character.Humanoid then end
and if keeps getting error and saying: Character is a nil value then make it like this:
player = game.Players.LocalPlayers repeat wait() until player.Character ~= nil if player.Character.Humanoid then end