Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I detect if a player is in a mini game or not?

Hi, I just started scripting and am not fully familiar with the tools yet. I would like to know how to detect if a player is inside a mini game or not. (When the players are teleported to the map, I want to know how to store the value of them being in the game)

This way, my script can determine the winner of the game and award them points.

I'm thinking of using a table of all the players in the game, but I'm not very good with them.

1 answer

Just put a StringValue inside the player and set its value to the name of the minigame they or in (or "none" if they aren't in any). Then any script can see what game they are in.

This discussion is preserved as it was. New answers, comments, and votes are closed.