I have a loading asset intro and if someone resets during the intro, it breaks the game. That's why I disabled resetting during the intro with this script but it let's you reset after the intro is done. But after a player dies, the script runs again and I can't figure out how to fix this. Something about when player joins or somethin. Please help.
local StarterGui = game:GetService('StarterGui')
wait()
StarterGui:SetCore("ResetButtonCallback", false)
wait(5)
StarterGui:SetCore("ResetButtonCallback", true)

3 comments
Because the script is in something like PlayerGui and that thing resets
Okay, but I still don't know how to fix it because it is in the StarterGui and that's the only way it works.
Make a value in the player and check if they're in the opening or not and if not then make them be able to reset, so that way even if the script resets it will check and see that they've been through the intro.