Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main Script--
- ServerStorage = game:GetService("ServerStorage")
- ReplicatedStorage = game:GetService("ReplicatedStorage")
- Players = game:GetService("Players")
- Maps = ServerStorage:WaitForChild('Maps'):GetChildren()
- Status = ReplicatedStorage:WaitForChild('Status')
- while true do
- -- script made by KillerWolfie2112
- -- Youtube: XxGAMERxX
- local Countdown = 10 -- Intermission Time
- repeat wait(1)
- Countdown = Countdown - 1
- Status.Value = 'Intermission : '..Countdown
- until Countdown <= 0
- Status.Value = 'Choosing Map.'
- local ChosenMap = Maps[math.random(1, #Maps)]:Clone()
- local Spawns = ChosenMap:FindFirstChild('Spawns'):GetChildren()
- local RandomSpawn = Spawns[math.random(1, #Spawns)]
- wait(5) -- little pause, make this as long as you want
- ChosenMap.Parent = workspace
- Status.Value = 'Map chosen, teleporting players.'
- wait(2) -- little pause, make this as long as you want
- for _, Player in pairs(Players:GetChildren())do
- if Player.Character and Player.Character:FindFirstChild('Humanoid') then
- Player.Character.HumanoidRootPart.CFrame = RandomSpawn.CFrame
- end
- end
- Countdown = 3 -- Starting Round In, make this as long as you want
- repeat wait(1)
- Countdown = Countdown - 1
- Status.Value = ' Round Starts in : '..Countdown
- until Countdown <= 0
- Countdown = 10 -- Game Time.
- repeat wait(1)
- Countdown = Countdown - 1
- Status.Value = 'Time Left : '..Countdown
- until Countdown <= 0
- for _, Player in pairs(Players:GetChildren())do
- if Player.Character and Player.Character:FindFirstChild('Humanoid') then
- Player.Character.Humanoid:TakeDamage(2000)
- end
- end
- ChosenMap:Destroy()
- Status.Value = 'Round Ended, waiting for new game.'
- wait(4) -- little pause, make this as long as you want.
- end
- ServerStorage = game:GetService("ServerStorage")
- ReplicatedStorage = game:GetService("ReplicatedStorage")
- Players = game:GetService("Players")
- GUI Script -
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Status = ReplicatedStorage:WaitForChild('Status')
- local TextStatus = script.Parent.TextLabel
- TextStatus.Text = Status.Value
- Status.Changed:Connect(function()
- TextStatus.Text = Status.Value
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement