Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- isshootingwithfirstgun = true
- game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C1 = CFrame.new(0,1,0)
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- lhandweld.C1 = CFrame.new(0,1,0)
- --Converted with ttyyuu12345's model to script plugin v4
- 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
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Weld4 = Instance.new("Weld")
- Weld5 = Instance.new("Weld")
- Model0.Name = "Glock"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.Material = Enum.Material.Glass
- Part1.BrickColor = BrickColor.new("Black")
- Part1.Name = "up"
- Part1.Rotation = Vector3.new(0, 0, -90)
- Part1.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
- Part1.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
- Part1.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
- Part1.Orientation = Vector3.new(0, 0, -90)
- Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
- Part2.Parent = Model0
- Part2.Material = Enum.Material.Glass
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.Rotation = Vector3.new(0, 0, -90)
- Part2.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
- Part2.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(0, 0, 0)
- Part2.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
- Part2.Orientation = Vector3.new(0, 0, -90)
- Part2.Color = Color3.new(0, 0, 0)
- Part3.Parent = Model0
- Part3.Material = Enum.Material.Glass
- Part3.BrickColor = BrickColor.new("Bright yellow")
- Part3.Name = "Handl"
- Part3.Rotation = Vector3.new(0, 0, -15)
- Part3.Size = Vector3.new(0.449999988, 1, 0.349999964)
- Part3.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part3.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
- Part3.Orientation = Vector3.new(0, 0, -15)
- Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part1:BreakJoints()
- Part2:BreakJoints()
- Part3:BreakJoints()
- Weld4.Parent = Part3
- Weld4.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
- Weld4.Part0 = Part3
- Weld4.Part1 = Part2
- Weld5.Parent = Part3
- Weld5.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
- Weld5.Part0 = Part3
- Weld5.Part1 = Part1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- end
- end
- local weld = Instance.new("Weld", Part1)
- weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.Part1 = Part3
- weld.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
- ---
- --Converted with ttyyuu12345's model to script plugin v4
- 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
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model00 = Instance.new("Model")
- Part11 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Weld44 = Instance.new("Weld")
- Weld55 = Instance.new("Weld")
- Model00.Name = "Glock2"
- Model00.Parent = mas
- Part11.Parent = Model00
- Part11.Material = Enum.Material.Glass
- Part11.BrickColor = BrickColor.new("Black")
- Part11.Name = "up"
- Part11.Rotation = Vector3.new(0, 0, -90)
- Part11.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
- Part11.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
- Part11.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
- Part11.Orientation = Vector3.new(0, 0, -90)
- Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
- Part22.Parent = Model00
- Part22.Material = Enum.Material.Glass
- Part22.BrickColor = BrickColor.new("Really black")
- Part22.Rotation = Vector3.new(0, 0, -90)
- Part22.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
- Part22.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.Color = Color3.new(0, 0, 0)
- Part22.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
- Part22.Orientation = Vector3.new(0, 0, -90)
- Part22.Color = Color3.new(0, 0, 0)
- Part33.Parent = Model00
- Part33.Material = Enum.Material.Glass
- Part33.BrickColor = BrickColor.new("Bright yellow")
- Part33.Name = "Handl"
- Part33.Rotation = Vector3.new(0, 0, -15)
- Part33.Size = Vector3.new(0.449999988, 1, 0.349999964)
- Part33.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part33.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
- Part33.Orientation = Vector3.new(0, 0, -15)
- Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part11:BreakJoints()
- Part22:BreakJoints()
- Part33:BreakJoints()
- Weld44.Parent = Part33
- Weld44.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
- Weld44.Part0 = Part33
- Weld44.Part1 = Part22
- Weld55.Parent = Part33
- Weld55.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
- Weld55.Part0 = Part33
- Weld55.Part1 = Part11
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- end
- end
- for i,v in pairs(Model00:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- end
- end
- local welded = Instance.new("Weld", Part11)
- welded.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
- welded.Part1 = Part33
- welded.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
- function fpstoggle()
- if not fps then
- fps = true
- else
- fps = false
- end
- end
- game.Players.LocalPlayer.Character.Archivable = true
- local music = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
- local musicrandom = math.random(1,5)
- if musicrandom == 1 then
- music.SoundId = "rbxassetid://0"
- end
- if musicrandom == 2 then
- music.SoundId = "rbxassetid://0"
- end
- if musicrandom == 3 then
- music.SoundId = "rbxassetid://0"
- end
- if musicrandom == 4 then
- music.SoundId = "rbxassetid://0"
- end
- if musicrandom == 5 then
- music.SoundId = "rbxassetid://0"
- end
- music.Looped = true
- music.Volume = 10
- music:Play()
- local shooot = Instance.new("Sound", Part1)
- shooot.SoundId = "rbxassetid://680140087"
- shooot.Volume = 7
- local hand = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
- hand.Parent = workspace.CurrentCamera
- local hand2 = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
- hand2.Parent = workspace.CurrentCamera
- local deathplr = Instance.new("Sound", game.Players.LocalPlayer.Character)
- deathplr.SoundId = "rbxassetid://785201669"
- deathplr.Volume = 16
- fps = false
- using = false
- function fpsswitch(key)
- key = key:lower()
- if key == "z" then
- if fps then
- fps = false
- else
- fps = true
- end
- end
- end
- mouse.KeyDown:connect(fpsswitch)
- function shoot()
- if not using then
- if isshootingwithfirstgun then
- isshootingwithfirstgun = false
- using = true
- shooot:Play()
- local missle = Instance.new("Part", workspace)
- missle:BreakJoints()
- missle.Name = "bullet"
- missle.CanCollide = false
- missle.Material = "Neon"
- missle.Size = Vector3.new(0.1,0.1,3)
- missle.CFrame = Part2.CFrame * CFrame.new(0,2.5,0)
- missle.Transparency = 0.3
- missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
- local vel = Instance.new("BodyVelocity", missle)
- vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local function hit(part)
- local hitval = math.random(25,40)
- local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
- if humanoid then
- if humanoid.Health == math.huge or humanoid.Health >= 600 then
- humanoid.Health = 100
- end
- if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
- humanoid.MaxHealth = 100
- end
- if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
- else
- if humanoid.Health < hitval then
- local isded = deathplr:Clone()
- isded.Parent = humanoid.Parent.Head
- isded:Play()
- humanoid.JumpPower = 0
- humanoid.PlatformStand = true
- humanoid.WalkSpeed = 0
- for i,v in pairs(humanoid.Parent:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:Remove()
- end
- end
- local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
- if humpart then
- humpart:destroy()
- end
- local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
- if findlefthip then
- findlefthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
- if findrighthip then
- findrighthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- end
- --
- local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
- if findrightshoulder then
- findrightshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
- if findleftshoulder then
- findleftshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- local findhead = humanoid.Parent:findFirstChild("Head")
- if findhead then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- end
- wait(10)
- humanoid.Health = 0
- else
- humanoid.Health = humanoid.Health - hitval
- end
- end
- else
- if part.Name == "Shotgun" or "bullet" then
- else
- missle:destroy()
- end
- end
- end
- missle.Touched:connect(hit)
- for i = 0,1 , 0.25 do
- rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
- Weld5.C0 = Weld5.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- for i = 0,1 , 0.25 do
- rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
- Weld5.C0 = Weld5.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- using = false
- else
- isshootingwithfirstgun = true
- using = true
- shooot:Play()
- local missle = Instance.new("Part", workspace)
- missle:BreakJoints()
- missle.Name = "bullet"
- missle.CanCollide = false
- missle.Material = "Neon"
- missle.Size = Vector3.new(0.1,0.1,3)
- missle.CFrame = Part22.CFrame * CFrame.new(0,2.5,0)
- missle.Transparency = 0.3
- missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
- local vel = Instance.new("BodyVelocity", missle)
- vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local function hit(part)
- local hitval = math.random(25,40)
- local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
- if humanoid then
- if humanoid.Health == math.huge or humanoid.Health >= 600 then
- humanoid.Health = 100
- end
- if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
- humanoid.MaxHealth = 100
- end
- if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
- else
- if humanoid.Health < hitval then
- local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
- if humpart then
- humpart:destroy()
- end
- for i,v in pairs(humanoid.Parent:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:Remove()
- end
- end
- local isded = deathplr:Clone()
- isded.Parent = humanoid.Parent.Head
- isded:Play()
- humanoid.JumpPower = 0
- humanoid.PlatformStand = true
- humanoid.WalkSpeed = 0
- local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
- if findlefthip then
- findlefthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
- if findrighthip then
- findrighthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- end
- --
- local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
- if findrightshoulder then
- findrightshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
- if findleftshoulder then
- findleftshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- local findhead = humanoid.Parent:findFirstChild("Head")
- if findhead then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- end
- wait(10)
- humanoid.Health = 0
- else
- humanoid.Health = humanoid.Health - hitval
- end
- end
- else
- if part.Name == "Shotgun" or "bullet" then
- else
- missle:destroy()
- end
- end
- end
- missle.Touched:connect(hit)
- for i = 0,1 , 0.25 do
- lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
- Weld55.C0 = Weld55.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- for i = 0,1 , 0.25 do
- lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
- Weld55.C0 = Weld55.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- using = false
- end
- end
- end
- mouse.Button1Down:connect(shoot)
- function ragdoll()
- music:Stop()
- game.Players.LocalPlayer.Character.Archivable = true
- clone = game.Players.LocalPlayer.Character:Clone()
- clone.Parent = workspace
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:destroy()
- end
- for i,p in pairs(v:GetChildren()) do
- if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
- p:destroy()
- end
- end
- end
- for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
- t:destroy()
- end
- end
- vel = Instance.new("BodyVelocity", clone.Torso)
- vel.Velocity = clone.Torso.CFrame.lookVector * -5
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
- using = false
- hit = Instance.new("Sound", clone.Torso)
- hit.SoundId = "rbxassetid://260430060"
- hit.Volume = 0
- hit1 = Instance.new("Sound", clone.Torso)
- hit1.SoundId = "rbxassetid://138087186"
- hit1.Volume = 0
- hit2 = Instance.new("Sound", clone.Torso)
- hit2.SoundId = "rbxassetid://131237241"
- hit2.Volume = 0
- hit3 = Instance.new("Sound", clone.Torso)
- hit3.SoundId = "rbxassetid://278062209"
- hit3.Volume = 0
- hit3.TimePosition = 0.33
- ded = Instance.new("Sound", clone.Torso)
- ded.SoundId = "rbxassetid://884348443"
- ded.Volume =10
- local leftarm = clone:findFirstChild("Left Arm")
- local rightrm = clone:findFirstChild("Right Arm")
- local leftleg = clone:findFirstChild("Left Leg")
- local rightleg = clone:findFirstChild("Right Leg")
- local head = clone:findFirstChild("Head")
- for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if g.ClassName == "Part" then
- g:destroy()
- end
- end
- for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if h.ClassName == "Accesory" then
- h:destroy()
- end
- end
- game.Workspace.CurrentCamera.CameraSubject = head
- if head then
- local attachment = Instance.new("Attachment", clone.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- clone.Torso.NeckAttachment.Visible = false
- clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", clone)
- ball.Attachment0 = clone.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", clone.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = clone["Head"]
- end
- if leftleg ~= nil then
- local glue = Instance.new("Glue", clone.Torso)
- glue.Part0 = clone.Torso
- glue.Part1 = leftleg
- glue.Name = "Left leg"
- local collider = Instance.new("Part", leftleg)
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = leftleg
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- ------------
- if rightleg ~= nil then
- local glue1 = Instance.new("Glue", clone.Torso)
- glue1.Part0 = clone.Torso
- glue1.Part1 = rightleg
- glue1.Name = "Right leg"
- local collider1 = Instance.new("Part", rightleg)
- collider1.Position = Vector3.new(0,999,0)
- collider1.Size = Vector3.new(1.5, 1, 1)
- collider1.Shape = "Cylinder"
- local weld1 = Instance.new("Weld", collider1)
- weld1.Part0 = rightleg
- weld1.Part1 = collider1
- weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider1.TopSurface = "Smooth"
- collider1.BottomSurface = "Smooth"
- collider1.formFactor = "Symmetric"
- glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider1.Transparency = 1
- end
- ------------
- if rightrm ~= nil then
- local glue11 = Instance.new("Glue", clone.Torso)
- glue11.Part0 = clone.Torso
- glue11.Part1 = rightrm
- glue11.Name = "Right shoulder"
- local collider11 = Instance.new("Part", rightrm)
- collider11.Position = Vector3.new(0,9999,0)
- collider11.Size = Vector3.new(1.5,1,1)
- collider11.Shape = "Cylinder"
- local weld11 = Instance.new("Weld", collider11)
- weld11.Part0 = rightrm
- weld11.Part1 = collider11
- weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider11.TopSurface = "Smooth"
- collider11.BottomSurface = "Smooth"
- collider11.formFactor = "Symmetric"
- glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider11.Transparency = 1
- end
- ------------
- if leftarm ~= nil then
- local glue111 = Instance.new("Glue", clone.Torso)
- glue111.Part0 = clone.Torso
- glue111.Part1 = leftarm
- glue111.Name = "Left shoulder"
- local collider111 = Instance.new("Part", leftarm)
- collider111.Position = Vector3.new(0,9999,0)
- collider111.Size = Vector3.new(1.5,1,1)
- collider111.Shape = "Cylinder"
- local weld111 = Instance.new("Weld", collider111)
- weld111.Part0 = leftarm
- weld111.Part1 = collider111
- weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider111.TopSurface = "Smooth"
- collider111.BottomSurface = "Smooth"
- collider111.formFactor = "Symmetric"
- glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider111.Transparency = 1
- ----------------
- sensoring = Instance.new("Part", clone.Torso)
- sensoring.Size = Vector3.new(1.2,1.1,0.8)
- sensoring.CanCollide = false
- sensoring.Position = clone.Torso.Position
- local welder = Instance.new("Weld", sensoring)
- welder.Part0 = clone.Torso
- welder.Part1 = sensoring
- welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
- sensoring.Transparency = 1
- -----------------
- sensoring1 = Instance.new("Part", clone.Torso)
- sensoring1.Size = Vector3.new(1.2,1.1,0.8)
- sensoring1.CanCollide = false
- sensoring1.Position = clone.Torso.Position
- local welder1 = Instance.new("Weld", sensoring)
- welder1.Part0 = clone.Torso
- welder1.Part1 = sensoring1
- welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
- sensoring1.Transparency = 1
- end
- clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
- ded:Play()
- vel:destroy()
- wait(0.5)
- local function touch()
- if not using then
- using = true
- local Math = math.random(1,4)
- if Math == 1 then
- hit:Play()
- end
- if Math == 2 then
- hit1:Play()
- end
- if Math == 3 then
- hit2:Play()
- end
- if Math == 4 then
- hit3:Play()
- end
- wait(0.1)
- using = false
- end
- end
- sensoring.Touched:connect(touch)
- sensoring1.Touched:connect(touch)
- wait(0.5)
- while true do
- clone.Head.CanCollide = false
- game:GetService("RunService").Stepped:wait()
- end
- end
- game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
- while true do
- game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.Torso.Position.y,mouse.Hit.p.z))
- lhandweld.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,0.1)
- rhandweld.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,-0.1)
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
- hand.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
- hand2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
- if Model0.Parent == nil then
- Model0.Parent = workspace
- end
- if hand.Parent == nil then
- hand.Parent = workspace
- end
- if music.Parent == nil then
- music.Parent = game.Players.LocalPlayer.Character.Head
- end
- if shooot.Parent == nil then
- shooot.Parent = Part2
- end
- if fps then
- game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
- Model0.Parent = workspace
- Model00.Parent = workspace
- hand.Transparency = 0
- hand2.Transparency = 0
- else
- game.Players.LocalPlayer.CameraMode = "Classic"
- Model0.Parent = game.Players.LocalPlayer.Character
- Model00.Parent = game.Players.LocalPlayer.Character
- hand.Transparency = 1
- hand2.Transparency = 1
- end
- game:GetService("RunService").RenderStepped:wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement