Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local slam = Instance.new("Sound")
- slam.Volume = 2
- slam.PlayOnRemove = true
- slam.PlaybackSpeed = 0.5
- slam.SoundId = "rbxassetid://7463779780"
- local db = false
- local finish = false
- CreateRegion3FromLocAndSize = function(Position, Size)
- local SizeOffset = Size / 2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- return Region3.new(Point1, Point2)
- end
- function door()
- if not db then
- db = true
- local jp,ws,ro = owner.Character.Humanoid.JumpPower,owner.Character.Humanoid.WalkSpeed,owner.Character.Humanoid.AutoRotate
- owner.Character.Humanoid.WalkSpeed = 0
- owner.Character.Humanoid.JumpPower = 0
- owner.Character.Humanoid.AutoRotate = false
- local part = Instance.new("Part",script)
- part.Anchored = true
- part.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-2.25,-7.75,-3)
- part.Size = Vector3.new(0.125,6.5,0.5)
- local part2 = Instance.new("Part",script)
- part2.Anchored = true
- part2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(2.25,-7.75,-3)
- part2.Size = Vector3.new(0.125,6.5,0.5)
- local part3 = Instance.new("Part",script)
- part3.Anchored = true
- part3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,-4.438,-3)
- part3.Size = Vector3.new(4.625,0.125,0.5)
- local part4 = Instance.new("Part",script)
- part4.Anchored = true
- part4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,-7.75,-3)
- part4.Size = Vector3.new(4.425,6.5,0.125)
- local part5 = Instance.new("Part",script)
- part5.Anchored = true
- part5.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(1,-6.25,-3)
- part5.Size = Vector3.new(1.5,2.5,0.1875)
- local part6 = Instance.new("Part",script)
- part6.Anchored = true
- part6.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1,-6.25,-3)
- part6.Size = Vector3.new(1.5,2.5,0.1875)
- local part7 = Instance.new("Part",script)
- part7.Anchored = true
- part7.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(1,-9.5,-3)
- part7.Size = Vector3.new(1.5,2.5,0.1875)
- local part8 = Instance.new("Part",script)
- part8.Anchored = true
- part8.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1,-9.5,-3)
- part8.Size = Vector3.new(1.5,2.5,0.1875)
- local part9 = Instance.new("Part",script)
- part9.Anchored = true
- part9.Shape = "Cylinder"
- part9.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1.25,-7.875,-3) * CFrame.Angles(0,math.rad(90),0)
- part9.Size = Vector3.new(0.1875,0.25,0.25)
- part.Material = "SmoothPlastic"
- part2.Material = "SmoothPlastic"
- part3.Material = "SmoothPlastic"
- part4.Material = "Wood"
- part5.Material = "Wood"
- part6.Material = "Wood"
- part7.Material = "Wood"
- part8.Material = "Wood"
- part.Color = Color3.fromRGB(56, 56, 56)
- part2.Color = Color3.fromRGB(56, 56, 56)
- part3.Color = Color3.fromRGB(56, 56, 56)
- part4.Color = Color3.fromRGB(99, 65, 0)
- part5.Color = Color3.fromRGB(92, 60, 0)
- part6.Color = Color3.fromRGB(92, 60, 0)
- part7.Color = Color3.fromRGB(92, 60, 0)
- part8.Color = Color3.fromRGB(92, 60, 0)
- local partta = {part,part2,part3,part4,part5,part6,part7,part8,part9}
- local partta2 = {part,part2,part3}
- function welconst(par1,par2)
- local weld = Instance.new("WeldConstraint",par1)
- weld.Part1 = par1
- weld.Part0 = par2
- par2.Anchored = false
- end
- welconst(part4,part5)
- welconst(part4,part6)
- welconst(part4,part7)
- welconst(part4,part8)
- welconst(part4,part9)
- part4.Anchored = false
- local weld = Instance.new("Weld",part2)
- weld.Part0 = part4
- weld.Part1 = part2
- weld.C1 = CFrame.new(-0.125,0,-2.25)
- weld.C0 = CFrame.new(2.175,0,-2.25)
- wait(0.125)
- for i,v in pairs(partta2) do
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.CFrame = object.CFrame * CFrame.new(0,8,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- end
- wait(0.125)
- local rightarm = Instance.new("Weld", owner.Character.Torso)
- rightarm.Part0 = owner.Character.Torso
- rightarm.Part1 = owner.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5, 0.75, 0)
- rightarm.C1 = CFrame.new(0,0.7,0)
- rightarm.Name = "f"
- local leftarm = Instance.new("Weld", owner.Character.Torso)
- leftarm.Part0 = owner.Character.Torso
- leftarm.Part1 = owner.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5, 0.75, 0)
- leftarm.C1 = CFrame.new(0,0.7,0)
- leftarm.Name = "e"
- local rightleg = Instance.new("Weld", owner.Character.Torso)
- rightleg.Part0 = owner.Character.Torso
- rightleg.Part1 = owner.Character["Right Leg"]
- rightleg.C0 = CFrame.new(0.5,-1,0)
- rightleg.C1 = CFrame.new(0,1,0)
- rightleg.Name = "d"
- local leftleg = Instance.new("Weld", owner.Character.Torso)
- leftleg.Part0 = owner.Character.Torso
- leftleg.Part1 = owner.Character["Left Leg"]
- leftleg.C0 = CFrame.new(-0.5,-1,0)
- leftleg.C1 = CFrame.new(0,1,0)
- leftleg.Name = "c"
- owner.Character.Humanoid.RequiresNeck = false
- local head = Instance.new("Weld", owner.Character.Torso)
- head.Part0 = owner.Character.Torso
- head.Part1 = owner.Character.Head
- head.C0 = CFrame.new(0, 1.5, 0)
- head.C1 = CFrame.new(0,0,0)
- head.Name = "b"
- local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
- humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
- humanoidrootpart.Part1 = owner.Character.Torso
- humanoidrootpart.Name = "a"
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = rightleg
- local object2 = humanoidrootpart
- local object3 = rightarm
- local object4 = leftleg
- local object5 = leftarm
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal3 = {}
- goal3.C0 = CFrame.new(0.5, -1, 0.25) * CFrame.Angles(math.rad(-25),0,0)
- local tween3 = tweenService:Create(object, tweenInfo, goal3)
- local goal4 = {}
- goal4.C0 = CFrame.new(0, 0, -0.35) * CFrame.Angles(math.rad(-15),0,math.rad(-10))
- local tween4 = tweenService:Create(object2, tweenInfo, goal4)
- local goal5 = {}
- goal5.C0 = CFrame.new(1, 0.5, -1.125) * CFrame.Angles(math.rad(140),0,0) * CFrame.Angles(0,0,math.rad(-55))
- local tween5 = tweenService:Create(object3, tweenInfo, goal5)
- local goal8 = {}
- goal8.C0 = CFrame.new(-0.65, -1, -0.25) * CFrame.Angles(math.rad(25),0,math.rad(10))
- local tween8 = tweenService:Create(object4, tweenInfo, goal8)
- local goal10 = {}
- goal10.C0 = CFrame.new(-1.5, 0.5, 0.85) * CFrame.Angles(math.rad(80),0,0) * CFrame.Angles(0,0,math.rad(-105))
- local tween10 = tweenService:Create(object5, tweenInfo, goal10)
- tween3:Play()
- tween4:Play()
- tween5:Play()
- tween8:Play()
- tween10:Play()
- tween3.Completed:Wait()
- wait(0.25)
- local timeToFade = 0.25
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(55),0,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.C0 = CFrame.new(0, 0, 0.35) * CFrame.Angles(math.rad(35),0,math.rad(10))
- local tween2 = tweenService:Create(object2, tweenInfo, goal2)
- local goal6 = {}
- goal6.C0 = CFrame.new(1.5, 0.5, 0.85) * CFrame.Angles(math.rad(80),0,0) * CFrame.Angles(0,0,math.rad(105))
- local tween6 = tweenService:Create(object3, tweenInfo, goal6)
- local goal7 = {}
- goal7.C0 = CFrame.new(-0.5, -1, 0.25) * CFrame.Angles(math.rad(-35),0,math.rad(-10))
- local tween7 = tweenService:Create(object4, tweenInfo, goal7)
- local goal9 = {}
- goal9.C0 = CFrame.new(-1, 0.25, -1.125) * CFrame.Angles(math.rad(140),0,0) * CFrame.Angles(0,0,math.rad(55))
- local tween9 = tweenService:Create(object5, tweenInfo, goal9)
- tween:Play()
- tween2:Play()
- tween6:Play()
- tween7:Play()
- tween9:Play()
- tween9.Completed:Connect(function()
- finish = true
- end)
- wait(0.15)
- finish = false
- slam.Parent = part4
- slam.PlaybackSpeed = 0.5
- slam.Parent = nil
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0725
- local object = weld
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Exponential,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.Angles(0,math.rad(90),0)
- local tween11 = tweenService:Create(object, tweenInfo, goal)
- tween11:Play()
- local donthit = {owner.Character}
- while not finish do
- task.wait()
- local ps = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
- local reg = CreateRegion3FromLocAndSize(ps.p, Vector3.new(10, 10, 6.5))
- for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, donthit, math.huge * -math.huge)) do
- if v.Parent:FindFirstChildWhichIsA("Humanoid") and not table.find(donthit,v.Parent) then
- v.Parent:FindFirstChildWhichIsA("Humanoid").Health -= 78
- local yy = Instance.new("BodyVelocity")
- yy.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- yy.Velocity = CFrame.new(v.Parent:FindFirstChildWhichIsA("Part").Position,part4.Position).lookVector * -40 + Vector3.new(0,15,0)
- yy.Parent = v.Parent:FindFirstChildWhichIsA("Part")
- game.Debris:AddItem(yy,0.6)
- spawn(function()
- while wait(0.1) do
- yy.Velocity = yy.Velocity - Vector3.new(5,5,0)
- end
- end)
- table.insert(donthit,v.Parent)
- end
- end
- end
- wait(0.5)
- for i,v in pairs(partta) do
- local tweenService = game:GetService("TweenService")
- local timeToFade = 2.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,2.175)
- end
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Weld") then
- if v.Name == "a" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new()
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "b" then
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "c" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(-0.5,-1,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "d" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(0.5,-1,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "e" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(-1.5,0.75,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "f" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(1.5,0.75,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- end
- end
- end
- wait(0.175)
- owner.Character.Humanoid.WalkSpeed = ws
- owner.Character.Humanoid.JumpPower = jp
- owner.Character.Humanoid.AutoRotate = ro
- wait(1.5)
- db = false
- end
- end
- function quickdoor()
- if not db then
- db = true
- local jp,ws,ro = owner.Character.Humanoid.JumpPower,owner.Character.Humanoid.WalkSpeed,owner.Character.Humanoid.AutoRotate
- owner.Character.Humanoid.WalkSpeed = 0
- owner.Character.Humanoid.JumpPower = 0
- owner.Character.Humanoid.AutoRotate = false
- local part = Instance.new("Part",script)
- part.Anchored = true
- part.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-2.25,-7.75,-3)
- part.Size = Vector3.new(0.125,6.5,0.5)
- local part2 = Instance.new("Part",script)
- part2.Anchored = true
- part2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(2.25,-7.75,-3)
- part2.Size = Vector3.new(0.125,6.5,0.5)
- local part3 = Instance.new("Part",script)
- part3.Anchored = true
- part3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,-4.438,-3)
- part3.Size = Vector3.new(4.625,0.125,0.5)
- local part4 = Instance.new("Part",script)
- part4.Anchored = true
- part4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,-7.75,-3)
- part4.Size = Vector3.new(4.425,6.5,0.125)
- local part5 = Instance.new("Part",script)
- part5.Anchored = true
- part5.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(1,-6.25,-3)
- part5.Size = Vector3.new(1.5,2.5,0.1875)
- local part6 = Instance.new("Part",script)
- part6.Anchored = true
- part6.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1,-6.25,-3)
- part6.Size = Vector3.new(1.5,2.5,0.1875)
- local part7 = Instance.new("Part",script)
- part7.Anchored = true
- part7.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(1,-9.5,-3)
- part7.Size = Vector3.new(1.5,2.5,0.1875)
- local part8 = Instance.new("Part",script)
- part8.Anchored = true
- part8.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1,-9.5,-3)
- part8.Size = Vector3.new(1.5,2.5,0.1875)
- local part9 = Instance.new("Part",script)
- part9.Anchored = true
- part9.Shape = "Cylinder"
- part9.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-1.25,-7.875,-3) * CFrame.Angles(0,math.rad(90),0)
- part9.Size = Vector3.new(0.1875,0.25,0.25)
- part.Material = "SmoothPlastic"
- part2.Material = "SmoothPlastic"
- part3.Material = "SmoothPlastic"
- part4.Material = "Wood"
- part5.Material = "Wood"
- part6.Material = "Wood"
- part7.Material = "Wood"
- part8.Material = "Wood"
- part.Color = Color3.fromRGB(56, 56, 56)
- part2.Color = Color3.fromRGB(56, 56, 56)
- part3.Color = Color3.fromRGB(56, 56, 56)
- part4.Color = Color3.fromRGB(99, 65, 0)
- part5.Color = Color3.fromRGB(92, 60, 0)
- part6.Color = Color3.fromRGB(92, 60, 0)
- part7.Color = Color3.fromRGB(92, 60, 0)
- part8.Color = Color3.fromRGB(92, 60, 0)
- local partta = {part,part2,part3,part4,part5,part6,part7,part8,part9}
- local partta2 = {part,part2,part3}
- function welconst(par1,par2)
- local weld = Instance.new("WeldConstraint",par1)
- weld.Part1 = par1
- weld.Part0 = par2
- par2.Anchored = false
- end
- welconst(part4,part5)
- welconst(part4,part6)
- welconst(part4,part7)
- welconst(part4,part8)
- welconst(part4,part9)
- part4.Anchored = false
- local weld = Instance.new("Weld",part2)
- weld.Part0 = part4
- weld.Part1 = part2
- weld.C1 = CFrame.new(-0.125,0,-2.25)
- weld.C0 = CFrame.new(2.175,0,-2.25)
- wait(0.0625)
- for i,v in pairs(partta2) do
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0625
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.CFrame = object.CFrame * CFrame.new(0,8,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- end
- wait(0.0625)
- local rightarm = Instance.new("Weld", owner.Character.Torso)
- rightarm.Part0 = owner.Character.Torso
- rightarm.Part1 = owner.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5, 0.75, 0)
- rightarm.C1 = CFrame.new(0,0.7,0)
- rightarm.Name = "f"
- local leftarm = Instance.new("Weld", owner.Character.Torso)
- leftarm.Part0 = owner.Character.Torso
- leftarm.Part1 = owner.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5, 0.75, 0)
- leftarm.C1 = CFrame.new(0,0.7,0)
- leftarm.Name = "e"
- local rightleg = Instance.new("Weld", owner.Character.Torso)
- rightleg.Part0 = owner.Character.Torso
- rightleg.Part1 = owner.Character["Right Leg"]
- rightleg.C0 = CFrame.new(0.5,-1,0)
- rightleg.C1 = CFrame.new(0,1,0)
- rightleg.Name = "d"
- local leftleg = Instance.new("Weld", owner.Character.Torso)
- leftleg.Part0 = owner.Character.Torso
- leftleg.Part1 = owner.Character["Left Leg"]
- leftleg.C0 = CFrame.new(-0.5,-1,0)
- leftleg.C1 = CFrame.new(0,1,0)
- leftleg.Name = "c"
- owner.Character.Humanoid.RequiresNeck = false
- local head = Instance.new("Weld", owner.Character.Torso)
- head.Part0 = owner.Character.Torso
- head.Part1 = owner.Character.Head
- head.C0 = CFrame.new(0, 1.5, 0)
- head.C1 = CFrame.new(0,0,0)
- head.Name = "b"
- local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
- humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
- humanoidrootpart.Part1 = owner.Character.Torso
- humanoidrootpart.Name = "a"
- local tweenService = game:GetService("TweenService")
- local object = rightleg
- local object2 = humanoidrootpart
- local object3 = rightarm
- local object4 = leftleg
- local object5 = leftarm
- local timeToFade = 0.25
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(55),0,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.C0 = CFrame.new(0, 0, 0.35) * CFrame.Angles(math.rad(35),0,math.rad(10))
- local tween2 = tweenService:Create(object2, tweenInfo, goal2)
- local goal6 = {}
- goal6.C0 = CFrame.new(1.5, 0.5, 0.85) * CFrame.Angles(math.rad(80),0,0) * CFrame.Angles(0,0,math.rad(105))
- local tween6 = tweenService:Create(object3, tweenInfo, goal6)
- local goal7 = {}
- goal7.C0 = CFrame.new(-0.5, -1, 0.25) * CFrame.Angles(math.rad(-35),0,math.rad(-10))
- local tween7 = tweenService:Create(object4, tweenInfo, goal7)
- local goal9 = {}
- goal9.C0 = CFrame.new(-1, 0.25, -1.125) * CFrame.Angles(math.rad(140),0,0) * CFrame.Angles(0,0,math.rad(55))
- local tween9 = tweenService:Create(object5, tweenInfo, goal9)
- tween:Play()
- tween2:Play()
- tween6:Play()
- tween7:Play()
- tween9:Play()
- tween9.Completed:Connect(function()
- finish = true
- end)
- wait(0.15)
- finish = false
- slam.Parent = part4
- slam.PlaybackSpeed = 0.85
- slam.Parent = nil
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0725
- local object = weld
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Exponential,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.Angles(0,math.rad(90),0)
- local tween11 = tweenService:Create(object, tweenInfo, goal)
- tween11:Play()
- local donthit = {owner.Character}
- while not finish do
- task.wait()
- local ps = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
- local reg = CreateRegion3FromLocAndSize(ps.p, Vector3.new(6.5, 8, 3.5))
- for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, donthit, math.huge * -math.huge)) do
- if v.Parent:FindFirstChildWhichIsA("Humanoid") and not table.find(donthit,v.Parent) then
- v.Parent:FindFirstChildWhichIsA("Humanoid").Health -= 28
- local yy = Instance.new("BodyVelocity")
- yy.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- yy.Velocity = CFrame.new(v.Parent:FindFirstChildWhichIsA("Part").Position,part4.Position).lookVector * -40 + Vector3.new(0,15,0)
- yy.Parent = v.Parent:FindFirstChildWhichIsA("Part")
- game.Debris:AddItem(yy,0.6)
- spawn(function()
- while wait(0.1) do
- yy.Velocity = yy.Velocity - Vector3.new(5,5,0)
- end
- end)
- table.insert(donthit,v.Parent)
- end
- end
- end
- wait(0.125)
- for i,v in pairs(partta) do
- local tweenService = game:GetService("TweenService")
- local timeToFade = 1.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,1.175)
- end
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Weld") then
- if v.Name == "a" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new()
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "b" then
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "c" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(-0.5,-1,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "d" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(0.5,-1,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "e" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(-1.5,0.75,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- elseif v.Name == "f" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.175
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.C0 = CFrame.new(1.5,0.75,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(v,0.175)
- end
- end
- end
- wait(0.175)
- owner.Character.Humanoid.WalkSpeed = ws
- owner.Character.Humanoid.JumpPower = jp
- owner.Character.Humanoid.AutoRotate = ro
- wait(0.75)
- db = false
- end
- end
- local E = Instance.new("RemoteEvent",owner.Character)
- local E2 = Instance.new("RemoteEvent",owner.Character)
- E2.Name = "doorfacts"
- NLS([[
- local E = owner.Character:FindFirstChildWhichIsA("RemoteEvent")
- local E2 = owner.Character:WaitForChild("doorfacts")
- local Mouse = owner:GetMouse()
- Mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "q" then
- E:FireServer()
- elseif key == "e" then
- E2:FireServer()
- end
- end)
- ]],owner.PlayerGui)
- E.OnServerEvent:Connect(door)
- E2.OnServerEvent:Connect(quickdoor)
Add Comment
Please, Sign In to add comment