Yayhey

ddas

Apr 2nd, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.33 KB | None | 0 0
  1. local Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  2. Handle:BreakJoints()
  3. Handle.TopSurface = "Smooth"
  4. Handle.Material = "SmoothPlastic"
  5. Handle.Name = 'Handle'
  6. Handle.Transparency=1
  7. Handle.BottomSurface = "Smooth"
  8. Handle.FormFactor = "Custom" Handle.CanCollide = false
  9. Handle.BrickColor = BrickColor.new("Medium stone grey")
  10. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  11. local Handleweld = Instance.new("ManualWeld")
  12. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  13. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  14. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  15. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  16. staffweld=Handleweld
  17. Handlecf=Handleweld.C1
  18. local Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  19. Grip:BreakJoints()
  20. Grip.TopSurface = "Smooth"
  21. Grip.Material = "SmoothPlastic"
  22. Grip.Name = 'Grip'
  23. Grip.BottomSurface = "Smooth"
  24. Grip.FormFactor = "Custom" Grip.CanCollide = false
  25. Grip.BrickColor = BrickColor.new("Toothpaste")
  26. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  27. local Gripweld = Instance.new("ManualWeld")
  28. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  29. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  30. Gripweld.Parent = Grip
  31. local GripMesh = Instance.new("CylinderMesh",Grip)
  32. GripMesh.Name = "Mesh"
  33. GripMesh.Offset = Vector3.new(0, 0, 0)
  34. GripMesh.Scale = Vector3.new(1, 1, 1)
  35.  
  36. local Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  37. Down:BreakJoints()
  38. Down.TopSurface = "Smooth"
  39. Down.Material = "SmoothPlastic"
  40. Down.Name = 'Down'
  41. Down.BottomSurface = "Smooth"
  42. Down.FormFactor = "Custom" Down.CanCollide = false
  43. Down.BrickColor = BrickColor.new("Toothpaste")
  44. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  45. local Downweld = Instance.new("ManualWeld")
  46. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  47. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  48. Downweld.Parent = Down
  49. local Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  50. Connector:BreakJoints()
  51. Connector.TopSurface = "Smooth"
  52. Connector.Material = "SmoothPlastic"
  53. Connector.Name = 'Connector'
  54. Connector.Shape="Ball"
  55. Connector.BottomSurface = "Smooth"
  56. Connector.FormFactor = "Custom" Connector.CanCollide = false
  57. Connector.BrickColor = BrickColor.new("Toothpaste")
  58. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  59. Connectorweld = Instance.new("ManualWeld")
  60. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  61. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  62. Connectorweld.Parent = Connector
  63. local Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  64. Up:BreakJoints()
  65. Up.TopSurface = "Smooth"
  66. Up.Material = "SmoothPlastic"
  67. Up.Name = 'Up'
  68. Up.BottomSurface = "Smooth"
  69. Up.FormFactor = "Custom" Up.CanCollide = false
  70. Up.BrickColor = BrickColor.new("Toothpaste")
  71. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  72. local Upweld = Instance.new("ManualWeld")
  73. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  74. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  75. Upweld.Parent = Up
  76. Connector.Material="Neon"
  77. Grip.Material="Neon"
  78. Up.Material="Neon"
  79. Down.Material="Neon"
  80. Player=game:GetService("Players").LocalPlayer
  81. Character=Player.Character
  82. Character.Animate:Destroy()
  83. PlayerGui=Player.PlayerGui
  84. Backpack=Player.Backpack
  85. Torso=Character.Torso
  86. Head=Character.Head
  87. Humanoid=Character.Humanoid
  88. Humanoid.WalkSpeed=32
  89. LeftArm=Character["Left Arm"]
  90. LeftLeg=Character["Left Leg"]
  91. RightArm=Character["Right Arm"]
  92. RightLeg=Character["Right Leg"]
  93. LS=Torso["Left Shoulder"]
  94. LH=Torso["Left Hip"]
  95. RS=Torso["Right Shoulder"]
  96. RH=Torso["Right Hip"]
  97. Neck=Torso.Neck
  98. it=Instance.new
  99. vt=Vector3.new
  100. cf=CFrame.new
  101. euler=CFrame.fromEulerAnglesXYZ
  102. angles=CFrame.Angles
  103. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  104. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  105. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  106. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  107. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  108. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  109. RootPart=Character.HumanoidRootPart
  110. RootJoint=RootPart.RootJoint
  111. RootCF=euler(-1.57,0,3.14)
  112. attack=false
  113. attackdebounce=false
  114. MMouse=nil
  115. combo=0
  116. local Anim="Idle"
  117. player=nil
  118. --save shoulders
  119. RSH, LSH=nil, nil
  120. --welds
  121. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  122. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  123. LH=Torso["Left Hip"]
  124. RH=Torso["Right Hip"]
  125.  
  126.  
  127. function clerp(a,b,t)
  128. local qa = {QuaternionFromCFrame(a)}
  129. local qb = {QuaternionFromCFrame(b)}
  130. local ax, ay, az = a.x, a.y, a.z
  131. local bx, by, bz = b.x, b.y, b.z
  132. local _t = 1-t
  133. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  134. end
  135.  
  136. function QuaternionFromCFrame(cf)
  137. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  138. local trace = m00 + m11 + m22
  139. if trace > 0 then
  140. local s = math.sqrt(1 + trace)
  141. local recip = 0.5/s
  142. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  143. else
  144. local i = 0
  145. if m11 > m00 then
  146. i = 1
  147. end
  148. if m22 > (i == 0 and m00 or m11) then
  149. i = 2
  150. end
  151. if i == 0 then
  152. local s = math.sqrt(m00-m11-m22+1)
  153. local recip = 0.5/s
  154. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  155. elseif i == 1 then
  156. local s = math.sqrt(m11-m22-m00+1)
  157. local recip = 0.5/s
  158. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  159. elseif i == 2 then
  160. local s = math.sqrt(m22-m00-m11+1)
  161. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  162. end
  163. end
  164. end
  165.  
  166. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  167. local xs, ys, zs = x + x, y + y, z + z
  168. local wx, wy, wz = w*xs, w*ys, w*zs
  169. local xx = x*xs
  170. local xy = x*ys
  171. local xz = x*zs
  172. local yy = y*ys
  173. local yz = y*zs
  174. local zz = z*zs
  175. 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))
  176. end
  177.  
  178. function QuaternionSlerp(a, b, t)
  179. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  180. local startInterp, finishInterp;
  181. if cosTheta >= 0.0001 then
  182. if (1 - cosTheta) > 0.0001 then
  183. local theta = math.acos(cosTheta)
  184. local invSinTheta = 1/math.sin(theta)
  185. startInterp = math.sin((1-t)*theta)*invSinTheta
  186. finishInterp = math.sin(t*theta)*invSinTheta
  187. else
  188. startInterp = 1-t
  189. finishInterp = t
  190. end
  191. else
  192. if (1+cosTheta) > 0.0001 then
  193. local theta = math.acos(-cosTheta)
  194. local invSinTheta = 1/math.sin(theta)
  195. startInterp = math.sin((t-1)*theta)*invSinTheta
  196. finishInterp = math.sin(t*theta)*invSinTheta
  197. else
  198. startInterp = t-1
  199. finishInterp = t
  200. end
  201. end
  202. 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
  203. end
  204. function swait(num)
  205. if num==0 or num==nil then
  206. game:service'RunService'.RenderStepped:wait()
  207. else
  208. for i=0,num do
  209. game:service'RunService'.RenderStepped:wait()
  210. end
  211. end
  212. end
  213. function weld(parent,part0,part1,c0)
  214. local weld=it("Weld")
  215. weld.Parent=parent
  216. weld.Part0=part0
  217. weld.Part1=part1
  218. weld.C0=c0
  219. return weld
  220. end
  221. local function rs()
  222. game:GetService("RunService").RenderStepped:wait()
  223. end
  224.  
  225. Plr = game.Players.LocalPlayer
  226. P = Plr.Character
  227. Mouse = Plr:GetMouse()
  228.  
  229. ch = P
  230. RSH=ch.Torso["Right Shoulder"]
  231. LSH=ch.Torso["Left Shoulder"]
  232. RF, LF=Instance.new("Weld"), Instance.new("Weld")
  233. --
  234. RSH.Parent=nil
  235. LSH.Parent=nil
  236. --
  237. RW.Name="Right Shoulder"
  238. RW.Part0=ch.Torso
  239. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  240. RW.C1=cf(0, 0.5, 0)
  241. RW.Part1=ch["Right Arm"]
  242. RW.Parent=P.Torso
  243. --
  244. LW.Name="Left Shoulder"
  245. LW.Part0=ch.Torso
  246. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  247. LW.C1=cf(0, 0.5, 0)
  248. LW.Part1=ch["Left Arm"]
  249. LW.Parent=P.Torso
  250. --
  251. RF.Name="Right Hip"
  252. RF.Part0=ch.Torso
  253. RF.C0=cf(.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  254. RF.C1=cf(0, 0.5, 0)
  255. RF.Part1=ch["Right Leg"]
  256. RF.Parent=P.Torso
  257. --
  258. LF.Name="Left Hip"
  259. LF.Part0=ch.Torso
  260. LF.C0=cf(-.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  261. LF.C1=cf(0, 0.5, 0)
  262. LF.Part1=ch["Left Leg"]
  263. LF.Parent=P.Torso
  264. RFC0 = RF.C0
  265. LFC0 = LF.C0
  266. RWC0 = CFrame.new(1.5, 0.5, 0, -0.945518613, -0.32556811, 0, 0.32556811, -0.945518613, 0, 0, 0, 1)
  267. 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)
  268. TC0 = RootJoint.C0
  269. HC0 = Torso.Neck.C0
  270.  
  271. local Rads = 14
  272. local sine = 0
  273. local Arms = true
  274. local Legs = true
  275. local AttArm = 0
  276. local AttLeg = 0
  277. local Enabled = true
  278.  
  279. function Walk()
  280. if Arms then
  281. RW.C0=clerp(RW.C0,cf(1.5, 0.5, 0)*euler(-math.rad(50),0,math.rad(30)),.3)
  282. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(15),0,0),.3)
  283. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.Angles(0,math.rad(90),0),.3)
  284. 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)
  285. end
  286. if Legs then
  287. 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)
  288. 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)
  289. end
  290. sine = sine + math.rad(Rads)
  291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  292. end
  293. function Aim()
  294. 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)
  295. 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)
  296. RootJoint.C0=clerp(RootJoint.C0,TC0,.3)
  297. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  298. Torso.Neck.C0=clerp(Torso.Neck.C0,HC0,.3)
  299. if Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 and Legs then
  300. 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)
  301. 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)
  302. sine = sine + math.rad(Rads)
  303. end
  304. end
  305. function Idle()
  306. if Arms then
  307. 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)
  308. 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)
  309. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,-math.rad(70)),.3)
  310. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(70)),.3)
  312. end
  313. if Legs then
  314. 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)
  315. 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)
  316. end
  317. end
  318.  
  319. function Sound(ID,Par,Pitch,Vol)
  320. local Sound = Instance.new("Sound",Par)
  321. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  322. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..tostring(ID))
  323. Sound.Pitch = Pitch
  324. Sound.Volume = Vol
  325. game.Debris:AddItem(Sound,Sound.TimeLength)
  326. rs()
  327. Sound:Play()
  328. end
  329. local aiming = false
  330. local Jumping = false
  331. local Jumpi = 0
  332.  
  333. game:GetService("RunService").Heartbeat:connect(function()
  334. if Jumping == true then
  335. Jumpi = Jumpi + 1
  336. if Arms then
  337. RW.C0=clerp(RW.C0,cf(1, 1, 0)*euler(0,0,math.pi/2+math.pi/4),.5)
  338. LW.C0=clerp(LW.C0,cf(-1, 1, 0)*euler(0,0,-math.pi/2-math.pi/4),.5)
  339. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(math.pi/16,0,0),.5)
  340. end
  341. if Legs then
  342. RF.C0=clerp(RF.C0,RFC0*cf(0,0,0)*euler(0,0,0),.5)
  343. LF.C0=clerp(LF.C0,LFC0*cf(0,.5,-.6)*euler(0,0,0),.5)
  344. end
  345. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.5)
  346. if Jumpi == 10 then
  347. Jumping = false
  348. Jumpi = 0
  349. end
  350. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude < 3 then
  351. if aiming then
  352. Aim()
  353. else
  354. Idle()
  355. end
  356. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 then
  357. if aiming then
  358. Aim()
  359. else
  360. Walk()
  361. end
  362. end
  363. end)
  364. P.Humanoid.Jumping:connect(function()
  365. if Arms == false and Legs == false then
  366. else
  367. Jumping = true
  368. end
  369. end)
  370. function hwait()
  371. game:GetService("RunService").Heartbeat:wait()
  372. end
  373. function Sound(ID,Par,Pitch,Vol)
  374. local Sound = Instance.new("Sound",Par)
  375. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  376. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..tostring(ID))
  377. Sound.Pitch = Pitch
  378. Sound.Volume = Vol
  379. game.Debris:AddItem(Sound,Sound.TimeLength)
  380. rs()
  381. Sound:Play()
  382. end
  383. function Damage(Dmg,Part)
  384. local Child = Part
  385. local Par = Part.Parent
  386. if Par == workspace then
  387. elseif Par~=nil then
  388. repeat
  389. Child = Par
  390. Par = Par.Parent
  391. until Par == workspace
  392. end
  393. local Found = false
  394. function Search(c)
  395. coroutine.resume(coroutine.create(function()
  396. for i,v in pairs (c:GetChildren()) do
  397. if v:IsA("Humanoid") then
  398. for i = 1,10 do
  399. v.Health = v.Health - Dmg/10
  400. Found = true
  401. end
  402. end
  403. Search(v)
  404. end
  405. end))
  406. end
  407. if Child ~= P then
  408. Search(Child)
  409. end
  410. if Found == false then
  411. return false
  412. else
  413. return true
  414. end
  415. end
  416. neg={-1,1}
  417. Mouse.Button1Down:connect(function()
  418. if Enabled == true then
  419. Enabled = false
  420. Arms = false
  421. local Hit = false
  422. AttArm = AttArm + 1
  423. Handle.Touched:connect(function(part)
  424. if Hit == false then
  425. local Hitz = Damage(10,part)
  426. if Hitz == true then
  427. Hit = true
  428. end
  429. end
  430. end)
  431. if AttArm % 2 == 0 then
  432. for i = 0,1,0.05 do
  433. rs()
  434. 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)
  435. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(0,0,-math.pi/16),.3)
  436. 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)
  437. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  438. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  439. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  440. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  441. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  442.  
  443. end
  444. elseif AttArm % 2 == 1 then
  445. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(math.pi/2,0,0),1)
  446. for i = 0,1,0.05 do
  447. rs()
  448. 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)
  449. 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)
  450. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  451. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  453. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  454. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  455.  
  456. end
  457. end
  458. Enabled=true
  459. Arms=true
  460. end
  461. end)
  462.  
  463. Mouse.KeyDown:connect(function(key)
  464. if key=="f" then
  465. aiming=true
  466. Arms=false
  467. Sound(334702864,Character.Torso,1,1)
  468. elseif key=="r" then
  469. local hint = Instance.new("Part",workspace)
  470. hint.Shape="Cylinder"
  471. Sound(334702864,hint,1,1)
  472. hint.Anchored=true
  473. hint.CanCollide=false
  474. hint.Material="Neon"
  475. hint.Transparency=1
  476. hint.BrickColor=BrickColor.new("Toothpaste")
  477. hint.Size=Vector3.new(.2,4,4)
  478. hint.CFrame=CFrame.new(Mouse.Hit.p)*CFrame.Angles(0,0,math.rad(90))
  479. for i = 1,30 do
  480. rs()
  481. hint.Transparency=1-i/30
  482. end
  483. local spear = Handle:Clone()
  484. spear.Anchored=true
  485. Connector:Clone().Parent=spear
  486. Up:Clone().Parent=spear
  487. Down:Clone().Parent=spear
  488. Grip:Clone().Parent=spear
  489. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  490. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  491. 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)}
  492. spear.CFrame=CFrame.new((hint.CFrame*CFrame.new(-5,0,0)).p)
  493. spear.Parent=workspace
  494. spear.Touched:connect(function(v)
  495. if v.Parent~=nil then
  496. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  497. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-10
  498. end
  499. end
  500. end)
  501. for _,v in pairs(parts) do
  502. v.CFrame=spear.CFrame*cframes[_]:inverse()
  503. end
  504. for i = 1,10 do
  505. rs()
  506. spear.CFrame=spear.CFrame*CFrame.new(0,0.7,0)
  507. for _,v in pairs(parts) do
  508. v.CFrame=spear.CFrame*cframes[_]:inverse()
  509. end
  510. end
  511. spawn(function()
  512. wait(.5)
  513. spear:Destroy()
  514. Handleweld = Instance.new("ManualWeld")
  515. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  516. Handleweld.Part1 = Character.Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  517. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  518. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  519. hint:Remove()
  520. end)
  521. end
  522. end)
  523.  
  524. local enabled=true
  525. Mouse.KeyUp:connect(function(key)
  526. if key=="f" and enabled then
  527. aiming=false
  528. enabled=false
  529. Handleweld:Destroy()
  530. local temp = Handle
  531. temp.CanCollide=true
  532. local parts = {Connector,Up,Down,Grip}
  533. local cframes = {Connectorweld.C1,Upweld.C1,Downweld.C1,Gripweld.C1}
  534. local init = Mouse.Hit.p
  535. local dir = init - temp.Position
  536. for i,v in pairs(parts) do v.Anchored=true end Handle.Anchored=true
  537. spawn(function()
  538. for i = 1,200 do
  539. rs()
  540. for _,v in pairs(temp:GetTouchingParts()) do
  541. if v.Parent~=nil then
  542. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  543. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-5
  544. end
  545. end
  546. end
  547. local Distance = (init-temp.Position).magnitude
  548. if Distance > 2 then Distance = 2 end
  549. temp.CFrame = CFrame.new(temp.Position,init) * CFrame.new(0,0,-Distance) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  550. for _,v in pairs(parts) do
  551. v.CFrame=temp.CFrame*cframes[_]:inverse()
  552. end
  553. end
  554. temp:Remove()
  555. for i,v in pairs(parts) do v:Remove() end
  556. end)
  557. for i = 1,10 do
  558. rs()
  559. 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)
  560. 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)
  561. end
  562. enabled=true
  563. Arms=true
  564. Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  565. Handle:BreakJoints()
  566. Handle.TopSurface = "Smooth"
  567. Handle.Material = "SmoothPlastic"
  568. Handle.Name = 'Handle'
  569. Handle.Transparency=1
  570. Handle.BottomSurface = "Smooth"
  571. Handle.FormFactor = "Custom" Handle.CanCollide = false
  572. Handle.BrickColor = BrickColor.new("Medium stone grey")
  573. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  574. Handleweld = Instance.new("ManualWeld")
  575. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  576. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  577. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  578. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  579. staffweld=Handleweld
  580. Handlecf=Handleweld.C1
  581. Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  582. Grip:BreakJoints()
  583. Grip.TopSurface = "Smooth"
  584. Grip.Material = "SmoothPlastic"
  585. Grip.Name = 'Grip'
  586. Grip.BottomSurface = "Smooth"
  587. Grip.FormFactor = "Custom" Grip.CanCollide = false
  588. Grip.BrickColor = BrickColor.new("Toothpaste")
  589. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  590. Gripweld = Instance.new("ManualWeld")
  591. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  592. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  593. Gripweld.Parent = Grip
  594. GripMesh = Instance.new("CylinderMesh",Grip)
  595. GripMesh.Name = "Mesh"
  596. GripMesh.Offset = Vector3.new(0, 0, 0)
  597. GripMesh.Scale = Vector3.new(1, 1, 1)
  598.  
  599. Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  600. Down:BreakJoints()
  601. Down.TopSurface = "Smooth"
  602. Down.Material = "SmoothPlastic"
  603. Down.Name = 'Down'
  604. Down.BottomSurface = "Smooth"
  605. Down.FormFactor = "Custom" Down.CanCollide = false
  606. Down.BrickColor = BrickColor.new("Toothpaste")
  607. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  608. Downweld = Instance.new("ManualWeld")
  609. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  610. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  611. Downweld.Parent = Down
  612. Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  613. Connector:BreakJoints()
  614. Connector.TopSurface = "Smooth"
  615. Connector.Material = "SmoothPlastic"
  616. Connector.Name = 'Connector'
  617. Connector.Shape="Ball"
  618. Connector.BottomSurface = "Smooth"
  619. Connector.FormFactor = "Custom" Connector.CanCollide = false
  620. Connector.BrickColor = BrickColor.new("Toothpaste")
  621. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  622. Connectorweld = Instance.new("ManualWeld")
  623. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  624. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  625. Connectorweld.Parent = Connector
  626. Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  627. Up:BreakJoints()
  628. Up.TopSurface = "Smooth"
  629. Up.Material = "SmoothPlastic"
  630. Up.Name = 'Up'
  631. Up.BottomSurface = "Smooth"
  632. Up.FormFactor = "Custom" Up.CanCollide = false
  633. Up.BrickColor = BrickColor.new("Toothpaste")
  634. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  635. Upweld = Instance.new("ManualWeld")
  636. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  637. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  638. Upweld.Parent = Up
  639. Connector.Material="Neon"
  640. Grip.Material="Neon"
  641. Up.Material="Neon"
  642. Down.Material="Neon"
  643. end
  644. end)
Add Comment
Please, Sign In to add comment