This script picks a random player and puts them on the assassins team but i want it to make the rest of the players to change to the Survivors team how do i do that
local SetNumber = 0
while true do
wait(10)
local players0 = game.Players:GetChildren()
if #players0 >=1 and SetNumber <1 then
local ItemToGive = game.Lighting.Tag
local player = math.random(1, game.Players.NumPlayers);
local Players = game.Players:GetPlayers()
ItemToGive:Clone().Parent = Players[player].Backpack
print (player)
Players[player].Team = game.Teams.Assassins
SetNumber = SetNumber + 1
print(SetNumber)
end
end

3 comments
Thanks so much worked perfectly!
Np :D accept answer if I helped <3
How to I accept answer? Sorry i am really new to this website.