Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pid = 0
- local t = 0
- local playing = false
- local queue,queue2,alive = {},{},{}
- local themes = {}
- local main = nil
- local match_folder = Instance.new("Folder",script)
- local main_folder = Instance.new("Folder",script)
- local minigames = {
- function() -- bombs
- t = 30
- spawn(function()
- while playing do
- local b = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- b.CFrame = CFrame.new(69.8065262, 64.7206802, -383.746552, -0.999967933, -0.00797146745, -6.34748039e-06, -3.72146801e-12, -0.000796274282, 0.999999642, -0.00797146931, 0.999967694, 0.000796248845)
- b.Orientation = Vector3.new(-89.9499969, -0.460000008, -180)
- b.Position = Vector3.new(69.8065262, 64.7206802, -383.746552)
- b.Rotation = Vector3.new(-89.9499969, 0, 179.539993)
- b.Size = Vector3.new(2, 2, 2)
- b.BottomSurface = Enum.SurfaceType.Smooth
- b.Locked = true
- b.TopSurface = Enum.SurfaceType.Smooth
- b.FormFactor = Enum.FormFactor.Symmetric
- b.formFactor = Enum.FormFactor.Symmetric
- b.Shape = Enum.PartType.Ball
- SpecialMesh1.Parent = b
- SpecialMesh1.MeshId = "rbxasset://fonts/timebomb.mesh"
- SpecialMesh1.TextureId = "rbxasset://textures/bombtex.png"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- spawn(function()
- b.Position = main.Position+Vector3.new(math.random(-(main.Size.X-10)/2,(main.Size.X-10)/2),30,math.random(-(main.Size.Z-10)/2,(main.Size.Z-10)/2))
- b.Parent = match_folder
- wait(2)
- local r = 15
- local exp = Instance.new("Part")
- exp.Size = Vector3.new(r*2,r*2,r*2)
- exp.Anchored = true
- exp.CanCollide = false
- exp.Material = Enum.Material.Neon
- exp.Color = Color3.new(1,0,0)
- exp.Position = b.Position
- exp.Transparency = 0
- exp.Shape = Enum.PartType.Ball
- exp.Parent = match_folder
- game:GetService("TweenService"):Create(exp,TweenInfo.new(1),{Transparency = 1}):Play()
- local ex = Instance.new("Explosion")
- ex.BlastRadius = r
- ex.Position = b.Position
- ex.Visible = false
- ex.DestroyJointRadiusPercent = 0
- ex.Hit:Connect(function(obj,dist)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- ex.Parent = match_folder
- b:Destroy()
- local exs = Instance.new("Sound")
- exs.SoundId = 'rbxassetid://1060191237'
- exs.Parent = exp
- exs:Play()
- end)
- wait(0.4)
- end
- end)
- end;
- function() -- flood
- t = 20
- local TrussPart0 = Instance.new("TrussPart")
- local TrussPart1 = Instance.new("TrussPart")
- local TrussPart2 = Instance.new("TrussPart")
- local TrussPart3 = Instance.new("TrussPart")
- local TrussPart4 = Instance.new("TrussPart")
- local TrussPart5 = Instance.new("TrussPart")
- TrussPart0.Parent = match_folder
- TrussPart0.CFrame = CFrame.new(76.6699982, 23.0000114, -396.259979, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart0.Position = Vector3.new(76.6699982, 23.0000114, -396.259979)
- TrussPart0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart0.Size = Vector3.new(2, 46, 2)
- TrussPart0.Anchored = true
- TrussPart0.BackSurface = Enum.SurfaceType.Smooth
- TrussPart0.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart0.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart0.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart0.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart0.RightSurface = Enum.SurfaceType.Smooth
- TrussPart0.TopSurface = Enum.SurfaceType.Smooth
- TrussPart0.brickColor = BrickColor.new("Dark stone grey")
- TrussPart1.Parent = match_folder
- TrussPart1.CFrame = CFrame.new(42, 23, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart1.Position = Vector3.new(42, 23, -474.96994)
- TrussPart1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart1.Size = Vector3.new(2, 46, 2)
- TrussPart1.Anchored = true
- TrussPart1.BackSurface = Enum.SurfaceType.Smooth
- TrussPart1.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart1.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart1.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart1.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart1.RightSurface = Enum.SurfaceType.Smooth
- TrussPart1.TopSurface = Enum.SurfaceType.Smooth
- TrussPart1.brickColor = BrickColor.new("Dark stone grey")
- TrussPart2.Parent = match_folder
- TrussPart2.CFrame = CFrame.new(84, 23, -552.969971, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart2.Position = Vector3.new(84, 23, -552.969971)
- TrussPart2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart2.Size = Vector3.new(2, 46, 2)
- TrussPart2.Anchored = true
- TrussPart2.BackSurface = Enum.SurfaceType.Smooth
- TrussPart2.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart2.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart2.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart2.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart2.RightSurface = Enum.SurfaceType.Smooth
- TrussPart2.TopSurface = Enum.SurfaceType.Smooth
- TrussPart2.brickColor = BrickColor.new("Dark stone grey")
- TrussPart3.Parent = match_folder
- TrussPart3.CFrame = CFrame.new(-22, 23, -464.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart3.Position = Vector3.new(-22, 23, -464.96994)
- TrussPart3.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart3.Size = Vector3.new(2, 46, 2)
- TrussPart3.Anchored = true
- TrussPart3.BackSurface = Enum.SurfaceType.Smooth
- TrussPart3.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart3.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart3.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart3.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart3.RightSurface = Enum.SurfaceType.Smooth
- TrussPart3.TopSurface = Enum.SurfaceType.Smooth
- TrussPart3.brickColor = BrickColor.new("Dark stone grey")
- TrussPart4.Parent = match_folder
- TrussPart4.CFrame = CFrame.new(-66, 23, -558.969971, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart4.Position = Vector3.new(-66, 23, -558.969971)
- TrussPart4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart4.Size = Vector3.new(2, 46, 2)
- TrussPart4.Anchored = true
- TrussPart4.BackSurface = Enum.SurfaceType.Smooth
- TrussPart4.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart4.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart4.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart4.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart4.RightSurface = Enum.SurfaceType.Smooth
- TrussPart4.TopSurface = Enum.SurfaceType.Smooth
- TrussPart4.brickColor = BrickColor.new("Dark stone grey")
- TrussPart5.Parent = match_folder
- TrussPart5.CFrame = CFrame.new(-78, 23, -396.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TrussPart5.Position = Vector3.new(-78, 23, -396.96994)
- TrussPart5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart5.Size = Vector3.new(2, 46, 2)
- TrussPart5.Anchored = true
- TrussPart5.BackSurface = Enum.SurfaceType.Smooth
- TrussPart5.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart5.BrickColor = BrickColor.new("Dark stone grey")
- TrussPart5.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart5.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart5.RightSurface = Enum.SurfaceType.Smooth
- TrussPart5.TopSurface = Enum.SurfaceType.Smooth
- TrussPart5.brickColor = BrickColor.new("Dark stone grey")
- wait(6)
- local water = main:Clone()
- water.Transparency = 0.5
- water.Color = Color3.fromRGB(0, 255, 255)
- water.Material = Enum.Material.SmoothPlastic
- water.CanCollide = false
- water:ClearAllChildren()
- water.Parent = match_folder
- water.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum and not hum:FindFirstChild("Floating kry status") then
- local confirm = Instance.new("IntValue",hum)
- confirm.Name = "Floating kry status"
- game:GetService("Debris"):AddItem(confirm,0.5)
- local kb = 30
- local push = Instance.new("BodyVelocity",torso)
- push.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- --push.P = 5000
- push.Velocity = obj.CFrame.upVector*kb+Vector3.new(0,kb,0)
- game:GetService("Debris"):AddItem(push,0.1)
- end
- if hum and hum.Parent and not hum:FindFirstChild("Drowning kry status") then
- local confirm = Instance.new("IntValue",hum)
- confirm.Name = "Drowning kry status"
- game:GetService("Debris"):AddItem(confirm,0.1)
- hum:TakeDamage(10)
- end
- end)
- game:GetService("TweenService"):Create(water,TweenInfo.new(10),{Size = water.Size+Vector3.new(0,89,0)}):Play()
- end;
- function() -- nuke
- t = 15
- local pos = main.Position+Vector3.new(math.random(-(main.Size.X-50)/2,(main.Size.X-50)/2),0,math.random(-(main.Size.Z-50)/2,(main.Size.Z-50)/2))
- local dot = Instance.new("Part")
- dot.Size = Vector3.new(0.5,2,0.5)
- dot.Anchored = true
- dot.CanCollide = false
- dot.Material = Enum.Material.Neon
- dot.Position = pos
- dot.Color = Color3.new(1,0,0)
- dot.Parent = match_folder
- local al = Instance.new("Sound")
- al.Parent = main
- al.Volume = 10
- al.SoundId = "rbxassetid://1074331294"
- al.TimePosition = 3.99
- al:Play()
- repeat
- wait()
- until al == nil or al.TimePosition > 8.9
- al.TimePosition = 5.95
- wait(3.25)
- al.TimePosition = 5.95
- wait(3.25)
- al:Destroy()
- spawn(function()
- local r = 90
- dot:Destroy()
- local exp = Instance.new("Part")
- exp.Size = Vector3.new(r*2,r*2,r*2)
- exp.Anchored = true
- exp.CanCollide = false
- exp.Material = Enum.Material.Neon
- exp.Color = Color3.new(1,1,0)
- exp.Position = pos
- exp.Transparency = 0
- exp.Shape = Enum.PartType.Ball
- exp.Parent = match_folder
- game:GetService("TweenService"):Create(exp,TweenInfo.new(3),{Transparency = 1}):Play()
- local ex = Instance.new("Explosion")
- ex.BlastRadius = r
- ex.Position = pos
- ex.Visible = false
- ex.DestroyJointRadiusPercent = 0
- ex.Hit:Connect(function(obj,dist)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- ex.Parent = match_folder
- local exs = Instance.new("Sound")
- exs.SoundId = 'rbxassetid://2648563122'
- exs.Volume = 10
- exs.Parent = exp
- exs:Play()
- end)
- end;
- function() -- zombies
- t = 30
- local cf = CFrame.new;
- local ang = CFrame.Angles;
- local rad = math.rad;
- local sin = math.sin;
- local cos = math.cos;
- local function weld(parent, part0, part1, c0, c1)
- local newweld = Instance.new("Weld");
- newweld.Parent = parent;
- newweld.Part0 = part0;
- newweld.Part1 = part1;
- newweld.C0 = c0;
- newweld.C1 = c1;
- return newweld;
- end;
- local anim_ref = {
- Neck_C0 = cf(0, 1, 0) * ang(rad(-90), rad(0), rad(180));
- Neck_C1 = cf(0, -0.5, 0) * ang(rad(-90), rad(0), rad(180));
- Right_Shoulder_C0 = cf(1, 0.5, 0) * ang(rad(0), rad(90), rad(0));
- Right_Shoulder_C1 = cf(-0.5, 0.5, 0) * ang(rad(0), rad(90), rad(0));
- Left_Shoulder_C0 = cf(-1, 0.5, 0) * ang(rad(0), rad(-90), rad(0));
- Left_Shoulder_C1 = cf(0.5, 0.5, 0) * ang(rad(0), rad(-90), rad(0));
- Right_Hip_C0 = cf(1, -1, 0) * ang(rad(0), rad(90), rad(0));
- Right_Hip_C1 = cf(0.5, 1, 0) * ang(rad(0), rad(90), rad(0));
- Left_Hip_C0 = cf(-1, -1, 0) * ang(rad(0), rad(-90), rad(0));
- Left_Hip_C1 = cf(-0.5, 1, 0) * ang(rad(0), rad(-90), rad(0));
- };
- local walk_anim = {
- {
- Enum.EasingDirection.Out;
- anim_ref.Neck_C0;
- anim_ref.Right_Shoulder_C0 * ang(rad(0), rad(0), rad(100));
- anim_ref.Left_Shoulder_C0 * ang(rad(0), rad(0), rad(-90));
- anim_ref.Right_Hip_C0 * ang(rad(0), rad(0), rad(-30));
- anim_ref.Left_Hip_C0 * ang(rad(0), rad(0), rad(-30));
- };
- {
- Enum.EasingDirection.In;
- anim_ref.Neck_C0;
- anim_ref.Right_Shoulder_C0 * ang(rad(0), rad(0), rad(90));
- anim_ref.Left_Shoulder_C0 * ang(rad(0), rad(0), rad(-100));
- anim_ref.Right_Hip_C0 * ang(rad(0), rad(0), rad(0));
- anim_ref.Left_Hip_C0 * ang(rad(0), rad(0), rad(0));
- };
- {
- Enum.EasingDirection.Out;
- anim_ref.Neck_C0;
- anim_ref.Right_Shoulder_C0 * ang(rad(0), rad(0), rad(80));
- anim_ref.Left_Shoulder_C0 * ang(rad(0), rad(0), rad(-90));
- anim_ref.Right_Hip_C0 * ang(rad(0), rad(0), rad(30));
- anim_ref.Left_Hip_C0 * ang(rad(0), rad(0), rad(30));
- };
- {
- Enum.EasingDirection.InOut;
- anim_ref.Neck_C0;
- anim_ref.Right_Shoulder_C0 * ang(rad(0), rad(0), rad(90));
- anim_ref.Left_Shoulder_C0 * ang(rad(0), rad(0), rad(-80));
- anim_ref.Right_Hip_C0 * ang(rad(0), rad(0), rad(0));
- anim_ref.Left_Hip_C0 * ang(rad(0), rad(0), rad(0));
- };
- };
- local function tween_joint(joint, easing_direction, animation_data)
- local tween_data = TweenInfo.new(
- 0.1,
- Enum.EasingStyle.Sine,
- easing_direction,
- 0,
- false
- );
- local new_tween = game:GetService("TweenService"):Create(
- joint,
- tween_data,
- {C0 = animation_data}
- );
- new_tween:Play();
- end;
- local function animate_joints(table_1, table_2)
- for Integer = 1, #table_1 do
- local Joint = table_1[Integer];
- local Joint_Easing_Direction = table_2[1];
- local Joint_Animation = table_2[Integer + 1];
- tween_joint(Joint, Joint_Easing_Direction, Joint_Animation)
- end;
- end;
- --\/--
- local function create_zombie(walkspeed,health)
- local function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k == "script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func, newenv)
- return func
- end
- local cors = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- local Decal3 = Instance.new("Decal")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Humanoid9 = Instance.new("Humanoid")
- local Script10 = Instance.new("Script")
- Model0.Name = "Zombie"
- Model0.Parent = mas
- Model0.PrimaryPart = Part1
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(14.4682684, 4.49999714, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(14.4682684, 4.49999714, 13.7751303)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.CanCollide = false
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really red")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal3.Name = "face"
- Decal3.Parent = Part1
- Decal3.Texture = "rbxassetid://319473813"
- Part4.Name = "Torso"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(14.4682684, 2.99999905, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(14.4682684, 2.99999905, 13.7751303)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Size = Vector3.new(2, 2, 1)
- Part4.BrickColor = BrickColor.new("Brown")
- Part4.CanCollide = false
- Part4.LeftParamA = 0
- Part4.LeftParamB = 0
- Part4.LeftSurface = Enum.SurfaceType.Smooth
- Part4.RightParamA = 0
- Part4.RightParamB = 0
- Part4.RightSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really red")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Part5.Name = "Left Arm"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(12.9682684, 2.99999905, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(12.9682684, 2.99999905, 13.7751303)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(1, 2, 1)
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.CanCollide = false
- Part5.brickColor = BrickColor.new("Really red")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Name = "Right Arm"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(15.9682684, 2.99999905, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(15.9682684, 2.99999905, 13.7751303)
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part6.Size = Vector3.new(1, 2, 1)
- Part6.BrickColor = BrickColor.new("Really black")
- Part6.CanCollide = false
- Part6.brickColor = BrickColor.new("Really red")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "Left Leg"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(13.9682684, 1, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(13.9682684, 1, 13.7751303)
- Part7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part7.Size = Vector3.new(1, 2, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Really black")
- Part7.CanCollide = false
- Part7.brickColor = BrickColor.new("Really red")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "Right Leg"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(14.9682684, 1, 13.7751303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(14.9682684, 1, 13.7751303)
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part8.Size = Vector3.new(1, 2, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really black")
- Part8.CanCollide = false
- Part8.brickColor = BrickColor.new("Really red")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- -- @ Brannon1964802
- local Weld11 = weld(Part4, Part4, Part1, anim_ref.Neck_C0, anim_ref.Neck_C1); -- head
- local Weld12 = weld(Part4, Part4, Part5, anim_ref.Right_Shoulder_C0, anim_ref.Right_Shoulder_C1); -- right arm
- local Weld13 = weld(Part4, Part4, Part6, anim_ref.Left_Shoulder_C0, anim_ref.Left_Shoulder_C1); -- left arm
- local Weld14 = weld(Part4, Part4, Part7, anim_ref.Right_Hip_C0, anim_ref.Right_Hip_C1); -- right leg
- local Weld15 = weld(Part4, Part4, Part8, anim_ref.Left_Hip_C0, anim_ref.Left_Hip_C1); -- left leg
- local joints_table = {
- Weld11; -- Neck
- Weld12; -- Right Shoulder
- Weld13; -- Left Shoulder
- Weld14; -- Right Hip
- Weld15; -- Left Hip
- };
- local anim_num = Random.new():NextInteger(1, 4);
- --
- Humanoid9.WalkSpeed = walkspeed
- Humanoid9.AutoJumpEnabled = true
- Humanoid9.Parent = Model0
- Humanoid9.LeftLeg = Part7
- Humanoid9.RightLeg = Part8
- Humanoid9.Torso = Part4
- Script10.Parent = Humanoid9
- local jumpcol = Instance.new("Part",Humanoid9)
- jumpcol.Size = Vector3.new(4,5,2)
- jumpcol.Anchored = false
- jumpcol.CanCollide = false
- jumpcol.Transparency = 1
- local jumpweld = Instance.new("Weld")
- jumpweld.Parent = Part4
- jumpweld.Part0 = Part4
- jumpweld.Part1 = jumpcol
- jumpweld.C0 = Part4.CFrame:Inverse()
- jumpweld.C1 = jumpcol.CFrame:Inverse()
- jumpweld.C0 = CFrame.new(0,0,-2)
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- jumpcol.Touched:Connect(function(obj)
- if obj.Parent:IsA("Humanoid") or obj.Parent:IsA("Accessory") or obj.Parent:FindFirstChildOfClass("Humanoid") or obj.Parent == v.Character or obj.Parent.Name == "Zombie" then return end
- Humanoid9.Jump = true
- end)
- end
- local dead = false
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = false
- v.Touched:Connect(function(obj)
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- if table.find(alive,hum) then else return end
- if hum ~= nil and not dead then
- if hum.Parent.Name == "Zombie" then return end
- hum.MaxHealth = 100
- hum:TakeDamage(1)
- end
- end)
- end
- end
- local zombie = Instance.new("Sound",Part4)
- zombie.SoundId = "rbxassetid://575382784"
- zombie.Volume = .5
- zombie.Looped = true
- zombie:Play()
- zombie.TimePosition = math.random(0,38)
- Humanoid9.Died:Connect(
- function()
- dead = true
- zombie:Destroy()
- game:GetService("Debris"):AddItem(Model0,3)
- end
- )
- table.insert(
- cors,
- sandbox(
- Script10,
- function()
- local function target(pos)
- local list = game.Workspace:GetChildren()
- local torso = nil
- local dist = 250
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2.Name ~= "Zombie") then
- temp = temp2:FindFirstChild("HumanoidRootPart")
- human = temp2:FindFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- spawn(
- function()
- while wait(.25) do
- if not dead then
- local target = target(script.Parent.Parent.Head.Position)
- local hum = target.Parent:FindFirstChildOfClass("Humanoid")
- if target and hum and table.find(alive,hum) then
- script.Parent:MoveTo(target.Position)
- end
- end
- end
- end
- )
- -- @ Brannon1964802
- spawn(
- function()
- while not (dead) do
- wait(0.1)
- if anim_num < 4 then
- anim_num = anim_num + 1;
- else
- anim_num = 1;
- end
- animate_joints(joints_table, walk_anim[anim_num]);
- end;
- end
- );
- --
- end
- )
- )
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = match_folder
- end
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = match_folder
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Model0.PrimaryPart.CFrame = CFrame.new(main.Position+Vector3.new(math.random(-(main.Size.X-10)/2,(main.Size.X-10)/2),10,math.random(-(main.Size.Z-10)/2,(main.Size.Z-10)/2)))
- end
- local tools = {}
- spawn(function()
- while playing do
- create_zombie(14,25)
- wait(2.5)
- end
- for i,v in ipairs(tools) do
- v:Destroy()
- end
- end)
- for i,v in pairs(alive) do
- local char = v.Parent
- local Tool0 = Instance.new("Tool")
- table.insert(tools,1,Tool0)
- local Part1 = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- local Sound3 = Instance.new("Sound")
- local Sound4 = Instance.new("Sound")
- local Sound5 = Instance.new("Sound")
- Tool0.Name = "ClassicSword"
- --Tool0.Parent = char
- Tool0.TextureId = "rbxasset://Textures/Sword128.png"
- Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(214.957138, 4.28734684, -190.317474, 0.0910440385, -0.881099463, 0.464084357, 0.537011683, 0.435894847, 0.722229123, -0.838648558, 0.183463722, 0.512845576)
- Part1.Orientation = Vector3.new(-46.2400017, 42.1399994, 50.9300003)
- Part1.Position = Vector3.new(214.957138, 4.28734684, -190.317474)
- Part1.Rotation = Vector3.new(-54.6199989, 27.6499996, 84.0999985)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Size = Vector3.new(1, 0.800000012, 4)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Locked = true
- Part1.Reflectance = 0.40000000596046
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dark stone grey")
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.formFactor = Enum.FormFactor.Plate
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxasset://fonts/sword.mesh"
- SpecialMesh2.TextureId = "rbxasset://textures/SwordTexture.png"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Sound3.Name = "SwordSlash"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=12222216"
- Sound3.Volume = 0.69999998807907
- Sound4.Name = "SwordLunge"
- Sound4.Parent = Part1
- Sound4.SoundId = "http://www.roblox.com/asset/?id=12222208"
- Sound4.Volume = 0.60000002384186
- Sound5.Name = "Unsheath"
- Sound5.Parent = Part1
- Sound5.SoundId = "http://www.roblox.com/asset/?id=12222225"
- Sound5.Volume = 1
- local Tool = Tool0
- local Handle = Tool:WaitForChild("Handle")
- Tool.Parent = char
- local function Create(ty)
- return function(data)
- local obj = Instance.new(ty)
- for k, v in pairs(data) do
- if type(k) == 'number' then
- v.Parent = obj
- else
- obj[k] = v
- end
- end
- return obj
- end
- end
- local BaseUrl = "rbxassetid://"
- local Players = game:GetService("Players")
- local Debris = game:GetService("Debris")
- local RunService = game:GetService("RunService")
- local DamageValues = {
- BaseDamage = 5,
- SlashDamage = 10,
- LungeDamage = 30
- }
- --For R15 avatars
- local Animations = {
- R15Slash = 522635514,
- R15Lunge = 522638767
- }
- local Damage = DamageValues.BaseDamage
- local Grips = {
- Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
- Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- }
- local Sounds = {
- Slash = Handle:WaitForChild("SwordSlash"),
- Lunge = Handle:WaitForChild("SwordLunge"),
- Unsheath = Handle:WaitForChild("Unsheath")
- }
- local ToolEquipped = false
- --For Omega Rainbow Katana thumbnail to display a lot of particles.
- for i, v in pairs(Handle:GetChildren()) do
- if v:IsA("ParticleEmitter") then
- v.Rate = 20
- end
- end
- Tool.Grip = Grips.Up
- Tool.Enabled = true
- local function CheckIfAlive()
- return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
- end
- local function IsTeamMate(Player1, Player2)
- return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
- end
- local function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- local function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- local function Blow(Hit)
- if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
- return
- end
- local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
- if not RightArm then
- return
- end
- local RightGrip = RightArm:FindFirstChild("RightGrip")
- if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
- return
- end
- local character = Hit.Parent
- if character == Character then
- return
- end
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if not humanoid or humanoid.Health == 0 then
- return
- end
- local player = Players:GetPlayerFromCharacter(character)
- if player and ((player == Player) or table.find(alive,humanoid)) then
- return
- end
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid:TakeDamage(Damage)
- end
- local function Attack()
- Damage = DamageValues.SlashDamage
- Sounds.Slash:Play()
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Slash")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- end
- local function Lunge()
- Damage = DamageValues.LungeDamage
- Sounds.Lunge:Play()
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Lunge")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- wait(0.2)
- Tool.Grip = Grips.Out
- wait(0.6)
- Tool.Grip = Grips.Up
- Damage = DamageValues.SlashDamage
- end
- Tool.Enabled = true
- local LastAttack = 0
- local function Activated()
- if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
- return
- end
- Tool.Enabled = false
- local Tick = RunService.Stepped:wait()
- if (Tick - LastAttack < 0.2) then
- Lunge()
- else
- Attack()
- end
- LastAttack = Tick
- --wait(0.5)
- Damage = DamageValues.BaseDamage
- local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
- Name = "R15Slash",
- AnimationId = BaseUrl .. Animations.R15Slash,
- Parent = Tool
- })
- local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
- Name = "R15Lunge",
- AnimationId = BaseUrl .. Animations.R15Lunge,
- Parent = Tool
- })
- Tool.Enabled = true
- end
- local function Equipped()
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
- if not CheckIfAlive() then
- return
- end
- ToolEquipped = true
- Sounds.Unsheath:Play()
- end
- local function Unequipped()
- Tool.Grip = Grips.Up
- ToolEquipped = false
- end
- Tool.Activated:Connect(Activated)
- Tool.Equipped:Connect(Equipped)
- Tool.Unequipped:Connect(Unequipped)
- local Connection = Handle.Touched:Connect(Blow)
- end
- end;
- function() -- X Beam
- t = 10
- local rot = CFrame.Angles(0,0,0)
- if math.random(1,2) == 1 then
- rot = CFrame.Angles(0,0,0)
- else
- rot = CFrame.Angles(0,math.rad(45),0)
- end
- local Part0 = Instance.new("Part")
- local Part1 = Instance.new("Part")
- Part0.Parent = match_folder
- Part0.CFrame = CFrame.new(0, 9.3999996, -474.96994, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part0.Orientation = Vector3.new(0, -90, 0)
- Part0.Position = Vector3.new(0, 9.3999996, -474.96994)
- Part0.Rotation = Vector3.new(0, -90, 0)
- Part0.Color = Color3.new(1, 0, 0)
- Part0.Size = Vector3.new(200, 1.20000005, 2)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Really red")
- Part0.Material = Enum.Material.Concrete
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Really red")
- Part1.Parent = match_folder
- Part1.CFrame = CFrame.new(0, 9.3999996, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(0, 9.3999996, -474.96994)
- Part1.Color = Color3.new(1, 0, 0)
- Part1.Size = Vector3.new(200, 1.20000005, 2)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Really red")
- Part1.Material = Enum.Material.Concrete
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really red")
- Part0.Anchored = true
- Part0.CanCollide = false
- Part1.Anchored = true
- Part1.CanCollide = false
- Part0.CFrame = Part0.CFrame*rot
- Part1.CFrame = Part1.CFrame*rot
- --
- wait(5)
- Part0:Destroy()
- Part1:Destroy()
- local b1 = Instance.new("Part")
- local b2 = Instance.new("Part")
- b1.Parent = match_folder
- b1.CFrame = CFrame.new(0, 9.3999996, -474.96994, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- b1.Orientation = Vector3.new(0, -90, 0)
- b1.Position = Vector3.new(0, 9.3999996, -474.96994)
- b1.Rotation = Vector3.new(0, -90, 0)
- b1.Color = Color3.new(1, 0, 0)
- b1.Size = Vector3.new(250, 50, 50)
- b1.BottomSurface = Enum.SurfaceType.Smooth
- b1.BrickColor = BrickColor.new("Really red")
- b1.Material = Enum.Material.Neon
- b1.TopSurface = Enum.SurfaceType.Smooth
- b1.brickColor = BrickColor.new("Really red")
- b1.Shape = Enum.PartType.Cylinder
- b2.Parent = match_folder
- b2.CFrame = CFrame.new(0, 9.3999996, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- b2.Position = Vector3.new(0, 9.3999996, -474.96994)
- b2.Color = Color3.new(1, 0, 0)
- b2.Size = Vector3.new(250, 50, 50)
- b2.BottomSurface = Enum.SurfaceType.Smooth
- b2.BrickColor = BrickColor.new("Really red")
- b2.Material = Enum.Material.Neon
- b2.TopSurface = Enum.SurfaceType.Smooth
- b2.brickColor = BrickColor.new("Really red")
- b2.Shape = Enum.PartType.Cylinder
- b1.CFrame = b1.CFrame*rot
- b2.CFrame = b2.CFrame*rot
- b1.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- b2.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- b1.Anchored = true
- b2.Anchored = true
- b1.CanCollide = false
- b2.CanCollide = false
- local exs = Instance.new("Sound")
- exs.SoundId = 'rbxassetid://1906350651'
- exs.Volume = 5
- exs.Parent = b1
- exs:Play()
- local exs = Instance.new("Sound")
- exs.SoundId = 'rbxassetid://1906350651'
- exs.Volume = 5
- exs.Parent = b2
- exs:Play()
- game:GetService("TweenService"):Create(b1,TweenInfo.new(3),{Transparency = 1}):Play()
- game:GetService("TweenService"):Create(b2,TweenInfo.new(3),{Transparency = 1}):Play()
- game:GetService("Debris"):AddItem(b1,3)
- game:GetService("Debris"):AddItem(b2,3)
- end;
- function() -- button of death walls
- t = 20
- local bp = Instance.new("Part")
- local CylinderMesh1 = Instance.new("CylinderMesh")
- local press = Instance.new("Part")
- local CylinderMesh3 = Instance.new("CylinderMesh")
- bp.Parent = match_folder
- bp.CFrame = CFrame.new(-0.280818999, 0.910803974, -474.927887, -1, 7.19989831e-20, 5.96046448e-08, 7.19989767e-20, 1, -9.98901304e-20, -5.96046448e-08, -9.9890124e-20, -1)
- bp.Orientation = Vector3.new(0, 180, 0)
- bp.Position = Vector3.new(-0.280818999, 0.910803974, -474.927887)
- bp.Rotation = Vector3.new(180, 0, -180)
- bp.Color = Color3.new(0.803922, 0.803922, 0.803922)
- bp.Size = Vector3.new(22.7698441, 1.82158768, 27.3238144)
- bp.Anchored = true
- bp.BottomSurface = Enum.SurfaceType.Smooth
- bp.BrickColor = BrickColor.new("Mid gray")
- bp.TopSurface = Enum.SurfaceType.Smooth
- bp.brickColor = BrickColor.new("Mid gray")
- CylinderMesh1.Parent = bp
- press.Parent = match_folder
- press.CFrame = CFrame.new(-0.280818999, 4.50740194, -474.927887, 5.96046519e-08, -7.20652351e-20, -1, -9.98186956e-20, 1, -7.20652416e-20, 1, 9.98187021e-20, 5.96046519e-08)
- press.Orientation = Vector3.new(0, -90, 0)
- press.Position = Vector3.new(-0.280818999, 4.50740194, -474.927887)
- press.Rotation = Vector3.new(0, -90, 0)
- press.Color = Color3.new(1, 0, 0)
- press.Size = Vector3.new(18.2158756, 5.46476269, 22.7698441)
- press.Anchored = true
- press.BrickColor = BrickColor.new("Really red")
- press.TopSurface = Enum.SurfaceType.Smooth
- press.brickColor = BrickColor.new("Really red")
- CylinderMesh3.Parent = press
- CylinderMesh3.Offset = Vector3.new(0, -0.200000003, 0)
- CylinderMesh3.Scale = Vector3.new(1, 0.699999988, 1.39999998)
- local pressed = false
- press.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if not pressed then
- pressed = true
- local k1 = Instance.new("Part")
- local k2 = Instance.new("Part")
- local k3 = Instance.new("Part")
- local k4 = Instance.new("Part")
- k1.Anchored = true
- k2.Anchored = true
- k3.Anchored = true
- k4.Anchored = true
- k1.CanCollide = false
- k2.CanCollide = false
- k3.CanCollide = false
- k4.CanCollide = false
- k1.Parent = match_folder
- k1.CFrame = CFrame.new(80, 36.9000015, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- k1.Position = Vector3.new(80, 36.9000015, -474.96994)
- k1.Color = Color3.new(1, 0, 0)
- k1.Transparency = 0.60000002384186
- k1.Size = Vector3.new(90, 76.1999969, 250)
- k1.BottomSurface = Enum.SurfaceType.Smooth
- k1.BrickColor = BrickColor.new("Really red")
- k1.Material = Enum.Material.Concrete
- k1.TopSurface = Enum.SurfaceType.Smooth
- k1.brickColor = BrickColor.new("Really red")
- k2.Parent = match_folder
- k2.CFrame = CFrame.new(0, 36.9000015, -554.969971, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- k2.Position = Vector3.new(0, 36.9000015, -554.969971)
- k2.Color = Color3.new(1, 0, 0)
- k2.Transparency = 0.60000002384186
- k2.Size = Vector3.new(250, 76.1999969, 90)
- k2.BottomSurface = Enum.SurfaceType.Smooth
- k2.BrickColor = BrickColor.new("Really red")
- k2.Material = Enum.Material.Concrete
- k2.TopSurface = Enum.SurfaceType.Smooth
- k2.brickColor = BrickColor.new("Really red")
- k3.Parent = match_folder
- k3.CFrame = CFrame.new(-80, 36.9000015, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- k3.Position = Vector3.new(-80, 36.9000015, -474.96994)
- k3.Color = Color3.new(1, 0, 0)
- k3.Transparency = 0.60000002384186
- k3.Size = Vector3.new(90, 76.1999969, 250)
- k3.BottomSurface = Enum.SurfaceType.Smooth
- k3.BrickColor = BrickColor.new("Really red")
- k3.Material = Enum.Material.Concrete
- k3.TopSurface = Enum.SurfaceType.Smooth
- k3.brickColor = BrickColor.new("Really red")
- k4.Parent = match_folder
- k4.CFrame = CFrame.new(0, 36.9000015, -394.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- k4.Position = Vector3.new(0, 36.9000015, -394.96994)
- k4.Color = Color3.new(1, 0, 0)
- k4.Transparency = 0.60000002384186
- k4.Size = Vector3.new(250, 76.1999969, 90)
- k4.BottomSurface = Enum.SurfaceType.Smooth
- k4.BrickColor = BrickColor.new("Really red")
- k4.Material = Enum.Material.Concrete
- k4.TopSurface = Enum.SurfaceType.Smooth
- k4.brickColor = BrickColor.new("Really red")
- k1.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- k2.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- k3.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- k4.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- end
- end)
- end;
- function() -- tsunami
- t = 10
- local tsunami = Instance.new("Model")
- tsunami.Parent = match_folder
- local p = Instance.new("Part")
- local ParticleEmitter1 = Instance.new("ParticleEmitter")
- local ParticleEmitter2 = Instance.new("ParticleEmitter")
- local ParticleEmitter3 = Instance.new("ParticleEmitter")
- local ParticleEmitter4 = Instance.new("ParticleEmitter")
- local ParticleEmitter5 = Instance.new("ParticleEmitter")
- local ManualWeld6 = Instance.new("ManualWeld")
- local WedgePart7 = Instance.new("WedgePart")
- local WedgePart8 = Instance.new("WedgePart")
- p.Parent = tsunami
- p.CFrame = CFrame.new(-0.0450058207, -2.98210955, -591.788696, -0.99999994, -2.90431785e-08, 1.33582034e-12, -2.7930291e-08, 0.961724818, -0.27401641, 7.93741606e-09, -0.27401644, -0.961724877)
- p.Orientation = Vector3.new(15.8999996, 180, 0)
- p.Position = Vector3.new(-0.0450058207, -2.98210955, -591.788696)
- p.Rotation = Vector3.new(164.100006, 0, 180)
- p.Color = Color3.new(1, 0.686275, 0)
- p.Transparency = 1
- p.Size = Vector3.new(247.520096, 0.199999139, 2.80000019)
- p.Anchored = true
- p.BottomSurface = Enum.SurfaceType.Smooth
- p.BrickColor = BrickColor.new("Deep orange")
- p.CanCollide = false
- p.Locked = true
- p.Material = Enum.Material.SmoothPlastic
- p.TopSurface = Enum.SurfaceType.Smooth
- p.brickColor = BrickColor.new("Deep orange")
- p.FormFactor = Enum.FormFactor.Symmetric
- p.formFactor = Enum.FormFactor.Symmetric
- ParticleEmitter1.Parent = p
- ParticleEmitter1.Speed = NumberRange.new(10, 10)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.901961, 1, 1),Color3.new(0.901961, 1, 1))
- ParticleEmitter1.LightEmission = 0.30000001192093
- ParticleEmitter1.LightInfluence = 0.30000001192093
- ParticleEmitter1.Texture = "rbxassetid://241685484"
- ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter1.ZOffset = 0.30000001192093
- ParticleEmitter1.Acceleration = Vector3.new(5, 0, 0)
- ParticleEmitter1.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter1.Rate = 111
- ParticleEmitter1.RotSpeed = NumberRange.new(260, 260)
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Parent = p
- ParticleEmitter2.Speed = NumberRange.new(10, 10)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.796078, 0.992157, 1),Color3.new(0.796078, 0.992157, 1))
- ParticleEmitter2.LightEmission = 0.30000001192093
- ParticleEmitter2.LightInfluence = 0.30000001192093
- ParticleEmitter2.Texture = "rbxassetid://241685484"
- ParticleEmitter2.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter2.ZOffset = 0.30000001192093
- ParticleEmitter2.Acceleration = Vector3.new(5, 0, 0)
- ParticleEmitter2.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter2.Rate = 111
- ParticleEmitter2.RotSpeed = NumberRange.new(260, 260)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- ParticleEmitter3.Parent = p
- ParticleEmitter3.Speed = NumberRange.new(10, 10)
- ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.843137, 1, 0.992157),Color3.new(0.843137, 1, 0.992157))
- ParticleEmitter3.LightEmission = 0.30000001192093
- ParticleEmitter3.LightInfluence = 0.30000001192093
- ParticleEmitter3.Texture = "rbxassetid://241685484"
- ParticleEmitter3.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter3.ZOffset = 0.30000001192093
- ParticleEmitter3.Acceleration = Vector3.new(5, 0, 0)
- ParticleEmitter3.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter3.Rate = 111
- ParticleEmitter3.RotSpeed = NumberRange.new(260, 260)
- ParticleEmitter3.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter3.VelocitySpread = 360
- ParticleEmitter4.Parent = p
- ParticleEmitter4.Speed = NumberRange.new(10, 10)
- ParticleEmitter4.LightEmission = 0.30000001192093
- ParticleEmitter4.LightInfluence = 0.30000001192093
- ParticleEmitter4.Texture = "rbxassetid://241685484"
- ParticleEmitter4.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter4.ZOffset = 0.30000001192093
- ParticleEmitter4.Acceleration = Vector3.new(5, 0, 0)
- ParticleEmitter4.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter4.Rate = 111
- ParticleEmitter4.RotSpeed = NumberRange.new(260, 260)
- ParticleEmitter4.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter4.VelocitySpread = 360
- ParticleEmitter5.Parent = p
- ParticleEmitter5.Speed = NumberRange.new(10, 10)
- ParticleEmitter5.LightEmission = 0.30000001192093
- ParticleEmitter5.LightInfluence = 0.30000001192093
- ParticleEmitter5.Texture = "rbxassetid://241685484"
- ParticleEmitter5.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter5.ZOffset = 0.30000001192093
- ParticleEmitter5.Acceleration = Vector3.new(5, 0, 0)
- ParticleEmitter5.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter5.Rate = 111
- ParticleEmitter5.RotSpeed = NumberRange.new(260, 260)
- ParticleEmitter5.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter5.VelocitySpread = 360
- ManualWeld6.Name = "Part Terrain Joint"
- ManualWeld6.Parent = p
- ManualWeld6.Part1 = p
- ManualWeld6.part1 = p
- WedgePart7.Parent = tsunami
- WedgePart7.CFrame = CFrame.new(0.00999999978, -22.0264359, -584.304749, -1, 0, 0, 0, 0.707106829, 0.707106829, 0, 0.707106829, -0.707106829)
- WedgePart7.Orientation = Vector3.new(-45, 180, 0)
- WedgePart7.Position = Vector3.new(0.00999999978, -22.0264359, -584.304749)
- WedgePart7.Rotation = Vector3.new(-135, 0, -180)
- WedgePart7.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- WedgePart7.Size = Vector3.new(247.989975, 21.9099865, 39.3700066)
- WedgePart7.Anchored = true
- WedgePart7.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart7.BrickColor = BrickColor.new("Electric blue")
- WedgePart7.CanCollide = false
- WedgePart7.Locked = true
- WedgePart7.brickColor = BrickColor.new("Electric blue")
- WedgePart8.Parent = tsunami
- WedgePart8.CFrame = CFrame.new(0.00999999978, -35.5200043, -584.7948, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- WedgePart8.Orientation = Vector3.new(0, 180, 0)
- WedgePart8.Position = Vector3.new(0.00999999978, -35.5200043, -584.7948)
- WedgePart8.Rotation = Vector3.new(-180, 0, -180)
- WedgePart8.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- WedgePart8.Size = Vector3.new(247.989975, 41.4599915, 39.6200027)
- WedgePart8.Anchored = true
- WedgePart8.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart8.BrickColor = BrickColor.new("Electric blue")
- WedgePart8.CanCollide = false
- WedgePart8.Locked = true
- WedgePart8.brickColor = BrickColor.new("Electric blue")
- for i,v in pairs(tsunami:GetChildren()) do
- if v:IsA("BasePart") and v ~= p then
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = v
- w.C0 = p.CFrame:Inverse()
- w.C1 = v.CFrame:Inverse()
- v.Anchored = false
- w.Parent = v
- v.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- end
- end
- p.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- local exs = Instance.new("Sound")
- exs.SoundId = 'rbxassetid://898059911'
- exs.Volume = 7
- exs.Parent = p
- exs:Play()
- spawn(function()
- game:GetService("TweenService"):Create(p,TweenInfo.new(5),{Position = Vector3.new(0,44.11, -439.31)}):Play()
- wait(5)
- game:GetService("TweenService"):Create(p,TweenInfo.new(4),{Position = Vector3.new(0,-11.17, -390.3)}):Play()
- wait(4)
- end)
- end;
- function() -- moving pillar beams
- t = 12
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local Model5 = Instance.new("Model")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- Model0.Name = "p2"
- Model0.Parent = match_folder
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(111.279999, 40, -529.589966, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part1.Orientation = Vector3.new(0, 180, 90)
- Part1.Position = Vector3.new(111.279999, 40, -529.589966)
- Part1.Rotation = Vector3.new(-180, 0, -90)
- Part1.Color = Color3.new(1, 0, 0)
- Part1.Size = Vector3.new(80, 15, 15)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Really red")
- Part1.Material = Enum.Material.Neon
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really red")
- Part1.Shape = Enum.PartType.Cylinder
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(111.279999, 40, -589.589966, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part2.Orientation = Vector3.new(0, 180, 90)
- Part2.Position = Vector3.new(111.279999, 40, -589.589966)
- Part2.Rotation = Vector3.new(-180, 0, -90)
- Part2.Color = Color3.new(1, 0, 0)
- Part2.Size = Vector3.new(80, 15, 15)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really red")
- Part2.Material = Enum.Material.Neon
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really red")
- Part2.Shape = Enum.PartType.Cylinder
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(111.279999, 40, -469.589935, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part3.Orientation = Vector3.new(0, 180, 90)
- Part3.Position = Vector3.new(111.279999, 40, -469.589935)
- Part3.Rotation = Vector3.new(-180, 0, -90)
- Part3.Color = Color3.new(1, 0, 0)
- Part3.Size = Vector3.new(80, 15, 15)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really red")
- Part3.Material = Enum.Material.Neon
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really red")
- Part3.Shape = Enum.PartType.Cylinder
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(111.279999, 40, -409.589935, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part4.Orientation = Vector3.new(0, 180, 90)
- Part4.Position = Vector3.new(111.279999, 40, -409.589935)
- Part4.Rotation = Vector3.new(-180, 0, -90)
- Part4.Color = Color3.new(1, 0, 0)
- Part4.Size = Vector3.new(80, 15, 15)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really red")
- Part4.Material = Enum.Material.Neon
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really red")
- Part4.Shape = Enum.PartType.Cylinder
- Model5.Name = "p1"
- Model5.Parent = match_folder
- Part6.Parent = Model5
- Part6.CFrame = CFrame.new(-113.720001, 40, -559.589966, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part6.Orientation = Vector3.new(0, 180, 90)
- Part6.Position = Vector3.new(-113.720001, 40, -559.589966)
- Part6.Rotation = Vector3.new(-180, 0, -90)
- Part6.Color = Color3.new(1, 0, 0)
- Part6.Size = Vector3.new(80, 15, 15)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Really red")
- Part6.Material = Enum.Material.Neon
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Really red")
- Part6.Shape = Enum.PartType.Cylinder
- Part7.Parent = Model5
- Part7.CFrame = CFrame.new(-113.720001, 40, -499.589935, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part7.Orientation = Vector3.new(0, 180, 90)
- Part7.Position = Vector3.new(-113.720001, 40, -499.589935)
- Part7.Rotation = Vector3.new(-180, 0, -90)
- Part7.Color = Color3.new(1, 0, 0)
- Part7.Size = Vector3.new(80, 15, 15)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Really red")
- Part7.Material = Enum.Material.Neon
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Really red")
- Part7.Shape = Enum.PartType.Cylinder
- Part8.Parent = Model5
- Part8.CFrame = CFrame.new(-113.720001, 40, -439.589935, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part8.Orientation = Vector3.new(0, 180, 90)
- Part8.Position = Vector3.new(-113.720001, 40, -439.589935)
- Part8.Rotation = Vector3.new(-180, 0, -90)
- Part8.Color = Color3.new(1, 0, 0)
- Part8.Size = Vector3.new(80, 15, 15)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really red")
- Part8.Material = Enum.Material.Neon
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Really red")
- Part8.Shape = Enum.PartType.Cylinder
- Part9.Parent = Model5
- Part9.CFrame = CFrame.new(-113.720001, 40, -379.589935, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part9.Orientation = Vector3.new(0, 180, 90)
- Part9.Position = Vector3.new(-113.720001, 40, -379.589935)
- Part9.Rotation = Vector3.new(-180, 0, -90)
- Part9.Color = Color3.new(1, 0, 0)
- Part9.Size = Vector3.new(80, 15, 15)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Really red")
- Part9.Material = Enum.Material.Neon
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Really red")
- Part9.Shape = Enum.PartType.Cylinder
- for i,v in pairs(Model0:GetChildren()) do
- v.Anchored = true
- v.CanCollide = false
- v.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- end
- for i,v in pairs(Model5:GetChildren()) do
- v.Anchored = true
- v.CanCollide = false
- v.Touched:Connect(function(obj)
- if not obj:IsDescendantOf(script) then else return end
- local char = obj.Parent
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if table.find(alive,hum) then else return end
- if torso and hum then
- hum:TakeDamage(1/0)
- char:BreakJoints()
- end
- end)
- end
- spawn(function()
- wait(2)
- for i = 1,5 do
- for i,v in pairs(Model0:GetChildren()) do
- game:GetService("TweenService"):Create(v,TweenInfo.new(1),{CFrame = v.CFrame*CFrame.new(0,-225,0)}):Play()
- end
- for i,v in pairs(Model5:GetChildren()) do
- game:GetService("TweenService"):Create(v,TweenInfo.new(1),{CFrame = v.CFrame*CFrame.new(0,225,0)}):Play()
- end
- wait(1)
- for i,v in pairs(Model0:GetChildren()) do
- game:GetService("TweenService"):Create(v,TweenInfo.new(1),{CFrame = v.CFrame*CFrame.new(0,225,0)}):Play()
- end
- for i,v in pairs(Model5:GetChildren()) do
- game:GetService("TweenService"):Create(v,TweenInfo.new(1),{CFrame = v.CFrame*CFrame.new(0,-225,0)}):Play()
- end
- wait(1)
- end
- end)
- end;
- }
- function create_base()
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- Model0.Name = "Walls"
- Model0.Parent = main_folder
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(124.5, 36.9000015, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(124.5, 36.9000015, -474.96994)
- Part1.Transparency = 0.60000002384186
- Part1.Size = Vector3.new(1, 76, 250)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(0, 36.9000015, -350.46994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(0, 36.9000015, -350.46994)
- Part2.Transparency = 0.60000002384186
- Part2.Size = Vector3.new(250, 76, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-124.5, 36.9000015, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-124.5, 36.9000015, -474.96994)
- Part3.Transparency = 0.60000002384186
- Part3.Size = Vector3.new(1, 76, 250)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(0, 36.9000015, -599.469971, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(0, 36.9000015, -599.469971)
- Part4.Transparency = 0.60000002384186
- Part4.Size = Vector3.new(250, 76, 1)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part5.Name = "Main"
- Part5.Parent = main_folder
- Part5.CFrame = CFrame.new(0, -0.600000024, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(0, -0.600000024, -474.96994)
- Part5.Size = Vector3.new(250, 1.20000005, 250)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.Material = Enum.Material.Concrete
- Part5.TopSurface = Enum.SurfaceType.Smooth
- local roof = Instance.new("Part")
- roof.Name = "Roof"
- roof.Parent = main_folder
- roof.CFrame = CFrame.new(0, 74.4000015, -474.96994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- roof.Position = Vector3.new(0, 74.4000015, -474.96994)
- roof.Transparency = 0.60000002384186
- roof.Size = Vector3.new(250, 1.20000005, 250)
- roof.BottomSurface = Enum.SurfaceType.Smooth
- roof.TopSurface = Enum.SurfaceType.Smooth
- main = Part5
- for i,v in ipairs(main_folder:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Anchored = true
- v.CanCollide = true
- v.Locked = true
- end
- end
- end
- function create_theme()
- local themes = {1450664955,576075040,188865181,182677060,1287355926,4462782259,893350377,452771968}
- local tid = math.random(1,#themes)
- local theme = Instance.new("Sound")
- theme.SoundId = 'rbxassetid://' .. themes[tid]
- theme.Volume = 3
- theme.Parent = main
- spawn(function()
- while true do
- wait()
- theme.SoundId = 'rbxassetid://' .. themes[tid]
- theme:Play()
- repeat wait(1) until not theme.IsPlaying
- tid = tid + 1
- if tid > #themes then
- tid = 1
- end
- end
- end)
- end
- function create_queue()
- local Part0 = Instance.new("Part")
- local SurfaceGui1 = Instance.new("SurfaceGui")
- local TextLabel2 = Instance.new("TextBox")
- local ScrollingFrame3 = Instance.new("ScrollingFrame")
- local UIListLayout4 = Instance.new("UIListLayout")
- Part0.Name = "Queue"
- Part0.Parent = main_folder
- Part0.Position = Vector3.new(0.25, 4.5, -348.97)
- Part0.Size = Vector3.new(16, 9, 2)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Anchored = true
- Part0.Locked = true
- SurfaceGui1.Parent = Part0
- SurfaceGui1.LightInfluence = 1
- SurfaceGui1.Face = Enum.NormalId.Back
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- SurfaceGui1.PixelsPerStud = 100
- SurfaceGui1.Adornee = Part0
- TextLabel2.Name = "Title"
- TextLabel2.Parent = SurfaceGui1
- TextLabel2.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextLabel2.BackgroundColor = BrickColor.new("Dirt brown")
- TextLabel2.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "N/A"
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- ScrollingFrame3.Parent = SurfaceGui1
- ScrollingFrame3.Position = UDim2.new(0, 0, 0.200000003, 0)
- ScrollingFrame3.Size = UDim2.new(1, 0, 0.600000024, 0)
- ScrollingFrame3.Active = true
- ScrollingFrame3.BackgroundColor = BrickColor.new("Dark grey metallic")
- ScrollingFrame3.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
- UIListLayout4.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout4.Parent = ScrollingFrame3
- local p1 = Instance.new("Part")
- local SurfaceGui1 = Instance.new("SurfaceGui")
- local TextButton2 = Instance.new("TextBox")
- local normal = Instance.new("ClickDetector")
- local SurfaceGui5 = Instance.new("SurfaceGui")
- local TextLabel6 = Instance.new("TextLabel")
- local ScrollingFrame7 = Instance.new("ScrollingFrame")
- local UIListLayout8 = Instance.new("UIListLayout")
- local TextButton9 = Instance.new("TextBox")
- local p2 = Instance.new("Part")
- local SurfaceGui11 = Instance.new("SurfaceGui")
- local TextButton12 = Instance.new("TextBox")
- local hard = Instance.new("ClickDetector")
- p1.Name = "Join"
- p1.Parent = main_folder
- p1.Position = Vector3.new(4.25, 0.905, -348.865)
- p1.Size = Vector3.new(8, 1.8099997, 2.2099998)
- p1.Anchored = true
- p1.BottomSurface = Enum.SurfaceType.Smooth
- p1.Locked = true
- p1.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui1.Parent = p1
- SurfaceGui1.LightInfluence = 1
- SurfaceGui1.Face = Enum.NormalId.Back
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- SurfaceGui1.PixelsPerStud = 100
- SurfaceGui1.Adornee = p1
- TextButton2.Name = "Normal"
- TextButton2.Parent = SurfaceGui1
- TextButton2.Size = UDim2.new(1, 0, 1, 0)
- TextButton2.BackgroundColor = BrickColor.new("Lime green")
- TextButton2.BackgroundColor3 = Color3.new(0, 1, 0)
- TextButton2.BorderSizePixel = 0
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.FontSize = Enum.FontSize.Size14
- TextButton2.Text = "NORMAL MODE"
- TextButton2.TextColor = BrickColor.new("Institutional white")
- TextButton2.TextColor3 = Color3.new(1, 1, 1)
- TextButton2.TextScaled = true
- TextButton2.TextSize = 14
- TextButton2.TextWrap = true
- TextButton2.TextWrapped = true
- normal.Parent = p1
- p2.Name = "Join"
- p2.Parent = main_folder
- p2.Position = Vector3.new(-3.75, 0.905, -348.865)
- p2.Size = Vector3.new(8, 1.8099997, 2.2099998)
- p2.Anchored = true
- p2.BottomSurface = Enum.SurfaceType.Smooth
- p2.Locked = true
- p2.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui11.Parent = p2
- SurfaceGui11.LightInfluence = 1
- SurfaceGui11.Face = Enum.NormalId.Back
- SurfaceGui11.ClipsDescendants = true
- SurfaceGui11.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui11.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- SurfaceGui11.PixelsPerStud = 100
- SurfaceGui11.Adornee = p2
- TextButton12.Name = "Hard"
- TextButton12.Parent = SurfaceGui11
- TextButton12.Size = UDim2.new(1, 0, 1, 0)
- TextButton12.BackgroundColor = BrickColor.new("Really red")
- TextButton12.BackgroundColor3 = Color3.new(1, 0, 0)
- TextButton12.BorderSizePixel = 0
- TextButton12.Font = Enum.Font.SourceSans
- TextButton12.FontSize = Enum.FontSize.Size14
- TextButton12.Text = "HARD MODE"
- TextButton12.TextColor = BrickColor.new("Institutional white")
- TextButton12.TextColor3 = Color3.new(1, 1, 1)
- TextButton12.TextScaled = true
- TextButton12.TextSize = 14
- TextButton12.TextWrap = true
- TextButton12.TextWrapped = true
- hard.Parent = p2
- return Part0,p1,p2,hard,normal,TextLabel2,ScrollingFrame3
- end
- function create_alive()
- local Part0 = Instance.new("Part")
- local SurfaceGui1 = Instance.new("SurfaceGui")
- local TextLabel2 = Instance.new("TextBox")
- local ScrollingFrame3 = Instance.new("ScrollingFrame")
- local UIListLayout4 = Instance.new("UIListLayout")
- Part0.Name = "Alive"
- Part0.Parent = main_folder
- Part0.CFrame = CFrame.new(18.5000134, 4.50000811, -348.969788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(18.5000134, 4.50000811, -348.969788)
- Part0.Size = Vector3.new(16, 9, 2)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui1.Parent = Part0
- SurfaceGui1.LightInfluence = 1
- SurfaceGui1.Face = Enum.NormalId.Back
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.Adornee = Part0
- SurfaceGui1.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- SurfaceGui1.PixelsPerStud = 100
- TextLabel2.Name = "Title"
- TextLabel2.Parent = SurfaceGui1
- TextLabel2.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextLabel2.BackgroundColor = BrickColor.new("Dirt brown")
- TextLabel2.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "Alive List"
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- ScrollingFrame3.Parent = SurfaceGui1
- ScrollingFrame3.Position = UDim2.new(0, 0, 0.200000003, 0)
- ScrollingFrame3.Size = UDim2.new(1, 0, 0.800000012, 0)
- ScrollingFrame3.Active = true
- ScrollingFrame3.BackgroundColor = BrickColor.new("Dark grey metallic")
- ScrollingFrame3.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
- UIListLayout4.Parent = ScrollingFrame3
- UIListLayout4.SortOrder = Enum.SortOrder.LayoutOrder
- return TextLabel2,ScrollingFrame3
- end
- function update_queue(scroll)
- for i,v in pairs(scroll:GetChildren()) do
- if not v:IsA("UIListLayout") then
- v:Destroy()
- end
- end
- for i,v in ipairs(queue) do
- if v and v.plr then
- local pt = Instance.new("TextBox")
- pt.Name = "Player"
- pt.Parent = scroll
- pt.Size = UDim2.new(1, 0, 0, 150)
- pt.BackgroundColor = BrickColor.new("Dark grey")
- pt.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
- pt.BorderColor = BrickColor.new("Institutional white")
- pt.BorderColor3 = Color3.new(1, 1, 1)
- pt.BorderSizePixel = 0
- pt.Font = Enum.Font.SourceSans
- pt.FontSize = Enum.FontSize.Size14
- pt.Text = v.plr.Name
- if v.mode == 1 then
- pt.TextColor3 = Color3.new(0, 1, 0)
- elseif v.mode == 2 then
- pt.TextColor3 = Color3.new(1, 0, 0)
- end
- pt.TextScaled = true
- pt.TextSize = 14
- pt.TextWrap = true
- pt.TextWrapped = true
- end
- end
- end
- function update_alive_list(title,scroll)
- for i,v in pairs(scroll:GetChildren()) do
- if not v:IsA("UIListLayout") then
- v:Destroy()
- end
- end
- for i,v in ipairs(alive) do
- if v and v.Parent and v.Health > 0 then
- local pt = Instance.new("TextBox")
- pt.Name = "Player"
- pt.Parent = scroll
- pt.Size = UDim2.new(1, 0, 0, 150)
- pt.BackgroundColor = BrickColor.new("Dark grey")
- pt.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
- pt.BorderColor = BrickColor.new("Institutional white")
- pt.BorderColor3 = Color3.new(1, 1, 1)
- pt.BorderSizePixel = 0
- pt.Font = Enum.Font.SourceSans
- pt.FontSize = Enum.FontSize.Size14
- local errored,reason = pcall(function()
- pt.Text = game:GetService("Players"):GetPlayerFromCharacter(v.Parent).Name
- end)
- pt.TextScaled = true
- pt.TextSize = 14
- pt.TextWrap = true
- pt.TextWrapped = true
- if errored then
- pt:Destroy()
- end
- end
- end
- title.Text = "Alive List("..#alive..")"
- end
- function update_alive()
- for i,v in pairs(alive) do
- if v and v.Parent and v.Health > 0 then
- v.WalkSpeed = 16
- --v.MaxHealth = 100 or 1
- v.JumpPower = 50
- v.BreakJointsOnDeath = true
- local char = v.Parent
- local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- if char then
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Tool") and v.Name ~= 'ClassicSword' then
- v:Destroy()
- end
- end
- end
- if plr then
- for i,v in pairs(plr:FindFirstChildOfClass("Backpack"):GetChildren()) do
- if v:IsA("Tool") and v.Name ~= 'ClassicSword' then
- v:Destroy()
- end
- end
- end
- else
- table.remove(alive,i)
- end
- end
- end
- function start()
- spawn(function()
- playing = true
- wait(1)
- local mid = math.random(1,#minigames)
- spawn(function()
- minigames[mid]()
- end)
- repeat wait(); until t > 0;
- repeat wait(1); t = t - 1; update_alive(); until 0 >= t or 0 >= #alive
- match_folder:ClearAllChildren()
- playing = false
- end)
- end
- function start_queue(title)
- repeat wait(1); title.Text = "Match in progress(" .. tostring(t) .. ")"; update_alive(); until not playing;
- title.Text = "Waiting for players.."
- repeat wait(1); update_alive(); until #queue >= 1 or #alive >= 1
- for i = 10,1,-1 do
- title.Text = "Intermission(" .. tostring(i) .. ")"
- wait(1)
- end
- for i,v in pairs(queue2) do
- if v then
- local char = v.Character
- if char then
- local hum,torso
- pcall(function()
- torso = char:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- hum = char:FindFirstChildOfClass("Humanoid")
- end)
- if torso and hum and hum.Health > 0 then
- torso.CFrame = CFrame.new(main.Position+Vector3.new(math.random(-(main.Size.X-10)/2,(main.Size.X-10)/2),30,math.random(-(main.Size.Z-10)/2,(main.Size.Z-10)/2)))
- table.insert(alive,1,hum)
- end
- end
- end
- end
- for i,v in ipairs(queue) do
- if v.plr then
- local char = v.plr.Character
- if char then
- local hum,torso
- pcall(function()
- torso = char:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- hum = char:FindFirstChildOfClass("Humanoid")
- end)
- if torso and hum and hum.Health > 0 then
- hum.Died:Connect(function()
- table.remove(alive,table.find(alive,hum))
- end)
- end
- end
- end
- table.remove(queue,i)
- end
- for i,v in pairs(queue2) do
- queue2[i] = nil
- end
- start()
- start_queue(title)
- end
- function create_check()
- spawn(function()
- game:GetService("RunService").Heartbeat:Connect(function()
- local rg = Region3.new(Vector3.new(0, 36.9, -474.97)-(Vector3.new(250, 76.2, 250)/2.1),main.Position+(Vector3.new(250, 76.2, 250)/2.1))
- local objs = workspace:FindPartsInRegion3WithIgnoreList(rg,{script})
- for i,v in pairs(objs) do
- if not v:IsDescendantOf(script) then else continue end
- local char = v.Parent
- local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- local hum = char:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Head")
- if plr and torso and hum and not table.find(alive,hum) then
- torso.CFrame = CFrame.new(math.random(-10,30), 5.5, -335)
- continue;
- end
- end
- end)
- end)
- end
- function setup_game(timer,pos,size)
- local part,p1,p2,hard,normal,title,scroll = create_queue()
- local ps = game:GetService("PhysicsService")
- pcall(function()
- ps:CreateCollisionGroup("plr char kry")
- end)
- ps:CollisionGroupSetCollidable("plr char kry","plr char kry",false)
- normal.MouseClick:Connect(function(plr)
- local found = false
- for i,v in ipairs(queue) do
- if v.plr.Name == plr.Name then
- --if v.mode ~= 1 then
- queue[i].mode = 1
- found = true
- --[[
- else
- return
- end
- ]]
- end
- end
- local char = plr.Character
- local hum
- if char then
- hum = char:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("HumanoidRootPart")
- if hum and torso then
- queue2[torso] = plr
- hum.MaxHealth = 100
- hum.Health = 100
- for i,v in ipairs(char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- ps:SetPartCollisionGroup(v,"plr char kry")
- end
- end
- end
- end
- if not found then
- local n = #queue+1
- table.insert(queue,n,{plr = plr,mode = 1})
- end
- update_queue(scroll)
- end)
- hard.MouseClick:Connect(function(plr)
- local found = false
- for i,v in ipairs(queue) do
- if v.plr.Name == plr.Name then
- --if v.mode ~= 2 then
- queue[i].mode = 2
- found = true
- --[[
- else
- return
- end
- ]]
- end
- end
- local char = plr.Character
- local hum
- if char then
- hum = char:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("HumanoidRootPart")
- if hum and torso then
- queue2[torso] = plr
- hum.MaxHealth = 1
- hum.Health = 1
- for i,v in ipairs(char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- ps:SetPartCollisionGroup(v,"plr char kry")
- elseif v:IsA("ForceField") then
- v:Destroy()
- end
- end
- end
- end
- if not found then
- local n = #queue+1
- table.insert(queue,n,{plr = plr,mode = 2})
- end
- update_queue(scroll)
- end)
- create_check()
- create_base()
- create_theme()
- local title2,scroll2 = create_alive()
- spawn(function()
- while wait(0.5) do
- update_queue(scroll)
- update_alive_list(title2,scroll2)
- end
- end)
- start_queue(title)
- end
- setup_game()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement