Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gameIsGoing = false; -- will be true when the round is going. if the reaper leaves, it will become false to restart the game
- while true do
- for i = 20, 0, -1 do
- wait(1)
- script.Parent.Text = i
- end
- players = game.Players:GetChildren()
- reaper = players[math.random(1, #players)]
- gameIsGoing = true
- Game.Players.PlayerRemoving:connect(p)
- if not reaper or not reaper.Parent then
- gameIsGoing = false;
- end
- end)
- a = Instance.new("BoolValue", reaper)
- a.Name = "It"
- for i, v in pairs(players) do
- if v:FindFirstChild("It") == nil and v.Character then
- v.Character:MoveTo(Vector3.new(500, 5, 0))
- elseif v.It ~= nil then
- end
- end
- if reaper and reaper.Parent then
- reaper.It:Remove()
- end
- script.Parent.Parent.Text1.Text = "Game in progress"
- script.Parent.Parent.Text2.Text = "Game ending in:"
- for i = 60, 0, -1 do
- wait(1)
- script.Parent.Text = i
- if not gameIsGoing then
- break
- end
- end
- for i, v in pairs(players) do
- if v.Character then
- v.Character:MoveTo(Vector3.new(0, 5, 0))
- end
- end
- script.Parent.Parent.Text1.Text = "No game in progress"
- script.Parent.Parent.Text2.Text = "Time until next game:"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement