idk, it’s prob on somewhere like startergui, also what is CoreGUIS set to? (I don’t think that’s the problem, unless CoreGUIS is nil.) Yeah, you should rescript it and put it below StarterPlayer.StarterCharacterScripts.
What if you try using game:GetService("Players").LocalPlayer.CharacterAdded:Connect() instead?
If it doesn’t work, try with if not game:IsLoaded() then game.Loaded:Wait()end to load the game first.
Another problem may be that the character is maybe already added when playing so CharacterAdded:Connect() will never fire. Just set character to local character=game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
none of these are the case since using game:GetService(“Players”) is no different from game.Players. Also, you don’t really need to wait for the game to be loaded, you only really need the character. Lastly, CharacterAdded() will always run when a character respawns or spawns.
Yeah, I also knew that when I said so, just said bc I wasnt sure if it loaded on start.
You are waiting for the character AFTER the character loads, I think that’s the problem, but she’s running CoreGUIS.Health() on start so it doesn’t matter.
(in my opinion, it’s not a good way to script, but if it works, )
also i know that didnt help, I just didnt know what the issue was. the script should work
since this a local script, I suggest you just move it to StarterPlayerScripts instead especially if your script is calling when the player dies. Like I said earlier, when the player dies, all the scripts gets removed and reset