soins1

Untitled

Dec 5th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.86 KB | None | 0 0
  1. print("q super jump")
  2. print("e forward dash")
  3. print("r ground spear")
  4. print("f spear throw")
  5. print("v punch")
  6. print("g ground punch")
  7. print("p music in queue")
  8. print("m play/stop music")
  9. print("t wut")
  10. local Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  11. Handle:BreakJoints()
  12. Handle.TopSurface = "Smooth"
  13. Handle.Material = "SmoothPlastic"
  14. Handle.Name = 'Handle'
  15. Handle.Transparency=1
  16. Handle.BottomSurface = "Smooth"
  17. Handle.FormFactor = "Custom" Handle.CanCollide = false
  18. Handle.BrickColor = BrickColor.new("Medium stone grey")
  19. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  20. local Handleweld = Instance.new("ManualWeld")
  21. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  22. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  23. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  24. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  25. staffweld=Handleweld
  26. Handlecf=Handleweld.C1
  27. local Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  28. Grip:BreakJoints()
  29. Grip.TopSurface = "Smooth"
  30. Grip.Material = "SmoothPlastic"
  31. Grip.Name = 'Grip'
  32. Grip.BottomSurface = "Smooth"
  33. Grip.FormFactor = "Custom" Grip.CanCollide = false
  34. Grip.BrickColor = BrickColor.new("Toothpaste")
  35. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  36. local Gripweld = Instance.new("ManualWeld")
  37. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  38. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  39. Gripweld.Parent = Grip
  40. local GripMesh = Instance.new("CylinderMesh",Grip)
  41. GripMesh.Name = "Mesh"
  42. GripMesh.Offset = Vector3.new(0, 0, 0)
  43. GripMesh.Scale = Vector3.new(1, 1, 1)
  44.  
  45. local Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  46. Down:BreakJoints()
  47. Down.TopSurface = "Smooth"
  48. Down.Material = "SmoothPlastic"
  49. Down.Name = 'Down'
  50. Down.BottomSurface = "Smooth"
  51. Down.FormFactor = "Custom" Down.CanCollide = false
  52. Down.BrickColor = BrickColor.new("Toothpaste")
  53. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  54. local Downweld = Instance.new("ManualWeld")
  55. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  56. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  57. Downweld.Parent = Down
  58. local Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  59. Connector:BreakJoints()
  60. Connector.TopSurface = "Smooth"
  61. Connector.Material = "SmoothPlastic"
  62. Connector.Name = 'Connector'
  63. Connector.Shape="Ball"
  64. Connector.BottomSurface = "Smooth"
  65. Connector.FormFactor = "Custom" Connector.CanCollide = false
  66. Connector.BrickColor = BrickColor.new("Toothpaste")
  67. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  68. Connectorweld = Instance.new("ManualWeld")
  69. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  70. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  71. Connectorweld.Parent = Connector
  72. local Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  73. Up:BreakJoints()
  74. Up.TopSurface = "Smooth"
  75. Up.Material = "SmoothPlastic"
  76. Up.Name = 'Up'
  77. Up.BottomSurface = "Smooth"
  78. Up.FormFactor = "Custom" Up.CanCollide = false
  79. Up.BrickColor = BrickColor.new("Toothpaste")
  80. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  81. local Upweld = Instance.new("ManualWeld")
  82. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  83. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  84. Upweld.Parent = Up
  85. Connector.Material="Neon"
  86. Grip.Material="Neon"
  87. Up.Material="Neon"
  88. Down.Material="Neon"
  89. Player=game:GetService("Players").LocalPlayer
  90. Character=Player.Character
  91. Character.Animate:Destroy()
  92. PlayerGui=Player.PlayerGui
  93. Backpack=Player.Backpack
  94. Torso=Character.Torso
  95. Head=Character.Head
  96. Humanoid=Character.Humanoid
  97. Humanoid.WalkSpeed=32
  98. LeftArm=Character["Left Arm"]
  99. LeftLeg=Character["Left Leg"]
  100. RightArm=Character["Right Arm"]
  101. RightLeg=Character["Right Leg"]
  102. LS=Torso["Left Shoulder"]
  103. LH=Torso["Left Hip"]
  104. RS=Torso["Right Shoulder"]
  105. RH=Torso["Right Hip"]
  106. Neck=Torso.Neck
  107. it=Instance.new
  108. vt=Vector3.new
  109. cf=CFrame.new
  110. euler=CFrame.fromEulerAnglesXYZ
  111. angles=CFrame.Angles
  112. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  113. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  114. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  115. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  116. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  117. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  118. RootPart=Character.HumanoidRootPart
  119. RootJoint=RootPart.RootJoint
  120. RootCF=euler(-1.57,0,3.14)
  121. attack=false
  122. attackdebounce=false
  123. MMouse=nil
  124. combo=0
  125. local Anim="Idle"
  126. player=nil
  127. --save shoulders
  128. RSH, LSH=nil, nil
  129. --welds
  130. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  131. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  132. LH=Torso["Left Hip"]
  133. RH=Torso["Right Hip"]
  134. Head.Running.SoundId="rbxassetid://696796643"
  135. Instance.new("PitchShiftSoundEffect",Character.Head.Running).Octave=0.5
  136. function clerp(a,b,t)
  137. local qa = {QuaternionFromCFrame(a)}
  138. local qb = {QuaternionFromCFrame(b)}
  139. local ax, ay, az = a.x, a.y, a.z
  140. local bx, by, bz = b.x, b.y, b.z
  141. local _t = 1-t
  142. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  143. end
  144.  
  145. function QuaternionFromCFrame(cf)
  146. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  147. local trace = m00 + m11 + m22
  148. if trace > 0 then
  149. local s = math.sqrt(1 + trace)
  150. local recip = 0.5/s
  151. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  152. else
  153. local i = 0
  154. if m11 > m00 then
  155. i = 1
  156. end
  157. if m22 > (i == 0 and m00 or m11) then
  158. i = 2
  159. end
  160. if i == 0 then
  161. local s = math.sqrt(m00-m11-m22+1)
  162. local recip = 0.5/s
  163. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  164. elseif i == 1 then
  165. local s = math.sqrt(m11-m22-m00+1)
  166. local recip = 0.5/s
  167. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  168. elseif i == 2 then
  169. local s = math.sqrt(m22-m00-m11+1)
  170. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  171. end
  172. end
  173. end
  174.  
  175. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  176. local xs, ys, zs = x + x, y + y, z + z
  177. local wx, wy, wz = w*xs, w*ys, w*zs
  178. local xx = x*xs
  179. local xy = x*ys
  180. local xz = x*zs
  181. local yy = y*ys
  182. local yz = y*zs
  183. local zz = z*zs
  184. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  185. end
  186.  
  187. function QuaternionSlerp(a, b, t)
  188. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  189. local startInterp, finishInterp;
  190. if cosTheta >= 0.0001 then
  191. if (1 - cosTheta) > 0.0001 then
  192. local theta = math.acos(cosTheta)
  193. local invSinTheta = 1/math.sin(theta)
  194. startInterp = math.sin((1-t)*theta)*invSinTheta
  195. finishInterp = math.sin(t*theta)*invSinTheta
  196. else
  197. startInterp = 1-t
  198. finishInterp = t
  199. end
  200. else
  201. if (1+cosTheta) > 0.0001 then
  202. local theta = math.acos(-cosTheta)
  203. local invSinTheta = 1/math.sin(theta)
  204. startInterp = math.sin((t-1)*theta)*invSinTheta
  205. finishInterp = math.sin(t*theta)*invSinTheta
  206. else
  207. startInterp = t-1
  208. finishInterp = t
  209. end
  210. end
  211. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  212. end
  213. function swait(num)
  214. if num==0 or num==nil then
  215. game:service'RunService'.RenderStepped:wait()
  216. else
  217. for i=0,num do
  218. game:service'RunService'.RenderStepped:wait()
  219. end
  220. end
  221. end
  222. function weld(parent,part0,part1,c0)
  223. local weld=it("Weld")
  224. weld.Parent=parent
  225. weld.Part0=part0
  226. weld.Part1=part1
  227. weld.C0=c0
  228. return weld
  229. end
  230. local function rs()
  231. game:GetService("RunService").RenderStepped:wait()
  232. end
  233.  
  234. Plr = game.Players.LocalPlayer
  235. P = Plr.Character
  236. Mouse = Plr:GetMouse()
  237.  
  238. ch = P
  239. RSH=ch.Torso["Right Shoulder"]
  240. LSH=ch.Torso["Left Shoulder"]
  241. RF, LF=Instance.new("Weld"), Instance.new("Weld")
  242. --
  243. RSH.Parent=nil
  244. LSH.Parent=nil
  245. --
  246. RW.Name="Right Shoulder"
  247. RW.Part0=ch.Torso
  248. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  249. RW.C1=cf(0, 0.5, 0)
  250. RW.Part1=ch["Right Arm"]
  251. RW.Parent=P.Torso
  252. --
  253. LW.Name="Left Shoulder"
  254. LW.Part0=ch.Torso
  255. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  256. LW.C1=cf(0, 0.5, 0)
  257. LW.Part1=ch["Left Arm"]
  258. LW.Parent=P.Torso
  259. --
  260. RF.Name="Right Hip"
  261. RF.Part0=ch.Torso
  262. RF.C0=cf(.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  263. RF.C1=cf(0, 0.5, 0)
  264. RF.Part1=ch["Right Leg"]
  265. RF.Parent=P.Torso
  266. --
  267. LF.Name="Left Hip"
  268. LF.Part0=ch.Torso
  269. LF.C0=cf(-.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  270. LF.C1=cf(0, 0.5, 0)
  271. LF.Part1=ch["Left Leg"]
  272. LF.Parent=P.Torso
  273. RFC0 = RF.C0
  274. LFC0 = LF.C0
  275. RWC0 = CFrame.new(1.5, 0.5, 0, -0.945518613, -0.32556811, 0, 0.32556811, -0.945518613, 0, 0, 0, 1)
  276. LWC0 = CFrame.new(-1.05161786, 0.471444488, -0.853310168, 0.459834456, -0.887635231, -0.0256112181, 0.116241433, 0.08876127, -0.989246905, 0.880363643, 0.451912731, 0.143995479)
  277. TC0 = RootJoint.C0
  278. HC0 = Torso.Neck.C0
  279.  
  280. local Rads = 14
  281. local sine = 0
  282. local Arms = true
  283. local Legs = true
  284. local AttArm = 0
  285. local AttLeg = 0
  286. local Enabled = true
  287.  
  288. function Walk()
  289. if Arms then
  290. RW.C0=clerp(RW.C0,cf(1.5, 0.5, 0)*euler(-math.rad(50),0,math.rad(30)),.3)
  291. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(15),0,0),.3)
  292. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.Angles(0,math.rad(90),0),.3)
  293. LW.C0=clerp(LW.C0,cf(-1.5+math.abs(math.sin(-sine)*.233), 0.5, math.sin(sine)*.233)*euler(-math.sin(sine)/1.5*(Humanoid.WalkSpeed/13),0,-math.sin(sine)/3*(Humanoid.WalkSpeed/13)),.3)
  294. end
  295. if Legs then
  296. RF.C0=clerp(RF.C0,cf(.5, -1.5, math.sin(sine)*.233)*euler(-math.sin(sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  297. LF.C0=clerp(LF.C0,cf(-.5, -1.5, math.sin(-sine)*.233)*euler(-math.sin(-sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  298. end
  299. sine = sine + math.rad(Rads)
  300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  301. end
  302. function Aim()
  303. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, -0.945518613, -0.32556811, 0, 0.32556811, -0.945518613, 0, 0, 0, 1),.3)
  304. LW.C0=clerp(LW.C0,CFrame.new(-1.05161786, 0.471444488, -0.853310168, 0.459834456, -0.887635231, -0.0256112181, 0.116241433, 0.08876127, -0.989246905, 0.880363643, 0.451912731, 0.143995479),.3)
  305. RootJoint.C0=clerp(RootJoint.C0,TC0,.3)
  306. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  307. Torso.Neck.C0=clerp(Torso.Neck.C0,HC0,.3)
  308. if Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 and Legs then
  309. RF.C0=clerp(RF.C0,cf(.5, -1.5, math.sin(sine)*.233)*euler(-math.sin(sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  310. LF.C0=clerp(LF.C0,cf(-.5, -1.5, math.sin(-sine)*.233)*euler(-math.sin(-sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  311. sine = sine + math.rad(Rads)
  312. end
  313. end
  314. function Idle()
  315. if Arms then
  316. RW.C0=clerp(RW.C0,cf(1.5, 0.5, 0)*CFrame.new(0, 0, 0, 0.862729907, -0.5, -0.0754789189, 0.49809736, 0.866025388, -0.0435777754, 0.0871555507, 0, 0.99619472),.3)
  317. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*CFrame.new(0, 0, 0, 0.173648223, 0.98480773, 0, -0.98480773, 0.173648223, 0, 0, 0, 1),.3)
  318. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,-math.rad(70)),.3)
  319. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  320. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(70)),.3)
  321. end
  322. if Legs then
  323. RF.C0=clerp(RF.C0,RFC0*cf(0,0,0)*CFrame.new(0, -0, 0, 0.99619472, 0, -0.0871557817, 0, 1, 0, 0.0871557817, 0, 0.99619472),.3)
  324. LF.C0=clerp(LF.C0,LFC0*cf(0,0,0)*CFrame.new(0, -0, 0, 0.906307638, 0, 0.422618419, 0, 1, 0, -0.422618419, 0, 0.906307638),.3)
  325. end
  326. end
  327.  
  328. function Sound(ID,Par,Pitch,Vol)
  329. local Sound = Instance.new("Sound",Par)
  330. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  331. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..tostring(ID))
  332. Sound.Pitch = Pitch
  333. Sound.Volume = Vol
  334. game.Debris:AddItem(Sound,Sound.TimeLength)
  335. rs()
  336. Sound:Play()
  337. end
  338. local aiming = false
  339. local Jumping = false
  340. local Jumpi = 0
  341.  
  342. game:GetService("RunService").Heartbeat:connect(function()
  343. if Jumping == true then
  344. Jumpi = Jumpi + 1
  345. if Arms then
  346. RW.C0=clerp(RW.C0,cf(1, 1, 0)*euler(0,0,math.pi/2+math.pi/4),.5)
  347. LW.C0=clerp(LW.C0,cf(-1, 1, 0)*euler(0,0,-math.pi/2-math.pi/4),.5)
  348. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(math.pi/16,0,0),.5)
  349. end
  350. if Legs then
  351. RF.C0=clerp(RF.C0,RFC0*cf(0,0,0)*euler(0,0,0),.5)
  352. LF.C0=clerp(LF.C0,LFC0*cf(0,.5,-.6)*euler(0,0,0),.5)
  353. end
  354. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.5)
  355. if Jumpi == 10 then
  356. Jumping = false
  357. Jumpi = 0
  358. end
  359. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude < 3 then
  360. if aiming then
  361. Aim()
  362. else
  363. Idle()
  364. end
  365. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 then
  366. if aiming then
  367. Aim()
  368. else
  369. Walk()
  370. end
  371. end
  372. end)
  373. P.Humanoid.Jumping:connect(function()
  374. if Arms == false and Legs == false then
  375. else
  376. Jumping = true
  377. end
  378. end)
  379. function hwait()
  380. game:GetService("RunService").Heartbeat:wait()
  381. end
  382. function Sound(ID,Par,Pitch,Vol)
  383. local Sound = Instance.new("Sound",Par)
  384. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  385. game:GetService("ContentProvider"):Preload("rbxassetid://"..tostring(ID))
  386. Sound.Pitch = Pitch
  387. Sound.Volume = Vol
  388. wait()
  389. game.Debris:AddItem(Sound,Sound.TimeLength)
  390. rs()
  391. Sound:Play()
  392. return Sound
  393. end
  394. function Damage(Dmg,Part)
  395. local Child = Part
  396. local Par = Part.Parent
  397. if Par == workspace then
  398. elseif Par~=nil then
  399. repeat
  400. Child = Par
  401. Par = Par.Parent
  402. until Par == workspace
  403. end
  404. local Found = false
  405. function Search(c)
  406. coroutine.resume(coroutine.create(function()
  407. for i,v in pairs (c:GetChildren()) do
  408. if v:IsA("Humanoid") then
  409. for i = 1,10 do
  410. v.Health = v.Health - Dmg/10
  411. Found = true
  412. end
  413. end
  414. Search(v)
  415. end
  416. end))
  417. end
  418. if Child ~= P then
  419. Search(Child)
  420. end
  421. if Found == false then
  422. return false
  423. else
  424. return true
  425. end
  426. end
  427. neg={-1,1}
  428. Mouse.Button1Down:connect(function()
  429. if Enabled == true then
  430. Enabled = false
  431. Arms = false
  432. local Hit = false
  433. AttArm = AttArm + 1
  434. Handle.Touched:connect(function(part)
  435. if Hit == false then
  436. local Hitz = Damage(10,part)
  437. if Hitz == true then
  438. Hit = true
  439. end
  440. end
  441. end)
  442. if AttArm % 2 == 0 then
  443. for i = 0,1,0.05 do
  444. rs()
  445. RW.C0=clerp(RW.C0,CFrame.new(0.327810407, 0.426284045, -0.812734485, 0.499530673, 0.832429767, 0.23985371, -0.765840292, 0.553754687, -0.32687068, -0.404916912, -0.0204077363, 0.914125562),.3)
  446. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(0,0,-math.pi/16),.3)
  447. LW.C0=clerp(LW.C0,CFrame.new(-1.12515569, 0.390085489, -0.0568969324, 0.966400146, 0.0897351503, -0.240870312, -0.223289788, 0.757267952, -0.613748312, 0.127328619, 0.646910369, 0.751860738),.3)
  448. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  449. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  450. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  451. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  452. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  453.  
  454. end
  455. elseif AttArm % 2 == 1 then
  456. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(math.pi/2,0,0),1)
  457. for i = 0,1,0.05 do
  458. rs()
  459. RW.C0=clerp(RW.C0, CFrame.new(1.00035846, 0.481068671, 0, -0.838670492, -0.436109662, 0.326251596, 0.544639111, -0.671549916, 0.502383232, 0, 0.599023461, 0.80073148),.3)
  460. LW.C0=clerp(LW.C0,CFrame.new(0.418275297, 0.689788699, -0.483788908, -0.600420177, -0.779812098, 0.177168876, 0.799684703, -0.585499287, 0.133022174, 0, 0.221548468, 0.975149393),.3)
  461. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  462. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  463. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  464. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  465. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  466.  
  467. end
  468. end
  469. Hit=true
  470. Enabled=true
  471. Arms=true
  472. end
  473. end)
  474. Handle.Archivable=true
  475. Character.Sound.Parent=Character.Head
  476. --battle against a true hero, spear of justice, run, undyne, sharax, game over
  477. songs = {411911844,411911844,411911844,411911844,411911844,411911844}
  478. songtitles = {"Battle Against a True Hero","Spear of Justice","Run!","Undyne","SharaX's Battle Against a True Hero","Soul break","Game Over"}
  479. k=0
  480. spears={}
  481. Mouse.KeyDown:connect(function(key)
  482. if key=="f" then
  483. aiming=true
  484. Arms=false
  485. wait(.0)
  486. Sound(334702864,Character.Torso,1,1)
  487. if Character.Humanoid.Health<=50 and Handle~=nil then
  488. for offset = 1, 5 do
  489. Handleweld.Parent=nil
  490. Upweld.Parent=nil
  491. Downweld.Parent=nil
  492. Gripweld.Parent=nil
  493. Connectorweld.Parent=nil
  494. Handle:BreakJoints()
  495. local spear = Handle:Clone()
  496. Upweld.Parent=Handle
  497. Downweld.Parent=Handle
  498. Gripweld.Parent=Handle
  499. Connectorweld.Parent=Handle
  500. Handleweld.Parent=Handle
  501. spear:BreakJoints()
  502. spear.Anchored=true
  503. Connector:Clone().Parent=spear
  504. Up:Clone().Parent=spear
  505. Down:Clone().Parent=spear
  506. Grip:Clone().Parent=spear
  507. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  508. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  509. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  510. spear.CFrame=Handle.CFrame*CFrame.new(math.random(2,6),0,math.random(2,6)*-1)
  511. spear.Parent=workspace
  512. for _,v in pairs(parts) do
  513. v.CFrame=spear.CFrame*cframes[_]:inverse()
  514. end
  515. table.insert(spears,spear)
  516. end
  517. end
  518. elseif key=="t" then
  519. Arms=false
  520. for i=1,3 do
  521. for erp = 1,10 do
  522. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.153277263, -0.283480376, -0.946649313, 0.879648566, 0.475624204, 0, 0.450249314, -0.83271873, 0.322265476),erp/10)
  523. LW.C0=clerp(LW.C0,CFrame.new(-1.39469635, 0.517272592, -0.170228422, 0.937898338, -0.299321532, 0.175366715, 0.169711918, -0.0450018011, -0.984465718, 0.302563637, 0.953090549, 0.00859132782),erp/10)
  524. Handleweld.C1=clerp(Handleweld.C1,Handlecf,erp/10)
  525. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),erp/10)
  526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),erp/10)
  527. rs()
  528. end
  529. Hit = false
  530. Handle.Touched:connect(function(part)
  531. if Hit == false then
  532. local Hitz = Damage(10,part)
  533. if Hitz == true then
  534. Hit = true
  535. end
  536. end
  537. end)
  538. for erp = 1,10 do
  539. if i==1 then
  540. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.674811959, 0.700760841, 0.231437087, -0.0440065488, 0.351255953, -0.935244679, -0.736676514, 0.620929599, 0.26786983),erp/10)
  541. elseif i==2 then
  542. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.920771599, 0.388925076, -0.0302828625, 0.0161895473, -0.115658574, -0.993157089, -0.389766157, 0.913980544, -0.112791643),erp/10)
  543. else
  544. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.868244171, 0.476193607, 0.13925457, 0.0297700949, 0.230168059, -0.97269541, -0.495243251, 0.848682761, 0.185665786),erp/10)
  545. end
  546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(-40)),erp/10)
  547. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,math.rad(40)),erp/10)
  548. LW.C0=clerp(LW.C0,CFrame.new(-1.5, 0.5, 0, 0.210330695, 0.29751879, 0.931259096, -0.398629963, 0.895882845, -0.196183711, -0.892667413, -0.32996431, 0.307031572),erp/10)
  549. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.Angles(math.rad(70),0,0)*CFrame.new(0,1,2),erp/10)
  550. rs()
  551. end
  552. Hit=true
  553. end
  554. Arms=true
  555. elseif key=="p" then
  556. k=k+1
  557. if k>#songs then k=1 end
  558. print(songtitles[k])
  559. elseif key=="v" then
  560. Arms=false
  561. local push = true
  562. Character["Left Arm"].Touched:connect(function(op)
  563. if push then
  564. if op:IsA("BasePart") then
  565. op.Velocity=Character.HumanoidRootPart.CFrame.lookVector*250
  566. push=false
  567. if op.Parent~=nil then
  568. if op.Parent:FindFirstChild("Humanoid") then
  569. op.Parent.Humanoid.Health=op.Parent.Humanoid.Health-10
  570. end
  571. end
  572. end
  573. end
  574. end)
  575. for erp=1,10 do
  576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(20)),erp/10)
  577. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,math.rad(-20)),erp/10)
  578. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.321100682, -0.192936763, -0.927183747, 0.515038073, 0.857167304, 0, 0.794751585, -0.47753495, 0.374606788),erp/10)
  579. LW.C0=clerp(LW.C0,CFrame.new(-0.896866202, 0.486411452, -0.778488934, 0.92977649, 0.368124545, 0, -0.00642465055, 0.0162268169, -0.99984771, -0.368068486, 0.929634929, 0.0174523834),erp/10)
  580. Handleweld.C1=clerp(Handleweld.C1,Handlecf,erp/10)
  581. rs()
  582. end
  583. wait(.0)
  584. push=false
  585. Arms=true
  586. elseif key=="m" then
  587. if Character.Torso:FindFirstChild("Sound") then
  588. Character.Torso.Sound:Stop()
  589. Character.Torso.Sound:Remove()
  590. else
  591. Sound(songs[k],Character.Torso,1,1)
  592. end
  593. elseif key=="g" then
  594. local hit, pos = workspace:FindPartOnRay(Ray.new(Character.Torso.Position,Vector3.new(0,-1000,0)),Character)
  595. if hit then
  596. idis = (pos-Character.Torso.Position).magnitude
  597. if (pos-Character.Torso.Position).magnitude > 20 then
  598. dis = (pos-Character.Torso.Position).magnitude
  599. Character.Torso.Velocity=Vector3.new(0,-250,0)
  600. Arms=false
  601. Legs=false
  602. for i=1,10 do
  603. LF.C0=clerp(LFC0,CFrame.new(-0.5, 0.200000048, -0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/10)
  604. RW.C0=clerp(RWC0,CFrame.new(0.915500879, 0.521719158, -0.684024155, -0.760409832, 0.649443507, 0.000383748062, -0.0201063696, -0.0241324138, 0.999506533, 0.649132311, 0.760026872, 0.0314084738),i/10)
  605. LW.C0=clerp(LWC0,CFrame.new(-0.942085445, 0.456736922, -0.571716368, 0.715692759, -0.697393179, -0.037769489, 0, 0.0540788434, -0.998536646, 0.69841522, 0.714645445, 0.0387038365),i/10)
  606. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(20),0,0),i/10)
  607. RF.C0=clerp(RFC0,CFrame.new(0.5, 0.200000048, -0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/10)
  608. Handleweld.C1=clerp(Handleweld.C1,Handlecf,i/10)
  609. rs()
  610. end
  611. repeat
  612. dis = (pos-Character.Torso.Position).magnitude
  613. rs()
  614. until dis<=3
  615. Arms=true
  616. Legs=true
  617. local p=Instance.new("Part")
  618. p.Anchored=true
  619. p.CanCollide=false
  620. p.Size=Vector3.new(4,4,4)
  621. p.Transparency=0
  622. local m=Instance.new("SpecialMesh",p)
  623. m.MeshType="FileMesh"
  624. m.Scale=p.Size
  625. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  626. local p2=Instance.new("Part")
  627. p2.Anchored=true
  628. p2.CanCollide=false
  629. p2.Size=Vector3.new(4,4,4)
  630. p2.Transparency=0
  631. local m2=Instance.new("SpecialMesh",p2)
  632. m2.MeshType="FileMesh"
  633. m2.Scale=p2.Size
  634. m2.MeshId="http://www.roblox.com/asset/?id=3270017"
  635. local initpcf = P.Torso.CFrame*CFrame.new(0,-2.5,0)
  636. Sound(696814340,Character.Torso,1,2)
  637. p.Touched:connect(function(op)
  638. if op.Parent.Name~=P.Name then
  639. if op.Parent:FindFirstChild("Humanoid") then
  640. op.Parent.Humanoid:TakeDamage(5)
  641. end
  642. end
  643. end)
  644. spawn(function()
  645. repeat
  646. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  647. p.CFrame=initpcf
  648. p.Parent=workspace
  649. p.Transparency=p.Transparency+5/idis
  650. m.Scale=p.Size
  651. p2.Size=p2.Size+Vector3.new(0.5,0.5,0)
  652. p2.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
  653. p2.Parent=workspace
  654. p2.Transparency=p2.Transparency+5/idis
  655. m2.Scale=p2.Size
  656. wait()
  657. until p.Transparency>=1
  658. p:Remove()
  659. p2:Remove()
  660. end)
  661. end
  662. end
  663. elseif key=="e" then
  664. Arms=false
  665. Legs=false
  666. for i = 1,10 do
  667. rs()
  668. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, 0.98419559, 0, 0.177084729, -0.12521781, 0.707106709, 0.695931375, -0.125217795, -0.707106769, 0.695931315),i/10)
  669. LW.C0=clerp(LWC0,CFrame.new(-0.387910306, 0.400549024, -0.802101016, 0.642787635, -0.766044438, 0, 0.627506793, 0.526540756, -0.57357657, 0.439385146, 0.368687928, 0.819151938),i/10)
  670. RF.C0=clerp(RFC0,CFrame.new(0.5, -1.00000024, -0.600000006, 1, 0, 0, 0, 0.993571818, 0.113203347, 0, -0.113203347, 0.993571818),i/10)
  671. LF.C0=clerp(LFC0,CFrame.new(-0.5, -0.938060188, -0.091341728, 1, 0, 0, 0, 0.923879504, 0.382683456, 0, -0.382683456, 0.923879504),i/10)
  672. RootJoint.C0=clerp(TC0,TC0*CFrame.new(0,0,-0.5),i/10)
  673. Handleweld.C1=clerp(Handleweld.C1*CFrame.Angles(-math.rad(30),0,0),Handlecf,.3)
  674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),i/10)
  675. end
  676. wait(.0)
  677. local p=Instance.new("Part")
  678. p.Anchored=true
  679. p.CanCollide=false
  680. p.Size=Vector3.new(4,4,4)
  681. p.Transparency=0
  682. local m=Instance.new("SpecialMesh",p)
  683. m.MeshType="FileMesh"
  684. m.Scale=p.Size
  685. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  686. local initpcf = P.Torso.CFrame*CFrame.Angles(math.rad(90),0,0)
  687. Sound(696814340,Character.Torso,1,1)
  688. spawn(function()
  689. repeat
  690. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  691. p.CFrame=initpcf
  692. p.Parent=workspace
  693. p.Transparency=p.Transparency+0.05
  694. m.Scale=p.Size
  695. wait()
  696. until p.Transparency>=1
  697. p:Remove()
  698. end)
  699. local init = Character.Torso.CFrame
  700. Character.Torso.Velocity=Character.HumanoidRootPart.CFrame.lookVector*250
  701. Arms=true
  702. Legs=true
  703. elseif key=="q" then
  704. Arms=false
  705. Legs=false
  706. for i = 1,10 do
  707. rs()
  708. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, 0.901832521, -0.432085752, 0, 0.432085752, 0.901832521, 0, 0, 0, 1),i/10)
  709. LW.C0=clerp(LWC0,CFrame.new(-1.5, 0.5, 0, 0.921185374, 0.389123946, 0, -0.389123946, 0.921185374, 0, 0, 0, 1),i/10)
  710. RF.C0=clerp(RFC0,CFrame.new(0.5, -1.000000024, -0.600000006, 1, 0, 0, 0, 0.993571818, 0.113203347, 0, -0.113203347, 0.993571818),i/10)
  711. LF.C0=clerp(LFC0,CFrame.new(-0.5, -0.938060188, -0.091341728, 1, 0, 0, 0, 0.923879504, 0.382683456, 0, -0.382683456, 0.923879504),i/10)
  712. RootJoint.C0=clerp(TC0,TC0*CFrame.new(0,0,-0.5),i/10)
  713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(20),0,0),i/10)
  714. end
  715. wait(.0)
  716. local p=Instance.new("Part")
  717. p.Anchored=true
  718. p.CanCollide=false
  719. p.Size=Vector3.new(4,4,4)
  720. p.Transparency=0
  721. local m=Instance.new("SpecialMesh",p)
  722. m.MeshType="FileMesh"
  723. m.Scale=p.Size
  724. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  725. local initpcf = P.Torso.CFrame*CFrame.new(0,-2.5,0)
  726. Sound(696796878,Character.Torso,1,1)
  727. spawn(function()
  728. repeat
  729. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  730. p.CFrame=initpcf
  731. p.Parent=workspace
  732. p.Transparency=p.Transparency+0.05
  733. m.Scale=p.Size
  734. wait()
  735. until p.Transparency>=1
  736. p:Remove()
  737. end)
  738. local init = Character.Torso.CFrame
  739. Character.Humanoid.Jump=true
  740. Character.Torso.Velocity=Vector3.new(0,250,0)
  741. Arms=true
  742. Legs=true
  743. elseif key=="r" then
  744. if Character.Humanoid.Health>=Character.Humanoid.MaxHealth/2 then
  745. local hint = Instance.new("Part")
  746. hint.Shape="Cylinder"
  747. Sound(334702864,hint,1,1)
  748. hint.Anchored=true
  749. hint.CanCollide=false
  750. hint.Material="Neon"
  751. hint.Transparency=1
  752. hint.BrickColor=BrickColor.new("Toothpaste")
  753. hint.Size=Vector3.new(.2,4,4)
  754. hint.CFrame=CFrame.new(Mouse.Hit.p)*CFrame.Angles(0,0,math.rad(90))
  755. hint.Parent=workspace
  756. for i = 1,30 do
  757. rs()
  758. hint.Transparency=1-i/30
  759. end
  760. Handleweld.Parent=nil
  761. Upweld.Parent=nil
  762. Downweld.Parent=nil
  763. Gripweld.Parent=nil
  764. Connectorweld.Parent=nil
  765. Handle:BreakJoints()
  766. local spear = Handle:Clone()
  767. Upweld.Parent=Handle
  768. Downweld.Parent=Handle
  769. Gripweld.Parent=Handle
  770. Connectorweld.Parent=Handle
  771. Handleweld.Parent=Handle
  772. spear:BreakJoints()
  773. spear.Anchored=true
  774. Connector:Clone().Parent=spear
  775. Up:Clone().Parent=spear
  776. Down:Clone().Parent=spear
  777. Grip:Clone().Parent=spear
  778. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  779. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  780. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  781. spear.CFrame=CFrame.new((hint.CFrame*CFrame.new(-5,0,0)).p)
  782. spear.Parent=workspace
  783. Sound(696796381,spear,1,1)
  784. spear.Touched:connect(function(v)
  785. if v.Parent~=nil then
  786. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  787. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-10
  788. end
  789. end
  790. end)
  791. for _,v in pairs(parts) do
  792. v.CFrame=spear.CFrame*cframes[_]:inverse()
  793. end
  794. for i = 1,10 do
  795. rs()
  796. spear.CFrame=spear.CFrame*CFrame.new(0,0.7,0)
  797. for _,v in pairs(parts) do
  798. v.CFrame=spear.CFrame*cframes[_]:inverse()
  799. end
  800. end
  801. spawn(function()
  802. wait(.5)
  803. spear:Destroy()
  804. Handleweld = Instance.new("ManualWeld")
  805. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  806. Handleweld.Part1 = Character.Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  807. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  808. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  809. hint:Remove()
  810. end)
  811. else
  812. for offset = 1, 5 do
  813. spawn(function()
  814. local multiplier = neg[math.random(1,2)]
  815. local multi = neg[math.random(1,2)]
  816. local hint = Instance.new("Part")
  817. hint.Shape="Cylinder"
  818. Sound(334702864,hint,1,1)
  819. hint.Anchored=true
  820. hint.CanCollide=false
  821. hint.Material="Neon"
  822. hint.Transparency=1
  823. hint.BrickColor=BrickColor.new("Toothpaste")
  824. hint.Size=Vector3.new(.2,4,4)
  825. if offset==1 then
  826. hint.CFrame=CFrame.new(Mouse.Hit.p)*CFrame.Angles(0,0,math.rad(90))
  827. else
  828. hint.CFrame=CFrame.new(Mouse.Hit.p+Vector3.new(math.random(1,10)*multi,0,math.random(1,10)*multiplier))*CFrame.Angles(0,0,math.rad(90))
  829. end
  830. hint.Parent=workspace
  831. for i = 1,30 do
  832. rs()
  833. hint.Transparency=1-i/30
  834. end
  835. Handleweld.Parent=nil
  836. Upweld.Parent=nil
  837. Downweld.Parent=nil
  838. Gripweld.Parent=nil
  839. Connectorweld.Parent=nil
  840. Handle:BreakJoints()
  841. local spear = Handle:Clone()
  842. Upweld.Parent=Handle
  843. Downweld.Parent=Handle
  844. Gripweld.Parent=Handle
  845. Connectorweld.Parent=Handle
  846. Handleweld.Parent=Handle
  847. spear:BreakJoints()
  848. spear.Anchored=true
  849. Connector:Clone().Parent=spear
  850. Up:Clone().Parent=spear
  851. Down:Clone().Parent=spear
  852. Grip:Clone().Parent=spear
  853. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  854. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  855. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  856. spear.CFrame=CFrame.new((hint.CFrame*CFrame.new(-5,0,0)).p)
  857. spear.Parent=workspace
  858. Sound(696796381,spear,1,1)
  859. spear.Touched:connect(function(v)
  860. if v.Parent~=nil then
  861. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  862. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-10
  863. end
  864. end
  865. end)
  866. for _,v in pairs(parts) do
  867. v.CFrame=spear.CFrame*cframes[_]:inverse()
  868. end
  869. for i = 1,10 do
  870. rs()
  871. spear.CFrame=spear.CFrame*CFrame.new(0,0.7,0)
  872. for _,v in pairs(parts) do
  873. v.CFrame=spear.CFrame*cframes[_]:inverse()
  874. end
  875. end
  876. spawn(function()
  877. wait(.5)
  878. spear:Destroy()
  879. Handleweld = Instance.new("ManualWeld")
  880. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  881. Handleweld.Part1 = Character.Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  882. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  883. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  884. hint:Remove()
  885. end)
  886. end)
  887. end
  888. end
  889. end
  890. end)
  891.  
  892. local enabled=true
  893. Mouse.KeyUp:connect(function(key)
  894. if key=="f" and enabled then
  895. aiming=false
  896. enabled=false
  897. if #spears==0 then
  898. Handleweld:Destroy()
  899. local temp = Handle
  900. temp.Parent=workspace
  901. temp.CanCollide=true
  902. local parts = {Connector,Up,Down,Grip}
  903. local cframes = {Connectorweld.C1,Upweld.C1,Downweld.C1,Gripweld.C1}
  904. local init = Mouse.Hit.p
  905. local dir = init - temp.Position
  906. for i,v in pairs(parts) do v.Anchored=true end Handle.Anchored=true
  907. spawn(function()
  908. for i = 1,200 do
  909. rs()
  910. for _,v in pairs(temp:GetTouchingParts()) do
  911. if v.Parent~=nil then
  912. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  913. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-5
  914. end
  915. end
  916. end
  917. local Distance = (init-temp.Position).magnitude
  918. if Distance > 2 then Distance = 2 end
  919. temp.CFrame = CFrame.new(temp.Position,init) * CFrame.new(0,0,-Distance) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  920. for _,v in pairs(parts) do
  921. v.CFrame=temp.CFrame*cframes[_]:inverse()
  922. end
  923. end
  924. temp:Remove()
  925. for i,v in pairs(parts) do v:Remove() end
  926. end)
  927. Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  928. Handle:BreakJoints()
  929. Handle.TopSurface = "Smooth"
  930. Handle.Material = "SmoothPlastic"
  931. Handle.Name = 'Handle'
  932. Handle.Transparency=1
  933. Handle.BottomSurface = "Smooth"
  934. Handle.FormFactor = "Custom" Handle.CanCollide = false
  935. Handle.BrickColor = BrickColor.new("Medium stone grey")
  936. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  937. Handleweld = Instance.new("ManualWeld")
  938. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  939. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  940. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  941. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  942. staffweld=Handleweld
  943. Handlecf=Handleweld.C1
  944. Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  945. Grip:BreakJoints()
  946. Grip.TopSurface = "Smooth"
  947. Grip.Material = "SmoothPlastic"
  948. Grip.Name = 'Grip'
  949. Grip.BottomSurface = "Smooth"
  950. Grip.FormFactor = "Custom" Grip.CanCollide = false
  951. Grip.BrickColor = BrickColor.new("Toothpaste")
  952. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  953. Gripweld = Instance.new("ManualWeld")
  954. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  955. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  956. Gripweld.Parent = Grip
  957. GripMesh = Instance.new("CylinderMesh",Grip)
  958. GripMesh.Name = "Mesh"
  959. GripMesh.Offset = Vector3.new(0, 0, 0)
  960. GripMesh.Scale = Vector3.new(1, 1, 1)
  961.  
  962. Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  963. Down:BreakJoints()
  964. Down.TopSurface = "Smooth"
  965. Down.Material = "SmoothPlastic"
  966. Down.Name = 'Down'
  967. Down.BottomSurface = "Smooth"
  968. Down.FormFactor = "Custom" Down.CanCollide = false
  969. Down.BrickColor = BrickColor.new("Toothpaste")
  970. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  971. Downweld = Instance.new("ManualWeld")
  972. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  973. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  974. Downweld.Parent = Down
  975. Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  976. Connector:BreakJoints()
  977. Connector.TopSurface = "Smooth"
  978. Connector.Material = "SmoothPlastic"
  979. Connector.Name = 'Connector'
  980. Connector.Shape="Ball"
  981. Connector.BottomSurface = "Smooth"
  982. Connector.FormFactor = "Custom" Connector.CanCollide = false
  983. Connector.BrickColor = BrickColor.new("Toothpaste")
  984. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  985. Connectorweld = Instance.new("ManualWeld")
  986. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  987. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  988. Connectorweld.Parent = Connector
  989. Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  990. Up:BreakJoints()
  991. Up.TopSurface = "Smooth"
  992. Up.Material = "SmoothPlastic"
  993. Up.Name = 'Up'
  994. Up.BottomSurface = "Smooth"
  995. Up.FormFactor = "Custom" Up.CanCollide = false
  996. Up.BrickColor = BrickColor.new("Toothpaste")
  997. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  998. Upweld = Instance.new("ManualWeld")
  999. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1000. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  1001. Upweld.Parent = Up
  1002. Connector.Material="Neon"
  1003. Grip.Material="Neon"
  1004. Up.Material="Neon"
  1005. Down.Material="Neon"
  1006. Handle.Archivable=true
  1007. else
  1008. local init = Mouse.Hit.p
  1009. for derp,rekt in pairs(spears) do
  1010. spawn(function()
  1011. local asd = rekt
  1012. asd:BreakJoints()
  1013. asd.Parent = workspace
  1014. asd.CanCollide = true
  1015. local parts = {asd.Connector,asd.Up,asd.Down,asd.Grip}
  1016. local cframes = {Connectorweld.C1,Upweld.C1,Downweld.C1,Gripweld.C1}
  1017. for i,v in pairs(parts) do v.Anchored=true end asd.Anchored=true
  1018. for i = 1,200 do
  1019. rs()
  1020. for _,v in pairs(asd:GetTouchingParts()) do
  1021. if v.Parent~=nil then
  1022. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  1023. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-5
  1024. end
  1025. end
  1026. end
  1027. local Distance = (init-asd.Position).magnitude
  1028. if Distance > 2 then Distance = 2 end
  1029. asd.CFrame = CFrame.new(asd.Position,init) * CFrame.new(0,0,-Distance) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  1030. for _,v in pairs(parts) do
  1031. v.CFrame=asd.CFrame*cframes[_]:inverse()
  1032. end
  1033. end
  1034. asd:Remove()
  1035. for i,v in pairs(parts) do v:Remove() end
  1036. end)
  1037. end
  1038. spears = {}
  1039. end
  1040. Sound(696796381,Handle,1,1)
  1041. for i = 1,10 do
  1042. rs()
  1043. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, -0.969445348, 0.175265431, 0.171632558, 0.245307371, 0.692642331, 0.678285301, 0, 0.699663281, -0.714472771),i/10)
  1044. LW.C0=clerp(LWC0,CFrame.new(-1.5, 0.5, 0, 0.880477369, 0.474088192, 0, -0.0928957462, 0.172526136, -0.980614662, -0.464897841, 0.863409042, 0.195946127),i/10)
  1045. end
  1046. enabled=true
  1047. Arms=true
  1048. end
  1049. end)
Advertisement
Add Comment
Please, Sign In to add comment