Here's my code, I'm not sure if I did the plr1 and plr2 locals right, if I did how would I teleport them to to spawn1 and spawn2?
local message = Instance.new("Message")
local gamemessage = Instance.new("Message")
local localplayer = game.Players.LocalPlayer
local spawn1 = game.Workspace.Spawn1
local spawn2 = game.Workspace.Spawn2
while true do
wait(5)
local players = game.Players:GetPlayers()
for i = 1, #players do
message.Text = "2 or more players needed to start!"
message.Parent = workspace
end
for i = 2, #players do
message:Destroy()
end
local plr1 = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
local plr2 = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
end

1 comment
Thanks, I understand now!