There are no errors being thrown, and the script stops at line five and is completely unresponsive, I’m really not sure what to do now.
Change line 5 to:
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
2 Likes
I would also change game.Players to game:GetService("Players").
It is better practice to use GetService for services like Players, ReplicatedStorage, Lighting, and other services in the explorer like that.
Is this script in StarterPlayerScripts? If so, it will only work once and then when you die it will refuse to work again. Moving it to StarterCharacterScripts allows you to set “char” to script.Parent.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
