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?
COMMUNITY QUESTION
One player left in minigame?
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
- Start miniGame
- [If Player 'Passes away']
- Remove Player from array
This discussion is preserved as it was. New answers, comments, and votes are closed.

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