sIendytubble

fe sword fling

Jul 15th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 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 maybe = playerss[ToolName].Handle
  13. local bbv,bullet
  14. if Bypass == "death" then
  15. bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  16. bullet.Transparency = 1
  17. bullet.Massless = true
  18. if bullet:FindFirstChildOfClass("Attachment") then
  19. for _,v in pairs(bullet:GetChildren()) do
  20. if v:IsA("Attachment") then
  21. v:Destroy()
  22. end
  23. end
  24. end
  25.  
  26. bbv = Instance.new("BodyPosition",bullet)
  27. bbv.Position = playerss.Torso.CFrame.p
  28. end
  29.  
  30. if maybe:FindFirstChild("AccessoryWeld") then maybe:FindFirstChild("AccessoryWeld"):Destroy() end
  31. if game.Players.LocalPlayer.Character[ToolName].Handle:FindFirstChild("AccessoryWeld") then game.Players.LocalPlayer.Character[ToolName].Handle:FindFirstChild("AccessoryWeld"):Destroy() end
  32.  
  33.  
  34. maybe:FindFirstChildOfClass("AlignPosition").Name = "AlignPosition2"
  35. maybe:FindFirstChildOfClass("AlignOrientation").Name = "AlignOrientation2"
  36.  
  37. playerss.Torso.WaistBackAttachment.Position = Vector3.new(-0, -0, 0.6)
  38. playerss.Torso.WaistBackAttachment.Orientation = Vector3.new(-4.16, -179.28, 99.8)
  39.  
  40. if Bypass == "death" then
  41. coroutine.wrap(function()
  42. while true do
  43. if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  44. if StateMover then
  45. bbv.Position = playerss.Torso.CFrame.p
  46. bullet.Position = playerss.Torso.CFrame.p
  47. end
  48. game:GetService("RunService").RenderStepped:wait()
  49. end
  50. end)()
  51. end
  52.  
  53. local CDDF = {}
  54. local DamageFling = function(DmgPer)
  55. 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
  56. CDDF[DmgPer] = true; StateMover = false
  57. local PosFling = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  58. bbav = Instance.new("BodyAngularVelocity",bullet)
  59. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  60. bbav.P = 1000000000000000000000000000
  61. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  62. game:GetService("Debris"):AddItem(bbav,0.1)
  63. bullet.Rotation = playerss.Torso.Rotation
  64. for _=1,15 do
  65. bbv.Position = PosFling
  66. bullet.Position = PosFling
  67. wait(0.03)
  68. end
  69. bbv.Position = playerss.Torso.CFrame.p
  70. bullet.Position = playerss.Torso.CFrame.p
  71. CDDF[DmgPer] = false; StateMover = true
  72. end
  73. player = game.Players.LocalPlayer
  74. function lerp(weld,start,endpart,numbers)
  75. weld.C0 = weld.C0:lerp()
  76. end
  77. chr = workspace.non
  78. char = chr
  79. larm = char["Left Arm"]
  80. rarm = char["Right Arm"]
  81. lleg = char["Left Leg"]
  82. rleg = char["Right Leg"]
  83. torso = char.Torso
  84. head = char.Head
  85. Part0 = maybe
  86. Weld2 = Instance.new("Weld")
  87.  
  88. Weld2.Parent = Part0
  89. Weld2.C0 = CFrame.new(-1.1,-1,0) * CFrame.Angles(math.rad(-90),math.rad(90),math.rad(65))
  90. Weld2.Part0 = torso
  91. Weld2.Part1 = Part0
  92. Weld2.part1 = Part0
  93. Weld2.C0 = CFrame.new(-1.1,-1,0) * CFrame.Angles(math.rad(-90),math.rad(90),math.rad(65))
  94. mouse = player:GetMouse()
  95. equipped = false
  96. weldarmx = math.rad(45)
  97. weldarmy = math.rad(0)
  98. weldarmz = math.rad(-45)
  99. weldarmxx = -0.1
  100. weldarmyy = 0
  101. weldarmzz = -1
  102. game:GetService("RunService").Stepped:Connect(function()
  103. if char:FindFirstChild("weldarm") ~= nil then
  104. weldarm.C0 = weldarm.C0:lerp(CFrame.new(weldarmxx,weldarmyy,weldarmzz) * CFrame.Angles(weldarmx,weldarmy,weldarmz),0.25)
  105. end
  106. end)
  107. function equip()
  108. weldarmx = math.rad(45)
  109. weldarmy = math.rad(0)
  110. weldarmz = math.rad(-45)
  111. weldarmxx = -0.1
  112. weldarmyy = 0
  113. weldarmzz = -1
  114. weldarm = Instance.new("Weld",char)
  115. weldarm.Part0 = torso
  116. weldarm.Part1 = rarm
  117. weldarm.Name = "weldarm"
  118. weldarm.C0 = CFrame.new(1.5,0,0)
  119. --weldarm.C0 = weldarm.C0:lerp(CFrame.new(-0.1,0,-1) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(-45)),0.25)
  120. wait(0.3)
  121. weldarmx = 0
  122. weldarmy = 0
  123. weldarmz = 0
  124. weldarmxx = 1.5
  125. weldarmyy = 0
  126. weldarmzz = 0
  127. Weld2.Part0 = rarm
  128. Weld2.C0 = CFrame.new(0,-1,-3) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(45))
  129. wait()
  130. for i,v in pairs(char:GetChildren()) do
  131. if v.Name == "weldarm" then
  132. v:Destroy()
  133. end
  134. end
  135. wait()
  136. end
  137. function unequip()
  138. weldarmx = math.rad(45)
  139. weldarmy = math.rad(0)
  140. weldarmz = math.rad(-45)
  141. weldarmxx = -0.1
  142. weldarmyy = 0
  143. weldarmzz = -1
  144. weldarm = Instance.new("Weld",char)
  145. weldarm.Part0 = torso
  146. weldarm.Part1 = rarm
  147. weldarm.Name = "weldarm"
  148. weldarm.C0 = CFrame.new(1.5,0,0)
  149. --weldarm.C0 = weldarm.C0:lerp(CFrame.new(-0.1,0,-1) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(-45)),0.25)
  150. wait(0.3)
  151. weldarmx = 0
  152. weldarmy = 0
  153. weldarmz = 0
  154. weldarmxx = 1.5
  155. weldarmyy = 0
  156. weldarmzz = 0
  157. Weld2.C0 = CFrame.new(-1.1,-1,0) * CFrame.Angles(math.rad(-90),math.rad(90),math.rad(65))
  158. Weld2.Part0 = torso
  159. wait()
  160. for i,v in pairs(char:GetChildren()) do
  161. if v.Name == "weldarm" then
  162. v:Destroy()
  163. end
  164. end
  165. wait()
  166. end
  167. swinging = false
  168. mouse.KeyDown:Connect(function(key)
  169. if key == "z" then
  170. if equipped == false then
  171. equipped = true
  172. equip()
  173. else
  174. equipped = false
  175. unequip()
  176. end
  177. end
  178. end)
  179. swordcooldown = false
  180. mouse.Button1Down:Connect(function()
  181. if equipped == true then
  182.  
  183. if swordcooldown == false then
  184. Sound2:Play()
  185. weldarmx = math.rad(0)
  186. weldarmy = math.rad(0)
  187. weldarmz = math.rad(90)
  188. weldarmxx = 2
  189. weldarmyy = 0.5
  190. weldarmzz = 0
  191.  
  192.  
  193. weldarm = Instance.new("Weld",char)
  194. weldarm.Part0 = torso
  195. weldarm.Part1 = rarm
  196. weldarm.Name = "weldarm"
  197. weldarm.C0 = CFrame.new(2,0.5,0)
  198. wait(0.5)
  199. swinging = false
  200. weldarmx = math.rad(0)
  201. weldarmy = math.rad(25)
  202. weldarmz = math.rad(-90)
  203. weldarmxx = -0.1
  204. weldarmyy = 0.5
  205. weldarmzz = -1
  206. swinging = true
  207. --weldarm.C0 = weldarm.C0:lerp(CFrame.new(-0.1,0,-1) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(-45)),0.25)
  208. weldarmzz = -1
  209. wait(0.1)
  210. weldarmx = math.rad(45)
  211. weldarmy = math.rad(0)
  212. weldarmz = math.rad(-45)
  213. weldarmxx = -0.1
  214. weldarmyy = 0
  215. weldarmzz = -1
  216. wait(0.2)
  217. for i,v in pairs(char:GetChildren()) do
  218. if v.Name == "weldarm" then
  219. v:Destroy()
  220. end
  221. end
  222. wait()
  223. swinging = false
  224. swordcooldown = false
  225. end
  226. end
  227. end)
  228. decap_sound = Instance.new("Sound",Part0)
  229. decap_sound.Volume = 10
  230. decap_sound.SoundId = "rbxassetid://3533899133"
  231. Sound2 = Instance.new("Sound",Part0)
  232. Sound2.Parent = Part0
  233. Sound2.SoundId = "rbxassetid://2235655773"
  234. Sound2.Volume = 1
  235. Part0.Touched:Connect(function(hit)
  236. if swinging == true and hit.Parent ~= char then
  237. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  238. DamageFling(hit.Parent)
  239. end
  240. end
  241. end)
  242.  
  243. function ragdoll(noob)
  244.  
  245. local dead = Instance.new("VelocityMotor",noob)
  246. dead.Name = "Ragdolled"
  247.  
  248. local socket = Instance.new("BallSocketConstraint",noob.Head)
  249. local acth1 = Instance.new("Attachment",noob.Head)
  250. acth1.Position = Vector3.new(0,-0.5,0)
  251. local acth2 = Instance.new("Attachment",noob.Torso)
  252. acth2.Position = Vector3.new(0,1,0)
  253. socket.Attachment0 = acth1
  254. socket.Attachment1 = acth2
  255.  
  256. local socket2 = Instance.new("BallSocketConstraint",noob["Right Arm"])
  257. local acth3 = Instance.new("Attachment",noob["Right Arm"])
  258. acth3.Position = Vector3.new(0,0.5,0)
  259. local acth4 = Instance.new("Attachment",noob.Torso)
  260. acth4.Position = Vector3.new(1.5,0.5,0)
  261. socket2.Attachment0 = acth3
  262. socket2.Attachment1 = acth4
  263.  
  264. local socket3 = Instance.new("BallSocketConstraint",noob["Left Arm"])
  265. local acth5 = Instance.new("Attachment",noob["Left Arm"])
  266. acth5.Position = Vector3.new(0,0.5,0)
  267. local acth6 = Instance.new("Attachment",noob.Torso)
  268. acth6.Position = Vector3.new(-1.5,0.5,0)
  269. socket3.Attachment0 = acth5
  270. socket3.Attachment1 = acth6
  271.  
  272. local socket4 = Instance.new("BallSocketConstraint",noob["Right Leg"])
  273. local acth7 = Instance.new("Attachment",noob["Right Leg"])
  274. acth7.Position = Vector3.new(0,1,0)
  275. local acth8 = Instance.new("Attachment",noob.Torso)
  276. acth8.Position = Vector3.new(0.5,-1,0)
  277. socket4.Attachment0 = acth7
  278. socket4.Attachment1 = acth8
  279.  
  280. local socket5 = Instance.new("BallSocketConstraint",noob["Left Leg"])
  281. local acth9 = Instance.new("Attachment",noob["Left Leg"])
  282. acth9.Position = Vector3.new(0,1,0)
  283. local acth10 = Instance.new("Attachment",noob.Torso)
  284. acth10.Position = Vector3.new(-0.5,-1,0)
  285. socket5.Attachment0 = acth9
  286. socket5.Attachment1 = acth10
  287. end
  288.  
  289. local head = chr:WaitForChild("Head")
  290. local tors = chr:WaitForChild("Torso")
  291. local huma = chr:WaitForChild("Humanoid")
  292. local player = game.Players.LocalPlayer
  293. local mouse = player:GetMouse()
  294. local neck = Instance.new("Weld",tors)
  295. neck.Part0 = tors
  296. neck.Part1 = head
  297. neck.C0 = CFrame.new(0,1.5,0)
  298. local nek = neck.C1
  299. local root = chr.HumanoidRootPart.RootJoint.C0
  300. local rs = tors["Right Shoulder"].C0
  301. local ls = tors["Left Shoulder"].C0
  302. local rh = tors["Right Hip"].C0
  303. local lh = tors["Left Hip"].C0
  304. local rootpart = chr:WaitForChild("HumanoidRootPart")
  305. local pose = "idle"
  306. attacking = false
  307. running = false
  308. local toolthing = Instance.new("BoolValue",chr)
  309. toolthing.Value = false
  310. toolthing.Name = "toolanim"
  311.  
  312. function onRunning(speed)
  313. if speed>=10 then
  314. pose = "walking"
  315. else
  316. pose = "idle"
  317. end
  318. end
  319. function onDied()
  320. ragdoll(chr)
  321. rootpart:Destroy()
  322. end
  323. huma.Died:Connect(onDied)
  324. huma.Running:Connect(onRunning)
  325.  
  326. huma.Animator:Destroy()
  327. while game:GetService("RunService").Stepped:wait(0) do
  328.  
  329. if attacking == false and toolthing.Value == false then
  330.  
  331. if pose == 'idle' then
  332.  
  333. 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)
  334. 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)
  335. 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)
  336. 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)
  337. 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)
  338. 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)
  339.  
  340. elseif pose == 'walking' then
  341.  
  342. 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)
  343. 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)
  344. 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)
  345. 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)
  346. 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)
  347. 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)
  348.  
  349. end
  350. end
  351. end
  352. local mouse = game.Players.LocalPlayer:GetMouse()
  353. local running = false
  354.  
  355. function getTool()
  356. for _, kid in ipairs(script.Parent:GetChildren()) do
  357. if kid.className == "Tool" then return kid end
  358. end
  359. return nil
  360. end
  361.  
  362.  
  363. mouse.KeyDown:connect(function (key) -- Run function
  364. key = string.lower(key)
  365. if string.byte(key) == 48 then
  366. running = true
  367. local keyConnection = mouse.KeyUp:connect(function (key)
  368. if string.byte(key) == 48 then
  369. running = false
  370. end
  371. end)
  372. for i = 1,5 do
  373. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  374. wait()
  375. end
  376. chr.Humanoid.WalkSpeed = 30
  377. repeat wait () until running == false
  378. keyConnection:disconnect()
  379. chr.Humanoid.WalkSpeed = 16
  380. for i = 1,5 do
  381. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  382. wait()
  383. end
  384. end
  385. end)
Add Comment
Please, Sign In to add comment