Advertisement
Ma1e

Untitled

Oct 16th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.95 KB | None | 0 0
  1. StatusValue = Instance.new("StringValue", game.ReplicatedStorage)
  2. StatusValue.Name = "StatusValue"
  3. Hint = Instance.new("Hint", game.Workspace)
  4. Hint.Text = StatusValue.Value
  5. StatusValue.Changed:connect(function()
  6. Hint.Text = StatusValue.Value
  7. end)
  8. game.Lighting.GlobalShadows = false
  9. game.Lighting.Ambient = Color3.new(.5,.5,.5)
  10.  
  11. game.Workspace.ChildAdded:connect(function(rope)
  12. if rope.className == "Model" then
  13. local Attachment1 = Instance.new("Attachment", rope.Head)
  14. Attachment1.Name = 'Attachment1'
  15. local Rope = Instance.new("RopeConstraint", rope.Head)
  16. Rope.Name = "Rope"
  17. Rope.Attachment0 = Attachment1
  18. Rope.Visible = true
  19. Rope.Color = BrickColor.new("Pearl")
  20. Rope.Length = 100
  21. end
  22. end)
  23.  
  24. local linkedsword = game:service("InsertService"):LoadAsset(tonumber(125013769))
  25. for a,g in pairs(linkedsword:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = game.ReplicatedStorage end end
  26. linkedsword:Destroy()
  27.  
  28. game.Players.PlayerAdded:connect(function(obj)
  29.  
  30. local stats = Instance.new("Folder", obj)
  31. stats.Name = "leaderstats"
  32.  
  33. local Wins = Instance.new("IntValue", stats)
  34. Wins.Name = "Wins"
  35. Wins.Value = 0
  36.  
  37. local Team = Instance.new("StringValue", obj)
  38. Team.Name = "T"
  39. Team.Value = "Players"
  40.  
  41. local Alive = Instance.new("StringValue", obj)
  42. Alive.Name = "Alive"
  43. Alive.Value = "No"
  44. obj.CharacterAdded:connect(function(character)
  45. character:WaitForChild("Humanoid").Died:connect(function()
  46. local tag = character.Humanoid:FindFirstChild("creator")
  47. if tag ~= nil then
  48. if tag.Value ~= nil then
  49. if obj.Alive.Value == "Yes" then
  50. if obj.T.Value == "Red" then
  51. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  52. obj.Alive.Value = "No"
  53. elseif obj.T.Value == "Blue" then
  54. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  55. obj.Alive.Value = "No"
  56. end
  57. if obj.T.Value == "Players" then
  58. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  59. obj.Alive.Value = "No"
  60. end
  61.  
  62. end
  63. end
  64. end
  65. end)
  66. end)
  67. end)
  68.  
  69. for _,obj in pairs(game.Players:GetChildren()) do
  70.  
  71. local stats = Instance.new("Folder", obj)
  72. stats.Name = "leaderstats"
  73.  
  74. local Wins = Instance.new("IntValue", stats)
  75. Wins.Name = "Wins"
  76. Wins.Value = 0
  77.  
  78. local Team = Instance.new("StringValue", obj)
  79. Team.Name = "T"
  80. Team.Value = "Players"
  81.  
  82. local Alive = Instance.new("StringValue", obj)
  83. Alive.Name = "Alive"
  84. Alive.Value = "No"
  85.  
  86. obj.CharacterAdded:connect(function(character)
  87. character:WaitForChild("Humanoid").Died:connect(function()
  88. local tag = character.Humanoid:FindFirstChild("creator")
  89. if tag ~= nil then
  90. if tag.Value ~= nil then
  91. if obj.Alive.Value == "Yes" then
  92. if obj.T.Value == "Red" then
  93. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  94. obj.Alive.Value = "No"
  95. elseif obj.T.Value == "Blue" then
  96. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  97. obj.Alive.Value = "No"
  98. end
  99. if obj.T.Value == "Players" then
  100. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  101. obj.Alive.Value = "No"
  102. end
  103.  
  104. end
  105. end
  106. end
  107. end)
  108. end)
  109. end
  110.  
  111. game.Players.PlayerRemoving:connect(function(plr)
  112. if plr.Alive.Value == "Yes" then
  113. if plr.T.Value == "Red" then
  114. game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
  115. elseif plr.T.Value == "Blue" then
  116. game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
  117. if game.ReplicatedStorage["PlayersAlive"].Value > 0 then
  118. game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
  119. end
  120. end
  121. end
  122. end)
  123. -------------------------------------------
  124. GameValue = Instance.new("IntValue", game.ReplicatedStorage)
  125. GameValue.Name = "Game"
  126. GameValue.Value = 0
  127.  
  128. PlayersAlive = Instance.new("IntValue", game.ReplicatedStorage)
  129. PlayersAlive.Name = "PlayersAlive"
  130. PlayersAlive.Value = 0
  131. -------------------------------------------MAP1
  132. Map = Instance.new("Model", game.Workspace)
  133. Map.Name = "Regular Map"
  134.  
  135. Part = Instance.new("Part", Map)
  136. Part.BrickColor = BrickColor.new("Black")
  137. Part.Orientation = Vector3.new(0, -180, -90)
  138. Part.Material = "SmoothPlastic"
  139. Part.Anchored = true
  140. Part.Size = Vector3.new(5, 190, 185)
  141. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  142. Part.Shape = "Cylinder"
  143. Part.TopSurface = "Smooth"
  144. Part.BottomSurface = "Smooth"
  145.  
  146. Tele = Instance.new("Part", Map)
  147. Tele.Transparency = 1
  148. Tele.Name = "Tele"
  149. Tele.Anchored = true
  150. Tele.CanCollide = false
  151. Tele.Size = Vector3.new(121, 1, 130.6)
  152. Tele.Position = Vector3.new(-16.5, 75, 45.5)
  153.  
  154. Map.Parent = game.ServerStorage
  155. -------------------------------------------MAP2
  156. Map2 = Instance.new("Model", game.Workspace)
  157. Map2.Name = "Tree Land"
  158.  
  159. Part = Instance.new("Part", Map2)
  160. Part.BrickColor = BrickColor.new("Bright green")
  161. Part.Orientation = Vector3.new(0, -180, -90)
  162. Part.Material = "Grass"
  163. Part.Anchored = true
  164. Part.Size = Vector3.new(5, 190, 185)
  165. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  166. Part.Shape = "Cylinder"
  167. Part.TopSurface = "Smooth"
  168. Part.BottomSurface = "Smooth"
  169.  
  170. Wood1 = Instance.new("Part", Map2)
  171. Wood1.BrickColor = BrickColor.new("Brown")
  172. Wood1.Material = "Wood"
  173. Wood1.Anchored = true
  174. Wood1.Size = Vector3.new(2, 10, 2)
  175. Wood1.Position = Vector3.new(6.4, 63.6, 6.7)
  176. Wood1.TopSurface = "Smooth"
  177. Wood1.BottomSurface = "Smooth"
  178.  
  179. Grass1 = Instance.new("Part", Map2)
  180. Grass1.BrickColor = BrickColor.new("Bright green")
  181. Grass1.Material = "Grass"
  182. Grass1.Anchored = true
  183. Grass1.Size = Vector3.new(6,6,6)
  184. Grass1.Position = Vector3.new(6.4, 71.6, 6.7)
  185. Grass1.TopSurface = "Smooth"
  186. Grass1.BottomSurface = "Smooth"
  187.  
  188. Wood2 = Instance.new("Part", Map2)
  189. Wood2.BrickColor = BrickColor.new("Brown")
  190. Wood2.Material = "Wood"
  191. Wood2.Anchored = true
  192. Wood2.Size = Vector3.new(2, 10, 2)
  193. Wood2.Position = Vector3.new(-43.6, 63.6, 36.7)
  194. Wood2.TopSurface = "Smooth"
  195. Wood2.BottomSurface = "Smooth"
  196.  
  197. Grass2 = Instance.new("Part", Map2)
  198. Grass2.BrickColor = BrickColor.new("Bright green")
  199. Grass2.Material = "Grass"
  200. Grass2.Anchored = true
  201. Grass2.Size = Vector3.new(6,6,6)
  202. Grass2.Position = Vector3.new(-43.6, 71.6, 36.7)
  203. Grass2.TopSurface = "Smooth"
  204. Grass2.BottomSurface = "Smooth"
  205.  
  206. Wood3 = Instance.new("Part", Map2)
  207. Wood3.BrickColor = BrickColor.new("Brown")
  208. Wood3.Material = "Wood"
  209. Wood3.Anchored = true
  210. Wood3.Size = Vector3.new(2, 10, 2)
  211. Wood3.Position = Vector3.new(-73.6, 63.6, 86.7)
  212. Wood3.TopSurface = "Smooth"
  213. Wood3.BottomSurface = "Smooth"
  214.  
  215. Grass3 = Instance.new("Part", Map2)
  216. Grass3.BrickColor = BrickColor.new("Bright green")
  217. Grass3.Material = "Grass"
  218. Grass3.Anchored = true
  219. Grass3.Size = Vector3.new(6,6,6)
  220. Grass3.Position = Vector3.new(-73.6, 71.6, 86.7)
  221. Grass3.TopSurface = "Smooth"
  222. Grass3.BottomSurface = "Smooth"
  223.  
  224. Wood4 = Instance.new("Part", Map2)
  225. Wood4.BrickColor = BrickColor.new("Brown")
  226. Wood4.Material = "Wood"
  227. Wood4.Anchored = true
  228. Wood4.Size = Vector3.new(2, 10, 2)
  229. Wood4.Position = Vector3.new(6.4, 63.6, 76.7)
  230. Wood4.TopSurface = "Smooth"
  231. Wood4.BottomSurface = "Smooth"
  232.  
  233. Grass4 = Instance.new("Part", Map2)
  234. Grass4.BrickColor = BrickColor.new("Bright green")
  235. Grass4.Material = "Grass"
  236. Grass4.Anchored = true
  237. Grass4.Size = Vector3.new(6,6,6)
  238. Grass4.Position = Vector3.new(6.4, 71.6, 76.7)
  239. Grass4.TopSurface = "Smooth"
  240. Grass4.BottomSurface = "Smooth"
  241.  
  242. Wood5 = Instance.new("Part", Map2)
  243. Wood5.BrickColor = BrickColor.new("Brown")
  244. Wood5.Material = "Wood"
  245. Wood5.Anchored = true
  246. Wood5.Size = Vector3.new(2, 10, 2)
  247. Wood5.Position = Vector3.new(46.4, 63.6, 56.7)
  248. Wood5.TopSurface = "Smooth"
  249. Wood5.BottomSurface = "Smooth"
  250.  
  251. Grass5 = Instance.new("Part", Map2)
  252. Grass5.BrickColor = BrickColor.new("Bright green")
  253. Grass5.Material = "Grass"
  254. Grass5.Anchored = true
  255. Grass5.Size = Vector3.new(6,6,6)
  256. Grass5.Position = Vector3.new(46.4, 71.6, 56.7)
  257. Grass5.TopSurface = "Smooth"
  258. Grass5.BottomSurface = "Smooth"
  259.  
  260. Wood6 = Instance.new("Part", Map2)
  261. Wood6.BrickColor = BrickColor.new("Brown")
  262. Wood6.Material = "Wood"
  263. Wood6.Anchored = true
  264. Wood6.Size = Vector3.new(2, 10, 2)
  265. Wood6.Position = Vector3.new(-13.6, 63.6, 116.7)
  266. Wood6.TopSurface = "Smooth"
  267. Wood6.BottomSurface = "Smooth"
  268.  
  269. Grass6 = Instance.new("Part", Map2)
  270. Grass6.BrickColor = BrickColor.new("Bright green")
  271. Grass6.Material = "Grass"
  272. Grass6.Anchored = true
  273. Grass6.Size = Vector3.new(6,6,6)
  274. Grass6.Position = Vector3.new(-13.6, 71.6, 116.7)
  275. Grass6.TopSurface = "Smooth"
  276. Grass6.BottomSurface = "Smooth"
  277.  
  278. Wood7 = Instance.new("Part", Map2)
  279. Wood7.BrickColor = BrickColor.new("Brown")
  280. Wood7.Material = "Wood"
  281. Wood7.Anchored = true
  282. Wood7.Size = Vector3.new(2, 10, 2)
  283. Wood7.Position = Vector3.new(-43.6, 63.6, -13.3)
  284. Wood7.TopSurface = "Smooth"
  285. Wood7.BottomSurface = "Smooth"
  286.  
  287. Grass7 = Instance.new("Part", Map2)
  288. Grass7.BrickColor = BrickColor.new("Bright green")
  289. Grass7.Material = "Grass"
  290. Grass7.Anchored = true
  291. Grass7.Size = Vector3.new(6,6,6)
  292. Grass7.Position = Vector3.new(-43.6, 71.6, -13.3)
  293. Grass7.TopSurface = "Smooth"
  294. Grass7.BottomSurface = "Smooth"
  295.  
  296. Tele = Instance.new("Part", Map2)
  297. Tele.Transparency = 1
  298. Tele.Name = "Tele"
  299. Tele.Anchored = true
  300. Tele.CanCollide = false
  301. Tele.Size = Vector3.new(121, 1, 130.6)
  302. Tele.Position = Vector3.new(-16.5, 76, 45.5)
  303.  
  304. Map2.Parent = game.ServerStorage
  305. -------------------------------------------MAP3
  306. Map3 = Instance.new("Model", game.Workspace)
  307. Map3.Name = "Pyramid"
  308.  
  309. Part = Instance.new("Part", Map3)
  310. Part.BrickColor = BrickColor.new("Pastel brown")
  311. Part.Orientation = Vector3.new(0, -180, -90)
  312. Part.Material = "Sand"
  313. Part.Anchored = true
  314. Part.Size = Vector3.new(5, 190, 185)
  315. Part.Position = Vector3.new(-14.5, 56.1, 45.5)
  316. Part.Shape = "Cylinder"
  317. Part.TopSurface = "Smooth"
  318. Part.BottomSurface = "Smooth"
  319.  
  320. Wedge1 = Instance.new("CornerWedgePart", Map3)
  321. Wedge1.BrickColor = BrickColor.new("Pastel brown")
  322. Wedge1.Material = "Concrete"
  323. Wedge1.Anchored = true
  324. Wedge1.Orientation = Vector3.new(0,0,0)
  325. Wedge1.Size = Vector3.new(30, 30, 30)
  326. Wedge1.Position = Vector3.new(-29.501, 73.6, 60.501)
  327. Wedge1.TopSurface = "Smooth"
  328. Wedge1.BottomSurface = "Smooth"
  329.  
  330. Wedge2 = Instance.new("CornerWedgePart", Map3)
  331. Wedge2.BrickColor = BrickColor.new("Pastel brown")
  332. Wedge2.Material = "Concrete"
  333. Wedge2.Anchored = true
  334. Wedge2.Orientation = Vector3.new(0,90,0)
  335. Wedge2.Size = Vector3.new(30, 30, 30)
  336. Wedge2.Position = Vector3.new(0.501, 73.6, 60.501)
  337. Wedge2.TopSurface = "Smooth"
  338. Wedge2.BottomSurface = "Smooth"
  339.  
  340. Wedge3 = Instance.new("CornerWedgePart", Map3)
  341. Wedge3.BrickColor = BrickColor.new("Pastel brown")
  342. Wedge3.Material = "Concrete"
  343. Wedge3.Anchored = true
  344. Wedge3.Orientation = Vector3.new(0,180,0)
  345. Wedge3.Size = Vector3.new(30, 30, 30)
  346. Wedge3.Position = Vector3.new(0.501, 73.6, 30.499)
  347. Wedge3.TopSurface = "Smooth"
  348. Wedge3.BottomSurface = "Smooth"
  349.  
  350. Wedge4 = Instance.new("CornerWedgePart", Map3)
  351. Wedge4.BrickColor = BrickColor.new("Pastel brown")
  352. Wedge4.Material = "Concrete"
  353. Wedge4.Anchored = true
  354. Wedge4.Orientation = Vector3.new(0,-90,0)
  355. Wedge4.Size = Vector3.new(30, 30, 30)
  356. Wedge4.Position = Vector3.new(-29.501, 73.6, 30.499)
  357. Wedge4.TopSurface = "Smooth"
  358. Wedge4.BottomSurface = "Smooth"
  359.  
  360. Tele = Instance.new("Part", Map3)
  361. Tele.Transparency = 1
  362. Tele.Name = "Tele"
  363. Tele.Anchored = true
  364. Tele.CanCollide = false
  365. Tele.Size = Vector3.new(121, 1, 130.6)
  366. Tele.Position = Vector3.new(-16.5, 100, 45.5)
  367.  
  368. Map3.Parent = game.ServerStorage
  369. -------------------------------------------
  370. RopeAttachment = Instance.new("Part", game.Workspace)
  371. RopeAttachment.Name = "RopeAttachment"
  372. RopeAttachment.Anchored = true
  373. RopeAttachment.BrickColor = BrickColor.new("Pearl")
  374. RopeAttachment.Material = "SmoothPlastic"
  375. RopeAttachment.Size = Vector3.new(1,1,1)
  376. RopeAttachment.Position = Vector3.new(-14.5, 106.1, 45.5)
  377. RopeAttachment.Shape = "Ball"
  378. RopeAttachment.TopSurface = "Smooth"
  379. RopeAttachment.BottomSurface = "Smooth"
  380.  
  381. Attachment2 = Instance.new("Attachment", RopeAttachment)
  382. Attachment2.Name = 'Attachment2'
  383.  
  384. SpawnLocation = Instance.new("SpawnLocation", game.Workspace)
  385. SpawnLocation.CanCollide = false
  386. SpawnLocation.Anchored = true
  387. SpawnLocation.Position = Vector3.new(0,0,0)
  388. ------------------------------------------------------------------------------------
  389. wait(5)
  390. for _,obj in pairs(game.Players:GetChildren()) do
  391. obj.Character.Humanoid.Health = 0
  392. end
  393. wait(10)
  394. ------------------------------------------------------------------------------------
  395.  
  396. while true do
  397. local replicatedstorage = game:GetService("ReplicatedStorage")
  398. local status = replicatedstorage:WaitForChild("StatusValue")
  399. for i = 10,0,-1 do
  400. if i == 10 then
  401. status.Value = "Intermission: ||||||||||"
  402. elseif i == 9 then
  403. status.Value = "Intermission: |||||||||"
  404. elseif i == 8 then
  405. status.Value = "Intermission: ||||||||"
  406. elseif i == 7 then
  407. status.Value = "Intermission: |||||||"
  408. elseif i == 6 then
  409. status.Value = "Intermission: ||||||"
  410. elseif i == 5 then
  411. status.Value = "Intermission: |||||"
  412. elseif i == 4 then
  413. status.Value = "Intermission: ||||"
  414. elseif i == 3 then
  415. status.Value = "Intermission: |||"
  416. elseif i == 2 then
  417. status.Value = "Intermission: ||"
  418. elseif i == 1 then
  419. status.Value = "Intermission: |"
  420. elseif i == 0 then
  421. status.Value = "Intermission: "
  422. end
  423.  
  424. wait(1)
  425. end -- End of Intermission timer
  426. maps1 = game:GetService('ServerStorage'):GetChildren()
  427. chosenmap1 = maps1[math.random(1, #maps1)]
  428. map1 = chosenmap1:Clone()
  429. status.Value = "Choosing Map."
  430. wait(.5)
  431. status.Value = "Choosing Map.."
  432. wait(.5)
  433. status.Value = "Choosing Map..."
  434. wait(.5)
  435. status.Value = map1.Name.." has been chosen!"--
  436. wait(2)
  437. status.Value = "Survive to win!"
  438. map1.Parent = game.Workspace
  439. wait(2)
  440. game.ReplicatedStorage.PlayersAlive.Value = 0
  441. for _,obj in pairs(game.Players:GetChildren()) do
  442. obj.Alive.Value = "Yes"
  443. cc = map1:GetChildren()
  444. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  445. PlayersAlive.Value = PlayersAlive.Value + 1
  446. teles = {}
  447. for nuum, obbj in pairs(cc) do
  448. if obbj.Name == "Tele" then
  449. table.insert (teles, obbj)
  450. end
  451. end
  452. wait()
  453. tele = teles[math.random(1,#teles)]
  454. x1 = tele.Position.X-(tele.Size.X/2)
  455. x2 = tele.Position.X+(tele.Size.X/2)
  456. z1 = tele.Position.Z-(tele.Size.Z/2)
  457. z2 = tele.Position.Z+(tele.Size.Z/2)
  458. obj.Character.Head.CFrame = CFrame.new(math.random(x1,x2),tele.Position.Y+5,math.random(z1,z2))
  459. obj.Character.Humanoid.WalkSpeed = 0
  460. obj.Character.Head.Rope.Attachment1 = game.Workspace.RopeAttachment.Attachment2
  461. end
  462. status.Value = "The game begins in: |||"
  463. wait(1)
  464. status.Value = "The game begins in: ||"
  465. wait(1)
  466. status.Value = "The game begins in: |"
  467. wait(1)
  468. status.Value = "Fight!"
  469. for _,obj in pairs(game.Players:GetChildren()) do
  470. SwordClone = game.ReplicatedStorage.LinkedSword:Clone()
  471. SwordClone.Parent = obj.Backpack
  472. function onTouched(part)
  473. local humanoid = part.Parent:FindFirstChild("Humanoid")
  474. if (humanoid ~= nil) then
  475. humanoid.Health = 0
  476. end
  477. end
  478. SwordClone.Handle.Touched:connect(onTouched)
  479. obj.Character.Humanoid.WalkSpeed = 100
  480. end
  481. wait(1)
  482. while game.ReplicatedStorage.Game.Value == 0 do
  483. for c = 30, 0, -1 do
  484. if c == 30 then
  485. status.Value = "Game in Progress: ||||||||||||||||||||||||||||||"
  486. elseif c == 29 then
  487. status.Value = "Game in Progress: |||||||||||||||||||||||||||||"
  488. elseif c == 28 then
  489. status.Value = "Game in Progress: ||||||||||||||||||||||||||||"
  490. elseif c == 27 then
  491. status.Value = "Game in Progress: |||||||||||||||||||||||||||"
  492. elseif c == 26 then
  493. status.Value = "Game in Progress: ||||||||||||||||||||||||||"
  494. elseif c == 25 then
  495. status.Value = "Game in Progress: |||||||||||||||||||||||||"
  496. elseif c == 24 then
  497. status.Value = "Game in Progress: ||||||||||||||||||||||||"
  498. elseif c == 23 then
  499. status.Value = "Game in Progress: |||||||||||||||||||||||"
  500. elseif c == 22 then
  501. status.Value = "Game in Progress: ||||||||||||||||||||||"
  502. elseif c == 21 then
  503. status.Value = "Game in Progress: |||||||||||||||||||||"
  504. elseif c == 20 then
  505. status.Value = "Game in Progress: ||||||||||||||||||||"
  506. elseif c == 19 then
  507. status.Value = "Game in Progress: |||||||||||||||||||"
  508. elseif c == 18 then
  509. status.Value = "Game in Progress: ||||||||||||||||||"
  510. elseif c == 17 then
  511. status.Value = "Game in Progress: |||||||||||||||||"
  512. elseif c == 16 then
  513. status.Value = "Game in Progress: ||||||||||||||||"
  514. elseif c == 15 then
  515. status.Value = "Game in Progress: |||||||||||||||"
  516. elseif c == 14 then
  517. status.Value = "Game in Progress: ||||||||||||||"
  518. elseif c == 13 then
  519. status.Value = "Game in Progress: |||||||||||||"
  520. elseif c == 12 then
  521. status.Value = "Game in Progress: ||||||||||||"
  522. elseif c == 11 then
  523. status.Value = "Game in Progress: |||||||||||"
  524. elseif c == 10 then
  525. status.Value = "Game in Progress: ||||||||||"
  526. elseif c == 9 then
  527. status.Value = "Game in Progress: |||||||||"
  528. elseif c == 8 then
  529. status.Value = "Game in Progress: ||||||||"
  530. elseif c == 7 then
  531. status.Value = "Game in Progress: |||||||"
  532. elseif c == 6 then
  533. status.Value = "Game in Progress: ||||||"
  534. elseif c == 5 then
  535. status.Value = "Game in Progress: |||||"
  536. elseif c == 4 then
  537. status.Value = "Game in Progress: ||||"
  538. elseif c == 3 then
  539. status.Value = "Game in Progress: |||"
  540. elseif c == 2 then
  541. status.Value = "Game in Progress: ||"
  542. elseif c == 1 then
  543. status.Value = "Game in Progress: |"
  544. elseif c == 0 then
  545. status.Value = "Game in Progress: "
  546. end
  547.  
  548. wait(1)
  549. local PlayersAlive = game.ReplicatedStorage.PlayersAlive
  550. if PlayersAlive.Value == 1 then
  551. game.ReplicatedStorage.Game.Value = 1
  552. break
  553. end
  554. if PlayersAlive.Value == 0 then
  555. game.ReplicatedStorage.Game.Value = 3
  556. break
  557. end
  558. if c == 0 then
  559. game.ReplicatedStorage.Game.Value = 2
  560. end
  561. end
  562. end
  563. if game.ReplicatedStorage.Game.Value == 1 then
  564. for _,obj in pairs(game.Players:GetChildren()) do
  565. if obj.Alive.Value == "Yes" then
  566. status.Value = obj.Name.." Won!"
  567. end
  568. end
  569. wait(2)
  570. status.Value = "They will recieve 1 win!"
  571. wait(2)
  572. for _,obj in pairs(game.Players:GetChildren()) do
  573. if obj.Alive.Value == "Yes" then
  574. for _,tool in pairs(obj.Backpack:GetChildren()) do
  575. tool:Remove()
  576. end
  577. for _,tool in pairs(obj.Character:GetChildren()) do
  578. if tool.className == "Tool" then
  579. tool:Remove()
  580. end
  581. end
  582. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  583. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  584. obj.Character.Head.Rope.Attachment1 = nil
  585. end
  586. end
  587. end
  588. end
  589. if game.ReplicatedStorage.Game.Value == 2 then
  590. status.Value = "Multiple players won!"
  591. wait(2)
  592. status.Value = "They will recieve a win!"
  593. wait(2)
  594. for _,obj in pairs(game.Players:GetChildren()) do
  595. if obj.Alive.Value == "Yes" then
  596. for _,tool in pairs(obj.Backpack:GetChildren()) do
  597. tool:Remove()
  598. end
  599. for _,tool in pairs(obj.Character:GetChildren()) do
  600. if tool.className == "Tool" then
  601. tool:Remove()
  602. end
  603. end
  604. obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
  605. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  606. obj.Character.Head.Rope.Attachment1 = nil
  607. end
  608. end
  609. end
  610. end
  611. if game.ReplicatedStorage.Game.Value == 3 then
  612. status.Value = "Nobody Won!"
  613. wait(2)
  614. status.Value = "Nobody recieves cash or wins!"
  615. wait(2)
  616. for _,obj in pairs(game.Players:GetChildren()) do
  617. if obj.Alive.Value == "Yes" then
  618. if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
  619. obj.Character.Head.Rope.Attachment1 = nil
  620. for _,tool in pairs(obj.Backpack:GetChildren()) do
  621. tool:Remove()
  622. end
  623. for _,tool in pairs(obj.Character:GetChildren()) do
  624. if tool.className == "Tool" then
  625. tool:Remove()
  626. end
  627. end
  628. end
  629. end
  630. end
  631. end
  632. for _,obj in pairs(game.Players:GetChildren()) do
  633. obj.Alive.Value = "No"
  634. obj.T.Value = "Players"
  635. if obj.Character.Humanoid.WalkSpeed == 100 then
  636. obj.Character.Humanoid.WalkSpeed = 16
  637. end
  638. end
  639. game.ReplicatedStorage.PlayersAlive.Value = 0
  640. game.ReplicatedStorage.Game.Value = 0
  641. map1:Destroy()--
  642. end--End of loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement