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

One player left in minigame?

Hi I am making a minigames game and I want to learn how to script it so if their is one player alive in the minigame the minigame is over. Can you help?

1 comment

0

Can you post the script so far because I don't wanna throw in a script that doesn't fit with yours.

1 answer

You can use arrays to keep track on who is alive, I can not give the Whole script, but I can walkthrough on how to do it.

local Players_Found_In_Game = {}

lets start with a basic, empty array. So this is what the set-up should be :

  • Game Loop
    • Start miniGame
      • Import Players to the Array
  • [If Player 'Passes away']
    • Remove Player from array

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