Prompting to favorite the game on join then stopping

I have recently made an obby and wanted to also add in a prompt for users to favorite the game just for the better ratio. I am able to prompt it using a local script in StarterGui, but every time the user dies, it prompts.

I have tried to break the script, but I am rather new to scripting, and maybe I messed up the script itself or it just doesn’t work that way. If anyone could offer me assistance, I’d be very appreciative.

1 Like

You should place the script in StarterPlayerScripts under StarterPlayer so it doesn’t run when the player dies

2 Likes

Where is the LocalScript parented to? If it’s parented to a ScreenGui with ScreenGui.ResetOnSpawn being set to true, then this might be why.
So either parent the LocalScript to StarterPlayer, or change the ScreenGui.ResetOnSpawn property to true.

2 Likes

Thank you so much! I followed this and it worked and is fixed!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.