Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Made by Equillex (12904) for the teleporting <3\\--
- while true do
- local intermissiontime = 20
- local roundtime = 30 --hi
- local localroundtime = roundtime --hi
- local localtimer = intermissiontime
- local int = game.StarterGui.int.label
- local inter = game.ReplicatedStorage.IntermissionTime
- local contestants = game.Players:GetChildren()
- local roundtimer = roundtime
- local rou = game.ReplicatedStorage.RoundTime
- --start intermission
- wait(1)
- while localtimer > 0 do --Start intermission countdown
- localtimer = localtimer - 1
- inter.Value = localtimer
- wait(1)
- end
- game.ReplicatedStorage.Event.Name = "StartRound"
- wait(3)
- game.ReplicatedStorage.StartRound.Name = "Choosemap"
- game.Workspace.Map:ClearAllChildren()
- --load random map
- local map = (game.ReplicatedStorage.Maps:GetChildren())[math.random(1,#(game.ReplicatedStorage.Maps:GetChildren()))]:Clone()
- map.Parent = game.Workspace.Map
- local namemap = map.mapname.Value
- game.ReplicatedStorage.MapName.Value = namemap
- wait(3)
- game.ReplicatedStorage.Choosemap.Name = "MapChose"
- --Teleport to map
- local spawns = map.Spawns:GetChildren()
- local plrs = game.Players:GetPlayers()
- wait(4) -- Don't need this but you had it.
- game.ReplicatedStorage.MapChose.Name = "Event"
- for I,v in pairs(plrs) do
- v.Character.Torso.CFrame = spawns[I].CFrame + Vector3.new(0,3,0)
- table.remove(spawns, I)
- end
- while roundtimer > 0 do --Start round countdown
- roundtimer = roundtimer - 1
- rou.Value = roundtimer
- wait(1)
- end
- print("Round over.") --Round ends
- game.ReplicatedStorage.Event.Name = "RoundOver"
- local spawnlocations = game.Workspace.Lobby.SpawnLocations:WaitForChild("SpawnLocation")
- for I,v in pairs(plrs) do
- v.Character.Torso.CFrame = spawnlocations.CFrame + Vector3.new(0,3,0)
- table.remove(spawns, I)
- end
- wait(1)
- game.ReplicatedStorage.RoundOver.Name = "Event"
- end
- --end round
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement