Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bypass = "death"
- loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
- plr = game.Players.LocalPlayer
- dead = false
- char = plr.Character
- bullet = workspace[plr.Name]["HumanoidRootPart"]
- bullet.Transparency = 0
- bhandle = bullet
- bullet.Massless = true
- bullet:FindFirstChildOfClass("Attachment"):Destroy()
- bullet:FindFirstChildOfClass("Attachment"):Destroy()
- bullet:FindFirstChildOfClass("Attachment"):Destroy()
- mouse = plr:GetMouse()
- head = char.Head
- camera = workspace.CurrentCamera
- lt = true
- ltt = false
- local function IsFirstPerson()
- return (head.CFrame.p - camera.CFrame.p).Magnitude < 1
- end
- maybegun = workspace[plr.Name]:FindFirstChild("Meshes/Sniper_rbxAccessory").Handle
- coroutine.resume(coroutine.create(function()
- game:GetService("RunService").Stepped:Connect(function()
- if maybegun ~= nil then
- if maybegun:FindFirstChildOfClass("Weld") then
- maybegun:FindFirstChildOfClass("Weld"):Destroy()
- end
- end
- end)
- end))
- mas = maybegun
- AlignOrientation0 = Instance.new("AlignOrientation")
- AlignPosition1 = Instance.new("AlignPosition")
- AlignOrientation0.Parent = mas
- AlignOrientation0.Attachment0 = nil
- AlignOrientation0.Attachment1 = nil
- AlignOrientation0.RigidityEnabled = true
- AlignPosition1.Parent = mas
- AlignPosition1.Attachment0 = nil
- AlignPosition1.Attachment1 = nil
- AlignPosition1.RigidityEnabled = true
- gunattachment = Instance.new("Attachment",mas)
- gunattachment.Rotation = Vector3.new(90,0,65)
- gunattachment.Position = Vector3.new(-2.6,-0.5,0.7)
- bbv = Instance.new("BodyPosition",bhandle)
- bbv.Position = char.Torso.CFrame.p
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- torso = char.Torso
- armgunattachment = Instance.new("Attachment",workspace[plr.Name]["Right Arm"])
- armgunattachment.Orientation = Vector3.new(0,0,0)
- armgunattachment.Position = Vector3.new(0,0,0)
- armgunattachment.Rotation = Vector3.new(0,0,0)
- AlignOrientation0.Attachment0 = gunattachment
- AlignOrientation0.Attachment1 = armgunattachment
- AlignPosition1.Attachment0 = gunattachment
- AlignPosition1.Attachment1 = armgunattachment
- l = Instance.new("Attachment",larm)
- l.Rotation = Vector3.new(-90,20,0)
- l.Position = Vector3.new(1,1,0.5)
- r = Instance.new("Attachment",rarm)
- r.Rotation = Vector3.new(-90,-25,0)
- r.Position = Vector3.new(-1,0.5,0.5)
- t = Instance.new("Attachment",torso)
- --rarm
- rap = Instance.new("AlignPosition",rarm)
- rap.Attachment0 = r
- rap.Attachment1 = t
- rap.RigidityEnabled = true
- rao = Instance.new("AlignOrientation",rarm)
- rao.Attachment0 = r
- rao.Attachment1 = t
- rao.RigidityEnabled = true
- --larm
- lap = Instance.new("AlignPosition",larm)
- lap.Attachment0 = l
- lap.Attachment1 = t
- lap.RigidityEnabled = true
- lao = Instance.new("AlignOrientation",larm)
- lao.Attachment0 = l
- lao.Attachment1 = t
- lao.RigidityEnabled = true
- mouse.Button1Down:Connect(function()
- if dead == false then
- lt = false
- ltt = true
- l.Position = Vector3.new(1,0.5,0.5)
- l.Rotation = Vector3.new(-95,25,0)
- r.Position = Vector3.new(-1,0,0.5)
- r.Rotation = Vector3.new(-95,-33,0)
- wait(0.13)
- l.Position = Vector3.new(1,1,0.5)
- l.Rotation = Vector3.new(-90,20,0)
- r.Position = Vector3.new(-1,0.5,0.5)
- r.Rotation = Vector3.new(-90,-25,0)
- ltt = false
- bbav = Instance.new("BodyAngularVelocity",bhandle)
- bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bbav.P = 1000000000000000000000000000
- bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
- game:GetService("Debris"):AddItem(bbav,0.1)
- if game.Players:GetPlayerFromCharacter(mouse.Target.Parent) then
- if mouse.Target.Parent.Name == char.Name or mouse.Target.Parent.Name == "non" then return end
- --repeat
- game:GetService("RunService").RenderStepped:Wait()
- bbv.Position = (CFrame.new(mouse.Target.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
- bhandle.Position = (CFrame.new(mouse.Target.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
- wait(1)
- --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
- elseif game.Players:GetPlayerFromCharacter(mouse.Target.Parent.Parent) then
- if mouse.Target.Parent.Name == char.Name or mouse.Target.Parent.Name == "non" then return end
- --repeat
- game:GetService("RunService").RenderStepped:Wait()
- bbv.Position = (CFrame.new(mouse.Target.Parent.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
- bhandle.Position = (CFrame.new(mouse.Target.Parent.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
- wait(1)
- --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
- else
- -- repeat
- game:GetService("RunService").RenderStepped:Wait()
- bbv.Position = mouse.Hit.p
- bhandle.Position = mouse.Hit.p
- wait(1)
- --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
- end
- wait()
- lt = true
- end
- end)
- char.Humanoid.Died:Connect(function()
- dead = true
- end)
- repeat
- game:GetService("RunService").RenderStepped:Wait()
- if dead == false and bhandle.CanCollide == true then
- bhandle.CanCollide = false
- end
- --if lt == true and dead == false then
- --bhandle.CFrame = char.Torso.CFrame
- bbv.Position = char.Torso.CFrame.p
- if ltt == true and dead == false then
- --bhandle.CFrame = char.Torso.CFrame * CFrame.new(0,0,-6)
- bhandle.Rotation = char.Torso.Rotation
- end
- until char.Humanoid.Health == 0
- function ragdoll(noob)
- local dead = Instance.new("VelocityMotor",noob)
- dead.Name = "Ragdolled"
- local socket = Instance.new("BallSocketConstraint",noob.Head)
- local acth1 = Instance.new("Attachment",noob.Head)
- acth1.Position = Vector3.new(0,-0.5,0)
- local acth2 = Instance.new("Attachment",noob.Torso)
- acth2.Position = Vector3.new(0,1,0)
- socket.Attachment0 = acth1
- socket.Attachment1 = acth2
- local socket2 = Instance.new("BallSocketConstraint",noob["Right Arm"])
- local acth3 = Instance.new("Attachment",noob["Right Arm"])
- acth3.Position = Vector3.new(0,0.5,0)
- local acth4 = Instance.new("Attachment",noob.Torso)
- acth4.Position = Vector3.new(1.5,0.5,0)
- socket2.Attachment0 = acth3
- socket2.Attachment1 = acth4
- local socket3 = Instance.new("BallSocketConstraint",noob["Left Arm"])
- local acth5 = Instance.new("Attachment",noob["Left Arm"])
- acth5.Position = Vector3.new(0,0.5,0)
- local acth6 = Instance.new("Attachment",noob.Torso)
- acth6.Position = Vector3.new(-1.5,0.5,0)
- socket3.Attachment0 = acth5
- socket3.Attachment1 = acth6
- local socket4 = Instance.new("BallSocketConstraint",noob["Right Leg"])
- local acth7 = Instance.new("Attachment",noob["Right Leg"])
- acth7.Position = Vector3.new(0,1,0)
- local acth8 = Instance.new("Attachment",noob.Torso)
- acth8.Position = Vector3.new(0.5,-1,0)
- socket4.Attachment0 = acth7
- socket4.Attachment1 = acth8
- local socket5 = Instance.new("BallSocketConstraint",noob["Left Leg"])
- local acth9 = Instance.new("Attachment",noob["Left Leg"])
- acth9.Position = Vector3.new(0,1,0)
- local acth10 = Instance.new("Attachment",noob.Torso)
- acth10.Position = Vector3.new(-0.5,-1,0)
- socket5.Attachment0 = acth9
- socket5.Attachment1 = acth10
- end
- local head = workspace.non:WaitForChild("Head")
- local tors = workspace.non:WaitForChild("Torso")
- local huma = workspace.non:WaitForChild("Humanoid")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local neck = Instance.new("Weld",tors)
- neck.Part0 = tors
- neck.Part1 = head
- neck.C0 = CFrame.new(0,1.5,0)
- local nek = neck.C1
- local root = workspace.non.HumanoidRootPart.RootJoint.C0
- local rs = tors["Right Shoulder"].C0
- local ls = tors["Left Shoulder"].C0
- local rh = tors["Right Hip"].C0
- local lh = tors["Left Hip"].C0
- local rootpart = workspace.non:WaitForChild("HumanoidRootPart")
- local pose = "idle"
- attacking = false
- running = false
- local toolthing = Instance.new("BoolValue",workspace.non)
- toolthing.Value = false
- toolthing.Name = "toolanim"
- function onRunning(speed)
- if speed>=10 then
- pose = "walking"
- else
- pose = "idle"
- end
- end
- function onDied()
- ragdoll(workspace.non)
- rootpart:Destroy()
- end
- huma.Died:Connect(onDied)
- huma.Running:Connect(onRunning)
- huma.Animator:Destroy()
- while game:GetService("RunService").Stepped:wait(0) do
- if attacking == false and toolthing.Value == false then
- if pose == 'idle' then
- neck.C1 = neck.C1:Lerp(nek * CFrame.new(0,0,0) * CFrame.Angles(-math.cos((time()*1.125))/5,math.rad(0),math.rad(0)),0.15)
- rootpart.RootJoint.C0 = rootpart.RootJoint.C0:Lerp(root * CFrame.new(0,0,math.cos((time()*1.125))/8) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
- tors["Right Shoulder"].C0 = tors["Right Shoulder"].C0:Lerp(rs * CFrame.new(0,math.cos((time()*1.125))/10,0) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
- tors["Left Shoulder"].C0 = tors["Left Shoulder"].C0:Lerp(ls * CFrame.new(0,math.cos((time()*1.125))/10,0) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
- tors["Right Hip"].C0 = tors["Right Hip"].C0:Lerp(rh * CFrame.new(0,-math.cos((time()*1.125))/8,0) * CFrame.Angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
- tors["Left Hip"].C0 = tors["Left Hip"].C0:Lerp(lh * CFrame.new(-0.2,-math.cos((time()*1.125))/8,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
- elseif pose == 'walking' then
- neck.C1 = neck.C1:Lerp(nek * CFrame.new(0,0,0) * CFrame.Angles(math.cos((time()*20))/10,math.rad(0),math.rad(0)),0.15)
- rootpart.RootJoint.C0 = rootpart.RootJoint.C0:Lerp(root *CFrame.new(0,0,math.sin((time()*20))/4.5) * CFrame.Angles(math.rad(5) + math.cos((time()*20))/10,math.rad(0) - rootpart.RotVelocity.Y/75,-math.sin((time()*10))/7.5),0.15)
- tors["Right Shoulder"].C0 = tors["Right Shoulder"].C0:Lerp(rs * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0) + rootpart.RotVelocity.Y/75,math.rad(0),-math.sin((time()*10))/1),0.15)
- tors["Left Shoulder"].C0 = tors["Left Shoulder"].C0:Lerp(ls * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0) - rootpart.RotVelocity.Y/75,math.rad(0),-math.sin((time()*10))/1),0.15)
- tors["Right Hip"].C0 = tors["Right Hip"].C0:Lerp(rh * CFrame.new(math.cos((time()*10))/4,math.cos((time()*10))/3,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15) + math.sin((time()*10))/1.5),0.15)
- tors["Left Hip"].C0 = tors["Left Hip"].C0:Lerp(lh * CFrame.new(math.cos((time()*10))/4,-math.cos((time()*10))/3,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15) + math.sin((time()*10))/1.5),0.15)
- end
- end
- end
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- function getTool()
- for _, kid in ipairs(script.Parent:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- mouse.KeyDown:connect(function (key) -- Run function
- key = string.lower(key)
- if string.byte(key) == 48 then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == 48 then
- running = false
- end
- end)
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
- wait()
- end
- workspace.non.Humanoid.WalkSpeed = 30
- repeat wait () until running == false
- keyConnection:disconnect()
- workspace.non.Humanoid.WalkSpeed = 16
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
- wait()
- end
- end
- end)
Add Comment
Please, Sign In to add comment