Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The ResetButtonCallBack script I use keeps runs after player dies, how do I fix this?

Asked by 5 years ago

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)
0
Because the script is in something like PlayerGui and that thing resets User#19524 175 — 5y
0
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. HimoutoUmaruDomaChan 20 — 5y
0
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. MythicalShade 420 — 5y

Answer this question