Gokussjg

Untitled

Nov 11th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.71 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52.  
  53. mouse=Player:GetMouse()
  54. --save shoulders
  55. RSH, LSH=nil, nil
  56. --welds
  57. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  58. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  59. LH=Torso["Left Hip"]
  60. RH=Torso["Right Hip"]
  61. TorsoColor=Torso.BrickColor
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. local fengui=it("GuiMain")
  88. fengui.Parent=Player.PlayerGui
  89. fengui.Name="WeaponGUI"
  90. local fenframe=it("Frame")
  91. fenframe.Parent=fengui
  92. fenframe.BackgroundColor3=Color3.new(255,255,255)
  93. fenframe.BackgroundTransparency=1
  94. fenframe.BorderColor3=Color3.new(17,17,17)
  95. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  96. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  97. local fenbarmana1=it("TextLabel")
  98. fenbarmana1.Parent=fenframe
  99. fenbarmana1.Text=" "
  100. fenbarmana1.BackgroundTransparency=0
  101. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  102. fenbarmana1.SizeConstraint="RelativeXY"
  103. fenbarmana1.TextXAlignment="Center"
  104. fenbarmana1.TextYAlignment="Center"
  105. fenbarmana1.Position=UDim2.new(0,0,0,0)
  106. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  107. local fenbarmana2=it("TextLabel")
  108. fenbarmana2.Parent=fenframe
  109. fenbarmana2.Text=" "
  110. fenbarmana2.BackgroundTransparency=0
  111. fenbarmana2.BackgroundColor3=Torso.Color
  112. fenbarmana2.SizeConstraint="RelativeXY"
  113. fenbarmana2.TextXAlignment="Center"
  114. fenbarmana2.TextYAlignment="Center"
  115. fenbarmana2.Position=UDim2.new(0,0,0,0)
  116. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  117. local fenbarmana3=it("TextLabel")
  118. fenbarmana3.Parent=fenframe
  119. fenbarmana3.Text=" "
  120. fenbarmana3.BackgroundTransparency=0
  121. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  122. fenbarmana3.SizeConstraint="RelativeXY"
  123. fenbarmana3.TextXAlignment="Center"
  124. fenbarmana3.TextYAlignment="Center"
  125. fenbarmana3.Position=UDim2.new(0,0,0,0)
  126. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  127. local fenbarmana4=it("TextLabel")
  128. fenbarmana4.Parent=fenframe
  129. fenbarmana4.Text="Loading interface"
  130. fenbarmana4.BackgroundTransparency=1
  131. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  132. fenbarmana4.SizeConstraint="RelativeXY"
  133. fenbarmana4.TextXAlignment="Center"
  134. fenbarmana4.TextYAlignment="Center"
  135. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  136. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  137. fenbarmana4.FontSize="Size9"
  138. fenbarmana4.TextStrokeTransparency=0
  139. fenbarmana4.TextColor=BrickColor.new("White")
  140.  
  141. Player=game:GetService('Players').LocalPlayer
  142. Character=Player.Character
  143. Mouse=Player:GetMouse()
  144. m=Instance.new('Model',Character)
  145.  
  146.  
  147. local function weldBetween(a, b)
  148. local weldd = Instance.new("ManualWeld")
  149. weldd.Part0 = a
  150. weldd.Part1 = b
  151. weldd.C0 = CFrame.new()
  152. weldd.C1 = b.CFrame:inverse() * a.CFrame
  153. weldd.Parent = a
  154. return weldd
  155. end
  156.  
  157. it=Instance.new
  158.  
  159. function nooutline(part)
  160. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  161. end
  162.  
  163. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  164. local fp=it("Part")
  165. fp.formFactor=formfactor
  166. fp.Parent=parent
  167. fp.Reflectance=reflectance
  168. fp.Transparency=transparency
  169. fp.CanCollide=false
  170. fp.Locked=true
  171. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  172. fp.Name=name
  173. fp.Size=size
  174. fp.Position=Character.Torso.Position
  175. nooutline(fp)
  176. fp.Material=material
  177. fp:BreakJoints()
  178. return fp
  179. end
  180.  
  181. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  182. local mesh=it(Mesh)
  183. mesh.Parent=part
  184. if Mesh=="SpecialMesh" then
  185. mesh.MeshType=meshtype
  186. mesh.MeshId=meshid
  187. end
  188. mesh.Offset=offset
  189. mesh.Scale=scale
  190. return mesh
  191. end
  192.  
  193. function weld(parent,part0,part1,c0,c1)
  194. local weld=it("Weld")
  195. weld.Parent=parent
  196. weld.Part0=part0
  197. weld.Part1=part1
  198. weld.C0=c0
  199. weld.C1=c1
  200. return weld
  201. end
  202.  
  203.  
  204. Player=game:GetService('Players').LocalPlayer
  205. Character=Player.Character
  206. Mouse=Player:GetMouse()
  207. m=Instance.new('Model',Character)
  208.  
  209.  
  210. local function weldBetween(a, b)
  211. local weldd = Instance.new("ManualWeld")
  212. weldd.Part0 = a
  213. weldd.Part1 = b
  214. weldd.C0 = CFrame.new()
  215. weldd.C1 = b.CFrame:inverse() * a.CFrame
  216. weldd.Parent = a
  217. return weldd
  218. end
  219.  
  220. it=Instance.new
  221.  
  222. function nooutline(part)
  223. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  224. end
  225.  
  226. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  227. local fp=it("Part")
  228. fp.formFactor=formfactor
  229. fp.Parent=parent
  230. fp.Reflectance=reflectance
  231. fp.Transparency=transparency
  232. fp.CanCollide=false
  233. fp.Locked=true
  234. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  235. fp.Name=name
  236. fp.Size=size
  237. fp.Position=Character.Torso.Position
  238. nooutline(fp)
  239. fp.Material=material
  240. fp:BreakJoints()
  241. return fp
  242. end
  243.  
  244. function swait(num)
  245. if num==0 or num==nil then
  246. game:service'RunService'.Stepped:wait(0)
  247. else
  248. for i=0,num do
  249. game:service'RunService'.Stepped:wait(0)
  250. end
  251. end
  252. end
  253.  
  254. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  255. local mesh=it(Mesh)
  256. mesh.Parent=part
  257. if Mesh=="SpecialMesh" then
  258. mesh.MeshType=meshtype
  259. mesh.MeshId=meshid
  260. end
  261. mesh.Offset=offset
  262. mesh.Scale=scale
  263. return mesh
  264. end
  265.  
  266. function weld(parent,part0,part1,c0,c1)
  267. local weld=it("Weld")
  268. weld.Parent=parent
  269. weld.Part0=part0
  270. weld.Part1=part1
  271. weld.C0=c0
  272. weld.C1=c1
  273. return weld
  274. end
  275.  
  276.  
  277. local function CFrameFromTopBack(at, top, back)
  278. local right = top:Cross(back)
  279. return CFrame.new(at.x, at.y, at.z,
  280. right.x, top.x, back.x,
  281. right.y, top.y, back.y,
  282. right.z, top.z, back.z)
  283. end
  284.  
  285. function Triangle(a, b, c)
  286. local edg1 = (c-a):Dot((b-a).unit)
  287. local edg2 = (a-b):Dot((c-b).unit)
  288. local edg3 = (b-c):Dot((a-c).unit)
  289. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  290. a, b, c = a, b, c
  291. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  292. a, b, c = b, c, a
  293. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  294. a, b, c = c, a, b
  295. else
  296. assert(false, "unreachable")
  297. end
  298.  
  299. local len1 = (c-a):Dot((b-a).unit)
  300. local len2 = (b-a).magnitude - len1
  301. local width = (a + (b-a).unit*len1 - c).magnitude
  302.  
  303. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  304.  
  305. local list = {}
  306.  
  307. local Color = BrickColor.new("Really black")
  308.  
  309. if len1 > 0.01 then
  310. local w1 = Instance.new('WedgePart', m)
  311. game:GetService("Debris"):AddItem(w1,5)
  312. w1.Material = "SmoothPlastic"
  313. w1.FormFactor = 'Custom'
  314. w1.BrickColor = BrickColor.new(Color)
  315. w1.Transparency = 0
  316. w1.Reflectance = 0
  317. w1.Material = "SmoothPlastic"
  318. w1.CanCollide = false
  319. NoOutline(w1)
  320. local sz = Vector3.new(0.2, width, len1)
  321. w1.Size = sz
  322. local sp = Instance.new("SpecialMesh",w1)
  323. sp.MeshType = "Wedge"
  324. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  325. w1:BreakJoints()
  326. w1.Anchored = true
  327. w1.Parent = workspace
  328. w1.Transparency = 0.7
  329. table.insert(Effects,{w1,"Disappear",.01})
  330. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  331. table.insert(list,w1)
  332. end
  333.  
  334. if len2 > 0.01 then
  335. local w2 = Instance.new('WedgePart', m)
  336. game:GetService("Debris"):AddItem(w2,5)
  337. w2.Material = "SmoothPlastic"
  338. w2.FormFactor = 'Custom'
  339. w2.BrickColor = BrickColor.new(Color)
  340. w2.Transparency = 0
  341. w2.Reflectance = 0
  342. w2.Material = "SmoothPlastic"
  343. w2.CanCollide = false
  344. NoOutline(w2)
  345. local sz = Vector3.new(0.2, width, len2)
  346. w2.Size = sz
  347. local sp = Instance.new("SpecialMesh",w2)
  348. sp.MeshType = "Wedge"
  349. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  350. w2:BreakJoints()
  351. w2.Anchored = true
  352. w2.Parent = workspace
  353. w2.Transparency = 0.7
  354. table.insert(Effects,{w2,"Disappear",.01})
  355. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  356. table.insert(list,w2)
  357. end
  358. return unpack(list)
  359. end
  360.  
  361.  
  362. so = function(id,par,vol,pit)
  363. coroutine.resume(coroutine.create(function()
  364. local sou = Instance.new("Sound",par or workspace)
  365. sou.Volume=vol
  366. sou.Pitch=pit or 1
  367. sou.SoundId=id
  368. swait()
  369. sou:play()
  370. game:GetService("Debris"):AddItem(sou,6)
  371. end))
  372. end
  373.  
  374. function clerp(a,b,t)
  375. local qa = {QuaternionFromCFrame(a)}
  376. local qb = {QuaternionFromCFrame(b)}
  377. local ax, ay, az = a.x, a.y, a.z
  378. local bx, by, bz = b.x, b.y, b.z
  379. local _t = 1-t
  380. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  381. end
  382.  
  383. function QuaternionFromCFrame(cf)
  384. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  385. local trace = m00 + m11 + m22
  386. if trace > 0 then
  387. local s = math.sqrt(1 + trace)
  388. local recip = 0.5/s
  389. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  390. else
  391. local i = 0
  392. if m11 > m00 then
  393. i = 1
  394. end
  395. if m22 > (i == 0 and m00 or m11) then
  396. i = 2
  397. end
  398. if i == 0 then
  399. local s = math.sqrt(m00-m11-m22+1)
  400. local recip = 0.5/s
  401. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  402. elseif i == 1 then
  403. local s = math.sqrt(m11-m22-m00+1)
  404. local recip = 0.5/s
  405. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  406. elseif i == 2 then
  407. local s = math.sqrt(m22-m00-m11+1)
  408. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  409. end
  410. end
  411. end
  412.  
  413. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  414. local xs, ys, zs = x + x, y + y, z + z
  415. local wx, wy, wz = w*xs, w*ys, w*zs
  416. local xx = x*xs
  417. local xy = x*ys
  418. local xz = x*zs
  419. local yy = y*ys
  420. local yz = y*zs
  421. local zz = z*zs
  422. 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))
  423. end
  424.  
  425. function QuaternionSlerp(a, b, t)
  426. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  427. local startInterp, finishInterp;
  428. if cosTheta >= 0.0001 then
  429. if (1 - cosTheta) > 0.0001 then
  430. local theta = math.acos(cosTheta)
  431. local invSinTheta = 1/math.sin(theta)
  432. startInterp = math.sin((1-t)*theta)*invSinTheta
  433. finishInterp = math.sin(t*theta)*invSinTheta
  434. else
  435. startInterp = 1-t
  436. finishInterp = t
  437. end
  438. else
  439. if (1+cosTheta) > 0.0001 then
  440. local theta = math.acos(-cosTheta)
  441. local invSinTheta = 1/math.sin(theta)
  442. startInterp = math.sin((t-1)*theta)*invSinTheta
  443. finishInterp = math.sin(t*theta)*invSinTheta
  444. else
  445. startInterp = t-1
  446. finishInterp = t
  447. end
  448. end
  449. 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
  450. end
  451.  
  452. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  453. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  454. end
  455.  
  456. local function CFrameFromTopBack(at, top, back)
  457. local right = top:Cross(back)
  458. return CFrame.new(at.x, at.y, at.z,
  459. right.x, top.x, back.x,
  460. right.y, top.y, back.y,
  461. right.z, top.z, back.z)
  462. end
  463.  
  464. function Triangle(a, b, c)
  465. local edg1 = (c-a):Dot((b-a).unit)
  466. local edg2 = (a-b):Dot((c-b).unit)
  467. local edg3 = (b-c):Dot((a-c).unit)
  468. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  469. a, b, c = a, b, c
  470. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  471. a, b, c = b, c, a
  472. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  473. a, b, c = c, a, b
  474. else
  475. assert(false, "unreachable")
  476. end
  477.  
  478. local len1 = (c-a):Dot((b-a).unit)
  479. local len2 = (b-a).magnitude - len1
  480. local width = (a + (b-a).unit*len1 - c).magnitude
  481.  
  482. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  483.  
  484. local list = {}
  485.  
  486. if len1 > 0.01 then
  487. local w1 = Instance.new('WedgePart', m)
  488. game:GetService("Debris"):AddItem(w1,5)
  489. w1.Material = "SmoothPlastic"
  490. w1.FormFactor = 'Custom'
  491. w1.BrickColor = TorsoColor
  492. w1.Transparency = 0
  493. w1.Reflectance = 0
  494. w1.Material = "SmoothPlastic"
  495. w1.CanCollide = false
  496. NoOutline(w1)
  497. local sz = Vector3.new(0.2, width, len1)
  498. w1.Size = sz
  499. local sp = Instance.new("SpecialMesh",w1)
  500. sp.MeshType = "Wedge"
  501. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  502. w1:BreakJoints()
  503. w1.Anchored = true
  504. w1.Parent = workspace
  505. w1.Transparency = 0.7
  506. table.insert(Effects,{w1,"Disappear",.01})
  507. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  508. table.insert(list,w1)
  509. end
  510.  
  511. if len2 > 0.01 then
  512. local w2 = Instance.new('WedgePart', m)
  513. game:GetService("Debris"):AddItem(w2,5)
  514. w2.Material = "SmoothPlastic"
  515. w2.FormFactor = 'Custom'
  516. w2.BrickColor = TorsoColor
  517. w2.Transparency = 0
  518. w2.Reflectance = 0
  519. w2.Material = "SmoothPlastic"
  520. w2.CanCollide = false
  521. NoOutline(w2)
  522. local sz = Vector3.new(0.2, width, len2)
  523. w2.Size = sz
  524. local sp = Instance.new("SpecialMesh",w2)
  525. sp.MeshType = "Wedge"
  526. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  527. w2:BreakJoints()
  528. w2.Anchored = true
  529. w2.Parent = workspace
  530. w2.Transparency = 0.7
  531. table.insert(Effects,{w2,"Disappear",.01})
  532. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  533. table.insert(list,w2)
  534. end
  535. return unpack(list)
  536. end
  537.  
  538. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  539. if hit.Parent==nil then
  540. return
  541. end
  542. h=hit.Parent:FindFirstChild("Humanoid")
  543. for _,v in pairs(hit.Parent:children()) do
  544. if v:IsA("Humanoid") then
  545. h=v
  546. end
  547. end
  548. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  549. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  550. end
  551. if hit.Parent.className=="Hat" then
  552. hit=hit.Parent.Parent:findFirstChild("Head")
  553. end
  554. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  555. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  556. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  557. return
  558. end]]
  559. -- hs(hit,1.2)
  560. c=Instance.new("ObjectValue")
  561. c.Name="creator"
  562. c.Value=game:service("Players").LocalPlayer
  563. c.Parent=h
  564. game:GetService("Debris"):AddItem(c,.5)
  565. Damage=math.random(minim,maxim)
  566. -- h:TakeDamage(Damage)
  567. blocked=false
  568. block=hit.Parent:findFirstChild("Block")
  569. if block~=nil then
  570. print(block.className)
  571. if block.className=="NumberValue" then
  572. if block.Value>0 then
  573. blocked=true
  574. if decreaseblock==nil then
  575. block.Value=block.Value-1
  576. end
  577. end
  578. end
  579. if block.className=="IntValue" then
  580. if block.Value>0 then
  581. blocked=true
  582. if decreaseblock~=nil then
  583. block.Value=block.Value-1
  584. end
  585. end
  586. end
  587. end
  588. if blocked==false then
  589. -- h:TakeDamage(Damage)
  590. h.Health=h.Health-Damage
  591. showDamage(hit.Parent,Damage,.5,TorsoColor)
  592. else
  593. h.Health=h.Health-(Damage/2)
  594. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  595. end
  596. if Type=="Knockdown" then
  597. hum=hit.Parent.Humanoid
  598. hum.PlatformStand=true
  599. coroutine.resume(coroutine.create(function(HHumanoid)
  600. swait(1)
  601. HHumanoid.PlatformStand=false
  602. end),hum)
  603. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  604. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  605. local bodvol=Instance.new("BodyVelocity")
  606. bodvol.velocity=angle*knockback
  607. bodvol.P=5000
  608. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  609. bodvol.Parent=hit
  610. rl=Instance.new("BodyAngularVelocity")
  611. rl.P=3000
  612. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  613. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  614. rl.Parent=hit
  615. game:GetService("Debris"):AddItem(bodvol,.5)
  616. game:GetService("Debris"):AddItem(rl,.5)
  617. elseif Type=="Normal" then
  618. vp=Instance.new("BodyVelocity")
  619. vp.P=500
  620. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  621. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  622. if KnockbackType==1 then
  623. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  624. elseif KnockbackType==2 then
  625. vp.velocity=Property.CFrame.lookVector*knockback
  626. end
  627. if knockback>0 then
  628. vp.Parent=hit.Parent.Torso
  629. end
  630. game:GetService("Debris"):AddItem(vp,.5)
  631. elseif Type=="Up" then
  632. local bodyVelocity=Instance.new("BodyVelocity")
  633. bodyVelocity.velocity=vt(0,60,0)
  634. bodyVelocity.P=5000
  635. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  636. bodyVelocity.Parent=hit
  637. game:GetService("Debris"):AddItem(bodyVelocity,1)
  638. rl=Instance.new("BodyAngularVelocity")
  639. rl.P=3000
  640. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  641. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  642. rl.Parent=hit
  643. game:GetService("Debris"):AddItem(rl,.5)
  644. elseif Type=="Snare" then
  645. bp=Instance.new("BodyPosition")
  646. bp.P=2000
  647. bp.D=100
  648. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  649. bp.position=hit.Parent.Torso.Position
  650. bp.Parent=hit.Parent.Torso
  651. game:GetService("Debris"):AddItem(bp,1)
  652. elseif Type=="Target" then
  653. if Targetting==false then
  654. ZTarget=hit.Parent.Torso
  655. coroutine.resume(coroutine.create(function(Part)
  656. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  657. swait(5)
  658. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  659. end),ZTarget)
  660. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  661. targetgui=Instance.new("BillboardGui")
  662. targetgui.Parent=ZTarget
  663. targetgui.Size=UDim2.new(10,100,10,100)
  664. targ=Instance.new("ImageLabel")
  665. targ.Parent=targetgui
  666. targ.BackgroundTransparency=1
  667. targ.Image="rbxassetid://4834067"
  668. targ.Size=UDim2.new(1,0,1,0)
  669. cam.CameraType="Scriptable"
  670. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  671. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  672. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  673. Targetting=true
  674. RocketTarget=ZTarget
  675. for i=1,Property do
  676. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  677. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  678. swait()
  679. end
  680. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  681. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  682. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  683. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*angles(-0.3,0,0)
  684. end
  685. Targetting=false
  686. RocketTarget=nil
  687. targetgui.Parent=nil
  688. cam.CameraType="Custom"
  689. end
  690. end
  691. debounce=Instance.new("BoolValue")
  692. debounce.Name="DebounceHit"
  693. debounce.Parent=hit.Parent
  694. debounce.Value=true
  695. game:GetService("Debris"):AddItem(debounce,Delay)
  696. c=Instance.new("ObjectValue")
  697. c.Name="creator"
  698. c.Value=Player
  699. c.Parent=h
  700. game:GetService("Debris"):AddItem(c,.5)
  701. CRIT=false
  702. hitDeb=true
  703. AttackPos=6
  704. end
  705. end
  706.  
  707. showDamage=function(Char,Dealt,du,Color)
  708. m=Instance.new("Model")
  709. m.Name=tostring(Dealt)
  710. h=Instance.new("Humanoid")
  711. h.Health=0
  712. h.MaxHealth=0
  713. h.Parent=m
  714. c=Instance.new("Part")
  715. c.Transparency=0
  716. c.BrickColor=Color
  717. c.Name="Head"
  718. c.TopSurface=0
  719. c.BottomSurface=0
  720. c.formFactor="Plate"
  721. c.Size=Vector3.new(1,.4,1)
  722. ms=Instance.new("CylinderMesh")
  723. ms.Scale=Vector3.new(.8,.8,.8)
  724. if CRIT==true then
  725. ms.Scale=Vector3.new(1,1.25,1)
  726. end
  727. ms.Parent=c
  728. c.Reflectance=0
  729. Instance.new("BodyGyro").Parent=c
  730. c.Parent=m
  731. if Char:findFirstChild("Head")~=nil then
  732. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  733. elseif Char.Parent:findFirstChild("Head")~=nil then
  734. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  735. end
  736. f=Instance.new("BodyPosition")
  737. f.P=2000
  738. f.D=100
  739. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  740. f.position=c.Position+Vector3.new(0,3,0)
  741. f.Parent=c
  742. game:GetService("Debris"):AddItem(m,.5+du)
  743. c.CanCollide=false
  744. m.Parent=workspace
  745. c.CanCollide=false
  746. end
  747.  
  748.  
  749. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.232000008, 1.39199996, 0.34799996))
  750. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100307465, -0.216758728, 1.08003342, 0.999992609, 1.92794141e-005, -1.27899834e-013, -1.27899698e-013, -1.6931045e-018, -0.999993682, -1.90170867e-005, 0.999996662, 7.72975777e-019))
  751. HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HitboxA",Vector3.new(0.200000003, 4.75600147, 1.04399991))
  752. HitboxAweld=weld(m,HandleA,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296401978, -3.18984985, -0.000101566315, 0.999985218, 2.71050543e-019, 3.93541995e-007, 2.71050543e-019, 0.999987364, -3.39068571e-020, 1.31274646e-007, -3.36740574e-020, 0.999993563))
  753. mesh("BlockMesh",HitboxA,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  754. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  755. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321960449, -0.348061442, -2.95758057, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  756. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  758. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321960449, -0.348061562, -3.07357788, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  759. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  760. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  761. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00325012207, 0.347918868, 5.39352417, -0.999994516, -1.38814103e-005, -0.000781116833, 0.000780851231, -5.96042696e-007, -0.999998093, 1.38811838e-005, -0.999996781, 5.65978326e-007))
  762. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  764. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032043457, -0.348060846, -1.91357803, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  765. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  766. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  767. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348061085, -2.26158524, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  768. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  769. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  770. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348061085, -2.37757492, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  771. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  772. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  773. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00320053101, -0.348060846, -1.79758072, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  774. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  775. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  776. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348060966, -2.14558029, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  777. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  778. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  779. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032119751, -0.348061323, -2.60959625, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  780. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  781. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  782. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032043457, -0.348060966, -2.02959061, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  783. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  785. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032119751, -0.348061204, -2.49358749, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  786. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  788. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321578979, -0.348061442, -2.84157562, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  789. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  791. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321578979, -0.348061323, -2.72557068, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  792. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  794. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00319671631, -0.348060608, -1.56557083, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  795. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  797. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00320053101, -0.348060727, -1.68157578, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  798. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.579999983, 0.69599998))
  800. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00297546387, -0.116066098, 4.871521, -0.999994516, -1.38814103e-005, -0.000781116833, 0.000780851231, -5.96042696e-007, -0.999998093, 1.38811838e-005, -0.999996781, 5.65978326e-007))
  801. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.24939996, 0.200000003, 0.359599888))
  803. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00284576416, 0.289573669, 0.000145435333, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  804. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  806. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.744922638, 6.48498535e-005, 6.24656677e-005, -2.9801754e-008, 0.999987185, 3.5961357e-013, -0.999985039, -2.98018179e-008, 1.20666537e-005, 1.25913684e-005, -8.31761384e-019, 0.999993563))
  807. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.232000008))
  809. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -1.21779633, -0.289975643, 0.999985218, -1.2789757e-013, -5.02773673e-006, 1.27897842e-013, 0.999987364, -8.52495958e-019, 5.55250699e-006, 1.4187069e-019, 0.999993563))
  810. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.69600153, 0.579999864))
  812. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296020508, -1.15990829, 0.115901113, 0.999985218, 2.71050543e-019, 3.93541995e-007, 2.71050543e-019, 0.999987364, -3.39068571e-020, 1.31274646e-007, -3.36740574e-020, 0.999993563))
  813. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.39200163, 0.579999864))
  815. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00303268433, -3.82756042, 0.116035104, 0.999985218, -2.71050543e-019, -5.02709827e-006, 8.13151629e-019, 0.999987364, 4.46583439e-020, 5.55186853e-006, -1.12240021e-019, 0.999993563))
  816. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.232000008, 0.34799999))
  818. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -0.927848816, -0.347965479, 0.999985218, -1.27897286e-013, -4.76533569e-006, 1.27897557e-013, 0.999987364, -8.52723381e-019, 5.29010867e-006, 1.75660036e-019, 0.999993563))
  819. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.24940002, 0.463999897, 0.200000003))
  821. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296401978, -0.000411987305, 0.000145435333, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  822. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.243599623, 0.200000003, 0.376999944))
  824. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, -0.290370941, 0.00304746628, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  825. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  827. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976894379, 6.48498535e-005, -0.115817547, -2.98019636e-008, 0.999993145, 5.66752374e-013, -0.999992073, -2.98019955e-008, 1.90170758e-005, 1.92794159e-005, -1.69310471e-018, 0.999996781))
  828. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999599, 0.200000003, 1.04400003))
  830. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.753929138, 4.76837158e-007, 0.999985218, 2.71050543e-019, 7.86980308e-007, 2.71050543e-019, 0.999987364, -3.42563409e-020, -2.62161848e-007, -3.33247287e-020, 0.999993563))
  831. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.231999993, 0.231999993))
  833. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.348060369, -0.579917908, -7.62939453e-006, -2.62161848e-007, 2.98019245e-008, 0.999993026, 8.70145427e-015, 0.99998647, -2.98021199e-008, -0.999984145, 8.87893817e-016, -8.30688805e-007))
  834. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  836. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976894379, 6.48498535e-005, 0.116117477, -2.98019636e-008, 0.999993145, 5.66752374e-013, -0.999992073, -2.98019955e-008, 1.90170758e-005, 1.92794159e-005, -1.69310471e-018, 0.999996781))
  837. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.231999993, 0.231999993))
  839. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.34796536, -0.579917908, 7.62939453e-006, -2.62161848e-007, 2.98019245e-008, 0.999993026, 8.70145427e-015, 0.99998647, -2.98021199e-008, -0.999984145, 8.87893817e-016, -8.30688805e-007))
  840. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1))
  841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 3.82800055, 0.34799999))
  842. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -3.30554581, -0.347965479, 0.999985218, -5.42101086e-019, -3.45368062e-006, 1.08420217e-018, 0.999987364, 7.01750046e-020, 3.9784627e-006, -1.3775716e-019, 0.999993563))
  843. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.463999897, 0.579999924))
  845. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.928001404, 4.76837158e-007, 0.999985218, 2.71050543e-019, 2.62407411e-007, 2.71050543e-019, 0.999987364, -3.37904314e-020, 2.62407411e-007, -3.37904314e-020, 0.999993563))
  846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.62400162, 0.347999901))
  847. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00303268433, -2.31979752, 6.2584877e-005, 0.999985218, 0, -3.01626824e-006, 5.42101086e-019, 0.999987364, 2.67851422e-021, 3.54105578e-006, -7.02591444e-020, 0.999993563))
  848. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  849. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  850. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -0.348090053, -0.869998932, -0.99999404, -1.39324975e-005, 0.000813946885, -0.000814205792, 5.27501379e-006, -0.999998093, 1.37386678e-005, -0.999996662, -5.24543884e-006))
  851. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  852. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003))
  853. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000217437744, -0.348093748, 1.10200882, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  854. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983))
  855. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  856. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000312805176, -0.347890496, -0.869995117, 0.99999392, -1.39324975e-005, -0.000813827617, 0.000814101484, 5.27501379e-006, 0.999997854, -1.37386651e-005, -0.999996662, 5.2454352e-006))
  857. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  858. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003))
  859. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -0.34789443, 1.10200882, -0.99999404, 1.3977201e-005, 0.000819162233, 0.000819376437, 5.95969937e-007, 0.999997735, 1.37685583e-005, 0.999996781, -5.66503445e-007))
  860. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983))
  861.  
  862. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.232000008, 1.39199996, 0.34799996))
  863. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0996818542, -0.216758728, 1.08003712, 0.999992609, 1.92794141e-005, -1.27899834e-013, -1.27899698e-013, -1.6931045e-018, -0.999993682, -1.90170867e-005, 0.999996662, 7.72975777e-019))
  864. HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HitboxB",Vector3.new(0.200000003, 4.75600147, 1.04399991))
  865. HitboxBweld=weld(m,HandleB,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296401978, -3.18984985, -0.000101447105, 0.999985218, 2.71050543e-019, 3.93541995e-007, 2.71050543e-019, 0.999987364, -3.39068571e-020, 1.31274646e-007, -3.36740574e-020, 0.999993563))
  866. mesh("BlockMesh",HitboxB,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  868. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321960449, -0.348061323, -2.95758057, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  869. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  870. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  871. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321960449, -0.348061442, -3.07357788, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  872. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  874. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00325012207, 0.347918868, 5.39352417, -0.999994516, -1.38814103e-005, -0.000781116833, 0.000780851231, -5.96042696e-007, -0.999998093, 1.38811838e-005, -0.999996781, 5.65978326e-007))
  875. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  877. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032043457, -0.348060727, -1.91357803, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  878. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  879. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  880. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348060966, -2.26158524, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  881. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  882. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  883. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348060966, -2.37757492, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  884. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  886. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00320053101, -0.348060727, -1.79758072, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  887. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  888. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  889. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032081604, -0.348060846, -2.14558029, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  890. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  891. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  892. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032119751, -0.348061204, -2.60959625, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  893. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  894. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  895. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032043457, -0.348060846, -2.02959061, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  896. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  897. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  898. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0032119751, -0.348061085, -2.49358749, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  899. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  900. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  901. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321578979, -0.348061323, -2.84157562, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  902. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  903. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  904. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00321578979, -0.348061204, -2.72557068, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  905. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  906. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  907. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00319671631, -0.348060489, -1.56557083, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  908. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  909. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.200000003))
  910. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00320053101, -0.348060608, -1.68157578, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  911. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  912. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.579999983, 0.69599998))
  913. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00297546387, -0.116066098, 4.871521, -0.999994516, -1.38814103e-005, -0.000781116833, 0.000780851231, -5.96042696e-007, -0.999998093, 1.38811838e-005, -0.999996781, 5.65978326e-007))
  914. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  915. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.24939996, 0.200000003, 0.359599888))
  916. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00284576416, 0.289573669, 0.000145435333, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  917. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  918. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  919. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.744922638, 6.48498535e-005, 6.24656677e-005, -2.9801754e-008, 0.999987185, 3.5961357e-013, -0.999985039, -2.98018179e-008, 1.20666537e-005, 1.25913684e-005, -8.31761384e-019, 0.999993563))
  920. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  921. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.34799999, 0.232000008))
  922. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -1.21779633, -0.289975524, 0.999985218, -1.2789757e-013, -5.02773673e-006, 1.27897842e-013, 0.999987364, -8.52495958e-019, 5.55250699e-006, 1.4187069e-019, 0.999993563))
  923. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  924. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.69600153, 0.579999864))
  925. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296020508, -1.15990829, 0.115901232, 0.999985218, 2.71050543e-019, 3.93541995e-007, 2.71050543e-019, 0.999987364, -3.39068571e-020, 1.31274646e-007, -3.36740574e-020, 0.999993563))
  926. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  927. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.39200163, 0.579999864))
  928. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00303268433, -3.82756042, 0.116035104, 0.999985218, -2.71050543e-019, -5.02709827e-006, 8.13151629e-019, 0.999987364, 4.46583439e-020, 5.55186853e-006, -1.12240021e-019, 0.999993563))
  929. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  930. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.232000008, 0.34799999))
  931. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -0.927848816, -0.347965479, 0.999985218, -1.27897286e-013, -4.76533569e-006, 1.27897557e-013, 0.999987364, -8.52723381e-019, 5.29010867e-006, 1.75660036e-019, 0.999993563))
  932. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  933. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.24940002, 0.463999897, 0.200000003))
  934. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296401978, -0.000411987305, 0.000145435333, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  935. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  936. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.243599623, 0.200000003, 0.376999944))
  937. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, -0.290370941, 0.00304746628, 0.999990463, -1.27899427e-013, -1.89733364e-005, 1.27899603e-013, 0.999991894, -7.73013207e-019, 1.93231062e-005, -1.69873233e-018, 0.999995708))
  938. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  939. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  940. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976894379, 6.48498535e-005, -0.115817547, -2.98019636e-008, 0.999993145, 5.66752374e-013, -0.999992073, -2.98019955e-008, 1.90170758e-005, 1.92794159e-005, -1.69310471e-018, 0.999996781))
  941. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  942. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999599, 0.200000003, 1.04400003))
  943. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.753929138, 4.76837158e-007, 0.999985218, 2.71050543e-019, 7.86980308e-007, 2.71050543e-019, 0.999987364, -3.42563409e-020, -2.62161848e-007, -3.33247287e-020, 0.999993563))
  944. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  945. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.231999993, 0.231999993))
  946. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.348060369, -0.579917908, -7.62939453e-006, -2.62161848e-007, 2.98019245e-008, 0.999993026, 8.70145427e-015, 0.99998647, -2.98021199e-008, -0.999984145, 8.87893817e-016, -8.30688805e-007))
  947. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1))
  948. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.237799957, 0.200000003))
  949. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976894379, 6.48498535e-005, 0.116117477, -2.98019636e-008, 0.999993145, 5.66752374e-013, -0.999992073, -2.98019955e-008, 1.90170758e-005, 1.92794159e-005, -1.69310471e-018, 0.999996781))
  950. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  951. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.231999993, 0.231999993))
  952. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.347965479, -0.579917908, 7.62939453e-006, -2.62161848e-007, 2.98019245e-008, 0.999993026, 8.70145427e-015, 0.99998647, -2.98021199e-008, -0.999984145, 8.87893817e-016, -8.30688805e-007))
  953. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1))
  954. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 3.82800055, 0.34799999))
  955. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00296783447, -3.30554581, -0.347965479, 0.999985218, -5.42101086e-019, -3.45368062e-006, 1.08420217e-018, 0.999987364, 7.01750046e-020, 3.9784627e-006, -1.3775716e-019, 0.999993563))
  956. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  957. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.463999897, 0.579999924))
  958. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.928001404, 4.76837158e-007, 0.999985218, 2.71050543e-019, 2.62407411e-007, 2.71050543e-019, 0.999987364, -3.37904314e-020, 2.62407411e-007, -3.37904314e-020, 0.999993563))
  959. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.62400162, 0.347999901))
  960. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00303268433, -2.31979752, 6.24656677e-005, 0.999985218, 0, -3.01626824e-006, 5.42101086e-019, 0.999987364, 2.67851422e-021, 3.54105578e-006, -7.02591444e-020, 0.999993563))
  961. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  962. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  963. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -0.348089933, -0.869995117, -0.99999404, -1.39324975e-005, 0.000813946885, -0.000814205792, 5.27501379e-006, -0.999998093, 1.37386678e-005, -0.999996662, -5.24543884e-006))
  964. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  965. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003))
  966. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000217437744, -0.348093748, 1.10200882, 0.999994278, 1.3977201e-005, -0.000819151115, -0.000819409906, 5.95969937e-007, -0.999998093, -1.37685602e-005, 0.999996781, 5.66504127e-007))
  967. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983))
  968. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  969. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000312805176, -0.347890377, -0.869995117, 0.99999392, -1.39324975e-005, -0.000813827617, 0.000814101484, 5.27501379e-006, 0.999997854, -1.37386651e-005, -0.999996662, 5.2454352e-006))
  970. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  971. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003))
  972. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -0.347894311, 1.10200882, -0.99999404, 1.3977201e-005, 0.000819162233, 0.000819376437, 5.95969937e-007, 0.999997735, 1.37685583e-005, 0.999996781, -5.66503445e-007))
  973. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983))
  974.  
  975. function atktype(s, e)
  976. coroutine.resume(coroutine.create(function()
  977. attacktype = e
  978. swait(80)
  979. attacktype = s
  980. end))
  981. end
  982.  
  983. function attackone()
  984. attack=true
  985. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,12,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  986. for i=0,1,0.08 do
  987. swait()
  988. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(20)),.3)
  989. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  990. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  991. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  992. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  993. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  994. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  995. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  996. end
  997. so("http://www.roblox.com/asset/?id=233856140",HitboxA,1,1)
  998. -- so("http://www.roblox.com/asset/?id=234365549",HitboxA,1,1)
  999. for i=0,1,0.08 do
  1000. swait()
  1001. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  1002. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1004. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1005. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(80)),.3)
  1006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(10),math.rad(-80)),.3)
  1007. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(-30),math.rad(0)),.3)
  1008. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1009. end
  1010. attack=false
  1011. atktype(1, 2)
  1012. con1:disconnect()
  1013. end
  1014.  
  1015. function attacktwo()
  1016. attack=true
  1017. con1=HitboxB.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  1018. for i=0,1,0.08 do
  1019. swait()
  1020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1021. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-20)),.3)
  1022. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1023. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1024. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1025. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1026. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1027. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1028. end
  1029. so("http://www.roblox.com/asset/?id=233856146",HitboxB,1,1)
  1030. -- so("http://www.roblox.com/asset/?id=234365573",HitboxB,1,1)
  1031. for i=0,1,0.08 do
  1032. swait()
  1033. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1034. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1035. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1036. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  1038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(-10),math.rad(80)),.3)
  1039. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(-30),math.rad(0)),.3)
  1040. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1041. end
  1042. attack=false
  1043. atktype(1, 3)
  1044. con1:disconnect()
  1045. end
  1046.  
  1047. function attackthree()
  1048. attack=true
  1049. for i=0,1,0.08 do
  1050. swait()
  1051. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(50),math.rad(0)),.3)
  1052. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(-50),math.rad(0)),.3)
  1053. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1054. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1055. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1056. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1057. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1058. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1059. end
  1060. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1061. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1062. so("http://www.roblox.com/asset/?id=233856146",Torso,1,0.8)
  1063. for i=0,1,0.08 do
  1064. swait()
  1065. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(20),math.rad(60)),.3)
  1066. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-60)),.3)
  1067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1068. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1069. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1071. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,-1)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1072. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1073. end
  1074. con1:disconnect()
  1075. con2:disconnect()
  1076. attack=false
  1077. atktype(1, 4)
  1078. end
  1079.  
  1080. function attackfour()
  1081. attack=true
  1082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1083. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1084. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1085. for i=0,1,0.15 do
  1086. swait()
  1087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1089. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1090. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1091. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,1)*angles(math.rad(-80),math.rad(0),math.rad(180)),.3)
  1092. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1093. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),.3)
  1094. end
  1095. so("http://roblox.com/asset/?id=231917987",Torso,1,1)
  1096. for i=0,1,0.075 do
  1097. swait()
  1098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1100. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1101. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1102. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1103. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,1)*angles(math.rad(-80),math.rad(0),math.rad(180)),.3)
  1104. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1105. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,6*i),.3)
  1106. end
  1107. con1:disconnect()
  1108. con2:disconnect()
  1109. attack=false
  1110. atktype(1, 1)
  1111. end
  1112.  
  1113. function Spin()
  1114. attack=true
  1115. mana=mana-50
  1116. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1117. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1118. for i=0,1,0.2 do
  1119. swait()
  1120. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1121. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1122. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1123. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1124. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1125. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,1)*angles(math.rad(-80),math.rad(0),math.rad(180)),.3)
  1126. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1127. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6)*angles(0,0,0),.3)
  1128. end
  1129. for i=0,1,1 do
  1130. so("http://roblox.com/asset/?id=231917987",Torso,1,0.9)
  1131. swait()
  1132. for i=0,1,0.075 do
  1133. swait()
  1134. Torso.Velocity=RootPart.CFrame.lookVector*50
  1135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1137. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1138. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1139. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1140. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,1)*angles(math.rad(-80),math.rad(0),math.rad(180)),.3)
  1141. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1142. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6)*angles(math.rad(0),math.rad(90),6*i),.3)
  1143. end
  1144. end
  1145. for i=0,1,1 do
  1146. so("http://roblox.com/asset/?id=231917987",Torso,1,0.9)
  1147. swait()
  1148. for i=0,1,0.075 do
  1149. swait()
  1150. Torso.Velocity=RootPart.CFrame.lookVector*50
  1151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1152. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1153. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1154. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1155. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,1)*angles(math.rad(-80),math.rad(0),math.rad(180)),.3)
  1156. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6)*angles(math.rad(0),math.rad(90),6*i),.3)
  1158. end
  1159. end
  1160. con1:disconnect()
  1161. con2:disconnect()
  1162. attack=false
  1163. end
  1164.  
  1165. function Drill()
  1166. attack=true
  1167. mana=mana-20
  1168. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1169. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1170. for i=0,1,0.5 do
  1171. swait()
  1172. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1173. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-10)),.3)
  1174. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(10)),.3)
  1175. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1176. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1177. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  1178. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  1179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),.3)
  1180. end
  1181. for i=0,1,1 do
  1182. so("http://roblox.com/asset/?id=231917987",Torso,1,0.9)
  1183. swait()
  1184. for i=0,1,0.075 do
  1185. swait()
  1186. Torso.Velocity=RootPart.CFrame.lookVector*50
  1187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-10)),.3)
  1189. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(10)),.3)
  1190. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1191. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1192. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  1193. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  1194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,6*i,0),.3)
  1195. end
  1196. end
  1197. con1:disconnect()
  1198. con2:disconnect()
  1199. attack=false
  1200. end
  1201.  
  1202. function Roll()
  1203. attack=true
  1204. mana=mana-30
  1205. Humanoid.Jump = true
  1206. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1207. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1208. for i=0,1,0.25 do
  1209. swait()
  1210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1211. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1212. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1213. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1214. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1215. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1216. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1217. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),.3)
  1218. end
  1219. for i=0,1,1 do
  1220. so("http://roblox.com/asset/?id=231917987",Torso,1,0.9)
  1221. swait()
  1222. for i=0,1,0.075 do
  1223. swait()
  1224. Torso.Velocity=RootPart.CFrame.lookVector*50
  1225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1227. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1228. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1229. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1230. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1231. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1232. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(6*i,0,0),.3)
  1233. end
  1234. end
  1235. con1:disconnect()
  1236. con2:disconnect()
  1237. attack=false
  1238. end
  1239.  
  1240. function Throw()
  1241. attack=true
  1242. mana=mana-40
  1243. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1244. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,5,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1245. for i=0,1,0.1 do
  1246. swait()
  1247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-75)),.3)
  1248. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1249. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1250. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1251. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1252. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1253. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(75)),.3)
  1255. end
  1256. for i=0,0.5,2 do
  1257. swait()
  1258. so("http://roblox.com/asset/?id=231917987",HandleB,1,0.9)
  1259. for i=0,1,0.05 do
  1260. swait()
  1261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1262. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1263. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1264. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1265. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1266. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1267. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1-35*i,-1)*angles(math.rad(-80+800*i),math.rad(0),math.rad(0)),.3)
  1268. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1269. end
  1270. end
  1271. for i=0,0.5,2 do
  1272. swait()
  1273. so("http://roblox.com/asset/?id=231917987",HandleB,1,0.9)
  1274. for i=0,1,0.05 do
  1275. swait()
  1276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1277. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1279. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1280. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1281. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1282. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-36+35*i,-1)*angles(math.rad(-80+800*i),math.rad(0),math.rad(0)),.3)
  1283. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1284. end
  1285. end
  1286. for i=0,1,0.1 do
  1287. swait()
  1288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-75)),.3)
  1289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(80)),.3)
  1290. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1291. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1292. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1293. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1294. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(0),math.rad(0)),.4)
  1295. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(75)),.3)
  1296. end
  1297. con1:disconnect()
  1298. con2:disconnect()
  1299. attack=false
  1300. end
  1301.  
  1302. mouse.Button1Down:connect(function()
  1303. if attack==false then
  1304. if attacktype==1 then
  1305. attack=true
  1306. attacktype=2
  1307. attackone()
  1308. elseif attacktype==2 then
  1309. attack=true
  1310. attacktype=3
  1311. attacktwo()
  1312. elseif attacktype==3 then
  1313. attack=true
  1314. attacktype=4
  1315. attackthree()
  1316. elseif attacktype==4 then
  1317. attack=true
  1318. attacktype=1
  1319. attackfour()
  1320. end
  1321. end
  1322. end)
  1323.  
  1324. mouse.KeyDown:connect(function(k)
  1325. k=k:lower()
  1326. if k=='e' and mana>=50 then
  1327. if attack==false then
  1328. Spin()
  1329. end
  1330. elseif k=='0' then
  1331. if attack==false then
  1332. Humanoid.WalkSpeed=32
  1333. end
  1334. elseif k=='q' and mana>=20 then
  1335. if attack==false then
  1336. Drill()
  1337. end
  1338. elseif k=='r' and mana>=30 then
  1339. if attack==false then
  1340. Roll()
  1341. end
  1342. elseif k=='g' and mana>=100 then
  1343. if attack==false then
  1344. Drill()
  1345. Roll()
  1346. Spin()
  1347. wait(0.3)
  1348. mana=mana+30
  1349. Throw()
  1350. end
  1351. elseif k=='f' and mana>=40 then
  1352. if attack==false then
  1353. Throw()
  1354. end
  1355. end
  1356. end)
  1357.  
  1358. local sine = 0
  1359. local change = 1
  1360. local val = 0
  1361.  
  1362. local mananum=0
  1363. while true do
  1364. swait()
  1365. sine = sine + change
  1366. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1367. local velderp=RootPart.Velocity.y
  1368. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1369. if equipped==true or equipped==false then
  1370. if attack==false then
  1371. idle=idle+1
  1372. else
  1373. idle=0
  1374. end
  1375. if idle>=500 then
  1376. if attack==false then
  1377. --Sheath()
  1378. end
  1379. end
  1380. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1381. Anim="Jump"
  1382. if attack==false then
  1383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(10)),.3)
  1386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-10)),.3)
  1387. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1388. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1389. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1390. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1391. end
  1392. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1393. Anim="Fall"
  1394. if attack==false then
  1395. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1397. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  1398. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  1399. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1400. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1401. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1402. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1403. end
  1404. elseif torvel<1 and hitfloor~=nil then
  1405. Anim="Idle"
  1406. if attack==false then
  1407. Humanoid.WalkSpeed=16
  1408. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1409. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10-2.5*math.cos(sine/40)),math.rad(0),math.rad(-30)),.3)
  1410. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10+2.5*math.cos(sine/40)),math.rad(0),math.rad(20+2.5*math.cos(sine/40))),.3)
  1411. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10+2.5*math.cos(sine/40)),math.rad(0),math.rad(-20-2.5*math.cos(sine/40))),.3)
  1412. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(10)),.3)
  1413. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.3)
  1414. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1415. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1416. end
  1417. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1418. Anim="Walk"
  1419. if attack==false then
  1420. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1422. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10+5*math.cos(sine/30)),math.rad(-20),math.rad(30+5*math.cos(sine/30))),.3)
  1423. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10+5*math.cos(sine/30)),math.rad(20),math.rad(-30-5*math.cos(sine/30))),.3)
  1424. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1425. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1426. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1427. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1428. end
  1429. elseif torvel>=22 and hitfloor~=nil then
  1430. Anim="Run"
  1431. if attack==false then
  1432. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20+7.5*math.cos(sine/30)),math.rad(-50),math.rad(40+7.5*math.cos(sine/30))),.3)
  1435. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20+7.5*math.cos(sine/30)),math.rad(50),math.rad(-40-7.5*math.cos(sine/30))),.3)
  1436. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1437. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1438. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1439. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1440. end
  1441. end
  1442. end
  1443. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1444. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  1445. if mana>=100 then
  1446. mana=100
  1447. else
  1448. if mananum<=8 then
  1449. mananum=mananum+1
  1450. else
  1451. mananum=0
  1452. mana=mana+1
  1453. end
  1454. end
  1455. end
Add Comment
Please, Sign In to add comment