So my game in development has two teams: "Playing" for the people currently in a round, and "Lobby" for the people in the lobby. What's the best way to make a script that moves a player off the "Playing" team when they die during a round, and where do the script(s) go? I know how to move all players to one team, I'm just a bit unsure about moving specific players to the lobby team when they die. Thanks
You can put the bool inside your intermission script. if you have a player variable, add a new instance "BoolValue" (parent is the player) and set it to true, when you teleport them to the arena/place. (originally false). You can check if a player has died, and when they do, just set their bool value to false.
local bool = Instance.new("BoolValue", player) player.Character.Humanoid.Died:Connect(function() if bool then -- if bool is true -- send them to the lobby else -- dont do anything end end)