Hi my game script has a few bugs. One bug is that well it repeats Intermission every second of the game it never turns off. Can you help?
while true do
print("Intermission")
game.ReplicatedStorage.Cows:Clone().Parent = workspace
wait(1)
print("Game running")
for _, player in next, game.Players:GetPlayers() do
if getScore(player, "Cow Clicks") >= highScore then
print("Game over")
local spawns = {workspace.Part1.Position,workspace.Part2.Position,workspace.Part3.Position}
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character:MoveTo(spawns[i])
player.leaderstats["Cow Clicks"].Value = 0
end
end
end
end
end
