Advertisement
Ma1e

Untitled

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