Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. --//Made by Equillex (12904) for the teleporting <3\\--
  2.  
  3. while true do
  4. local intermissiontime = 20
  5. local roundtime = 30 --hi
  6. local localroundtime = roundtime --hi
  7. local localtimer = intermissiontime
  8. local int = game.StarterGui.int.label
  9. local inter = game.ReplicatedStorage.IntermissionTime
  10. local contestants = game.Players:GetChildren()
  11. local roundtimer = roundtime
  12. local rou = game.ReplicatedStorage.RoundTime
  13. --start intermission
  14.  
  15. wait(1)
  16.  
  17. while localtimer > 0 do --Start intermission countdown
  18. localtimer = localtimer - 1
  19. inter.Value = localtimer
  20. wait(1)
  21. end
  22.  
  23.  
  24. game.ReplicatedStorage.Event.Name = "StartRound"
  25. wait(3)
  26. game.ReplicatedStorage.StartRound.Name = "Choosemap"
  27. game.Workspace.Map:ClearAllChildren()
  28.  
  29.  
  30.  
  31. --load random map
  32. local map = (game.ReplicatedStorage.Maps:GetChildren())[math.random(1,#(game.ReplicatedStorage.Maps:GetChildren()))]:Clone()
  33. map.Parent = game.Workspace.Map
  34. local namemap = map.mapname.Value
  35. game.ReplicatedStorage.MapName.Value = namemap
  36. wait(3)
  37. game.ReplicatedStorage.Choosemap.Name = "MapChose"
  38.  
  39. --Teleport to map
  40. local spawns = map.Spawns:GetChildren()
  41. local plrs = game.Players:GetPlayers()
  42. wait(4) -- Don't need this but you had it.
  43. game.ReplicatedStorage.MapChose.Name = "Event"
  44. for I,v in pairs(plrs) do
  45. v.Character.Torso.CFrame = spawns[I].CFrame + Vector3.new(0,3,0)
  46. table.remove(spawns, I)
  47. end
  48.  
  49.  
  50.  
  51.  
  52.  
  53. while roundtimer > 0 do --Start round countdown
  54. roundtimer = roundtimer - 1
  55. rou.Value = roundtimer
  56. wait(1)
  57. end
  58.  
  59. print("Round over.") --Round ends
  60. game.ReplicatedStorage.Event.Name = "RoundOver"
  61. local spawnlocations = game.Workspace.Lobby.SpawnLocations:WaitForChild("SpawnLocation")
  62. for I,v in pairs(plrs) do
  63. v.Character.Torso.CFrame = spawnlocations.CFrame + Vector3.new(0,3,0)
  64. table.remove(spawns, I)
  65. end
  66. wait(1)
  67.  
  68.  
  69.  
  70.  
  71. game.ReplicatedStorage.RoundOver.Name = "Event"
  72. end
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. --end round
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement