EXP script interfering with admin script

So back when I had my game open (during the last few days) there was this huge problem.

Within the game I have an API system where once you reach a certain amount of “EXP” it will automatically promote you within our group.

The problem here is this:

If I were to ban somebody from the game - they could simply rejoin the game and the EXP system would automatically rank them back before the admin script would ban them. I’m wondering if there’s a way I can make the script wait until the admin system finishes banning somebody before it runs the process of promoting - or something else I can do as a security check?

I am hoping to re-open my game today so any immediate help is highly appreciated!

If they are in seperate scripts, you could use a BoolValue, then have something like this in the admin script:

repeat wait() until BanScript.Completed.Value == true

Then you would have the BoolValue called Completed as a child of AdminScript and set its value to default to false.

Obviously replace BanScript and AdminScript with references to the actualy scripts in game.

1 Like