Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StatusValue = Instance.new("StringValue", game.ReplicatedStorage)
- StatusValue.Name = "StatusValue"
- local Hint = Instance.new("Hint", game.Workspace)
- local Value = Instance.new("IntValue", Hint)
- Hint.Text = StatusValue.Value
- StatusValue.Changed:connect(function()
- Hint.Text = StatusValue.Value
- end)
- Hint.Changed:connect(function()
- if game.Workspace:FindFirstChild("Message") then
- else
- local Hint = Instance.new("Hint", game.Workspace)
- local Value = Instance.new("IntValue", Hint)
- Hint.Text = StatusValue.Value
- StatusValue.Changed:connect(function()
- Hint.Text = StatusValue.Value
- end)
- end
- end)
- game.Lighting.GlobalShadows = false
- game.Lighting.Ambient = Color3.new(.5,.5,.5)
- game.Workspace.ChildAdded:connect(function(rope)
- if rope.className == "Model" then
- if rope:FindFirstChildOfClass("Humanoid") then
- local Attachment1 = Instance.new("Attachment", rope.Head)
- Attachment1.Name = 'Attachment1'
- local Rope = Instance.new("RopeConstraint", rope.Head)
- Rope.Name = "Rope"
- Rope.Attachment0 = Attachment1
- Rope.Visible = true
- Rope.Color = BrickColor.new("Pearl")
- Rope.Length = 100
- end
- end
- end)
- local linkedsword = game:service("InsertService"):LoadAsset(tonumber(125013769))
- for a,g in pairs(linkedsword:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = game.ReplicatedStorage end end
- linkedsword:Destroy()
- game.Players.PlayerAdded:connect(function(obj)
- local stats = Instance.new("Folder", obj)
- stats.Name = "leaderstats"
- local Wins = Instance.new("IntValue", stats)
- Wins.Name = "Wins"
- Wins.Value = 0
- local Team = Instance.new("StringValue", obj)
- Team.Name = "T"
- Team.Value = "Players"
- local Alive = Instance.new("StringValue", obj)
- Alive.Name = "Alive"
- Alive.Value = "No"
- obj.CharacterAdded:connect(function(character)
- character:WaitForChild("Humanoid").Died:connect(function()
- local tag = character.Humanoid:FindFirstChild("creator")
- if tag ~= nil then
- if tag.Value ~= nil then
- if obj.Alive.Value == "Yes" then
- if obj.T.Value == "Red" then
- game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
- obj.Alive.Value = "No"
- elseif obj.T.Value == "Blue" then
- game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
- obj.Alive.Value = "No"
- end
- if obj.T.Value == "Players" then
- game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
- obj.Alive.Value = "No"
- end
- end
- end
- end
- end)
- end)
- end)
- for _,obj in pairs(game.Players:GetChildren()) do
- local stats = Instance.new("Folder", obj)
- stats.Name = "leaderstats"
- local Wins = Instance.new("IntValue", stats)
- Wins.Name = "Wins"
- Wins.Value = 0
- local Team = Instance.new("StringValue", obj)
- Team.Name = "T"
- Team.Value = "Players"
- local Alive = Instance.new("StringValue", obj)
- Alive.Name = "Alive"
- Alive.Value = "No"
- obj.CharacterAdded:connect(function(character)
- character:WaitForChild("Humanoid").Died:connect(function()
- local tag = character.Humanoid:FindFirstChild("creator")
- if tag ~= nil then
- if tag.Value ~= nil then
- if obj.Alive.Value == "Yes" then
- if obj.T.Value == "Red" then
- game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
- obj.Alive.Value = "No"
- elseif obj.T.Value == "Blue" then
- game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
- obj.Alive.Value = "No"
- end
- if obj.T.Value == "Players" then
- game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
- obj.Alive.Value = "No"
- end
- end
- end
- end
- end)
- end)
- end
- game.Players.PlayerRemoving:connect(function(plr)
- if plr.Alive.Value == "Yes" then
- if plr.T.Value == "Red" then
- game.ReplicatedStorage.red.Value = game.ReplicatedStorage.red.Value - 1
- elseif plr.T.Value == "Blue" then
- game.ReplicatedStorage.blue.Value = game.ReplicatedStorage.blue.Value - 1
- if game.ReplicatedStorage["PlayersAlive"].Value > 0 then
- game.ReplicatedStorage["PlayersAlive"].Value = game.ReplicatedStorage["PlayersAlive"].Value - 1
- end
- end
- end
- end)
- -------------------------------------------
- GameValue = Instance.new("IntValue", game.ReplicatedStorage)
- GameValue.Name = "Game"
- GameValue.Value = 0
- PlayersAlive = Instance.new("IntValue", game.ReplicatedStorage)
- PlayersAlive.Name = "PlayersAlive"
- PlayersAlive.Value = 0
- -------------------------------------------MAP1
- Map = Instance.new("Model", game.Workspace)
- Map.Name = "Regular Map"
- Part = Instance.new("Part", Map)
- Part.BrickColor = BrickColor.new("Black")
- Part.Orientation = Vector3.new(0, -180, -90)
- Part.Material = "SmoothPlastic"
- Part.Anchored = true
- Part.Size = Vector3.new(5, 190, 185)
- Part.Position = Vector3.new(-14.5, 56.1, 45.5)
- Part.Shape = "Cylinder"
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Tele = Instance.new("Part", Map)
- Tele.Transparency = 1
- Tele.Name = "Tele"
- Tele.Anchored = true
- Tele.CanCollide = false
- Tele.Size = Vector3.new(121, 1, 130.6)
- Tele.Position = Vector3.new(-16.5, 75, 45.5)
- Map.Parent = game.ServerStorage
- -------------------------------------------MAP2
- Map2 = Instance.new("Model", game.Workspace)
- Map2.Name = "Tree Land"
- Part = Instance.new("Part", Map2)
- Part.BrickColor = BrickColor.new("Bright green")
- Part.Orientation = Vector3.new(0, -180, -90)
- Part.Material = "Grass"
- Part.Anchored = true
- Part.Size = Vector3.new(5, 190, 185)
- Part.Position = Vector3.new(-14.5, 56.1, 45.5)
- Part.Shape = "Cylinder"
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Wood1 = Instance.new("Part", Map2)
- Wood1.BrickColor = BrickColor.new("Brown")
- Wood1.Material = "Wood"
- Wood1.Anchored = true
- Wood1.Size = Vector3.new(2, 10, 2)
- Wood1.Position = Vector3.new(6.4, 63.6, 6.7)
- Wood1.TopSurface = "Smooth"
- Wood1.BottomSurface = "Smooth"
- Grass1 = Instance.new("Part", Map2)
- Grass1.BrickColor = BrickColor.new("Bright green")
- Grass1.Material = "Grass"
- Grass1.Anchored = true
- Grass1.Size = Vector3.new(6,6,6)
- Grass1.Position = Vector3.new(6.4, 71.6, 6.7)
- Grass1.TopSurface = "Smooth"
- Grass1.BottomSurface = "Smooth"
- Wood2 = Instance.new("Part", Map2)
- Wood2.BrickColor = BrickColor.new("Brown")
- Wood2.Material = "Wood"
- Wood2.Anchored = true
- Wood2.Size = Vector3.new(2, 10, 2)
- Wood2.Position = Vector3.new(-43.6, 63.6, 36.7)
- Wood2.TopSurface = "Smooth"
- Wood2.BottomSurface = "Smooth"
- Grass2 = Instance.new("Part", Map2)
- Grass2.BrickColor = BrickColor.new("Bright green")
- Grass2.Material = "Grass"
- Grass2.Anchored = true
- Grass2.Size = Vector3.new(6,6,6)
- Grass2.Position = Vector3.new(-43.6, 71.6, 36.7)
- Grass2.TopSurface = "Smooth"
- Grass2.BottomSurface = "Smooth"
- Wood3 = Instance.new("Part", Map2)
- Wood3.BrickColor = BrickColor.new("Brown")
- Wood3.Material = "Wood"
- Wood3.Anchored = true
- Wood3.Size = Vector3.new(2, 10, 2)
- Wood3.Position = Vector3.new(-73.6, 63.6, 86.7)
- Wood3.TopSurface = "Smooth"
- Wood3.BottomSurface = "Smooth"
- Grass3 = Instance.new("Part", Map2)
- Grass3.BrickColor = BrickColor.new("Bright green")
- Grass3.Material = "Grass"
- Grass3.Anchored = true
- Grass3.Size = Vector3.new(6,6,6)
- Grass3.Position = Vector3.new(-73.6, 71.6, 86.7)
- Grass3.TopSurface = "Smooth"
- Grass3.BottomSurface = "Smooth"
- Wood4 = Instance.new("Part", Map2)
- Wood4.BrickColor = BrickColor.new("Brown")
- Wood4.Material = "Wood"
- Wood4.Anchored = true
- Wood4.Size = Vector3.new(2, 10, 2)
- Wood4.Position = Vector3.new(6.4, 63.6, 76.7)
- Wood4.TopSurface = "Smooth"
- Wood4.BottomSurface = "Smooth"
- Grass4 = Instance.new("Part", Map2)
- Grass4.BrickColor = BrickColor.new("Bright green")
- Grass4.Material = "Grass"
- Grass4.Anchored = true
- Grass4.Size = Vector3.new(6,6,6)
- Grass4.Position = Vector3.new(6.4, 71.6, 76.7)
- Grass4.TopSurface = "Smooth"
- Grass4.BottomSurface = "Smooth"
- Wood5 = Instance.new("Part", Map2)
- Wood5.BrickColor = BrickColor.new("Brown")
- Wood5.Material = "Wood"
- Wood5.Anchored = true
- Wood5.Size = Vector3.new(2, 10, 2)
- Wood5.Position = Vector3.new(46.4, 63.6, 56.7)
- Wood5.TopSurface = "Smooth"
- Wood5.BottomSurface = "Smooth"
- Grass5 = Instance.new("Part", Map2)
- Grass5.BrickColor = BrickColor.new("Bright green")
- Grass5.Material = "Grass"
- Grass5.Anchored = true
- Grass5.Size = Vector3.new(6,6,6)
- Grass5.Position = Vector3.new(46.4, 71.6, 56.7)
- Grass5.TopSurface = "Smooth"
- Grass5.BottomSurface = "Smooth"
- Wood6 = Instance.new("Part", Map2)
- Wood6.BrickColor = BrickColor.new("Brown")
- Wood6.Material = "Wood"
- Wood6.Anchored = true
- Wood6.Size = Vector3.new(2, 10, 2)
- Wood6.Position = Vector3.new(-13.6, 63.6, 116.7)
- Wood6.TopSurface = "Smooth"
- Wood6.BottomSurface = "Smooth"
- Grass6 = Instance.new("Part", Map2)
- Grass6.BrickColor = BrickColor.new("Bright green")
- Grass6.Material = "Grass"
- Grass6.Anchored = true
- Grass6.Size = Vector3.new(6,6,6)
- Grass6.Position = Vector3.new(-13.6, 71.6, 116.7)
- Grass6.TopSurface = "Smooth"
- Grass6.BottomSurface = "Smooth"
- Wood7 = Instance.new("Part", Map2)
- Wood7.BrickColor = BrickColor.new("Brown")
- Wood7.Material = "Wood"
- Wood7.Anchored = true
- Wood7.Size = Vector3.new(2, 10, 2)
- Wood7.Position = Vector3.new(-43.6, 63.6, -13.3)
- Wood7.TopSurface = "Smooth"
- Wood7.BottomSurface = "Smooth"
- Grass7 = Instance.new("Part", Map2)
- Grass7.BrickColor = BrickColor.new("Bright green")
- Grass7.Material = "Grass"
- Grass7.Anchored = true
- Grass7.Size = Vector3.new(6,6,6)
- Grass7.Position = Vector3.new(-43.6, 71.6, -13.3)
- Grass7.TopSurface = "Smooth"
- Grass7.BottomSurface = "Smooth"
- Tele = Instance.new("Part", Map2)
- Tele.Transparency = 1
- Tele.Name = "Tele"
- Tele.Anchored = true
- Tele.CanCollide = false
- Tele.Size = Vector3.new(121, 1, 130.6)
- Tele.Position = Vector3.new(-16.5, 76, 45.5)
- Map2.Parent = game.ServerStorage
- -------------------------------------------MAP3
- Map3 = Instance.new("Model", game.Workspace)
- Map3.Name = "Pyramid"
- Part = Instance.new("Part", Map3)
- Part.BrickColor = BrickColor.new("Pastel brown")
- Part.Orientation = Vector3.new(0, -180, -90)
- Part.Material = "Sand"
- Part.Anchored = true
- Part.Size = Vector3.new(5, 190, 185)
- Part.Position = Vector3.new(-14.5, 56.1, 45.5)
- Part.Shape = "Cylinder"
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Wedge1 = Instance.new("CornerWedgePart", Map3)
- Wedge1.BrickColor = BrickColor.new("Pastel brown")
- Wedge1.Material = "Concrete"
- Wedge1.Anchored = true
- Wedge1.Orientation = Vector3.new(0,0,0)
- Wedge1.Size = Vector3.new(30, 30, 30)
- Wedge1.Position = Vector3.new(-29.501, 73.6, 60.501)
- Wedge1.TopSurface = "Smooth"
- Wedge1.BottomSurface = "Smooth"
- Wedge2 = Instance.new("CornerWedgePart", Map3)
- Wedge2.BrickColor = BrickColor.new("Pastel brown")
- Wedge2.Material = "Concrete"
- Wedge2.Anchored = true
- Wedge2.Orientation = Vector3.new(0,90,0)
- Wedge2.Size = Vector3.new(30, 30, 30)
- Wedge2.Position = Vector3.new(0.501, 73.6, 60.501)
- Wedge2.TopSurface = "Smooth"
- Wedge2.BottomSurface = "Smooth"
- Wedge3 = Instance.new("CornerWedgePart", Map3)
- Wedge3.BrickColor = BrickColor.new("Pastel brown")
- Wedge3.Material = "Concrete"
- Wedge3.Anchored = true
- Wedge3.Orientation = Vector3.new(0,180,0)
- Wedge3.Size = Vector3.new(30, 30, 30)
- Wedge3.Position = Vector3.new(0.501, 73.6, 30.499)
- Wedge3.TopSurface = "Smooth"
- Wedge3.BottomSurface = "Smooth"
- Wedge4 = Instance.new("CornerWedgePart", Map3)
- Wedge4.BrickColor = BrickColor.new("Pastel brown")
- Wedge4.Material = "Concrete"
- Wedge4.Anchored = true
- Wedge4.Orientation = Vector3.new(0,-90,0)
- Wedge4.Size = Vector3.new(30, 30, 30)
- Wedge4.Position = Vector3.new(-29.501, 73.6, 30.499)
- Wedge4.TopSurface = "Smooth"
- Wedge4.BottomSurface = "Smooth"
- Tele = Instance.new("Part", Map3)
- Tele.Transparency = 1
- Tele.Name = "Tele"
- Tele.Anchored = true
- Tele.CanCollide = false
- Tele.Size = Vector3.new(121, 1, 130.6)
- Tele.Position = Vector3.new(-16.5, 100, 45.5)
- Map3.Parent = game.ServerStorage
- -------------------------------------------
- RopeAttachment = Instance.new("Part", game.ReplicatedStorage)
- RopeAttachment.Name = "RopeAttachment"
- RopeAttachment.Anchored = true
- RopeAttachment.BrickColor = BrickColor.new("Pearl")
- RopeAttachment.Material = "SmoothPlastic"
- RopeAttachment.Size = Vector3.new(1,1,1)
- RopeAttachment.Position = Vector3.new(-14.5, 106.1, 45.5)
- RopeAttachment.Shape = "Ball"
- RopeAttachment.TopSurface = "Smooth"
- RopeAttachment.BottomSurface = "Smooth"
- Attachment2 = Instance.new("Attachment", RopeAttachment)
- Attachment2.Name = 'Attachment2'
- SpawnLocation = Instance.new("SpawnLocation", game.Workspace)
- SpawnLocation.CanCollide = false
- SpawnLocation.Anchored = true
- SpawnLocation.Position = Vector3.new(0,0,0)
- ------------------------------------------------------------------------------------
- wait(5)
- for _,obj in pairs(game.Players:GetChildren()) do
- if obj.Character:FindFirstChild("Humanoid") then
- obj.Character.Humanoid.Health = 0
- end
- end
- wait(10)
- ------------------------------------------------------------------------------------
- while true do
- local replicatedstorage = game:GetService("ReplicatedStorage")
- local status = replicatedstorage:WaitForChild("StatusValue")
- for i = 10,0,-1 do
- if i == 10 then
- status.Value = "Intermission: ||||||||||"
- elseif i == 9 then
- status.Value = "Intermission: |||||||||"
- elseif i == 8 then
- status.Value = "Intermission: ||||||||"
- elseif i == 7 then
- status.Value = "Intermission: |||||||"
- elseif i == 6 then
- status.Value = "Intermission: ||||||"
- elseif i == 5 then
- status.Value = "Intermission: |||||"
- elseif i == 4 then
- status.Value = "Intermission: ||||"
- elseif i == 3 then
- status.Value = "Intermission: |||"
- elseif i == 2 then
- status.Value = "Intermission: ||"
- elseif i == 1 then
- status.Value = "Intermission: |"
- elseif i == 0 then
- status.Value = "Intermission: "
- end
- wait(1)
- end -- End of Intermission timer
- maps1 = game:GetService('ServerStorage'):GetChildren()
- chosenmap1 = maps1[math.random(1, #maps1)]
- map1 = chosenmap1:Clone()
- status.Value = "Choosing Map."
- wait(.5)
- status.Value = "Choosing Map.."
- wait(.5)
- status.Value = "Choosing Map..."
- wait(.5)
- status.Value = map1.Name.." has been chosen!"--
- wait(2)
- status.Value = "Survive to win!"
- map1.Parent = game.Workspace
- wait(2)
- game.ReplicatedStorage.PlayersAlive.Value = 0
- for _,obj in pairs(game.Players:GetChildren()) do
- obj.Alive.Value = "Yes"
- cc = map1:GetChildren()
- local PlayersAlive = game.ReplicatedStorage.PlayersAlive
- PlayersAlive.Value = PlayersAlive.Value + 1
- teles = {}
- for nuum, obbj in pairs(cc) do
- if obbj.Name == "Tele" then
- table.insert (teles, obbj)
- end
- end
- wait()
- tele = teles[math.random(1,#teles)]
- x1 = tele.Position.X-(tele.Size.X/2)
- x2 = tele.Position.X+(tele.Size.X/2)
- z1 = tele.Position.Z-(tele.Size.Z/2)
- z2 = tele.Position.Z+(tele.Size.Z/2)
- obj.Character.Head.CFrame = CFrame.new(math.random(x1,x2),tele.Position.Y+5,math.random(z1,z2))
- if obj.character.Humanoid.WalkSpeed >= 0 then
- obj.Character.Humanoid.WalkSpeed = 0
- end
- RopeClone = RopeAttachment:Clone()
- RopeClone.Parent = game.Workspace
- obj.Character.Head.Rope.Attachment1 = game.Workspace.RopeAttachment.Attachment2
- end
- status.Value = "The game begins in: |||"
- wait(1)
- status.Value = "The game begins in: ||"
- wait(1)
- status.Value = "The game begins in: |"
- wait(1)
- status.Value = "Fight!"
- for _,obj in pairs(game.Players:GetChildren()) do
- SwordClone = game.ReplicatedStorage.LinkedSword:Clone()
- SwordClone.Parent = obj.Backpack
- obj.Character.Humanoid.WalkSpeed = 100
- end
- wait(1)
- while game.ReplicatedStorage.Game.Value == 0 do
- for c = 30, 0, -1 do
- if c == 30 then
- status.Value = "Game in Progress: ||||||||||||||||||||||||||||||"
- elseif c == 29 then
- status.Value = "Game in Progress: |||||||||||||||||||||||||||||"
- elseif c == 28 then
- status.Value = "Game in Progress: ||||||||||||||||||||||||||||"
- elseif c == 27 then
- status.Value = "Game in Progress: |||||||||||||||||||||||||||"
- elseif c == 26 then
- status.Value = "Game in Progress: ||||||||||||||||||||||||||"
- elseif c == 25 then
- status.Value = "Game in Progress: |||||||||||||||||||||||||"
- elseif c == 24 then
- status.Value = "Game in Progress: ||||||||||||||||||||||||"
- elseif c == 23 then
- status.Value = "Game in Progress: |||||||||||||||||||||||"
- elseif c == 22 then
- status.Value = "Game in Progress: ||||||||||||||||||||||"
- elseif c == 21 then
- status.Value = "Game in Progress: |||||||||||||||||||||"
- elseif c == 20 then
- status.Value = "Game in Progress: ||||||||||||||||||||"
- elseif c == 19 then
- status.Value = "Game in Progress: |||||||||||||||||||"
- elseif c == 18 then
- status.Value = "Game in Progress: ||||||||||||||||||"
- elseif c == 17 then
- status.Value = "Game in Progress: |||||||||||||||||"
- elseif c == 16 then
- status.Value = "Game in Progress: ||||||||||||||||"
- elseif c == 15 then
- status.Value = "Game in Progress: |||||||||||||||"
- elseif c == 14 then
- status.Value = "Game in Progress: ||||||||||||||"
- elseif c == 13 then
- status.Value = "Game in Progress: |||||||||||||"
- elseif c == 12 then
- status.Value = "Game in Progress: ||||||||||||"
- elseif c == 11 then
- status.Value = "Game in Progress: |||||||||||"
- elseif c == 10 then
- status.Value = "Game in Progress: ||||||||||"
- elseif c == 9 then
- status.Value = "Game in Progress: |||||||||"
- elseif c == 8 then
- status.Value = "Game in Progress: ||||||||"
- elseif c == 7 then
- status.Value = "Game in Progress: |||||||"
- elseif c == 6 then
- status.Value = "Game in Progress: ||||||"
- elseif c == 5 then
- status.Value = "Game in Progress: |||||"
- elseif c == 4 then
- status.Value = "Game in Progress: ||||"
- elseif c == 3 then
- status.Value = "Game in Progress: |||"
- elseif c == 2 then
- status.Value = "Game in Progress: ||"
- elseif c == 1 then
- status.Value = "Game in Progress: |"
- elseif c == 0 then
- status.Value = "Game in Progress: "
- end
- wait(1)
- local PlayersAlive = game.ReplicatedStorage.PlayersAlive
- if PlayersAlive.Value == 1 then
- game.ReplicatedStorage.Game.Value = 1
- break
- end
- if PlayersAlive.Value == 0 then
- game.ReplicatedStorage.Game.Value = 3
- break
- end
- if c == 0 then
- game.ReplicatedStorage.Game.Value = 2
- end
- end
- end
- if game.ReplicatedStorage.Game.Value == 1 then
- for _,obj in pairs(game.Players:GetChildren()) do
- if obj.Alive.Value == "Yes" then
- status.Value = obj.Name.." Won!"
- end
- end
- wait(2)
- status.Value = "They will recieve 1 win!"
- wait(2)
- for _,obj in pairs(game.Players:GetChildren()) do
- if obj.Alive.Value == "Yes" then
- for _,tool in pairs(obj.Backpack:GetChildren()) do
- tool:Remove()
- end
- for _,tool in pairs(obj.Character:GetChildren()) do
- if tool.className == "Tool" then
- tool:Remove()
- end
- end
- obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
- if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
- obj.Character.Head.Rope.Attachment1 = nil
- end
- end
- end
- end
- if game.ReplicatedStorage.Game.Value == 2 then
- status.Value = "Multiple players won!"
- wait(2)
- status.Value = "They will recieve a win!"
- wait(2)
- for _,obj in pairs(game.Players:GetChildren()) do
- if obj.Alive.Value == "Yes" then
- for _,tool in pairs(obj.Backpack:GetChildren()) do
- tool:Remove()
- end
- for _,tool in pairs(obj.Character:GetChildren()) do
- if tool.className == "Tool" then
- tool:Remove()
- end
- end
- obj.leaderstats.Wins.Value = obj.leaderstats.Wins.Value + 1
- if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
- obj.Character.Head.Rope.Attachment1 = nil
- end
- end
- end
- end
- if game.ReplicatedStorage.Game.Value == 3 then
- status.Value = "Nobody Won!"
- wait(2)
- status.Value = "Nobody recieves cash or wins!"
- wait(2)
- for _,obj in pairs(game.Players:GetChildren()) do
- if obj.Alive.Value == "Yes" then
- if obj.Character.Head.Rope.Attachment1 == game.Workspace.RopeAttachment.Attachment2 then
- obj.Character.Head.Rope.Attachment1 = nil
- for _,tool in pairs(obj.Backpack:GetChildren()) do
- tool:Remove()
- end
- for _,tool in pairs(obj.Character:GetChildren()) do
- if tool.className == "Tool" then
- tool:Remove()
- end
- end
- end
- end
- end
- end
- for _,obj in pairs(game.Players:GetChildren()) do
- obj.Alive.Value = "No"
- obj.T.Value = "Players"
- if obj.Character.Humanoid.WalkSpeed == 100 then
- obj.Character.Humanoid.WalkSpeed = 16
- end
- end
- game.ReplicatedStorage.PlayersAlive.Value = 0
- game.ReplicatedStorage.Game.Value = 0
- if game.Workspace:FindFirstChild("RopeAttachment") then
- RopeClone:Destroy()
- end
- if game.Workspace:FindFirstChild("Regular Map") or game.Workspace:FindFirstChild("Pyramid") or game.Workspace:FindFirstChild("Tree Land") then
- map1:Destroy()--
- end
- end--End of loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement