Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.51 KB | None | 0 0
  1. while true do
  2. local status = game.ReplicatedStorage:WaitForChild("Status")
  3. status.Value = "Intermission (30)"
  4. wait(1)
  5. status.Value = "Intermission (29)"
  6. wait(1)
  7. status.Value = "Intermission (28)"
  8. wait(1)
  9. status.Value = "Intermission (27)"
  10. wait(1)
  11. status.Value = "Intermission (26)"
  12. wait(1)
  13. status.Value = "Intermission (25)"
  14. wait(1)
  15. status.Value = "Intermission (24)"
  16. wait(1)
  17. status.Value = "Intermission (23)"
  18. wait(1)
  19. status.Value = "Intermission (22)"
  20. wait(1)
  21. status.Value = "Intermission (21)"
  22. wait(1)
  23. status.Value = "Intermission (20)"
  24. wait(1)
  25. status.Value = "Intermission (19)"
  26. wait(1)
  27. status.Value = "Intermission (18)"
  28. wait(1)
  29. status.Value = "Intermission (17)"
  30. wait(1)
  31. status.Value = "Intermission (16)"
  32. wait(1)
  33. status.Value = "Intermission (15)"
  34. wait(1)
  35. status.Value = "Intermission (14)"
  36. wait(1)
  37. status.Value = "Intermission (13)"
  38. wait(1)
  39. status.Value = "Intermission (12)"
  40. wait(1)
  41. status.Value = "Intermission (11)"
  42. wait(1)
  43. status.Value = "Intermission (10)"
  44. wait(1)
  45. status.Value = "Intermission (9)"
  46. wait(1)
  47. status.Value = "Intermission (8)"
  48. wait(1)
  49. status.Value = "Intermission (7)"
  50. wait(1)
  51. status.Value = "Intermission (6)"
  52. wait(1)
  53. status.Value = "Intermission (5)"
  54. wait(1)
  55. status.Value = "Intermission (4)"
  56. wait(1)
  57. status.Value = "Intermission (3)"
  58. wait(1)
  59. status.Value = "Intermission (2)"
  60. wait(1)
  61. status.Value = "Intermission (1)"
  62. wait(1)
  63. status.Value = "Intermission (0)"
  64. wait(1)
  65. status.Value = "Starting Game..."
  66.  
  67.  
  68. local players = game.Players:GetChildren()
  69. local maps = game.Lighting.Maps:GetChildren()
  70. local currentmap = game.Workspace:WaitForChild("CurrentMap")
  71. local chosenmap = script:WaitForChild("ChosenMap")
  72. local spawner = game.Workspace:WaitForChild("FR Lobby")
  73. local choises = {}
  74.  
  75.  
  76. function chooseMap()
  77. for i = 1,#maps do
  78. if maps[i]:isA("Model") then
  79. table.insert(choises,maps[i])
  80. end
  81. end
  82. local picked = math.random(1,#maps)
  83. chosenmap.Value = choises[picked].Name
  84. end
  85.  
  86. function loadMap()
  87. local map = game.Lighting.Maps:FindFirstChild(chosenmap.Value)
  88. map:Clone().Parent = currentmap
  89. end
  90.  
  91.  
  92. function deleteMap()
  93. for i,v in pairs(currentmap:GetChildren()) do
  94. if v:isA("Model") then
  95. v:Destroy()
  96. end
  97. end
  98. end
  99.  
  100.  
  101.  
  102. function teleportPlayers()
  103. for i,v in pairs(players) do
  104. v.Character.HumanoidRootPart.CFrame = currentmap:FindFirstChild(chosenmap.Value).Spawn.CFrame * CFrame.new(math.random(5,10),0,math.random(5,10))
  105. end
  106. end
  107.  
  108. function teleportBack()
  109. for i,v in pairs(players) do
  110. v.Character.HumanoidRootPart.CFrame = spawner.SpawnLocation.CFrame * CFrame.new(math.random(5,10),0,math.random(5,10))
  111. end
  112. end
  113.  
  114. wait(3)
  115. chooseMap()
  116. loadMap()
  117. wait(3)
  118. status.Value = "Escape the rooms before the flood reaches you!"
  119. wait(3)
  120. status.Value = "Game starts in 3..."
  121. wait(1)
  122. status.Value = "Game starts in 2..."
  123. wait(1)
  124. status.Value = "Game starts in 1..."
  125. wait(1)
  126. teleportPlayers()
  127. status.Value = "Game started. You have 130 seconds to escape!"
  128. wait(1)
  129. status.Value = "You have 129 seconds left to escape"
  130. wait(1)
  131. status.Value = "You have 128 seconds left to escape"
  132. wait(1)
  133. status.Value = "You have 127 seconds left to escape"
  134. wait(1)
  135. status.Value = "You have 126 seconds left to escape"
  136. wait(1)
  137. status.Value = "You have 125 seconds left to escape"
  138. wait(1)
  139. status.Value = "You have 124 seconds left to escape"
  140. wait(1)
  141. status.Value = "You have 123 seconds left to escape"
  142. wait(1)
  143. status.Value = "You have 122 seconds left to escape"
  144. wait(1)
  145. status.Value = "You have 121 seconds left to escape"
  146. wait(1)
  147. status.Value = "You have 120 seconds left to escape"
  148. wait(1)
  149. status.Value = "You have 119 seconds left to escape"
  150. wait(1)
  151. status.Value = "You have 118 seconds left to escape"
  152. wait(1)
  153. status.Value = "You have 117 seconds left to escape"
  154. wait(1)
  155. status.Value = "You have 116 seconds left to escape"
  156. wait(1)
  157. status.Value = "You have 115 seconds left to escape"
  158. wait(1)
  159. status.Value = "You have 114 seconds left to escape"
  160. wait(1)
  161. status.Value = "You have 113 seconds left to escape"
  162. wait(1)
  163. status.Value = "You have 112 seconds left to escape"
  164. wait(1)
  165. status.Value = "You have 111 seconds left to escape"
  166. wait(1)
  167. status.Value = "You have 110 seconds left to escape"
  168. wait(1)
  169. status.Value = "You have 109 seconds left to escape"
  170. wait(1)
  171. status.Value = "You have 108 seconds left to escape"
  172. wait(1)
  173. status.Value = "You have 107 seconds left to escape"
  174. wait(1)
  175. status.Value = "You have 106 seconds left to escape"
  176. wait(1)
  177. status.Value = "You have 105 seconds left to escape"
  178. wait(1)
  179. status.Value = "You have 104 seconds left to escape"
  180. wait(1)
  181. status.Value = "You have 103 seconds left to escape"
  182. wait(1)
  183. status.Value = "You have 102 seconds left to escape"
  184. wait(1)
  185. status.Value = "You have 101 seconds left to escape"
  186. wait(1)
  187. status.Value = "You have 100 seconds left to escape"
  188. wait(1)
  189. status.Value = "You have 99 seconds left to escape"
  190. wait(1)
  191. status.Value = "You have 98 seconds left to escape"
  192. wait(1)
  193. status.Value = "You have 97 seconds left to escape"
  194. wait(1)
  195. status.Value = "You have 96 seconds left to escape"
  196. wait(1)
  197. status.Value = "You have 95 seconds left to escape"
  198. wait(1)
  199. status.Value = "You have 94 seconds left to escape"
  200. wait(1)
  201. status.Value = "You have 93 seconds left to escape"
  202. wait(1)
  203. status.Value = "You have 92 seconds left to escape"
  204. wait(1)
  205. status.Value = "You have 91 seconds left to escape"
  206. wait(1)
  207. status.Value = "You have 90 seconds left to escape"
  208. wait(1)
  209. status.Value = "You have 89 seconds left to escape"
  210. wait(1)
  211. status.Value = "You have 88 seconds left to escape"
  212. wait(1)
  213. status.Value = "You have 87 seconds left to escape"
  214. wait(1)
  215. status.Value = "You have 86 seconds left to escape"
  216. wait(1)
  217. status.Value = "You have 85 seconds left to escape"
  218. wait(1)
  219. status.Value = "You have 84 seconds left to escape"
  220. wait(1)
  221. status.Value = "You have 83 seconds left to escape"
  222. wait(1)
  223. status.Value = "You have 82 seconds left to escape"
  224. wait(1)
  225. status.Value = "You have 81 seconds left to escape"
  226. wait(1)
  227. status.Value = "You have 80 seconds left to escape"
  228. wait(1)
  229. status.Value = "You have 79 seconds left to escape"
  230. wait(1)
  231. status.Value = "You have 78 seconds left to escape"
  232. wait(1)
  233. status.Value = "You have 77 seconds left to escape"
  234. wait(1)
  235. status.Value = "You have 76 seconds left to escape"
  236. wait(1)
  237. status.Value = "You have 75 seconds left to escape"
  238. wait(1)
  239. status.Value = "You have 74 seconds left to escape"
  240. wait(1)
  241. status.Value = "You have 73 seconds left to escape"
  242. wait(1)
  243. status.Value = "You have 72 seconds left to escape"
  244. wait(1)
  245. status.Value = "You have 71 seconds left to escape"
  246. wait(1)
  247. status.Value = "You have 70 seconds left to escape"
  248. wait(1)
  249. status.Value = "You have 69 seconds left to escape"
  250. wait(1)
  251. status.Value = "You have 68 seconds left to escape"
  252. wait(1)
  253. status.Value = "You have 67 seconds left to escape"
  254. wait(1)
  255. status.Value = "You have 66 seconds left to escape"
  256. wait(1)
  257. status.Value = "You have 65 seconds left to escape"
  258. wait(1)
  259. status.Value = "You have 64 seconds left to escape"
  260. wait(1)
  261. status.Value = "You have 63 seconds left to escape"
  262. wait(1)
  263. status.Value = "You have 62 seconds left to escape"
  264. wait(1)
  265. status.Value = "You have 61 seconds left to escape"
  266. wait(1)
  267. status.Value = "You have 60 seconds left to escape"
  268. wait(1)
  269. status.Value = "You have 59 seconds left to escape"
  270. wait(1)
  271. status.Value = "You have 58 seconds left to escape"
  272. wait(1)
  273. status.Value = "You have 57 seconds left to escape"
  274. wait(1)
  275. status.Value = "You have 56 seconds left to escape"
  276. wait(1)
  277. status.Value = "You have 55 seconds left to escape"
  278. wait(1)
  279. status.Value = "You have 54 seconds left to escape"
  280. wait(1)
  281. status.Value = "You have 53 seconds left to escape"
  282. wait(1)
  283. status.Value = "You have 52 seconds left to escape"
  284. wait(1)
  285. status.Value = "You have 51 seconds left to escape"
  286. wait(1)
  287. status.Value = "You have 50 seconds left to escape"
  288. wait(1)
  289. status.Value = "You have 49 seconds left to escape"
  290. wait(1)
  291. status.Value = "You have 48 seconds left to escape"
  292. wait(1)
  293. status.Value = "You have 47 seconds left to escape"
  294. wait(1)
  295. status.Value = "You have 46 seconds left to escape"
  296. wait(1)
  297. status.Value = "You have 45 seconds left to escape"
  298. wait(1)
  299. status.Value = "You have 44 seconds left to escape"
  300. wait(1)
  301. status.Value = "You have 43 seconds left to escape"
  302. wait(1)
  303. status.Value = "You have 42 seconds left to escape"
  304. wait(1)
  305. status.Value = "You have 41 seconds left to escape"
  306. wait(1)
  307. status.Value = "You have 40 seconds left to escape"
  308. wait(1)
  309. status.Value = "You have 39 seconds left to escape"
  310. wait(1)
  311. status.Value = "You have 38 seconds left to escape"
  312. wait(1)
  313. status.Value = "You have 37 seconds left to escape"
  314. wait(1)
  315. status.Value = "You have 36 seconds left to escape"
  316. wait(1)
  317. status.Value = "You have 35 seconds left to escape"
  318. wait(1)
  319. status.Value = "You have 34 seconds left to escape"
  320. wait(1)
  321. status.Value = "You have 33 seconds left to escape"
  322. wait(1)
  323. status.Value = "You have 32 seconds left to escape"
  324. wait(1)
  325. status.Value = "You have 31 seconds left to escape"
  326. wait(1)
  327. status.Value = "You have 30 seconds left to escape"
  328. wait(1)
  329. status.Value = "You have 39 seconds left to escape"
  330. wait(1)
  331. status.Value = "You have 38 seconds left to escape"
  332. wait(1)
  333. status.Value = "You have 37 seconds left to escape"
  334. wait(1)
  335. status.Value = "You have 36 seconds left to escape"
  336. wait(1)
  337. status.Value = "You have 35 seconds left to escape"
  338. wait(1)
  339. status.Value = "You have 34 seconds left to escape"
  340. wait(1)
  341. status.Value = "You have 33 seconds left to escape"
  342. wait(1)
  343. status.Value = "You have 32 seconds left to escape"
  344. wait(1)
  345. status.Value = "You have 31 seconds left to escape"
  346. wait(1)
  347. status.Value = "You have 30 seconds left to escape"
  348. wait(1)
  349. status.Value = "You have 29 seconds left to escape"
  350. wait(1)
  351. status.Value = "You have 28 seconds left to escape"
  352. wait(1)
  353. status.Value = "You have 27 seconds left to escape"
  354. wait(1)
  355. status.Value = "You have 26 seconds left to escape"
  356. wait(1)
  357. status.Value = "You have 25 seconds left to escape"
  358. wait(1)
  359. status.Value = "You have 24 seconds left to escape"
  360. wait(1)
  361. status.Value = "You have 23 seconds left to escape"
  362. wait(1)
  363. status.Value = "You have 22 seconds left to escape"
  364. wait(1)
  365. status.Value = "You have 21 seconds left to escape"
  366. wait(1)
  367. status.Value = "You have 20 seconds left to escape"
  368. wait(1)
  369. status.Value = "You have 19 seconds left to escape"
  370. wait(1)
  371. status.Value = "You have 18 seconds left to escape"
  372. wait(1)
  373. status.Value = "You have 17 seconds left to escape"
  374. wait(1)
  375. status.Value = "You have 16 seconds left to escape"
  376. wait(1)
  377. status.Value = "You have 15 seconds left to escape"
  378. wait(1)
  379. status.Value = "You have 14 seconds left to escape"
  380. wait(1)
  381. status.Value = "You have 13 seconds left to escape"
  382. wait(1)
  383. status.Value = "You have 12 seconds left to escape"
  384. wait(1)
  385. status.Value = "You have 11 seconds left to escape"
  386. wait(1)
  387. status.Value = "You have 10 seconds left to escape"
  388. wait(1)
  389. status.Value = "You have 9 seconds left to escape"
  390. wait(1)
  391. status.Value = "You have 8 seconds left to escape"
  392. wait(1)
  393. status.Value = "You have 7 seconds left to escape"
  394. wait(1)
  395. status.Value = "You have 6 seconds left to escape"
  396. wait(1)
  397. status.Value = "You have 5 seconds left to escape"
  398. wait(1)
  399. status.Value = "You have 4 seconds left to escape"
  400. wait(1)
  401. status.Value = "You have 3 seconds left to escape"
  402. wait(1)
  403. status.Value = "You have 2 seconds left to escape"
  404. wait(1)
  405. status.Value = "You have 1 second left to escape"
  406. wait(1)
  407. status.Value = "You have 0 seconds left to escape"
  408. wait(1)
  409. status.Value = "Time has ended."
  410. wait(5)
  411. deleteMap()
  412. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement