I’ve searched the web try to find a viable way to “fix” this issue. No luck. For some odd reason, my local script (controls majority of the client) gets disabled when the player dies or respawns. How would I “restart” or “re-enabled” the local script when the player respawns? Loading into the game for the first time works nearly perfect.
Code Example:
print("Start")
do
local player = game.Players.LocalPlayer
function printPlayerName()
print(player.Name)
end
printPlayerName() -- Only runs once (doesn't run after player respawns)
end
Unfortunatley, unless you provide code samples, it’s very hard to help.
I assume you have a LocalScript inside a StarterGui, so maybe the StarterGui.ResetOnSpawn property is set to true?