So I am making a FFA gamemode for my game, the stocks work as usual, dying 3 times won’t let you go back in the game,
But the died function is in a different script than the FFA gamemode, and I insert playertables in the FFA script.
So how would I check when their stocks go down to 0 in the FFA script, and then I remove them from the table and add them to a different table, indicating that they are dead
1 Like
Maybe you could utilize teams to create an “Ingame” and “Spectating” team or whatever and run a constant check on the server to be sure that they are on the right table for their team?
I would prefer not to make teams for the gamemodes, as the game isn’t like a minigame gamemode type.
It would be easier tho, but you’ll need use alot of tables and localise them to a certain part of whatever you are trying to achieve, however, teams would be the easiest and most understandable theme here. If you want to hide the themes you can disable leaderstats using the StarterGui’s Core. Then make a custom leaderstat to show players in game, or a list.
My suggestion: use teams. Teams will also have leadertats and will be a good way of signaling to the player of how many chances left, infact to everyone, if you don’t want it like this, just add a value in the localplayer.
Yes, this had bad grammar, I’m really sleepy right now.
Stocks are in the leaderstats, I just prefer not using teams. I just want to know how to detect when stocks are deleted or is put to 0 in the FFA script for the players in the gamemode