sIendytubble

fe gun thing

Jul 13th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. Bypass = "death"
  2. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  3. plr = game.Players.LocalPlayer
  4. dead = false
  5. char = plr.Character
  6.  
  7. bullet = workspace[plr.Name]["HumanoidRootPart"]
  8. bullet.Transparency = 0
  9. bhandle = bullet
  10. bullet.Massless = true
  11. bullet:FindFirstChildOfClass("Attachment"):Destroy()
  12. bullet:FindFirstChildOfClass("Attachment"):Destroy()
  13. bullet:FindFirstChildOfClass("Attachment"):Destroy()
  14.  
  15. mouse = plr:GetMouse()
  16. head = char.Head
  17. camera = workspace.CurrentCamera
  18. lt = true
  19. ltt = false
  20.  
  21. local function IsFirstPerson()
  22. return (head.CFrame.p - camera.CFrame.p).Magnitude < 1
  23. end
  24.  
  25. maybegun = workspace[plr.Name]:FindFirstChild("Meshes/Sniper_rbxAccessory").Handle
  26. coroutine.resume(coroutine.create(function()
  27. game:GetService("RunService").Stepped:Connect(function()
  28. if maybegun ~= nil then
  29. if maybegun:FindFirstChildOfClass("Weld") then
  30. maybegun:FindFirstChildOfClass("Weld"):Destroy()
  31. end
  32. end
  33. end)
  34. end))
  35. mas = maybegun
  36. AlignOrientation0 = Instance.new("AlignOrientation")
  37. AlignPosition1 = Instance.new("AlignPosition")
  38. AlignOrientation0.Parent = mas
  39. AlignOrientation0.Attachment0 = nil
  40. AlignOrientation0.Attachment1 = nil
  41. AlignOrientation0.RigidityEnabled = true
  42. AlignPosition1.Parent = mas
  43. AlignPosition1.Attachment0 = nil
  44. AlignPosition1.Attachment1 = nil
  45. AlignPosition1.RigidityEnabled = true
  46. gunattachment = Instance.new("Attachment",mas)
  47. gunattachment.Rotation = Vector3.new(90,0,65)
  48. gunattachment.Position = Vector3.new(-2.6,-0.5,0.7)
  49. bbv = Instance.new("BodyPosition",bhandle)
  50. bbv.Position = char.Torso.CFrame.p
  51.  
  52. rarm = char["Right Arm"]
  53. larm = char["Left Arm"]
  54. torso = char.Torso
  55. armgunattachment = Instance.new("Attachment",workspace[plr.Name]["Right Arm"])
  56. armgunattachment.Orientation = Vector3.new(0,0,0)
  57. armgunattachment.Position = Vector3.new(0,0,0)
  58. armgunattachment.Rotation = Vector3.new(0,0,0)
  59. AlignOrientation0.Attachment0 = gunattachment
  60. AlignOrientation0.Attachment1 = armgunattachment
  61. AlignPosition1.Attachment0 = gunattachment
  62. AlignPosition1.Attachment1 = armgunattachment
  63. l = Instance.new("Attachment",larm)
  64. l.Rotation = Vector3.new(-90,20,0)
  65. l.Position = Vector3.new(1,1,0.5)
  66.  
  67. r = Instance.new("Attachment",rarm)
  68. r.Rotation = Vector3.new(-90,-25,0)
  69. r.Position = Vector3.new(-1,0.5,0.5)
  70.  
  71. t = Instance.new("Attachment",torso)
  72. --rarm
  73. rap = Instance.new("AlignPosition",rarm)
  74. rap.Attachment0 = r
  75. rap.Attachment1 = t
  76. rap.RigidityEnabled = true
  77.  
  78. rao = Instance.new("AlignOrientation",rarm)
  79. rao.Attachment0 = r
  80. rao.Attachment1 = t
  81. rao.RigidityEnabled = true
  82.  
  83. --larm
  84.  
  85.  
  86.  
  87.  
  88. lap = Instance.new("AlignPosition",larm)
  89. lap.Attachment0 = l
  90. lap.Attachment1 = t
  91. lap.RigidityEnabled = true
  92.  
  93. lao = Instance.new("AlignOrientation",larm)
  94. lao.Attachment0 = l
  95. lao.Attachment1 = t
  96. lao.RigidityEnabled = true
  97.  
  98.  
  99.  
  100. mouse.Button1Down:Connect(function()
  101. if dead == false then
  102. lt = false
  103. ltt = true
  104.  
  105.  
  106. l.Position = Vector3.new(1,0.5,0.5)
  107. l.Rotation = Vector3.new(-95,25,0)
  108.  
  109. r.Position = Vector3.new(-1,0,0.5)
  110. r.Rotation = Vector3.new(-95,-33,0)
  111. wait(0.13)
  112.  
  113. l.Position = Vector3.new(1,1,0.5)
  114. l.Rotation = Vector3.new(-90,20,0)
  115.  
  116. r.Position = Vector3.new(-1,0.5,0.5)
  117. r.Rotation = Vector3.new(-90,-25,0)
  118. ltt = false
  119. bbav = Instance.new("BodyAngularVelocity",bhandle)
  120. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  121. bbav.P = 1000000000000000000000000000
  122. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  123. game:GetService("Debris"):AddItem(bbav,0.1)
  124. if game.Players:GetPlayerFromCharacter(mouse.Target.Parent) then
  125. if mouse.Target.Parent.Name == char.Name or mouse.Target.Parent.Name == "non" then return end
  126. --repeat
  127. game:GetService("RunService").RenderStepped:Wait()
  128. bbv.Position = (CFrame.new(mouse.Target.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
  129. bhandle.Position = (CFrame.new(mouse.Target.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
  130. wait(1)
  131. --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
  132. elseif game.Players:GetPlayerFromCharacter(mouse.Target.Parent.Parent) then
  133. if mouse.Target.Parent.Name == char.Name or mouse.Target.Parent.Name == "non" then return end
  134. --repeat
  135. game:GetService("RunService").RenderStepped:Wait()
  136. bbv.Position = (CFrame.new(mouse.Target.Parent.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
  137. bhandle.Position = (CFrame.new(mouse.Target.Parent.Parent.HumanoidRootPart.CFrame.p,char.Torso.CFrame.p) * CFrame.new(0,0,0)).p
  138. wait(1)
  139. --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
  140.  
  141. else
  142. -- repeat
  143. game:GetService("RunService").RenderStepped:Wait()
  144. bbv.Position = mouse.Hit.p
  145. bhandle.Position = mouse.Hit.p
  146. wait(1)
  147. --until char.Humanoid.Health == 100 or char.Humanoid.Health == 0
  148. end
  149. wait()
  150. lt = true
  151. end
  152. end)
  153.  
  154. char.Humanoid.Died:Connect(function()
  155. dead = true
  156. end)
  157. repeat
  158. game:GetService("RunService").RenderStepped:Wait()
  159. if dead == false and bhandle.CanCollide == true then
  160. bhandle.CanCollide = false
  161. end
  162. --if lt == true and dead == false then
  163. --bhandle.CFrame = char.Torso.CFrame
  164. bbv.Position = char.Torso.CFrame.p
  165. if ltt == true and dead == false then
  166. --bhandle.CFrame = char.Torso.CFrame * CFrame.new(0,0,-6)
  167. bhandle.Rotation = char.Torso.Rotation
  168. end
  169. until char.Humanoid.Health == 0
  170.  
  171. function ragdoll(noob)
  172.  
  173. local dead = Instance.new("VelocityMotor",noob)
  174. dead.Name = "Ragdolled"
  175.  
  176. local socket = Instance.new("BallSocketConstraint",noob.Head)
  177. local acth1 = Instance.new("Attachment",noob.Head)
  178. acth1.Position = Vector3.new(0,-0.5,0)
  179. local acth2 = Instance.new("Attachment",noob.Torso)
  180. acth2.Position = Vector3.new(0,1,0)
  181. socket.Attachment0 = acth1
  182. socket.Attachment1 = acth2
  183.  
  184. local socket2 = Instance.new("BallSocketConstraint",noob["Right Arm"])
  185. local acth3 = Instance.new("Attachment",noob["Right Arm"])
  186. acth3.Position = Vector3.new(0,0.5,0)
  187. local acth4 = Instance.new("Attachment",noob.Torso)
  188. acth4.Position = Vector3.new(1.5,0.5,0)
  189. socket2.Attachment0 = acth3
  190. socket2.Attachment1 = acth4
  191.  
  192. local socket3 = Instance.new("BallSocketConstraint",noob["Left Arm"])
  193. local acth5 = Instance.new("Attachment",noob["Left Arm"])
  194. acth5.Position = Vector3.new(0,0.5,0)
  195. local acth6 = Instance.new("Attachment",noob.Torso)
  196. acth6.Position = Vector3.new(-1.5,0.5,0)
  197. socket3.Attachment0 = acth5
  198. socket3.Attachment1 = acth6
  199.  
  200. local socket4 = Instance.new("BallSocketConstraint",noob["Right Leg"])
  201. local acth7 = Instance.new("Attachment",noob["Right Leg"])
  202. acth7.Position = Vector3.new(0,1,0)
  203. local acth8 = Instance.new("Attachment",noob.Torso)
  204. acth8.Position = Vector3.new(0.5,-1,0)
  205. socket4.Attachment0 = acth7
  206. socket4.Attachment1 = acth8
  207.  
  208. local socket5 = Instance.new("BallSocketConstraint",noob["Left Leg"])
  209. local acth9 = Instance.new("Attachment",noob["Left Leg"])
  210. acth9.Position = Vector3.new(0,1,0)
  211. local acth10 = Instance.new("Attachment",noob.Torso)
  212. acth10.Position = Vector3.new(-0.5,-1,0)
  213. socket5.Attachment0 = acth9
  214. socket5.Attachment1 = acth10
  215. end
  216.  
  217. local head = workspace.non:WaitForChild("Head")
  218. local tors = workspace.non:WaitForChild("Torso")
  219. local huma = workspace.non:WaitForChild("Humanoid")
  220. local player = game.Players.LocalPlayer
  221. local mouse = player:GetMouse()
  222. local neck = Instance.new("Weld",tors)
  223. neck.Part0 = tors
  224. neck.Part1 = head
  225. neck.C0 = CFrame.new(0,1.5,0)
  226. local nek = neck.C1
  227. local root = workspace.non.HumanoidRootPart.RootJoint.C0
  228. local rs = tors["Right Shoulder"].C0
  229. local ls = tors["Left Shoulder"].C0
  230. local rh = tors["Right Hip"].C0
  231. local lh = tors["Left Hip"].C0
  232. local rootpart = workspace.non:WaitForChild("HumanoidRootPart")
  233. local pose = "idle"
  234. attacking = false
  235. running = false
  236. local toolthing = Instance.new("BoolValue",workspace.non)
  237. toolthing.Value = false
  238. toolthing.Name = "toolanim"
  239.  
  240. function onRunning(speed)
  241. if speed>=10 then
  242. pose = "walking"
  243. else
  244. pose = "idle"
  245. end
  246. end
  247. function onDied()
  248. ragdoll(workspace.non)
  249. rootpart:Destroy()
  250. end
  251. huma.Died:Connect(onDied)
  252. huma.Running:Connect(onRunning)
  253.  
  254. huma.Animator:Destroy()
  255. while game:GetService("RunService").Stepped:wait(0) do
  256.  
  257. if attacking == false and toolthing.Value == false then
  258.  
  259. if pose == 'idle' then
  260.  
  261. 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)
  262. 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)
  263. 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)
  264. 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)
  265. 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)
  266. 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)
  267.  
  268. elseif pose == 'walking' then
  269.  
  270. 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)
  271. 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)
  272. 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)
  273. 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)
  274. 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)
  275. 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)
  276.  
  277. end
  278. end
  279. end
  280. local mouse = game.Players.LocalPlayer:GetMouse()
  281. local running = false
  282.  
  283. function getTool()
  284. for _, kid in ipairs(script.Parent:GetChildren()) do
  285. if kid.className == "Tool" then return kid end
  286. end
  287. return nil
  288. end
  289.  
  290.  
  291. mouse.KeyDown:connect(function (key) -- Run function
  292. key = string.lower(key)
  293. if string.byte(key) == 48 then
  294. running = true
  295. local keyConnection = mouse.KeyUp:connect(function (key)
  296. if string.byte(key) == 48 then
  297. running = false
  298. end
  299. end)
  300. for i = 1,5 do
  301. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  302. wait()
  303. end
  304. workspace.non.Humanoid.WalkSpeed = 30
  305. repeat wait () until running == false
  306. keyConnection:disconnect()
  307. workspace.non.Humanoid.WalkSpeed = 16
  308. for i = 1,5 do
  309. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  310. wait()
  311. end
  312. end
  313. end)
Add Comment
Please, Sign In to add comment