Hi I was making a table with the rounds and I came across an error of when i said if the round was equal to the same round that was chosen then it would play that game. But it just kept picking one round. Can you help?
local round = rounds[math.random(1,#rounds)] getfenv()[round]()
h.Text = "Starting the game..."
wait(5)
for _, player in pairs(game.Players:GetPlayers()) do
if player.Character then
player.Character:MoveTo( gamespawns[math.random(#gamespawns)] )
end
wait(1) -- EDIT
end
if round == "Teamwork" then
end
if round == "Color Cows" then
end
if round == "Exploding Cows" then
end
if round == "Classic" then
for time = 300, 1, -1 do
workspace.GameMusic.Sound:Play()
wait(1)
h.Text = time .. " seconds left"
if getWinner() then
workspace.GameMusic.Sound:Stop()
break -- ended the game early
end
end
end
