Advertisement
Ma1e

Untitled

Oct 16th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.06 KB | None | 0 0
  1. StatusValue = Instance.new("StringValue", game.ReplicatedStorage)
  2. StatusValue.Name = "StatusValue"
  3. local Hint = Instance.new("Hint", game.Workspace)
  4. local Value = Instance.new("IntValue", Hint)
  5. Hint.Text = StatusValue.Value
  6. StatusValue.Changed:connect(function()
  7. Hint.Text = StatusValue.Value
  8. end)
  9. Hint.Changed:connect(function()
  10. if game.Workspace:FindFirstChild("Message") then
  11. else
  12. local Hint = Instance.new("Hint", game.Workspace)
  13. local Value = Instance.new("IntValue", Hint)
  14. Hint.Text = StatusValue.Value
  15. StatusValue.Changed:connect(function()
  16. Hint.Text = StatusValue.Value
  17. end)
  18. end
  19. end)
  20. game.Lighting.GlobalShadows = false
  21. game.Lighting.Ambient = Color3.new(.5,.5,.5)
  22.  
  23. game.Workspace.ChildAdded:connect(function(rope)
  24. if rope.className == "Model" then
  25. if rope:FindFirstChildOfClass("Humanoid") then
  26. local Attachment1 = Instance.new("Attachment", rope.Head)
  27. Attachment1.Name = 'Attachment1'
  28. local Rope = Instance.new("RopeConstraint", rope.Head)
  29. Rope.Name = "Rope"
  30. Rope.Attachment0 = Attachment1
  31. Rope.Visible = true
  32. Rope.Color = BrickColor.new("Pearl")
  33. Rope.Length = 100
  34. end
  35. end
  36. end)
  37.  
  38. local linkedsword = game:service("InsertService"):LoadAsset(tonumber(125013769))
  39. for a,g in pairs(linkedsword:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = game.ReplicatedStorage end end
  40. linkedsword:Destroy()
  41.  
  42. game.Players.PlayerAdded:connect(function(obj)
  43.  
  44. local stats = Instance.new("Folder", obj)
  45. stats.Name = "leaderstats"
  46.  
  47. local Wins = Instance.new("IntValue", stats)
  48. Wins.Name = "Wins"
  49. Wins.Value = 0
  50.  
  51. local Team = Instance.new("StringValue", obj)
  52. Team.Name = "T"
  53. Team.Value = "Players"
  54.  
  55. local Alive = Instance.new("StringValue", obj)
  56. Alive.Name = "Alive"
  57. Alive.Value = "No"
  58. obj.CharacterAdded:connect(function(character)
  59. character:WaitForChild("Humanoid").Died:connect(function()
  60. local tag = character.Humanoid:FindFirstChild("creator")
  61. if tag ~= nil then
  62. if tag.Value ~= nil then
  63. if obj.Alive.Value == "Yes" then
  64. if obj.T.Value == "Red" then
  65. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  66. obj.Alive.Value = "No"
  67. elseif obj.T.Value == "Blue" then
  68. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  69. obj.Alive.Value = "No"
  70. end
  71. if obj.T.Value == "Players" then
  72. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  73. obj.Alive.Value = "No"
  74. end
  75.  
  76. end
  77. end
  78. end
  79. end)
  80. end)
  81. end)
  82.  
  83. for _,obj in pairs(game.Players:GetChildren()) do
  84.  
  85. local stats = Instance.new("Folder", obj)
  86. stats.Name = "leaderstats"
  87.  
  88. local Wins = Instance.new("IntValue", stats)
  89. Wins.Name = "Wins"
  90. Wins.Value = 0
  91.  
  92. local Team = Instance.new("StringValue", obj)
  93. Team.Name = "T"
  94. Team.Value = "Players"
  95.  
  96. local Alive = Instance.new("StringValue", obj)
  97. Alive.Name = "Alive"
  98. Alive.Value = "No"
  99.  
  100. obj.CharacterAdded:connect(function(character)
  101. character:WaitForChild("Humanoid").Died:connect(function()
  102. local tag = character.Humanoid:FindFirstChild("creator")
  103. if tag ~= nil then
  104. if tag.Value ~= nil then
  105. if obj.Alive.Value == "Yes" then
  106. if obj.T.Value == "Red" then
  107. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  108. obj.Alive.Value = "No"
  109. elseif obj.T.Value == "Blue" then
  110. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  111. obj.Alive.Value = "No"
  112. end
  113. if obj.T.Value == "Players" then
  114. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  115. obj.Alive.Value = "No"
  116. end
  117.  
  118. end
  119. end
  120. end
  121. end)
  122. end)
  123. end
  124.  
  125. game.Players.PlayerRemoving:connect(function(plr)
  126. if plr.Alive.Value == "Yes" then
  127. if plr.T.Value == "Red" then
  128. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  129. elseif plr.T.Value == "Blue" then
  130. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  131. if game.ReplicatedStorage["PlayersAlive"].Value > 0 then
  132. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  133. end
  134. end
  135. end
  136. end)
  137. -------------------------------------------
  138. GameValue = Instance.new("IntValue", game.ReplicatedStorage)
  139. GameValue.Name = "Game"
  140. GameValue.Value = 0
  141.  
  142. PlayersAlive = Instance.new("IntValue", game.ReplicatedStorage)
  143. PlayersAlive.Name = "PlayersAlive"
  144. PlayersAlive.Value = 0
  145. -------------------------------------------MAP1
  146. Map = Instance.new("Model", game.Workspace)
  147. Map.Name = "Regular Map"
  148.  
  149. Part = Instance.new("Part", Map)
  150. Part.BrickColor = BrickColor.new("Black")
  151. Part.Orientation = Vector3.new(0, -180, -90)
  152. Part.Material = "SmoothPlastic"
  153. Part.Anchored = true
  154. Part.Size = Vector3.new(5, 190, 185)
  155. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  156. Part.Shape = "Cylinder"
  157. Part.TopSurface = "Smooth"
  158. Part.BottomSurface = "Smooth"
  159.  
  160. Tele = Instance.new("Part", Map)
  161. Tele.Transparency = 1
  162. Tele.Name = "Tele"
  163. Tele.Anchored = true
  164. Tele.CanCollide = false
  165. Tele.Size = Vector3.new(121, 1, 130.6)
  166. Tele.Position = Vector3.new(-16.5, 75, 45.5)
  167.  
  168. Map.Parent = game.ServerStorage
  169. -------------------------------------------MAP2
  170. Map2 = Instance.new("Model", game.Workspace)
  171. Map2.Name = "Tree Land"
  172.  
  173. Part = Instance.new("Part", Map2)
  174. Part.BrickColor = BrickColor.new("Bright green")
  175. Part.Orientation = Vector3.new(0, -180, -90)
  176. Part.Material = "Grass"
  177. Part.Anchored = true
  178. Part.Size = Vector3.new(5, 190, 185)
  179. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  180. Part.Shape = "Cylinder"
  181. Part.TopSurface = "Smooth"
  182. Part.BottomSurface = "Smooth"
  183.  
  184. Wood1 = Instance.new("Part", Map2)
  185. Wood1.BrickColor = BrickColor.new("Brown")
  186. Wood1.Material = "Wood"
  187. Wood1.Anchored = true
  188. Wood1.Size = Vector3.new(2, 10, 2)
  189. Wood1.Position = Vector3.new(6.4, 63.6, 6.7)
  190. Wood1.TopSurface = "Smooth"
  191. Wood1.BottomSurface = "Smooth"
  192.  
  193. Grass1 = Instance.new("Part", Map2)
  194. Grass1.BrickColor = BrickColor.new("Bright green")
  195. Grass1.Material = "Grass"
  196. Grass1.Anchored = true
  197. Grass1.Size = Vector3.new(6,6,6)
  198. Grass1.Position = Vector3.new(6.4, 71.6, 6.7)
  199. Grass1.TopSurface = "Smooth"
  200. Grass1.BottomSurface = "Smooth"
  201.  
  202. Wood2 = Instance.new("Part", Map2)
  203. Wood2.BrickColor = BrickColor.new("Brown")
  204. Wood2.Material = "Wood"
  205. Wood2.Anchored = true
  206. Wood2.Size = Vector3.new(2, 10, 2)
  207. Wood2.Position = Vector3.new(-43.6, 63.6, 36.7)
  208. Wood2.TopSurface = "Smooth"
  209. Wood2.BottomSurface = "Smooth"
  210.  
  211. Grass2 = Instance.new("Part", Map2)
  212. Grass2.BrickColor = BrickColor.new("Bright green")
  213. Grass2.Material = "Grass"
  214. Grass2.Anchored = true
  215. Grass2.Size = Vector3.new(6,6,6)
  216. Grass2.Position = Vector3.new(-43.6, 71.6, 36.7)
  217. Grass2.TopSurface = "Smooth"
  218. Grass2.BottomSurface = "Smooth"
  219.  
  220. Wood3 = Instance.new("Part", Map2)
  221. Wood3.BrickColor = BrickColor.new("Brown")
  222. Wood3.Material = "Wood"
  223. Wood3.Anchored = true
  224. Wood3.Size = Vector3.new(2, 10, 2)
  225. Wood3.Position = Vector3.new(-73.6, 63.6, 86.7)
  226. Wood3.TopSurface = "Smooth"
  227. Wood3.BottomSurface = "Smooth"
  228.  
  229. Grass3 = Instance.new("Part", Map2)
  230. Grass3.BrickColor = BrickColor.new("Bright green")
  231. Grass3.Material = "Grass"
  232. Grass3.Anchored = true
  233. Grass3.Size = Vector3.new(6,6,6)
  234. Grass3.Position = Vector3.new(-73.6, 71.6, 86.7)
  235. Grass3.TopSurface = "Smooth"
  236. Grass3.BottomSurface = "Smooth"
  237.  
  238. Wood4 = Instance.new("Part", Map2)
  239. Wood4.BrickColor = BrickColor.new("Brown")
  240. Wood4.Material = "Wood"
  241. Wood4.Anchored = true
  242. Wood4.Size = Vector3.new(2, 10, 2)
  243. Wood4.Position = Vector3.new(6.4, 63.6, 76.7)
  244. Wood4.TopSurface = "Smooth"
  245. Wood4.BottomSurface = "Smooth"
  246.  
  247. Grass4 = Instance.new("Part", Map2)
  248. Grass4.BrickColor = BrickColor.new("Bright green")
  249. Grass4.Material = "Grass"
  250. Grass4.Anchored = true
  251. Grass4.Size = Vector3.new(6,6,6)
  252. Grass4.Position = Vector3.new(6.4, 71.6, 76.7)
  253. Grass4.TopSurface = "Smooth"
  254. Grass4.BottomSurface = "Smooth"
  255.  
  256. Wood5 = Instance.new("Part", Map2)
  257. Wood5.BrickColor = BrickColor.new("Brown")
  258. Wood5.Material = "Wood"
  259. Wood5.Anchored = true
  260. Wood5.Size = Vector3.new(2, 10, 2)
  261. Wood5.Position = Vector3.new(46.4, 63.6, 56.7)
  262. Wood5.TopSurface = "Smooth"
  263. Wood5.BottomSurface = "Smooth"
  264.  
  265. Grass5 = Instance.new("Part", Map2)
  266. Grass5.BrickColor = BrickColor.new("Bright green")
  267. Grass5.Material = "Grass"
  268. Grass5.Anchored = true
  269. Grass5.Size = Vector3.new(6,6,6)
  270. Grass5.Position = Vector3.new(46.4, 71.6, 56.7)
  271. Grass5.TopSurface = "Smooth"
  272. Grass5.BottomSurface = "Smooth"
  273.  
  274. Wood6 = Instance.new("Part", Map2)
  275. Wood6.BrickColor = BrickColor.new("Brown")
  276. Wood6.Material = "Wood"
  277. Wood6.Anchored = true
  278. Wood6.Size = Vector3.new(2, 10, 2)
  279. Wood6.Position = Vector3.new(-13.6, 63.6, 116.7)
  280. Wood6.TopSurface = "Smooth"
  281. Wood6.BottomSurface = "Smooth"
  282.  
  283. Grass6 = Instance.new("Part", Map2)
  284. Grass6.BrickColor = BrickColor.new("Bright green")
  285. Grass6.Material = "Grass"
  286. Grass6.Anchored = true
  287. Grass6.Size = Vector3.new(6,6,6)
  288. Grass6.Position = Vector3.new(-13.6, 71.6, 116.7)
  289. Grass6.TopSurface = "Smooth"
  290. Grass6.BottomSurface = "Smooth"
  291.  
  292. Wood7 = Instance.new("Part", Map2)
  293. Wood7.BrickColor = BrickColor.new("Brown")
  294. Wood7.Material = "Wood"
  295. Wood7.Anchored = true
  296. Wood7.Size = Vector3.new(2, 10, 2)
  297. Wood7.Position = Vector3.new(-43.6, 63.6, -13.3)
  298. Wood7.TopSurface = "Smooth"
  299. Wood7.BottomSurface = "Smooth"
  300.  
  301. Grass7 = Instance.new("Part", Map2)
  302. Grass7.BrickColor = BrickColor.new("Bright green")
  303. Grass7.Material = "Grass"
  304. Grass7.Anchored = true
  305. Grass7.Size = Vector3.new(6,6,6)
  306. Grass7.Position = Vector3.new(-43.6, 71.6, -13.3)
  307. Grass7.TopSurface = "Smooth"
  308. Grass7.BottomSurface = "Smooth"
  309.  
  310. Tele = Instance.new("Part", Map2)
  311. Tele.Transparency = 1
  312. Tele.Name = "Tele"
  313. Tele.Anchored = true
  314. Tele.CanCollide = false
  315. Tele.Size = Vector3.new(121, 1, 130.6)
  316. Tele.Position = Vector3.new(-16.5, 76, 45.5)
  317.  
  318. Map2.Parent = game.ServerStorage
  319. -------------------------------------------MAP3
  320. Map3 = Instance.new("Model", game.Workspace)
  321. Map3.Name = "Pyramid"
  322.  
  323. Part = Instance.new("Part", Map3)
  324. Part.BrickColor = BrickColor.new("Pastel brown")
  325. Part.Orientation = Vector3.new(0, -180, -90)
  326. Part.Material = "Sand"
  327. Part.Anchored = true
  328. Part.Size = Vector3.new(5, 190, 185)
  329. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  330. Part.Shape = "Cylinder"
  331. Part.TopSurface = "Smooth"
  332. Part.BottomSurface = "Smooth"
  333.  
  334. Wedge1 = Instance.new("CornerWedgePart", Map3)
  335. Wedge1.BrickColor = BrickColor.new("Pastel brown")
  336. Wedge1.Material = "Concrete"
  337. Wedge1.Anchored = true
  338. Wedge1.Orientation = Vector3.new(0,0,0)
  339. Wedge1.Size = Vector3.new(30, 30, 30)
  340. Wedge1.Position = Vector3.new(-29.501, 73.6, 60.501)
  341. Wedge1.TopSurface = "Smooth"
  342. Wedge1.BottomSurface = "Smooth"
  343.  
  344. Wedge2 = Instance.new("CornerWedgePart", Map3)
  345. Wedge2.BrickColor = BrickColor.new("Pastel brown")
  346. Wedge2.Material = "Concrete"
  347. Wedge2.Anchored = true
  348. Wedge2.Orientation = Vector3.new(0,90,0)
  349. Wedge2.Size = Vector3.new(30, 30, 30)
  350. Wedge2.Position = Vector3.new(0.501, 73.6, 60.501)
  351. Wedge2.TopSurface = "Smooth"
  352. Wedge2.BottomSurface = "Smooth"
  353.  
  354. Wedge3 = Instance.new("CornerWedgePart", Map3)
  355. Wedge3.BrickColor = BrickColor.new("Pastel brown")
  356. Wedge3.Material = "Concrete"
  357. Wedge3.Anchored = true
  358. Wedge3.Orientation = Vector3.new(0,180,0)
  359. Wedge3.Size = Vector3.new(30, 30, 30)
  360. Wedge3.Position = Vector3.new(0.501, 73.6, 30.499)
  361. Wedge3.TopSurface = "Smooth"
  362. Wedge3.BottomSurface = "Smooth"
  363.  
  364. Wedge4 = Instance.new("CornerWedgePart", Map3)
  365. Wedge4.BrickColor = BrickColor.new("Pastel brown")
  366. Wedge4.Material = "Concrete"
  367. Wedge4.Anchored = true
  368. Wedge4.Orientation = Vector3.new(0,-90,0)
  369. Wedge4.Size = Vector3.new(30, 30, 30)
  370. Wedge4.Position = Vector3.new(-29.501, 73.6, 30.499)
  371. Wedge4.TopSurface = "Smooth"
  372. Wedge4.BottomSurface = "Smooth"
  373.  
  374. Tele = Instance.new("Part", Map3)
  375. Tele.Transparency = 1
  376. Tele.Name = "Tele"
  377. Tele.Anchored = true
  378. Tele.CanCollide = false
  379. Tele.Size = Vector3.new(121, 1, 130.6)
  380. Tele.Position = Vector3.new(-16.5, 100, 45.5)
  381.  
  382. Map3.Parent = game.ServerStorage
  383. -------------------------------------------
  384. RopeAttachment = Instance.new("Part", game.ReplicatedStorage)
  385. RopeAttachment.Name = "RopeAttachment"
  386. RopeAttachment.Anchored = true
  387. RopeAttachment.BrickColor = BrickColor.new("Pearl")
  388. RopeAttachment.Material = "SmoothPlastic"
  389. RopeAttachment.Size = Vector3.new(1,1,1)
  390. RopeAttachment.Position = Vector3.new(-14.5, 106.1, 45.5)
  391. RopeAttachment.Shape = "Ball"
  392. RopeAttachment.TopSurface = "Smooth"
  393. RopeAttachment.BottomSurface = "Smooth"
  394.  
  395. Attachment2 = Instance.new("Attachment", RopeAttachment)
  396. Attachment2.Name = 'Attachment2'
  397.  
  398. SpawnLocation = Instance.new("SpawnLocation", game.Workspace)
  399. SpawnLocation.CanCollide = false
  400. SpawnLocation.Anchored = true
  401. SpawnLocation.Position = Vector3.new(0,0,0)
  402. ------------------------------------------------------------------------------------
  403. wait(5)
  404. for _,obj in pairs(game.Players:GetChildren()) do
  405. if obj.Character:FindFirstChild("Humanoid") then
  406. obj.Character.Humanoid.Health = 0
  407. end
  408. end
  409. wait(10)
  410. ------------------------------------------------------------------------------------
  411.  
  412. while true do
  413. local replicatedstorage = game:GetService("ReplicatedStorage")
  414. local status = replicatedstorage:WaitForChild("StatusValue")
  415. for i = 10,0,-1 do
  416. if i == 10 then
  417. status.Value = "Intermission: ||||||||||"
  418. elseif i == 9 then
  419. status.Value = "Intermission: |||||||||"
  420. elseif i == 8 then
  421. status.Value = "Intermission: ||||||||"
  422. elseif i == 7 then
  423. status.Value = "Intermission: |||||||"
  424. elseif i == 6 then
  425. status.Value = "Intermission: ||||||"
  426. elseif i == 5 then
  427. status.Value = "Intermission: |||||"
  428. elseif i == 4 then
  429. status.Value = "Intermission: ||||"
  430. elseif i == 3 then
  431. status.Value = "Intermission: |||"
  432. elseif i == 2 then
  433. status.Value = "Intermission: ||"
  434. elseif i == 1 then
  435. status.Value = "Intermission: |"
  436. elseif i == 0 then
  437. status.Value = "Intermission: "
  438. end
  439.  
  440. wait(1)
  441. end -- End of Intermission timer
  442. maps1 = game:GetService('ServerStorage'):GetChildren()
  443. chosenmap1 = maps1[math.random(1, #maps1)]
  444. map1 = chosenmap1:Clone()
  445. status.Value = "Choosing Map."
  446. wait(.5)
  447. status.Value = "Choosing Map.."
  448. wait(.5)
  449. status.Value = "Choosing Map..."
  450. wait(.5)
  451. status.Value = map1.Name.." has been chosen!"--
  452. wait(2)
  453. status.Value = "Survive to win!"
  454. map1.Parent = game.Workspace
  455. wait(2)
  456. game.ReplicatedStorage.PlayersAlive.Value = 0
  457. for _,obj in pairs(game.Players:GetChildren()) do
  458. obj.Alive.Value = "Yes"
  459. cc = map1:GetChildren()
  460. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  461. PlayersAlive.Value = PlayersAlive.Value + 1
  462. teles = {}
  463. for nuum, obbj in pairs(cc) do
  464. if obbj.Name == "Tele" then
  465. table.insert (teles, obbj)
  466. end
  467. end
  468. wait()
  469. tele = teles[math.random(1,#teles)]
  470. x1 = tele.Position.X-(tele.Size.X/2)
  471. x2 = tele.Position.X+(tele.Size.X/2)
  472. z1 = tele.Position.Z-(tele.Size.Z/2)
  473. z2 = tele.Position.Z+(tele.Size.Z/2)
  474. obj.Character.Head.CFrame = CFrame.new(math.random(x1,x2),tele.Position.Y+5,math.random(z1,z2))
  475. obj.Character.Humanoid.WalkSpeed = 0
  476. RopeClone = RopeAttachment:Clone()
  477. RopeClone.Parent = game.Workspace
  478. obj.Character.Head.Rope.Attachment1 = game.Workspace.RopeAttachment.Attachment2
  479. end
  480. status.Value = "The game begins in: |||"
  481. wait(1)
  482. status.Value = "The game begins in: ||"
  483. wait(1)
  484. status.Value = "The game begins in: |"
  485. wait(1)
  486. status.Value = "Fight!"
  487. for _,obj in pairs(game.Players:GetChildren()) do
  488. SwordClone = game.ReplicatedStorage.LinkedSword:Clone()
  489. SwordClone.Parent = obj.Backpack
  490. obj.Character.Humanoid.WalkSpeed = 100
  491. end
  492. wait(1)
  493. while game.ReplicatedStorage.Game.Value == 0 do
  494. for c = 30, 0, -1 do
  495. if c == 30 then
  496. status.Value = "Game in Progress: ||||||||||||||||||||||||||||||"
  497. elseif c == 29 then
  498. status.Value = "Game in Progress: |||||||||||||||||||||||||||||"
  499. elseif c == 28 then
  500. status.Value = "Game in Progress: ||||||||||||||||||||||||||||"
  501. elseif c == 27 then
  502. status.Value = "Game in Progress: |||||||||||||||||||||||||||"
  503. elseif c == 26 then
  504. status.Value = "Game in Progress: ||||||||||||||||||||||||||"
  505. elseif c == 25 then
  506. status.Value = "Game in Progress: |||||||||||||||||||||||||"
  507. elseif c == 24 then
  508. status.Value = "Game in Progress: ||||||||||||||||||||||||"
  509. elseif c == 23 then
  510. status.Value = "Game in Progress: |||||||||||||||||||||||"
  511. elseif c == 22 then
  512. status.Value = "Game in Progress: ||||||||||||||||||||||"
  513. elseif c == 21 then
  514. status.Value = "Game in Progress: |||||||||||||||||||||"
  515. elseif c == 20 then
  516. status.Value = "Game in Progress: ||||||||||||||||||||"
  517. elseif c == 19 then
  518. status.Value = "Game in Progress: |||||||||||||||||||"
  519. elseif c == 18 then
  520. status.Value = "Game in Progress: ||||||||||||||||||"
  521. elseif c == 17 then
  522. status.Value = "Game in Progress: |||||||||||||||||"
  523. elseif c == 16 then
  524. status.Value = "Game in Progress: ||||||||||||||||"
  525. elseif c == 15 then
  526. status.Value = "Game in Progress: |||||||||||||||"
  527. elseif c == 14 then
  528. status.Value = "Game in Progress: ||||||||||||||"
  529. elseif c == 13 then
  530. status.Value = "Game in Progress: |||||||||||||"
  531. elseif c == 12 then
  532. status.Value = "Game in Progress: ||||||||||||"
  533. elseif c == 11 then
  534. status.Value = "Game in Progress: |||||||||||"
  535. elseif c == 10 then
  536. status.Value = "Game in Progress: ||||||||||"
  537. elseif c == 9 then
  538. status.Value = "Game in Progress: |||||||||"
  539. elseif c == 8 then
  540. status.Value = "Game in Progress: ||||||||"
  541. elseif c == 7 then
  542. status.Value = "Game in Progress: |||||||"
  543. elseif c == 6 then
  544. status.Value = "Game in Progress: ||||||"
  545. elseif c == 5 then
  546. status.Value = "Game in Progress: |||||"
  547. elseif c == 4 then
  548. status.Value = "Game in Progress: ||||"
  549. elseif c == 3 then
  550. status.Value = "Game in Progress: |||"
  551. elseif c == 2 then
  552. status.Value = "Game in Progress: ||"
  553. elseif c == 1 then
  554. status.Value = "Game in Progress: |"
  555. elseif c == 0 then
  556. status.Value = "Game in Progress: "
  557. end
  558.  
  559. wait(1)
  560. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  561. if PlayersAlive.Value == 1 then
  562. game.ReplicatedStorage.Game.Value = 1
  563. break
  564. end
  565. if PlayersAlive.Value == 0 then
  566. game.ReplicatedStorage.Game.Value = 3
  567. break
  568. end
  569. if c == 0 then
  570. game.ReplicatedStorage.Game.Value = 2
  571. end
  572. end
  573. end
  574. if game.ReplicatedStorage.Game.Value == 1 then
  575. for _,obj in pairs(game.Players:GetChildren()) do
  576. if obj.Alive.Value == "Yes" then
  577. status.Value = obj.Name.." Won!"
  578. end
  579. end
  580. wait(2)
  581. status.Value = "They will recieve 1 win!"
  582. wait(2)
  583. for _,obj in pairs(game.Players:GetChildren()) do
  584. if obj.Alive.Value == "Yes" then
  585. for _,tool in pairs(obj.Backpack:GetChildren()) do
  586. tool:Remove()
  587. end
  588. for _,tool in pairs(obj.Character:GetChildren()) do
  589. if tool.className == "Tool" then
  590. tool:Remove()
  591. end
  592. end
  593. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  594. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  595. obj.Character.Head.Rope.Attachment1 = nil
  596. end
  597. end
  598. end
  599. end
  600. if game.ReplicatedStorage.Game.Value == 2 then
  601. status.Value = "Multiple players won!"
  602. wait(2)
  603. status.Value = "They will recieve a win!"
  604. wait(2)
  605. for _,obj in pairs(game.Players:GetChildren()) do
  606. if obj.Alive.Value == "Yes" then
  607. for _,tool in pairs(obj.Backpack:GetChildren()) do
  608. tool:Remove()
  609. end
  610. for _,tool in pairs(obj.Character:GetChildren()) do
  611. if tool.className == "Tool" then
  612. tool:Remove()
  613. end
  614. end
  615. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  616. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  617. obj.Character.Head.Rope.Attachment1 = nil
  618. end
  619. end
  620. end
  621. end
  622. if game.ReplicatedStorage.Game.Value == 3 then
  623. status.Value = "Nobody Won!"
  624. wait(2)
  625. status.Value = "Nobody recieves cash or wins!"
  626. wait(2)
  627. for _,obj in pairs(game.Players:GetChildren()) do
  628. if obj.Alive.Value == "Yes" then
  629. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  630. obj.Character.Head.Rope.Attachment1 = nil
  631. for _,tool in pairs(obj.Backpack:GetChildren()) do
  632. tool:Remove()
  633. end
  634. for _,tool in pairs(obj.Character:GetChildren()) do
  635. if tool.className == "Tool" then
  636. tool:Remove()
  637. end
  638. end
  639. end
  640. end
  641. end
  642. end
  643. for _,obj in pairs(game.Players:GetChildren()) do
  644. obj.Alive.Value = "No"
  645. obj.T.Value = "Players"
  646. if obj.Character.Humanoid.WalkSpeed == 100 then
  647. obj.Character.Humanoid.WalkSpeed = 16
  648. end
  649. end
  650. game.ReplicatedStorage.PlayersAlive.Value = 0
  651. game.ReplicatedStorage.Game.Value = 0
  652. if game.Workspace:FindFirstChild("RopeAttachment") then
  653. RopeClone:Destroy()
  654. end
  655. if game.Workspace:FindFirstChild("Regular Map") or game.Workspace:FindFirstChild("Pyramid") or game.Workspace:FindFirstChild("Tree Land") then
  656. map1:Destroy()--
  657. end
  658. end--End of loop StatusValue = Instance.new("StringValue", game.ReplicatedStorage)
  659. StatusValue.Name = "StatusValue"
  660. local Hint = Instance.new("Hint", game.Workspace)
  661. local Value = Instance.new("IntValue", Hint)
  662. Hint.Text = StatusValue.Value
  663. StatusValue.Changed:connect(function()
  664. Hint.Text = StatusValue.Value
  665. end)
  666. Hint.Changed:connect(function()
  667. if game.Workspace:FindFirstChild("Message") then
  668. else
  669. local Hint = Instance.new("Hint", game.Workspace)
  670. local Value = Instance.new("IntValue", Hint)
  671. Hint.Text = StatusValue.Value
  672. StatusValue.Changed:connect(function()
  673. Hint.Text = StatusValue.Value
  674. end)
  675. end
  676. end)
  677. game.Lighting.GlobalShadows = false
  678. game.Lighting.Ambient = Color3.new(.5,.5,.5)
  679.  
  680. game.Workspace.ChildAdded:connect(function(rope)
  681. if rope.className == "Model" then
  682. if rope:FindFirstChildOfClass("Humanoid") then
  683. local Attachment1 = Instance.new("Attachment", rope.Head)
  684. Attachment1.Name = 'Attachment1'
  685. local Rope = Instance.new("RopeConstraint", rope.Head)
  686. Rope.Name = "Rope"
  687. Rope.Attachment0 = Attachment1
  688. Rope.Visible = true
  689. Rope.Color = BrickColor.new("Pearl")
  690. Rope.Length = 100
  691. end
  692. end
  693. end)
  694.  
  695. local linkedsword = game:service("InsertService"):LoadAsset(tonumber(125013769))
  696. for a,g in pairs(linkedsword:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = game.ReplicatedStorage end end
  697. linkedsword:Destroy()
  698.  
  699. game.Players.PlayerAdded:connect(function(obj)
  700.  
  701. local stats = Instance.new("Folder", obj)
  702. stats.Name = "leaderstats"
  703.  
  704. local Wins = Instance.new("IntValue", stats)
  705. Wins.Name = "Wins"
  706. Wins.Value = 0
  707.  
  708. local Team = Instance.new("StringValue", obj)
  709. Team.Name = "T"
  710. Team.Value = "Players"
  711.  
  712. local Alive = Instance.new("StringValue", obj)
  713. Alive.Name = "Alive"
  714. Alive.Value = "No"
  715. obj.CharacterAdded:connect(function(character)
  716. character:WaitForChild("Humanoid").Died:connect(function()
  717. local tag = character.Humanoid:FindFirstChild("creator")
  718. if tag ~= nil then
  719. if tag.Value ~= nil then
  720. if obj.Alive.Value == "Yes" then
  721. if obj.T.Value == "Red" then
  722. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  723. obj.Alive.Value = "No"
  724. elseif obj.T.Value == "Blue" then
  725. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  726. obj.Alive.Value = "No"
  727. end
  728. if obj.T.Value == "Players" then
  729. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  730. obj.Alive.Value = "No"
  731. end
  732.  
  733. end
  734. end
  735. end
  736. end)
  737. end)
  738. end)
  739.  
  740. for _,obj in pairs(game.Players:GetChildren()) do
  741.  
  742. local stats = Instance.new("Folder", obj)
  743. stats.Name = "leaderstats"
  744.  
  745. local Wins = Instance.new("IntValue", stats)
  746. Wins.Name = "Wins"
  747. Wins.Value = 0
  748.  
  749. local Team = Instance.new("StringValue", obj)
  750. Team.Name = "T"
  751. Team.Value = "Players"
  752.  
  753. local Alive = Instance.new("StringValue", obj)
  754. Alive.Name = "Alive"
  755. Alive.Value = "No"
  756.  
  757. obj.CharacterAdded:connect(function(character)
  758. character:WaitForChild("Humanoid").Died:connect(function()
  759. local tag = character.Humanoid:FindFirstChild("creator")
  760. if tag ~= nil then
  761. if tag.Value ~= nil then
  762. if obj.Alive.Value == "Yes" then
  763. if obj.T.Value == "Red" then
  764. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  765. obj.Alive.Value = "No"
  766. elseif obj.T.Value == "Blue" then
  767. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  768. obj.Alive.Value = "No"
  769. end
  770. if obj.T.Value == "Players" then
  771. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  772. obj.Alive.Value = "No"
  773. end
  774.  
  775. end
  776. end
  777. end
  778. end)
  779. end)
  780. end
  781.  
  782. game.Players.PlayerRemoving:connect(function(plr)
  783. if plr.Alive.Value == "Yes" then
  784. if plr.T.Value == "Red" then
  785. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  786. elseif plr.T.Value == "Blue" then
  787. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  788. if game.ReplicatedStorage["PlayersAlive"].Value > 0 then
  789. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  790. end
  791. end
  792. end
  793. end)
  794. -------------------------------------------
  795. GameValue = Instance.new("IntValue", game.ReplicatedStorage)
  796. GameValue.Name = "Game"
  797. GameValue.Value = 0
  798.  
  799. PlayersAlive = Instance.new("IntValue", game.ReplicatedStorage)
  800. PlayersAlive.Name = "PlayersAlive"
  801. PlayersAlive.Value = 0
  802. -------------------------------------------MAP1
  803. Map = Instance.new("Model", game.Workspace)
  804. Map.Name = "Regular Map"
  805.  
  806. Part = Instance.new("Part", Map)
  807. Part.BrickColor = BrickColor.new("Black")
  808. Part.Orientation = Vector3.new(0, -180, -90)
  809. Part.Material = "SmoothPlastic"
  810. Part.Anchored = true
  811. Part.Size = Vector3.new(5, 190, 185)
  812. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  813. Part.Shape = "Cylinder"
  814. Part.TopSurface = "Smooth"
  815. Part.BottomSurface = "Smooth"
  816.  
  817. Tele = Instance.new("Part", Map)
  818. Tele.Transparency = 1
  819. Tele.Name = "Tele"
  820. Tele.Anchored = true
  821. Tele.CanCollide = false
  822. Tele.Size = Vector3.new(121, 1, 130.6)
  823. Tele.Position = Vector3.new(-16.5, 75, 45.5)
  824.  
  825. Map.Parent = game.ServerStorage
  826. -------------------------------------------MAP2
  827. Map2 = Instance.new("Model", game.Workspace)
  828. Map2.Name = "Tree Land"
  829.  
  830. Part = Instance.new("Part", Map2)
  831. Part.BrickColor = BrickColor.new("Bright green")
  832. Part.Orientation = Vector3.new(0, -180, -90)
  833. Part.Material = "Grass"
  834. Part.Anchored = true
  835. Part.Size = Vector3.new(5, 190, 185)
  836. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  837. Part.Shape = "Cylinder"
  838. Part.TopSurface = "Smooth"
  839. Part.BottomSurface = "Smooth"
  840.  
  841. Wood1 = Instance.new("Part", Map2)
  842. Wood1.BrickColor = BrickColor.new("Brown")
  843. Wood1.Material = "Wood"
  844. Wood1.Anchored = true
  845. Wood1.Size = Vector3.new(2, 10, 2)
  846. Wood1.Position = Vector3.new(6.4, 63.6, 6.7)
  847. Wood1.TopSurface = "Smooth"
  848. Wood1.BottomSurface = "Smooth"
  849.  
  850. Grass1 = Instance.new("Part", Map2)
  851. Grass1.BrickColor = BrickColor.new("Bright green")
  852. Grass1.Material = "Grass"
  853. Grass1.Anchored = true
  854. Grass1.Size = Vector3.new(6,6,6)
  855. Grass1.Position = Vector3.new(6.4, 71.6, 6.7)
  856. Grass1.TopSurface = "Smooth"
  857. Grass1.BottomSurface = "Smooth"
  858.  
  859. Wood2 = Instance.new("Part", Map2)
  860. Wood2.BrickColor = BrickColor.new("Brown")
  861. Wood2.Material = "Wood"
  862. Wood2.Anchored = true
  863. Wood2.Size = Vector3.new(2, 10, 2)
  864. Wood2.Position = Vector3.new(-43.6, 63.6, 36.7)
  865. Wood2.TopSurface = "Smooth"
  866. Wood2.BottomSurface = "Smooth"
  867.  
  868. Grass2 = Instance.new("Part", Map2)
  869. Grass2.BrickColor = BrickColor.new("Bright green")
  870. Grass2.Material = "Grass"
  871. Grass2.Anchored = true
  872. Grass2.Size = Vector3.new(6,6,6)
  873. Grass2.Position = Vector3.new(-43.6, 71.6, 36.7)
  874. Grass2.TopSurface = "Smooth"
  875. Grass2.BottomSurface = "Smooth"
  876.  
  877. Wood3 = Instance.new("Part", Map2)
  878. Wood3.BrickColor = BrickColor.new("Brown")
  879. Wood3.Material = "Wood"
  880. Wood3.Anchored = true
  881. Wood3.Size = Vector3.new(2, 10, 2)
  882. Wood3.Position = Vector3.new(-73.6, 63.6, 86.7)
  883. Wood3.TopSurface = "Smooth"
  884. Wood3.BottomSurface = "Smooth"
  885.  
  886. Grass3 = Instance.new("Part", Map2)
  887. Grass3.BrickColor = BrickColor.new("Bright green")
  888. Grass3.Material = "Grass"
  889. Grass3.Anchored = true
  890. Grass3.Size = Vector3.new(6,6,6)
  891. Grass3.Position = Vector3.new(-73.6, 71.6, 86.7)
  892. Grass3.TopSurface = "Smooth"
  893. Grass3.BottomSurface = "Smooth"
  894.  
  895. Wood4 = Instance.new("Part", Map2)
  896. Wood4.BrickColor = BrickColor.new("Brown")
  897. Wood4.Material = "Wood"
  898. Wood4.Anchored = true
  899. Wood4.Size = Vector3.new(2, 10, 2)
  900. Wood4.Position = Vector3.new(6.4, 63.6, 76.7)
  901. Wood4.TopSurface = "Smooth"
  902. Wood4.BottomSurface = "Smooth"
  903.  
  904. Grass4 = Instance.new("Part", Map2)
  905. Grass4.BrickColor = BrickColor.new("Bright green")
  906. Grass4.Material = "Grass"
  907. Grass4.Anchored = true
  908. Grass4.Size = Vector3.new(6,6,6)
  909. Grass4.Position = Vector3.new(6.4, 71.6, 76.7)
  910. Grass4.TopSurface = "Smooth"
  911. Grass4.BottomSurface = "Smooth"
  912.  
  913. Wood5 = Instance.new("Part", Map2)
  914. Wood5.BrickColor = BrickColor.new("Brown")
  915. Wood5.Material = "Wood"
  916. Wood5.Anchored = true
  917. Wood5.Size = Vector3.new(2, 10, 2)
  918. Wood5.Position = Vector3.new(46.4, 63.6, 56.7)
  919. Wood5.TopSurface = "Smooth"
  920. Wood5.BottomSurface = "Smooth"
  921.  
  922. Grass5 = Instance.new("Part", Map2)
  923. Grass5.BrickColor = BrickColor.new("Bright green")
  924. Grass5.Material = "Grass"
  925. Grass5.Anchored = true
  926. Grass5.Size = Vector3.new(6,6,6)
  927. Grass5.Position = Vector3.new(46.4, 71.6, 56.7)
  928. Grass5.TopSurface = "Smooth"
  929. Grass5.BottomSurface = "Smooth"
  930.  
  931. Wood6 = Instance.new("Part", Map2)
  932. Wood6.BrickColor = BrickColor.new("Brown")
  933. Wood6.Material = "Wood"
  934. Wood6.Anchored = true
  935. Wood6.Size = Vector3.new(2, 10, 2)
  936. Wood6.Position = Vector3.new(-13.6, 63.6, 116.7)
  937. Wood6.TopSurface = "Smooth"
  938. Wood6.BottomSurface = "Smooth"
  939.  
  940. Grass6 = Instance.new("Part", Map2)
  941. Grass6.BrickColor = BrickColor.new("Bright green")
  942. Grass6.Material = "Grass"
  943. Grass6.Anchored = true
  944. Grass6.Size = Vector3.new(6,6,6)
  945. Grass6.Position = Vector3.new(-13.6, 71.6, 116.7)
  946. Grass6.TopSurface = "Smooth"
  947. Grass6.BottomSurface = "Smooth"
  948.  
  949. Wood7 = Instance.new("Part", Map2)
  950. Wood7.BrickColor = BrickColor.new("Brown")
  951. Wood7.Material = "Wood"
  952. Wood7.Anchored = true
  953. Wood7.Size = Vector3.new(2, 10, 2)
  954. Wood7.Position = Vector3.new(-43.6, 63.6, -13.3)
  955. Wood7.TopSurface = "Smooth"
  956. Wood7.BottomSurface = "Smooth"
  957.  
  958. Grass7 = Instance.new("Part", Map2)
  959. Grass7.BrickColor = BrickColor.new("Bright green")
  960. Grass7.Material = "Grass"
  961. Grass7.Anchored = true
  962. Grass7.Size = Vector3.new(6,6,6)
  963. Grass7.Position = Vector3.new(-43.6, 71.6, -13.3)
  964. Grass7.TopSurface = "Smooth"
  965. Grass7.BottomSurface = "Smooth"
  966.  
  967. Tele = Instance.new("Part", Map2)
  968. Tele.Transparency = 1
  969. Tele.Name = "Tele"
  970. Tele.Anchored = true
  971. Tele.CanCollide = false
  972. Tele.Size = Vector3.new(121, 1, 130.6)
  973. Tele.Position = Vector3.new(-16.5, 76, 45.5)
  974.  
  975. Map2.Parent = game.ServerStorage
  976. -------------------------------------------MAP3
  977. Map3 = Instance.new("Model", game.Workspace)
  978. Map3.Name = "Pyramid"
  979.  
  980. Part = Instance.new("Part", Map3)
  981. Part.BrickColor = BrickColor.new("Pastel brown")
  982. Part.Orientation = Vector3.new(0, -180, -90)
  983. Part.Material = "Sand"
  984. Part.Anchored = true
  985. Part.Size = Vector3.new(5, 190, 185)
  986. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  987. Part.Shape = "Cylinder"
  988. Part.TopSurface = "Smooth"
  989. Part.BottomSurface = "Smooth"
  990.  
  991. Wedge1 = Instance.new("CornerWedgePart", Map3)
  992. Wedge1.BrickColor = BrickColor.new("Pastel brown")
  993. Wedge1.Material = "Concrete"
  994. Wedge1.Anchored = true
  995. Wedge1.Orientation = Vector3.new(0,0,0)
  996. Wedge1.Size = Vector3.new(30, 30, 30)
  997. Wedge1.Position = Vector3.new(-29.501, 73.6, 60.501)
  998. Wedge1.TopSurface = "Smooth"
  999. Wedge1.BottomSurface = "Smooth"
  1000.  
  1001. Wedge2 = Instance.new("CornerWedgePart", Map3)
  1002. Wedge2.BrickColor = BrickColor.new("Pastel brown")
  1003. Wedge2.Material = "Concrete"
  1004. Wedge2.Anchored = true
  1005. Wedge2.Orientation = Vector3.new(0,90,0)
  1006. Wedge2.Size = Vector3.new(30, 30, 30)
  1007. Wedge2.Position = Vector3.new(0.501, 73.6, 60.501)
  1008. Wedge2.TopSurface = "Smooth"
  1009. Wedge2.BottomSurface = "Smooth"
  1010.  
  1011. Wedge3 = Instance.new("CornerWedgePart", Map3)
  1012. Wedge3.BrickColor = BrickColor.new("Pastel brown")
  1013. Wedge3.Material = "Concrete"
  1014. Wedge3.Anchored = true
  1015. Wedge3.Orientation = Vector3.new(0,180,0)
  1016. Wedge3.Size = Vector3.new(30, 30, 30)
  1017. Wedge3.Position = Vector3.new(0.501, 73.6, 30.499)
  1018. Wedge3.TopSurface = "Smooth"
  1019. Wedge3.BottomSurface = "Smooth"
  1020.  
  1021. Wedge4 = Instance.new("CornerWedgePart", Map3)
  1022. Wedge4.BrickColor = BrickColor.new("Pastel brown")
  1023. Wedge4.Material = "Concrete"
  1024. Wedge4.Anchored = true
  1025. Wedge4.Orientation = Vector3.new(0,-90,0)
  1026. Wedge4.Size = Vector3.new(30, 30, 30)
  1027. Wedge4.Position = Vector3.new(-29.501, 73.6, 30.499)
  1028. Wedge4.TopSurface = "Smooth"
  1029. Wedge4.BottomSurface = "Smooth"
  1030.  
  1031. Tele = Instance.new("Part", Map3)
  1032. Tele.Transparency = 1
  1033. Tele.Name = "Tele"
  1034. Tele.Anchored = true
  1035. Tele.CanCollide = false
  1036. Tele.Size = Vector3.new(121, 1, 130.6)
  1037. Tele.Position = Vector3.new(-16.5, 100, 45.5)
  1038.  
  1039. Map3.Parent = game.ServerStorage
  1040. -------------------------------------------
  1041. RopeAttachment = Instance.new("Part", game.ReplicatedStorage)
  1042. RopeAttachment.Name = "RopeAttachment"
  1043. RopeAttachment.Anchored = true
  1044. RopeAttachment.BrickColor = BrickColor.new("Pearl")
  1045. RopeAttachment.Material = "SmoothPlastic"
  1046. RopeAttachment.Size = Vector3.new(1,1,1)
  1047. RopeAttachment.Position = Vector3.new(-14.5, 106.1, 45.5)
  1048. RopeAttachment.Shape = "Ball"
  1049. RopeAttachment.TopSurface = "Smooth"
  1050. RopeAttachment.BottomSurface = "Smooth"
  1051.  
  1052. Attachment2 = Instance.new("Attachment", RopeAttachment)
  1053. Attachment2.Name = 'Attachment2'
  1054.  
  1055. SpawnLocation = Instance.new("SpawnLocation", game.Workspace)
  1056. SpawnLocation.CanCollide = false
  1057. SpawnLocation.Anchored = true
  1058. SpawnLocation.Position = Vector3.new(0,0,0)
  1059. ------------------------------------------------------------------------------------
  1060. wait(5)
  1061. for _,obj in pairs(game.Players:GetChildren()) do
  1062. if obj.Character:FindFirstChild("Humanoid") then
  1063. obj.Character.Humanoid.Health = 0
  1064. end
  1065. end
  1066. wait(10)
  1067. ------------------------------------------------------------------------------------
  1068.  
  1069. while true do
  1070. local replicatedstorage = game:GetService("ReplicatedStorage")
  1071. local status = replicatedstorage:WaitForChild("StatusValue")
  1072. for i = 10,0,-1 do
  1073. if i == 10 then
  1074. status.Value = "Intermission: ||||||||||"
  1075. elseif i == 9 then
  1076. status.Value = "Intermission: |||||||||"
  1077. elseif i == 8 then
  1078. status.Value = "Intermission: ||||||||"
  1079. elseif i == 7 then
  1080. status.Value = "Intermission: |||||||"
  1081. elseif i == 6 then
  1082. status.Value = "Intermission: ||||||"
  1083. elseif i == 5 then
  1084. status.Value = "Intermission: |||||"
  1085. elseif i == 4 then
  1086. status.Value = "Intermission: ||||"
  1087. elseif i == 3 then
  1088. status.Value = "Intermission: |||"
  1089. elseif i == 2 then
  1090. status.Value = "Intermission: ||"
  1091. elseif i == 1 then
  1092. status.Value = "Intermission: |"
  1093. elseif i == 0 then
  1094. status.Value = "Intermission: "
  1095. end
  1096.  
  1097. wait(1)
  1098. end -- End of Intermission timer
  1099. maps1 = game:GetService('ServerStorage'):GetChildren()
  1100. chosenmap1 = maps1[math.random(1, #maps1)]
  1101. map1 = chosenmap1:Clone()
  1102. status.Value = "Choosing Map."
  1103. wait(.5)
  1104. status.Value = "Choosing Map.."
  1105. wait(.5)
  1106. status.Value = "Choosing Map..."
  1107. wait(.5)
  1108. status.Value = map1.Name.." has been chosen!"--
  1109. wait(2)
  1110. status.Value = "Survive to win!"
  1111. map1.Parent = game.Workspace
  1112. wait(2)
  1113. game.ReplicatedStorage.PlayersAlive.Value = 0
  1114. for _,obj in pairs(game.Players:GetChildren()) do
  1115. obj.Alive.Value = "Yes"
  1116. cc = map1:GetChildren()
  1117. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  1118. PlayersAlive.Value = PlayersAlive.Value + 1
  1119. teles = {}
  1120. for nuum, obbj in pairs(cc) do
  1121. if obbj.Name == "Tele" then
  1122. table.insert (teles, obbj)
  1123. end
  1124. end
  1125. wait()
  1126. tele = teles[math.random(1,#teles)]
  1127. x1 = tele.Position.X-(tele.Size.X/2)
  1128. x2 = tele.Position.X+(tele.Size.X/2)
  1129. z1 = tele.Position.Z-(tele.Size.Z/2)
  1130. z2 = tele.Position.Z+(tele.Size.Z/2)
  1131. obj.Character.Head.CFrame = CFrame.new(math.random(x1,x2),tele.Position.Y+5,math.random(z1,z2))
  1132. obj.Character.Humanoid.WalkSpeed = 0
  1133. RopeClone = RopeAttachment:Clone()
  1134. RopeClone.Parent = game.Workspace
  1135. obj.Character.Head.Rope.Attachment1 = game.Workspace.RopeAttachment.Attachment2
  1136. end
  1137. status.Value = "The game begins in: |||"
  1138. wait(1)
  1139. status.Value = "The game begins in: ||"
  1140. wait(1)
  1141. status.Value = "The game begins in: |"
  1142. wait(1)
  1143. status.Value = "Fight!"
  1144. for _,obj in pairs(game.Players:GetChildren()) do
  1145. SwordClone = game.ReplicatedStorage.LinkedSword:Clone()
  1146. SwordClone.Parent = obj.Backpack
  1147. obj.Character.Humanoid.WalkSpeed = 100
  1148. end
  1149. wait(1)
  1150. while game.ReplicatedStorage.Game.Value == 0 do
  1151. for c = 30, 0, -1 do
  1152. if c == 30 then
  1153. status.Value = "Game in Progress: ||||||||||||||||||||||||||||||"
  1154. elseif c == 29 then
  1155. status.Value = "Game in Progress: |||||||||||||||||||||||||||||"
  1156. elseif c == 28 then
  1157. status.Value = "Game in Progress: ||||||||||||||||||||||||||||"
  1158. elseif c == 27 then
  1159. status.Value = "Game in Progress: |||||||||||||||||||||||||||"
  1160. elseif c == 26 then
  1161. status.Value = "Game in Progress: ||||||||||||||||||||||||||"
  1162. elseif c == 25 then
  1163. status.Value = "Game in Progress: |||||||||||||||||||||||||"
  1164. elseif c == 24 then
  1165. status.Value = "Game in Progress: ||||||||||||||||||||||||"
  1166. elseif c == 23 then
  1167. status.Value = "Game in Progress: |||||||||||||||||||||||"
  1168. elseif c == 22 then
  1169. status.Value = "Game in Progress: ||||||||||||||||||||||"
  1170. elseif c == 21 then
  1171. status.Value = "Game in Progress: |||||||||||||||||||||"
  1172. elseif c == 20 then
  1173. status.Value = "Game in Progress: ||||||||||||||||||||"
  1174. elseif c == 19 then
  1175. status.Value = "Game in Progress: |||||||||||||||||||"
  1176. elseif c == 18 then
  1177. status.Value = "Game in Progress: ||||||||||||||||||"
  1178. elseif c == 17 then
  1179. status.Value = "Game in Progress: |||||||||||||||||"
  1180. elseif c == 16 then
  1181. status.Value = "Game in Progress: ||||||||||||||||"
  1182. elseif c == 15 then
  1183. status.Value = "Game in Progress: |||||||||||||||"
  1184. elseif c == 14 then
  1185. status.Value = "Game in Progress: ||||||||||||||"
  1186. elseif c == 13 then
  1187. status.Value = "Game in Progress: |||||||||||||"
  1188. elseif c == 12 then
  1189. status.Value = "Game in Progress: ||||||||||||"
  1190. elseif c == 11 then
  1191. status.Value = "Game in Progress: |||||||||||"
  1192. elseif c == 10 then
  1193. status.Value = "Game in Progress: ||||||||||"
  1194. elseif c == 9 then
  1195. status.Value = "Game in Progress: |||||||||"
  1196. elseif c == 8 then
  1197. status.Value = "Game in Progress: ||||||||"
  1198. elseif c == 7 then
  1199. status.Value = "Game in Progress: |||||||"
  1200. elseif c == 6 then
  1201. status.Value = "Game in Progress: ||||||"
  1202. elseif c == 5 then
  1203. status.Value = "Game in Progress: |||||"
  1204. elseif c == 4 then
  1205. status.Value = "Game in Progress: ||||"
  1206. elseif c == 3 then
  1207. status.Value = "Game in Progress: |||"
  1208. elseif c == 2 then
  1209. status.Value = "Game in Progress: ||"
  1210. elseif c == 1 then
  1211. status.Value = "Game in Progress: |"
  1212. elseif c == 0 then
  1213. status.Value = "Game in Progress: "
  1214. end
  1215.  
  1216. wait(1)
  1217. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  1218. if PlayersAlive.Value == 1 then
  1219. game.ReplicatedStorage.Game.Value = 1
  1220. break
  1221. end
  1222. if PlayersAlive.Value == 0 then
  1223. game.ReplicatedStorage.Game.Value = 3
  1224. break
  1225. end
  1226. if c == 0 then
  1227. game.ReplicatedStorage.Game.Value = 2
  1228. end
  1229. end
  1230. end
  1231. if game.ReplicatedStorage.Game.Value == 1 then
  1232. for _,obj in pairs(game.Players:GetChildren()) do
  1233. if obj.Alive.Value == "Yes" then
  1234. status.Value = obj.Name.." Won!"
  1235. end
  1236. end
  1237. wait(2)
  1238. status.Value = "They will recieve 1 win!"
  1239. wait(2)
  1240. for _,obj in pairs(game.Players:GetChildren()) do
  1241. if obj.Alive.Value == "Yes" then
  1242. for _,tool in pairs(obj.Backpack:GetChildren()) do
  1243. tool:Remove()
  1244. end
  1245. for _,tool in pairs(obj.Character:GetChildren()) do
  1246. if tool.className == "Tool" then
  1247. tool:Remove()
  1248. end
  1249. end
  1250. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  1251. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  1252. obj.Character.Head.Rope.Attachment1 = nil
  1253. end
  1254. end
  1255. end
  1256. end
  1257. if game.ReplicatedStorage.Game.Value == 2 then
  1258. status.Value = "Multiple players won!"
  1259. wait(2)
  1260. status.Value = "They will recieve a win!"
  1261. wait(2)
  1262. for _,obj in pairs(game.Players:GetChildren()) do
  1263. if obj.Alive.Value == "Yes" then
  1264. for _,tool in pairs(obj.Backpack:GetChildren()) do
  1265. tool:Remove()
  1266. end
  1267. for _,tool in pairs(obj.Character:GetChildren()) do
  1268. if tool.className == "Tool" then
  1269. tool:Remove()
  1270. end
  1271. end
  1272. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  1273. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  1274. obj.Character.Head.Rope.Attachment1 = nil
  1275. end
  1276. end
  1277. end
  1278. end
  1279. if game.ReplicatedStorage.Game.Value == 3 then
  1280. status.Value = "Nobody Won!"
  1281. wait(2)
  1282. status.Value = "Nobody recieves cash or wins!"
  1283. wait(2)
  1284. for _,obj in pairs(game.Players:GetChildren()) do
  1285. if obj.Alive.Value == "Yes" then
  1286. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  1287. obj.Character.Head.Rope.Attachment1 = nil
  1288. for _,tool in pairs(obj.Backpack:GetChildren()) do
  1289. tool:Remove()
  1290. end
  1291. for _,tool in pairs(obj.Character:GetChildren()) do
  1292. if tool.className == "Tool" then
  1293. tool:Remove()
  1294. end
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. for _,obj in pairs(game.Players:GetChildren()) do
  1301. obj.Alive.Value = "No"
  1302. obj.T.Value = "Players"
  1303. if obj.Character.Humanoid.WalkSpeed == 100 then
  1304. obj.Character.Humanoid.WalkSpeed = 16
  1305. end
  1306. end
  1307. game.ReplicatedStorage.PlayersAlive.Value = 0
  1308. game.ReplicatedStorage.Game.Value = 0
  1309. if game.Workspace:FindFirstChild("RopeAttachment") then
  1310. RopeClone:Destroy()
  1311. end
  1312. if game.Workspace:FindFirstChild("Regular Map") or game.Workspace:FindFirstChild("Pyramid") or game.Workspace:FindFirstChild("Tree Land") then
  1313. map1:Destroy()--
  1314. end
  1315. end--End of loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement