sIendytubble

fe punch (testing)(no accessorys required)

Jul 16th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. Bypass = "death"
  2. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  3. -----OPTIONS
  4. --local ToolName = "MeshPartAccessory" ----- the hats name on explorer/dex (not name in catalog)
  5. local NoSound = true ----- sound or no sound (Background Music)
  6. local OldModel = false ----- Use Old Model or your accessory
  7.  
  8. local IsDead = false
  9. local StateMover = true
  10.  
  11. local playerss = workspace.non
  12. local bbv,bullet
  13. if Bypass == "death" then
  14. bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  15. bullet.Transparency = 1
  16. bullet.Massless = true
  17. if bullet:FindFirstChildOfClass("Attachment") then
  18. for _,v in pairs(bullet:GetChildren()) do
  19. if v:IsA("Attachment") then
  20. v:Destroy()
  21. end
  22. end
  23. end
  24.  
  25. bbv = Instance.new("BodyPosition",bullet)
  26. bbv.Position = playerss.Torso.CFrame.p
  27. end
  28.  
  29.  
  30. playerss.Torso.WaistBackAttachment.Position = Vector3.new(-0, -0, 0.6)
  31. playerss.Torso.WaistBackAttachment.Orientation = Vector3.new(-4.16, -179.28, 99.8)
  32.  
  33. if Bypass == "death" then
  34. coroutine.wrap(function()
  35. while true do
  36. if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  37. if StateMover then
  38. bbv.Position = playerss.Torso.CFrame.p
  39. bullet.Position = playerss.Torso.CFrame.p
  40. end
  41. game:GetService("RunService").RenderStepped:wait()
  42. end
  43. end)()
  44. end
  45.  
  46. local CDDF = {}
  47. local DamageFling = function(DmgPer)
  48. if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
  49. CDDF[DmgPer] = true; StateMover = false
  50. local PosFling = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  51. bbav = Instance.new("BodyAngularVelocity",bullet)
  52. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  53. bbav.P = 1000000000000000000000000000
  54. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  55. game:GetService("Debris"):AddItem(bbav,0.1)
  56. bullet.Rotation = playerss.Torso.Rotation
  57. for _=1,15 do
  58. bbv.Position = PosFling
  59. bullet.Position = PosFling
  60. wait(0.03)
  61. end
  62. bbv.Position = playerss.Torso.CFrame.p
  63. bullet.Position = playerss.Torso.CFrame.p
  64. CDDF[DmgPer] = false; StateMover = true
  65. end
  66. player = game.Players.LocalPlayer
  67.  
  68. char = workspace.non
  69.  
  70.  
  71. punching = false
  72.  
  73. Weld0 = Instance.new("Weld")
  74. Weld1 = Instance.new("Weld")
  75. Weld2 = Instance.new("Weld")
  76. Weld3 = Instance.new("Weld")
  77. Weld0.Name = "idle1"
  78. Weld0.Parent = char
  79. a = CFrame.new(1.20000005, 0.5, -0.5, 0.298836231, 0.640856385, -0.707106769, -0.85216552, -0.154317647, -0.49999997, -0.42954725, 0.75199008, 0.49999997)
  80. b = CFrame.new(-1.20000005, 0.5, -0.5, 0.298836231, -0.640856385, 0.707106769, 0.85216552, -0.154317647, -0.49999997, 0.42954725, 0.75199008, 0.49999997)
  81.  
  82. Weld0.C0 = CFrame.new(1.20000005, 0.5, -0.5, 0.298836231, 0.640856385, -0.707106769, -0.85216552, -0.154317647, -0.49999997, -0.42954725, 0.75199008, 0.49999997)
  83. Weld1.Name = "idle2"
  84. Weld1.Parent = char
  85. Weld1.C0 = CFrame.new(-1.20000005, 0.5, -0.5, 0.298836231, -0.640856385, 0.707106769, 0.85216552, -0.154317647, -0.49999997, 0.42954725, 0.75199008, 0.49999997)
  86. Weld2.Name = "swing1"
  87. Weld2.Parent = char
  88. Weld2.C0 = CFrame.new(1.20000005, 1, -1, 0.298836231, 0.640856385, -0.707106769, -0.298836201, -0.640856385, -0.707106769, -0.906307817, 0.42261821, -3.09086197e-08)
  89. Weld3.Name = "swing2"
  90. Weld3.Parent = char
  91. Weld3.C0 = CFrame.new(-1.20000005, 1, -1, 0.298836231, -0.640856385, 0.707106769, 0.298836201, -0.640856385, -0.707106769, 0.906307817, 0.42261821, -3.09086197e-08)
  92. punchcooldown = false
  93. lastarm = Weld0
  94. Weld0.Part0 = char.Torso
  95. Weld0.Part1 = char["Right Arm"]
  96. Weld1.Part0 = char.Torso
  97. Weld1.Part1 = char["Left Arm"]
  98. punchcooldownnumber = 0.1
  99. game:GetService("RunService").Stepped:Connect(function()
  100. if punching == true then
  101. if armtopunch == char["Right Arm"] then
  102. Weld0.C0 = Weld0.C0:lerp(Weld2.C0,0.25)
  103. else
  104. Weld1.C0 = Weld1.C0:lerp(Weld3.C0,0.25)
  105. end
  106. else
  107. Weld1.C0 = Weld1.C0:lerp(b,0.25)
  108. Weld0.C0 = Weld0.C0:lerp(a,0.25)
  109. end
  110. end)
  111. armtopunch = char["Right Arm"]
  112. larmpunching = false
  113. rarmpunching = false
  114. function punch()
  115. if punchcooldown == false then
  116. punchcooldown = true
  117. punching = true
  118. if armtopunch == char["Right Arm"] then
  119. armtopunch = char["Left Arm"]
  120. else
  121. armtopunch = char["Right Arm"]
  122. end
  123. wait(0.2)
  124. punching = false
  125. wait(punchcooldownnumber)
  126. punchcooldown = false
  127. end
  128. end
  129. mouse = player:GetMouse()
  130. mouse.Button1Down:Connect(function()
  131. punch()
  132. end)
  133. char["Left Arm"].Touched:Connect(function(hit)
  134. if armtopunch == char["Left Arm"] then
  135. DamageFling(hit.Parent)
  136. end
  137. end)
  138. char["Right Arm"].Touched:Connect(function(hit)
  139. if armtopunch == char["Left Arm"] then
  140. DamageFling(hit.Parent)
  141. end
  142. end)
  143.  
  144. function ragdoll(noob)
  145.  
  146. local dead = Instance.new("VelocityMotor",noob)
  147. dead.Name = "Ragdolled"
  148.  
  149. local socket = Instance.new("BallSocketConstraint",noob.Head)
  150. local acth1 = Instance.new("Attachment",noob.Head)
  151. acth1.Position = Vector3.new(0,-0.5,0)
  152. local acth2 = Instance.new("Attachment",noob.Torso)
  153. acth2.Position = Vector3.new(0,1,0)
  154. socket.Attachment0 = acth1
  155. socket.Attachment1 = acth2
  156.  
  157. local socket2 = Instance.new("BallSocketConstraint",noob["Right Arm"])
  158. local acth3 = Instance.new("Attachment",noob["Right Arm"])
  159. acth3.Position = Vector3.new(0,0.5,0)
  160. local acth4 = Instance.new("Attachment",noob.Torso)
  161. acth4.Position = Vector3.new(1.5,0.5,0)
  162. socket2.Attachment0 = acth3
  163. socket2.Attachment1 = acth4
  164.  
  165. local socket3 = Instance.new("BallSocketConstraint",noob["Left Arm"])
  166. local acth5 = Instance.new("Attachment",noob["Left Arm"])
  167. acth5.Position = Vector3.new(0,0.5,0)
  168. local acth6 = Instance.new("Attachment",noob.Torso)
  169. acth6.Position = Vector3.new(-1.5,0.5,0)
  170. socket3.Attachment0 = acth5
  171. socket3.Attachment1 = acth6
  172.  
  173. local socket4 = Instance.new("BallSocketConstraint",noob["Right Leg"])
  174. local acth7 = Instance.new("Attachment",noob["Right Leg"])
  175. acth7.Position = Vector3.new(0,1,0)
  176. local acth8 = Instance.new("Attachment",noob.Torso)
  177. acth8.Position = Vector3.new(0.5,-1,0)
  178. socket4.Attachment0 = acth7
  179. socket4.Attachment1 = acth8
  180.  
  181. local socket5 = Instance.new("BallSocketConstraint",noob["Left Leg"])
  182. local acth9 = Instance.new("Attachment",noob["Left Leg"])
  183. acth9.Position = Vector3.new(0,1,0)
  184. local acth10 = Instance.new("Attachment",noob.Torso)
  185. acth10.Position = Vector3.new(-0.5,-1,0)
  186. socket5.Attachment0 = acth9
  187. socket5.Attachment1 = acth10
  188. end
  189.  
  190. local head = char:WaitForChild("Head")
  191. local tors = char:WaitForChild("Torso")
  192. local huma = char:WaitForChild("Humanoid")
  193. local player = game.Players.LocalPlayer
  194. local mouse = player:GetMouse()
  195. local neck = Instance.new("Weld",tors)
  196. neck.Part0 = tors
  197. neck.Part1 = head
  198. neck.C0 = CFrame.new(0,1.5,0)
  199. local nek = neck.C1
  200. local root = char.HumanoidRootPart.RootJoint.C0
  201. local rs = tors["Right Shoulder"].C0
  202. local ls = tors["Left Shoulder"].C0
  203. local rh = tors["Right Hip"].C0
  204. local lh = tors["Left Hip"].C0
  205. local rootpart = char:WaitForChild("HumanoidRootPart")
  206. local pose = "idle"
  207. attacking = false
  208. running = false
  209. local toolthing = Instance.new("BoolValue",char)
  210. toolthing.Value = false
  211. toolthing.Name = "toolanim"
  212.  
  213. function onRunning(speed)
  214. if speed>=10 then
  215. pose = "walking"
  216. else
  217. pose = "idle"
  218. end
  219. end
  220. function onDied()
  221. ragdoll(char)
  222. rootpart:Destroy()
  223. end
  224. huma.Died:Connect(onDied)
  225. huma.Running:Connect(onRunning)
  226.  
  227. huma.Animator:Destroy()
  228. while game:GetService("RunService").Stepped:wait(0) do
  229.  
  230. if attacking == false and toolthing.Value == false then
  231.  
  232. if pose == 'idle' then
  233.  
  234. 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)
  235. 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)
  236. 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)
  237. 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)
  238. 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)
  239. 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)
  240.  
  241. elseif pose == 'walking' then
  242.  
  243. 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)
  244. 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)
  245. 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)
  246. 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)
  247. 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)
  248. 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)
  249.  
  250. end
  251. end
  252. end
  253. local mouse = game.Players.LocalPlayer:GetMouse()
  254. local running = false
  255.  
  256. function getTool()
  257. for _, kid in ipairs(script.Parent:GetChildren()) do
  258. if kid.className == "Tool" then return kid end
  259. end
  260. return nil
  261. end
  262.  
  263.  
  264. mouse.KeyDown:connect(function (key) -- Run function
  265. key = string.lower(key)
  266. if string.byte(key) == 48 then
  267. running = true
  268. local keyConnection = mouse.KeyUp:connect(function (key)
  269. if string.byte(key) == 48 then
  270. running = false
  271. end
  272. end)
  273. for i = 1,5 do
  274. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  275. wait()
  276. end
  277. workspace.non.Humanoid.WalkSpeed = 30
  278. repeat wait () until running == false
  279. keyConnection:disconnect()
  280. workspace.non.Humanoid.WalkSpeed = 16
  281. for i = 1,5 do
  282. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  283. wait()
  284. end
  285. end
  286. end)
Add Comment
Please, Sign In to add comment