saba1517

my sword script

Jun 4th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.02 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. Neck=Torso.Neck
  18. it=Instance.new
  19. attacktype=1
  20. vt=Vector3.new
  21. cf=CFrame.new
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  27. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  28. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  29. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RootPart=Character.HumanoidRootPart
  31. RootJoint=RootPart.RootJoint
  32. RootCF=euler(-1.57,0,3.14)
  33. attack = false
  34. attackdebounce = false
  35. deb=false
  36. equipped=true
  37. hand=false
  38. MMouse=nil
  39. combo=0
  40. mana=0
  41. trispeed=.2
  42. attackmode='none'
  43. local idle=0
  44. local Anim="Idle"
  45. local Effects={}
  46. local gun=false
  47. local shoot=false
  48. player=nil
  49.  
  50. mouse=Player:GetMouse()
  51. --save shoulders
  52. RSH, LSH=nil, nil
  53. --welds
  54. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  55. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  56. LH=Torso["Left Hip"]
  57. RH=Torso["Right Hip"]
  58. TorsoColor=Torso.BrickColor
  59. function NoOutline(Part)
  60. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  61. end
  62. player=Player
  63. ch=Character
  64. RSH=ch.Torso["Right Shoulder"]
  65. LSH=ch.Torso["Left Shoulder"]
  66. --
  67. RSH.Parent=nil
  68. LSH.Parent=nil
  69. --
  70. RW.Name="Right Shoulder"
  71. RW.Part0=ch.Torso
  72. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  73. RW.C1=cf(0, 0.5, 0)
  74. RW.Part1=ch["Right Arm"]
  75. RW.Parent=ch.Torso
  76. --
  77. LW.Name="Left Shoulder"
  78. LW.Part0=ch.Torso
  79. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  80. LW.C1=cf(0, 0.5, 0)
  81. LW.Part1=ch["Left Arm"]
  82. LW.Parent=ch.Torso
  83.  
  84. local Stats=Instance.new("BoolValue")
  85. Stats.Name="Stats"
  86. Stats.Parent=Character
  87. local Atk=Instance.new("NumberValue")
  88. Atk.Name="Damage"
  89. Atk.Parent=Stats
  90. Atk.Value=1
  91. local Def=Instance.new("NumberValue")
  92. Def.Name="Defense"
  93. Def.Parent=Stats
  94. Def.Value=1
  95. local Speed=Instance.new("NumberValue")
  96. Speed.Name="Speed"
  97. Speed.Parent=Stats
  98. Speed.Value=1
  99. local Mvmt=Instance.new("NumberValue")
  100. Mvmt.Name="Movement"
  101. Mvmt.Parent=Stats
  102. Mvmt.Value=1
  103.  
  104. local fengui=it("GuiMain")
  105. fengui.Parent=Player.PlayerGui
  106. fengui.Name="WeaponGUI"
  107. local fenframe=it("Frame")
  108. fenframe.Parent=fengui
  109. fenframe.BackgroundColor3=Color3.new(255,255,255)
  110. fenframe.BackgroundTransparency=1
  111. fenframe.BorderColor3=Color3.new(17,17,17)
  112. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  113. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  114. local fenbarmana1=it("TextLabel")
  115. fenbarmana1.Parent=fenframe
  116. fenbarmana1.Text=" "
  117. fenbarmana1.BackgroundTransparency=0
  118. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  119. fenbarmana1.SizeConstraint="RelativeXY"
  120. fenbarmana1.TextXAlignment="Center"
  121. fenbarmana1.TextYAlignment="Center"
  122. fenbarmana1.Position=UDim2.new(0,0,0,0)
  123. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  124. local fenbarmana2=it("TextLabel")
  125. fenbarmana2.Parent=fenframe
  126. fenbarmana2.Text=" "
  127. fenbarmana2.BackgroundTransparency=0
  128. fenbarmana2.BackgroundColor3=Torso.Color
  129. fenbarmana2.SizeConstraint="RelativeXY"
  130. fenbarmana2.TextXAlignment="Center"
  131. fenbarmana2.TextYAlignment="Center"
  132. fenbarmana2.Position=UDim2.new(0,0,0,0)
  133. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  134. local fenbarmana3=it("TextLabel")
  135. fenbarmana3.Parent=fenframe
  136. fenbarmana3.Text=" "
  137. fenbarmana3.BackgroundTransparency=0
  138. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  139. fenbarmana3.SizeConstraint="RelativeXY"
  140. fenbarmana3.TextXAlignment="Center"
  141. fenbarmana3.TextYAlignment="Center"
  142. fenbarmana3.Position=UDim2.new(0,0,0,0)
  143. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  144. local fenbarmana4=it("TextLabel")
  145. fenbarmana4.Parent=fenframe
  146. fenbarmana4.Text="Loading interface"
  147. fenbarmana4.BackgroundTransparency=1
  148. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  149. fenbarmana4.SizeConstraint="RelativeXY"
  150. fenbarmana4.TextXAlignment="Center"
  151. fenbarmana4.TextYAlignment="Center"
  152. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  153. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  154. fenbarmana4.FontSize="Size9"
  155. fenbarmana4.TextStrokeTransparency=0
  156. fenbarmana4.TextColor=BrickColor.new("White")
  157.  
  158. local donum=0
  159.  
  160. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  161. local fp=it("Part")
  162. fp.formFactor=formfactor
  163. fp.Parent=parent
  164. fp.Reflectance=reflectance
  165. fp.Transparency=transparency
  166. fp.CanCollide=false
  167. fp.Locked=true
  168. fp.BrickColor=brickcolor
  169. fp.Name=name
  170. fp.Size=size
  171. fp.Position=Torso.Position
  172. NoOutline(fp)
  173. fp.Material="SmoothPlastic"
  174. fp:BreakJoints()
  175. return fp
  176. end
  177.  
  178. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  179. local mesh=it(Mesh)
  180. mesh.Parent=part
  181. if Mesh=="SpecialMesh" then
  182. mesh.MeshType=meshtype
  183. mesh.MeshId=meshid
  184. end
  185. mesh.Offset=offset
  186. mesh.Scale=scale
  187. return mesh
  188. end
  189.  
  190. function weld(parent,part0,part1,c0)
  191. local weld=it("Weld")
  192. weld.Parent=parent
  193. weld.Part0=part0
  194. weld.Part1=part1
  195. weld.C0=c0
  196. return weld
  197. end
  198.  
  199. local Color1=Torso.BrickColor
  200.  
  201. local bodvel=Instance.new("BodyVelocity")
  202. local bg=Instance.new("BodyGyro")
  203.  
  204. function swait(num)
  205. if num==0 or num==nil then
  206. game:service'RunService'.Stepped:wait(0)
  207. else
  208. for i=0,num do
  209. game:service'RunService'.Stepped:wait(0)
  210. end
  211. end
  212. end
  213.  
  214.  
  215. so = function(id,par,vol,pit)
  216. coroutine.resume(coroutine.create(function()
  217. local sou = Instance.new("Sound",par or workspace)
  218. sou.Volume=vol
  219. sou.Pitch=pit or 1
  220. sou.SoundId=id
  221. swait()
  222. sou:play()
  223. game:GetService("Debris"):AddItem(sou,6)
  224. end))
  225. end
  226.  
  227. function clerp(a,b,t)
  228. local qa = {QuaternionFromCFrame(a)}
  229. local qb = {QuaternionFromCFrame(b)}
  230. local ax, ay, az = a.x, a.y, a.z
  231. local bx, by, bz = b.x, b.y, b.z
  232. local _t = 1-t
  233. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  234. end
  235.  
  236. function QuaternionFromCFrame(cf)
  237. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  238. local trace = m00 + m11 + m22
  239. if trace > 0 then
  240. local s = math.sqrt(1 + trace)
  241. local recip = 0.5/s
  242. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  243. else
  244. local i = 0
  245. if m11 > m00 then
  246. i = 1
  247. end
  248. if m22 > (i == 0 and m00 or m11) then
  249. i = 2
  250. end
  251. if i == 0 then
  252. local s = math.sqrt(m00-m11-m22+1)
  253. local recip = 0.5/s
  254. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  255. elseif i == 1 then
  256. local s = math.sqrt(m11-m22-m00+1)
  257. local recip = 0.5/s
  258. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  259. elseif i == 2 then
  260. local s = math.sqrt(m22-m00-m11+1)
  261. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  262. end
  263. end
  264. end
  265.  
  266. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  267. local xs, ys, zs = x + x, y + y, z + z
  268. local wx, wy, wz = w*xs, w*ys, w*zs
  269. local xx = x*xs
  270. local xy = x*ys
  271. local xz = x*zs
  272. local yy = y*ys
  273. local yz = y*zs
  274. local zz = z*zs
  275. 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))
  276. end
  277.  
  278. function QuaternionSlerp(a, b, t)
  279. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  280. local startInterp, finishInterp;
  281. if cosTheta >= 0.0001 then
  282. if (1 - cosTheta) > 0.0001 then
  283. local theta = math.acos(cosTheta)
  284. local invSinTheta = 1/math.sin(theta)
  285. startInterp = math.sin((1-t)*theta)*invSinTheta
  286. finishInterp = math.sin(t*theta)*invSinTheta
  287. else
  288. startInterp = 1-t
  289. finishInterp = t
  290. end
  291. else
  292. if (1+cosTheta) > 0.0001 then
  293. local theta = math.acos(-cosTheta)
  294. local invSinTheta = 1/math.sin(theta)
  295. startInterp = math.sin((t-1)*theta)*invSinTheta
  296. finishInterp = math.sin(t*theta)*invSinTheta
  297. else
  298. startInterp = t-1
  299. finishInterp = t
  300. end
  301. end
  302. 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
  303. end
  304.  
  305. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  306. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  307. end
  308.  
  309.  
  310. user=game:service'Players'.localPlayer
  311. char=user.Character
  312. mouse=user:GetMouse()
  313. m=Instance.new('Model',char)
  314. game:service'Lighting'.Outlines=false
  315.  
  316.  
  317. local Handle = Instance.new("Part", m)
  318. Handle:BreakJoints()
  319. Handle.TopSurface = "Smooth"
  320. Handle.Transparency = 0 Handle.Material = "SmoothPlastic"
  321. Handle.Name = 'Handle'
  322. Handle.BottomSurface = "Smooth"
  323. Handle.FormFactor = "Custom" Handle.CanCollide = false
  324. Handle.BrickColor = BrickColor.new("Institutional white")
  325. Handle.Size = Vector3.new(0.337107092, 1.12369001, 0.337107033)
  326. local Handleweld = Instance.new("ManualWeld")
  327. Handleweld.Part0 = Character["Right Arm"]
  328. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. Handleweld.C1 = CFrame.new(-0.000732421875, -0.0344696045, -0.945665836, -0.999993205, 0, 0, 0, 0, -1, 0, -0.999993086, 0)
  330. Handleweld.Parent = Character["Right Arm"]
  331.  
  332. local HandleMesh = Instance.new("CylinderMesh",Handle)
  333. HandleMesh.Name = "Mesh"
  334. HandleMesh.Offset = Vector3.new(0, 0, 0)
  335. HandleMesh.Scale = Vector3.new(1, 1, 1)
  336.  
  337. local Part = Instance.new("Part", m)
  338. Part:BreakJoints()
  339. Part.TopSurface = "Smooth"
  340. Part.Material = "SmoothPlastic"
  341. Part.Transparency = 0 Part.Name = 'Part'
  342. Part.BottomSurface = "Smooth"
  343. Part.FormFactor = "Custom" Part.CanCollide = false
  344. Part.BrickColor = BrickColor.new("Institutional white")
  345. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  346. local Partweld = Instance.new("ManualWeld")
  347. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393207669, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
  349. Partweld.Parent = Part
  350. local PartMesh = Instance.new("BlockMesh",Part)
  351. PartMesh.Name = "Mesh"
  352. PartMesh.Offset = Vector3.new(0, 0, 0)
  353. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  354.  
  355. local Part = Instance.new("Part", m)
  356. Part:BreakJoints()
  357. Part.TopSurface = "Smooth"
  358. Part.Material = "SmoothPlastic"
  359. Part.Transparency = 0 Part.Name = 'Part'
  360. Part.BottomSurface = "Smooth"
  361. Part.FormFactor = "Custom" Part.CanCollide = false
  362. Part.BrickColor = TorsoColor
  363. Part.Size = Vector3.new(0.337107092, 0.224738032, 0.337107033)
  364. local Partweld = Instance.new("ManualWeld")
  365. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. Partweld.C1 = CFrame.new(-4.00543213e-005, 0.674224854, -1.33514404e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  367. Partweld.Parent = Part
  368. local PartMesh = Instance.new("SpecialMesh",Part)
  369. PartMesh.MeshId = ""
  370. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  371. PartMesh.Offset = Vector3.new(0, 0, 0)
  372. PartMesh.Scale = Vector3.new(1, 1, 1)
  373.  
  374. local Part = Instance.new("Part", m)
  375. Part:BreakJoints()
  376. Part.TopSurface = "Smooth"
  377. Part.Material = "SmoothPlastic"
  378. Part.Transparency = 0 Part.Name = 'Part'
  379. Part.BottomSurface = "Smooth"
  380. Part.FormFactor = "Custom" Part.CanCollide = false
  381. Part.BrickColor = BrickColor.new("Institutional white")
  382. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  383. local Partweld = Instance.new("ManualWeld")
  384. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  385. Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  386. Partweld.Parent = Part
  387. local PartMesh = Instance.new("CylinderMesh",Part)
  388. PartMesh.Name = "Mesh"
  389. PartMesh.Offset = Vector3.new(0, 0, 0)
  390. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  391.  
  392. local Part = Instance.new("Part", m)
  393. Part:BreakJoints()
  394. Part.TopSurface = "Smooth"
  395. Part.Material = "SmoothPlastic"
  396. Part.Transparency = 0 Part.Name = 'Part'
  397. Part.BottomSurface = "Smooth"
  398. Part.FormFactor = "Custom" Part.CanCollide = false
  399. Part.BrickColor = BrickColor.new("Institutional white")
  400. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  401. local Partweld = Instance.new("ManualWeld")
  402. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  403. Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  404. Partweld.Parent = Part
  405. local PartMesh = Instance.new("CylinderMesh",Part)
  406. PartMesh.Name = "Mesh"
  407. PartMesh.Offset = Vector3.new(0, 0, 0)
  408. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  409.  
  410. local Part = Instance.new("Part", m)
  411. Part:BreakJoints()
  412. Part.TopSurface = "Smooth"
  413. Part.Material = "SmoothPlastic"
  414. Part.Transparency = 0 Part.Name = 'Part'
  415. Part.BottomSurface = "Smooth"
  416. Part.FormFactor = "Custom" Part.CanCollide = false
  417. Part.BrickColor = TorsoColor
  418. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  419. local Partweld = Instance.new("ManualWeld")
  420. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  421. Partweld.C1 = CFrame.new(0, -0.955184937, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  422. Partweld.Parent = Part
  423. local PartMesh = Instance.new("CylinderMesh",Part)
  424. PartMesh.Name = "Mesh"
  425. PartMesh.Offset = Vector3.new(0, 0, 0)
  426. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  427.  
  428. local Part = Instance.new("Part", m)
  429. Part:BreakJoints()
  430. Part.TopSurface = "Smooth"
  431. Part.Material = "SmoothPlastic"
  432. Part.Transparency = 0 Part.Name = 'Part'
  433. Part.BottomSurface = "Smooth"
  434. Part.FormFactor = "Custom" Part.CanCollide = false
  435. Part.BrickColor = BrickColor.new("Institutional white")
  436. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  437. local Partweld = Instance.new("ManualWeld")
  438. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  439. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393225789, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
  440. Partweld.Parent = Part
  441. local PartMesh = Instance.new("BlockMesh",Part)
  442. PartMesh.Name = "Mesh"
  443. PartMesh.Offset = Vector3.new(0, 0, 0)
  444. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  445.  
  446. local Part = Instance.new("Part", m)
  447. Part:BreakJoints()
  448. Part.TopSurface = "Smooth"
  449. Part.Material = "SmoothPlastic"
  450. Part.Transparency = 0 Part.Name = 'Part'
  451. Part.BottomSurface = "Smooth"
  452. Part.FormFactor = "Custom" Part.CanCollide = false
  453. Part.BrickColor = BrickColor.new("Institutional white")
  454. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  455. local Partweld = Instance.new("ManualWeld")
  456. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  457. Partweld.C1 = CFrame.new(0.597281575, -0.842823029, -0.00578403473, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
  458. Partweld.Parent = Part
  459. local PartMesh = Instance.new("BlockMesh",Part)
  460. PartMesh.Name = "Mesh"
  461. PartMesh.Offset = Vector3.new(0, 0, 0)
  462. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  463.  
  464. local Part = Instance.new("Part", m)
  465. Part:BreakJoints()
  466. Part.TopSurface = "Smooth"
  467. Part.Material = "SmoothPlastic"
  468. Part.Transparency = 0.5 Part.Name = 'Part'
  469. Part.BottomSurface = "Smooth"
  470. Part.FormFactor = "Custom" Part.CanCollide = false
  471. Part.BrickColor = TorsoColor
  472. Part.Size = Vector3.new(0.200000003, 4.62046242, 0.449476063)
  473. local Partweld = Instance.new("ManualWeld")
  474. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  475. Partweld.C1 = CFrame.new(3.24249268e-005, -3.32155609, -4.76837158e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  476. Partweld.Parent = Part
  477. local PartMesh = Instance.new("BlockMesh",Part)
  478. PartMesh.Name = "Mesh"
  479. PartMesh.Offset = Vector3.new(0, 0, 0)
  480. PartMesh.Scale = Vector3.new(0.230356485, 1, 1)
  481.  
  482. local Part = Instance.new("Part", m)
  483. Part:BreakJoints()
  484. Part.TopSurface = "Smooth"
  485. Part.Material = "SmoothPlastic"
  486. Part.Transparency = 0 Part.Name = 'Part'
  487. Part.BottomSurface = "Smooth"
  488. Part.FormFactor = "Custom" Part.CanCollide = false
  489. Part.BrickColor = BrickColor.new("Institutional white")
  490. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  491. local Partweld = Instance.new("ManualWeld")
  492. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  493. Partweld.C1 = CFrame.new(0.597218513, -0.842823029, 0.00602054596, 0.258815646, 0, 0.9659127, 0, 1, 0, -0.9659127, 0, 0.258815646)
  494. Partweld.Parent = Part
  495. local PartMesh = Instance.new("BlockMesh",Part)
  496. PartMesh.Name = "Mesh"
  497. PartMesh.Offset = Vector3.new(0, 0, 0)
  498. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  499.  
  500. local Part = Instance.new("Part", m)
  501. Part:BreakJoints()
  502. Part.TopSurface = "Smooth"
  503. Part.Material = "SmoothPlastic"
  504. Part.Transparency = 0 Part.Name = 'Part'
  505. Part.BottomSurface = "Smooth"
  506. Part.FormFactor = "Custom" Part.CanCollide = false
  507. Part.BrickColor = TorsoColor
  508. Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
  509. local Partweld = Instance.new("ManualWeld")
  510. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  511. Partweld.C1 = CFrame.new(0, 0, -0.123583317, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  512. Partweld.Parent = Part
  513. local PartMesh = Instance.new("CylinderMesh",Part)
  514. PartMesh.Name = "Mesh"
  515. PartMesh.Offset = Vector3.new(0, 0, 0)
  516. PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
  517.  
  518. local Part = Instance.new("Part", m)
  519. Part:BreakJoints()
  520. Part.TopSurface = "Smooth"
  521. Part.Material = "SmoothPlastic"
  522. Part.Transparency = 0 Part.Name = 'Part'
  523. Part.BottomSurface = "Smooth"
  524. Part.FormFactor = "Custom" Part.CanCollide = false
  525. Part.BrickColor = BrickColor.new("Institutional white")
  526. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  527. local Partweld = Instance.new("ManualWeld")
  528. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  529. Partweld.C1 = CFrame.new(0, -0.842823029, 0.393286943, 0.99998641, 1.07852229e-016, -0, -1.14204248e-016, 1, -2.3803019e-013, -0, 2.38031816e-013, 0.99998641)
  530. Partweld.Parent = Part
  531. local PartMesh = Instance.new("BlockMesh",Part)
  532. PartMesh.Name = "Mesh"
  533. PartMesh.Offset = Vector3.new(0, 0, 0)
  534. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  535.  
  536. local Part = Instance.new("Part", m)
  537. Part:BreakJoints()
  538. Part.TopSurface = "Smooth"
  539. Part.Material = "SmoothPlastic"
  540. Part.Transparency = 0 Part.Name = 'Part'
  541. Part.BottomSurface = "Smooth"
  542. Part.FormFactor = "Custom" Part.CanCollide = false
  543. Part.BrickColor = TorsoColor
  544. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  545. local Partweld = Instance.new("ManualWeld")
  546. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547. Partweld.C1 = CFrame.new(0, -0.842823029, -0.230328798, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  548. Partweld.Parent = Part
  549. local PartMesh = Instance.new("CylinderMesh",Part)
  550. PartMesh.Name = "Mesh"
  551. PartMesh.Offset = Vector3.new(0, 0, 0)
  552. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  553.  
  554. local Part = Instance.new("Part", m)
  555. Part:BreakJoints()
  556. Part.TopSurface = "Smooth"
  557. Part.Material = "SmoothPlastic"
  558. Part.Transparency = 0 Part.Name = 'Part'
  559. Part.BottomSurface = "Smooth"
  560. Part.FormFactor = "Custom" Part.CanCollide = false
  561. Part.BrickColor = TorsoColor
  562. Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
  563. local Partweld = Instance.new("ManualWeld")
  564. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  565. Partweld.C1 = CFrame.new(0, -0.618034363, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  566. Partweld.Parent = Part
  567. local PartMesh = Instance.new("CylinderMesh",Part)
  568. PartMesh.Name = "Mesh"
  569. PartMesh.Offset = Vector3.new(0, 0, 0)
  570. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  571.  
  572. local Part = Instance.new("Part", m)
  573. Part:BreakJoints()
  574. Part.TopSurface = "Smooth"
  575. Part.Material = "SmoothPlastic"
  576. Part.Transparency = 0 Part.Name = 'Part'
  577. Part.BottomSurface = "Smooth"
  578. Part.FormFactor = "Custom" Part.CanCollide = false
  579. Part.BrickColor = BrickColor.new("Institutional white")
  580. Part.Size = Vector3.new(0.200000003, 4.60922527, 0.224738017)
  581. local Partweld = Instance.new("ManualWeld")
  582. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  583. Partweld.C1 = CFrame.new(0, -3.3159256, -1.14440918e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  584. Partweld.Parent = Part
  585. local PartMesh = Instance.new("BlockMesh",Part)
  586. PartMesh.Name = "Mesh"
  587. PartMesh.Offset = Vector3.new(0, 0, 0)
  588. PartMesh.Scale = Vector3.new(0.561845124, 1, 1)
  589.  
  590. local Part = Instance.new("Part", m)
  591. Part:BreakJoints()
  592. Part.TopSurface = "Smooth"
  593. Part.Material = "SmoothPlastic"
  594. Part.Transparency = 0 Part.Name = 'Part'
  595. Part.BottomSurface = "Smooth"
  596. Part.FormFactor = "Custom" Part.CanCollide = false
  597. Part.BrickColor = TorsoColor
  598. Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
  599. local Partweld = Instance.new("ManualWeld")
  600. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  601. Partweld.C1 = CFrame.new(0, 0.618049622, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  602. Partweld.Parent = Part
  603. local PartMesh = Instance.new("CylinderMesh",Part)
  604. PartMesh.Name = "Mesh"
  605. PartMesh.Offset = Vector3.new(0, 0, 0)
  606. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  607.  
  608. local Part = Instance.new("Part", m)
  609. Part:BreakJoints()
  610. Part.TopSurface = "Smooth"
  611. Part.Material = "SmoothPlastic"
  612. Part.Transparency = 0 Part.Name = 'Part'
  613. Part.BottomSurface = "Smooth"
  614. Part.FormFactor = "Custom" Part.CanCollide = false
  615. Part.BrickColor = TorsoColor
  616. Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
  617. local Partweld = Instance.new("ManualWeld")
  618. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  619. Partweld.C1 = CFrame.new(0, 0, 0.117978811, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  620. Partweld.Parent = Part
  621. local PartMesh = Instance.new("CylinderMesh",Part)
  622. PartMesh.Name = "Mesh"
  623. PartMesh.Offset = Vector3.new(0, 0, 0)
  624. PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
  625.  
  626. local Part = Instance.new("Part", m)
  627. Part:BreakJoints()
  628. Part.TopSurface = "Smooth"
  629. Part.Material = "SmoothPlastic"
  630. Part.Transparency = 0 Part.Name = 'Part'
  631. Part.BottomSurface = "Smooth"
  632. Part.FormFactor = "Custom" Part.CanCollide = false
  633. Part.BrickColor = BrickColor.new("Institutional white")
  634. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.561845005)
  635. local Partweld = Instance.new("ManualWeld")
  636. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  637. Partweld.C1 = CFrame.new(0, -0.842823029, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  638. Partweld.Parent = Part
  639. local PartMesh = Instance.new("CylinderMesh",Part)
  640. PartMesh.Name = "Mesh"
  641. PartMesh.Offset = Vector3.new(0, 0, 0)
  642. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  643.  
  644. local Part = Instance.new("Part", m)
  645. Part:BreakJoints()
  646. Part.TopSurface = "Smooth"
  647. Part.Material = "SmoothPlastic"
  648. Part.Transparency = 0 Part.Name = 'Part'
  649. Part.BottomSurface = "Smooth"
  650. Part.FormFactor = "Custom" Part.CanCollide = false
  651. Part.BrickColor = TorsoColor
  652. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  653. local Partweld = Instance.new("ManualWeld")
  654. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  655. Partweld.C1 = CFrame.new(0.53044498, -0.842823029, 0.0229825974, 0.258815438, -1.97460321e-017, -0.965912819, 3.30120669e-017, 1, -1.15873321e-017, 0.965912819, -2.88872116e-017, 0.258815438)
  656. Partweld.Parent = Part
  657. local PartMesh = Instance.new("BlockMesh",Part)
  658. PartMesh.Name = "Mesh"
  659. PartMesh.Offset = Vector3.new(0, 0, 0)
  660. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  661.  
  662. local Part = Instance.new("Part", m)
  663. Part:BreakJoints()
  664. Part.TopSurface = "Smooth"
  665. Part.Material = "SmoothPlastic"
  666. Part.Transparency = 0 Part.Name = 'Part'
  667. Part.BottomSurface = "Smooth"
  668. Part.FormFactor = "Custom" Part.CanCollide = false
  669. Part.BrickColor = BrickColor.new("Institutional white")
  670. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  671. local Partweld = Instance.new("ManualWeld")
  672. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  673. Partweld.C1 = CFrame.new(0.529430389, -0.842823029, 0.0128250122, 0.258815438, 1.35525272e-020, -0.965912819, -3.50722156e-021, 1, 1.35524351e-020, 0.965912819, 0, 0.258815438)
  674. Partweld.Parent = Part
  675. local PartMesh = Instance.new("BlockMesh",Part)
  676. PartMesh.Name = "Mesh"
  677. PartMesh.Offset = Vector3.new(0, 0, 0)
  678. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  679.  
  680. local Part = Instance.new("Part", m)
  681. Part:BreakJoints()
  682. Part.TopSurface = "Smooth"
  683. Part.Material = "SmoothPlastic"
  684. Part.Transparency = 0 Part.Name = 'Part'
  685. Part.BottomSurface = "Smooth"
  686. Part.FormFactor = "Custom" Part.CanCollide = false
  687. Part.BrickColor = BrickColor.new("Institutional white")
  688. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  689. local Partweld = Instance.new("ManualWeld")
  690. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  691. Partweld.C1 = CFrame.new(0.529132843, -0.842823029, -0.0117540359, -0.258815706, -3.25260652e-018, -0.965912759, 3.89845789e-017, 1, -1.38099317e-017, 0.965912759, -4.1236952e-017, -0.258815706)
  692. Partweld.Parent = Part
  693. local PartMesh = Instance.new("BlockMesh",Part)
  694. PartMesh.Name = "Mesh"
  695. PartMesh.Offset = Vector3.new(0, 0, 0)
  696. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  697.  
  698. local Part = Instance.new("Part", m)
  699. Part:BreakJoints()
  700. Part.TopSurface = "Smooth"
  701. Part.Material = "SmoothPlastic"
  702. Part.Transparency = 0 Part.Name = 'Part'
  703. Part.BottomSurface = "Smooth"
  704. Part.FormFactor = "Custom" Part.CanCollide = false
  705. Part.BrickColor = BrickColor.new("Institutional white")
  706. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  707. local Partweld = Instance.new("ManualWeld")
  708. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  709. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393235803, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  710. Partweld.Parent = Part
  711. local PartMesh = Instance.new("BlockMesh",Part)
  712. PartMesh.Name = "Mesh"
  713. PartMesh.Offset = Vector3.new(0, 0, 0)
  714. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  715.  
  716. local Part = Instance.new("Part", m)
  717. Part:BreakJoints()
  718. Part.TopSurface = "Smooth"
  719. Part.Material = "SmoothPlastic"
  720. Part.Transparency = 0 Part.Name = 'Part'
  721. Part.BottomSurface = "Smooth"
  722. Part.FormFactor = "Custom" Part.CanCollide = false
  723. Part.BrickColor = TorsoColor
  724. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  725. local Partweld = Instance.new("ManualWeld")
  726. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  727. Partweld.C1 = CFrame.new(-0.525370121, -0.842823029, 0.0256881714, 0.258815676, -6.64073831e-019, 0.9659127, 1.05359266e-018, 1, 4.06573049e-019, -0.9659127, 9.14795583e-019, 0.258815676)
  728. Partweld.Parent = Part
  729. local PartMesh = Instance.new("BlockMesh",Part)
  730. PartMesh.Name = "Mesh"
  731. PartMesh.Offset = Vector3.new(0, 0, 0)
  732. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  733.  
  734. local Part = Instance.new("Part", m)
  735. Part:BreakJoints()
  736. Part.TopSurface = "Smooth"
  737. Part.Material = "SmoothPlastic"
  738. Part.Transparency = 0 Part.Name = 'Part'
  739. Part.BottomSurface = "Smooth"
  740. Part.FormFactor = "Custom" Part.CanCollide = false
  741. Part.BrickColor = TorsoColor
  742. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  743. local Partweld = Instance.new("ManualWeld")
  744. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  745. Partweld.C1 = CFrame.new(0, -0.730434418, 0.174170732, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  746. Partweld.Parent = Part
  747. local PartMesh = Instance.new("CylinderMesh",Part)
  748. PartMesh.Name = "Mesh"
  749. PartMesh.Offset = Vector3.new(0, 0, 0)
  750. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  751.  
  752. local Part = Instance.new("Part", m)
  753. Part:BreakJoints()
  754. Part.TopSurface = "Smooth"
  755. Part.Material = "SmoothPlastic"
  756. Part.Transparency = 0 Part.Name = 'Part'
  757. Part.BottomSurface = "Smooth"
  758. Part.FormFactor = "Custom" Part.CanCollide = false
  759. Part.BrickColor = TorsoColor
  760. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  761. local Partweld = Instance.new("ManualWeld")
  762. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  763. Partweld.C1 = CFrame.new(-0.59340477, -0.842823029, 0.00790405273, -0.258815557, 0, -0.9659127, 0, 1, 0, 0.9659127, 0, -0.258815557)
  764. Partweld.Parent = Part
  765. local PartMesh = Instance.new("BlockMesh",Part)
  766. PartMesh.Name = "Mesh"
  767. PartMesh.Offset = Vector3.new(0, 0, 0)
  768. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  769.  
  770. local Part = Instance.new("Part", m)
  771. Part:BreakJoints()
  772. Part.TopSurface = "Smooth"
  773. Part.Material = "SmoothPlastic"
  774. Part.Transparency = 0 Part.Name = 'Part'
  775. Part.BottomSurface = "Smooth"
  776. Part.FormFactor = "Custom" Part.CanCollide = false
  777. Part.BrickColor = TorsoColor
  778. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.382054657)
  779. local Partweld = Instance.new("ManualWeld")
  780. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  781. Partweld.C1 = CFrame.new(0.00023651123, -0.842823029, -0.364931583, 0.99998641, -2.62516024e-017, -1.67287184e-026, 2.62512451e-017, 1, 3.6862117e-018, 1.67287184e-026, -3.68626216e-018, 0.99998641)
  782. Partweld.Parent = Part
  783. local PartMesh = Instance.new("BlockMesh",Part)
  784. PartMesh.Name = "Mesh"
  785. PartMesh.Offset = Vector3.new(0, 0, 0)
  786. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
  787.  
  788. local Part = Instance.new("Part", m)
  789. Part:BreakJoints()
  790. Part.TopSurface = "Smooth"
  791. Part.Material = "SmoothPlastic"
  792. Part.Transparency = 0 Part.Name = 'Part'
  793. Part.BottomSurface = "Smooth"
  794. Part.FormFactor = "Custom" Part.CanCollide = false
  795. Part.BrickColor = TorsoColor
  796. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  797. local Partweld = Instance.new("ManualWeld")
  798. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  799. Partweld.C1 = CFrame.new(0.598263144, -0.842823029, 0.00432395935, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
  800. Partweld.Parent = Part
  801. local PartMesh = Instance.new("BlockMesh",Part)
  802. PartMesh.Name = "Mesh"
  803. PartMesh.Offset = Vector3.new(0, 0, 0)
  804. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  805.  
  806. local Part = Instance.new("Part", m)
  807. Part:BreakJoints()
  808. Part.TopSurface = "Smooth"
  809. Part.Material = "SmoothPlastic"
  810. Part.Transparency = 0 Part.Name = 'Part'
  811. Part.BottomSurface = "Smooth"
  812. Part.FormFactor = "Custom" Part.CanCollide = false
  813. Part.BrickColor = TorsoColor
  814. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.449476063)
  815. local Partweld = Instance.new("ManualWeld")
  816. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  817. Partweld.C1 = CFrame.new(0, -0.842823029, 0.398794174, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  818. Partweld.Parent = Part
  819. local PartMesh = Instance.new("BlockMesh",Part)
  820. PartMesh.Name = "Mesh"
  821. PartMesh.Offset = Vector3.new(0, 0, 0)
  822. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
  823.  
  824. local Part = Instance.new("Part", m)
  825. Part:BreakJoints()
  826. Part.TopSurface = "Smooth"
  827. Part.Material = "SmoothPlastic"
  828. Part.Transparency = 0 Part.Name = 'Part'
  829. Part.BottomSurface = "Smooth"
  830. Part.FormFactor = "Custom" Part.CanCollide = false
  831. Part.BrickColor = TorsoColor
  832. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  833. local Partweld = Instance.new("ManualWeld")
  834. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  835. Partweld.C1 = CFrame.new(0, -0.955184937, 0.174145699, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  836. Partweld.Parent = Part
  837. local PartMesh = Instance.new("CylinderMesh",Part)
  838. PartMesh.Name = "Mesh"
  839. PartMesh.Offset = Vector3.new(0, 0, 0)
  840. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  841.  
  842. local Part = Instance.new("Part", m)
  843. Part:BreakJoints()
  844. Part.TopSurface = "Smooth"
  845. Part.Material = "SmoothPlastic"
  846. Part.Transparency = 0.5 Part.Name = 'Part'
  847. Part.BottomSurface = "Smooth"
  848. Part.FormFactor = "Custom" Part.CanCollide = false
  849. Part.BrickColor = TorsoColor
  850. Part.Size = Vector3.new(0.200000003, 1.01132107, 0.449476063)
  851. local Partweld = Instance.new("ManualWeld")
  852. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  853. Partweld.C1 = CFrame.new(-8.39233398e-005, -6.13697433, 0.00012421608, -0.99998641, 0, 5.96042398e-008, 0, 1, 0, -5.96042398e-008, 0, -0.99998641)
  854. Partweld.Parent = Part
  855. local PartMesh = Instance.new("SpecialMesh",Part)
  856. PartMesh.MeshId = ""
  857. PartMesh.MeshType = Enum.MeshType.Wedge PartMesh.Name = "Mesh"
  858. PartMesh.Offset = Vector3.new(0, 0, 0)
  859. PartMesh.Scale = Vector3.new(0.221366972, 1, 1)
  860.  
  861. local Part = Instance.new("Part", m)
  862. Part:BreakJoints()
  863. Part.TopSurface = "Smooth"
  864. Part.Material = "SmoothPlastic"
  865. Part.Transparency = 0 Part.Name = 'Part'
  866. Part.BottomSurface = "Smooth"
  867. Part.FormFactor = "Custom" Part.CanCollide = false
  868. Part.BrickColor = BrickColor.new("Institutional white")
  869. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  870. local Partweld = Instance.new("ManualWeld")
  871. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  872. Partweld.C1 = CFrame.new(0, -0.955184937, -2.38418579e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  873. Partweld.Parent = Part
  874. local PartMesh = Instance.new("CylinderMesh",Part)
  875. PartMesh.Name = "Mesh"
  876. PartMesh.Offset = Vector3.new(0, 0, 0)
  877. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  878.  
  879. local Part = Instance.new("Part", m)
  880. Part:BreakJoints()
  881. Part.TopSurface = "Smooth"
  882. Part.Material = "SmoothPlastic"
  883. Part.Transparency = 0 Part.Name = 'Part'
  884. Part.BottomSurface = "Smooth"
  885. Part.FormFactor = "Custom" Part.CanCollide = false
  886. Part.BrickColor = TorsoColor
  887. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  888. local Partweld = Instance.new("ManualWeld")
  889. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  890. Partweld.C1 = CFrame.new(0, -0.842823029, 0.230348349, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  891. Partweld.Parent = Part
  892. local PartMesh = Instance.new("CylinderMesh",Part)
  893. PartMesh.Name = "Mesh"
  894. PartMesh.Offset = Vector3.new(0, 0, 0)
  895. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  896.  
  897. local Part = Instance.new("Part", m)
  898. Part:BreakJoints()
  899. Part.TopSurface = "Smooth"
  900. Part.Material = "SmoothPlastic"
  901. Part.Transparency = 0 Part.Name = 'Part'
  902. Part.BottomSurface = "Smooth"
  903. Part.FormFactor = "Custom" Part.CanCollide = false
  904. Part.BrickColor = TorsoColor
  905. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  906. local Partweld = Instance.new("ManualWeld")
  907. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  908. Partweld.C1 = CFrame.new(0, -0.730434418, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  909. Partweld.Parent = Part
  910. local PartMesh = Instance.new("CylinderMesh",Part)
  911. PartMesh.Name = "Mesh"
  912. PartMesh.Offset = Vector3.new(0, 0, 0)
  913. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  914.  
  915. local hitbox = Instance.new("Part", m)
  916. hitbox:BreakJoints()
  917. hitbox.TopSurface = "Smooth"
  918. hitbox.Material = "SmoothPlastic"
  919. hitbox.Transparency = 1 hitbox.Name = 'hitbox'
  920. hitbox.BottomSurface = "Smooth"
  921. hitbox.FormFactor = "Custom" hitbox.CanCollide = false
  922. hitbox.BrickColor = BrickColor.new("Institutional white")
  923. hitbox.Size = Vector3.new(0.200000003, 5.60922527, 0.624738038)
  924. local hitboxweld = Instance.new("ManualWeld")
  925. hitboxweld.Part0 = Handle hitboxweld.Part1 = hitbox hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  926. hitboxweld.C1 = CFrame.new(0, -3.8159256, -1.12056732e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  927. hitboxweld.Parent = hitbox
  928. local hitboxMesh = Instance.new("BlockMesh",hitbox)
  929. hitboxMesh.Name = "Mesh"
  930. hitboxMesh.Offset = Vector3.new(0, 0, 0)
  931. hitboxMesh.Scale = Vector3.new(0.561845124, 1, 1)
  932.  
  933. local Wedge = Instance.new("WedgePart", m)
  934. Wedge:BreakJoints()
  935. Wedge.TopSurface = "Smooth"
  936. Wedge.Material = "SmoothPlastic"
  937. Wedge.Transparency = 0 Wedge.Name = 'Wedge'
  938. Wedge.BottomSurface = "Smooth"
  939. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  940. Wedge.BrickColor = BrickColor.new("Institutional white")
  941. Wedge.Size = Vector3.new(0.200000003, 0.561845124, 0.224738076)
  942. local Wedgeweld = Instance.new("ManualWeld")
  943. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  944. Wedgeweld.C1 = CFrame.new(7.62939453e-006, -5.9009819, -4.0769577e-005, -0.999992788, 1.60944605e-010, -8.94063589e-007, 1.60504526e-010, 0.999993563, -4.18958729e-010, 7.897562e-007, -4.18840851e-010, -0.999986649)
  945. Wedgeweld.Parent = Wedge
  946. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  947. WedgeMesh.MeshId = ""
  948. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  949. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  950. WedgeMesh.Scale = Vector3.new(0.561845124, 1, 1)
  951.  
  952. local function weldBetween(a, b, name)
  953. local weld = Instance.new("ManualWeld")
  954. weld.Part0 = a
  955. weld.Part1 = b
  956. weld.C0 = CFrame.new()
  957. weld.C1 = b.CFrame:inverse() * a.CFrame
  958. weld.Parent = a
  959. weld.Name=name or 'weldb1'
  960. weld.Parent=m
  961. return weld;
  962. end
  963.  
  964. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  965. if hit.Parent==nil then
  966. return
  967. end
  968. h=hit.Parent:FindFirstChild("Humanoid")
  969. for _,v in pairs(hit.Parent:children()) do
  970. if v:IsA("Humanoid") then
  971. h=v
  972. end
  973. end
  974. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  975. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  976. end
  977. if hit.Parent.className=="Hat" then
  978. hit=hit.Parent.Parent:findFirstChild("Head")
  979. end
  980. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  981. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  982. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  983. return
  984. end]]
  985. -- hs(hit,1.2)
  986. c=Instance.new("ObjectValue")
  987. c.Name="creator"
  988. c.Value=game:service("Players").LocalPlayer
  989. c.Parent=h
  990. game:GetService("Debris"):AddItem(c,.5)
  991. Damage=math.random(minim,maxim)
  992. -- h:TakeDamage(Damage)
  993. blocked=false
  994. block=hit.Parent:findFirstChild("Block")
  995. if block~=nil then
  996. print(block.className)
  997. if block.className=="NumberValue" then
  998. if block.Value>0 then
  999. blocked=true
  1000. if decreaseblock==nil then
  1001. block.Value=block.Value-1
  1002. end
  1003. end
  1004. end
  1005. if block.className=="IntValue" then
  1006. if block.Value>0 then
  1007. blocked=true
  1008. if decreaseblock~=nil then
  1009. block.Value=block.Value-1
  1010. end
  1011. end
  1012. end
  1013. end
  1014. if blocked==false then
  1015. -- h:TakeDamage(Damage)
  1016. h.Health=h.Health-Damage
  1017. showDamage(hit.Parent,Damage,.5,TorsoColor)
  1018. else
  1019. h.Health=h.Health-(Damage/2)
  1020. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1021. end
  1022. if Type=="Knockdown" then
  1023. hum=hit.Parent.Humanoid
  1024. hum.PlatformStand=true
  1025. coroutine.resume(coroutine.create(function(HHumanoid)
  1026. swait(1)
  1027. HHumanoid.PlatformStand=false
  1028. end),hum)
  1029. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1030. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1031. local bodvol=Instance.new("BodyVelocity")
  1032. bodvol.velocity=angle*knockback
  1033. bodvol.P=5000
  1034. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1035. bodvol.Parent=hit
  1036. rl=Instance.new("BodyAngularVelocity")
  1037. rl.P=3000
  1038. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1039. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1040. rl.Parent=hit
  1041. game:GetService("Debris"):AddItem(bodvol,.5)
  1042. game:GetService("Debris"):AddItem(rl,.5)
  1043. elseif Type=="Normal" then
  1044. vp=Instance.new("BodyVelocity")
  1045. vp.P=500
  1046. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1047. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1048. if KnockbackType==1 then
  1049. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1050. elseif KnockbackType==2 then
  1051. vp.velocity=Property.CFrame.lookVector*knockback
  1052. end
  1053. if knockback>0 then
  1054. vp.Parent=hit.Parent.Torso
  1055. end
  1056. game:GetService("Debris"):AddItem(vp,.5)
  1057. elseif Type=="Up" then
  1058. local bodyVelocity=Instance.new("BodyVelocity")
  1059. bodyVelocity.velocity=vt(0,60,0)
  1060. bodyVelocity.P=5000
  1061. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1062. bodyVelocity.Parent=hit
  1063. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1064. rl=Instance.new("BodyAngularVelocity")
  1065. rl.P=3000
  1066. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1067. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1068. rl.Parent=hit
  1069. game:GetService("Debris"):AddItem(rl,.5)
  1070. elseif Type=="Snare" then
  1071. bp=Instance.new("BodyPosition")
  1072. bp.P=2000
  1073. bp.D=100
  1074. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1075. bp.position=hit.Parent.Torso.Position
  1076. bp.Parent=hit.Parent.Torso
  1077. game:GetService("Debris"):AddItem(bp,1)
  1078. elseif Type=="Target" then
  1079. if Targetting==false then
  1080. ZTarget=hit.Parent.Torso
  1081. coroutine.resume(coroutine.create(function(Part)
  1082. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1083. swait(5)
  1084. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1085. end),ZTarget)
  1086. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1087. targetgui=Instance.new("BillboardGui")
  1088. targetgui.Parent=ZTarget
  1089. targetgui.Size=UDim2.new(10,100,10,100)
  1090. targ=Instance.new("ImageLabel")
  1091. targ.Parent=targetgui
  1092. targ.BackgroundTransparency=1
  1093. targ.Image="rbxassetid://4834067"
  1094. targ.Size=UDim2.new(1,0,1,0)
  1095. cam.CameraType="Scriptable"
  1096. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1097. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1098. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1099. Targetting=true
  1100. RocketTarget=ZTarget
  1101. for i=1,Property do
  1102. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1103. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1104. swait()
  1105. end
  1106. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1107. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1108. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1109. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1110. end
  1111. Targetting=false
  1112. RocketTarget=nil
  1113. targetgui.Parent=nil
  1114. cam.CameraType="Custom"
  1115. end
  1116. end
  1117. debounce=Instance.new("BoolValue")
  1118. debounce.Name="DebounceHit"
  1119. debounce.Parent=hit.Parent
  1120. debounce.Value=true
  1121. game:GetService("Debris"):AddItem(debounce,Delay)
  1122. c=Instance.new("ObjectValue")
  1123. c.Name="creator"
  1124. c.Value=Player
  1125. c.Parent=h
  1126. game:GetService("Debris"):AddItem(c,.5)
  1127. CRIT=false
  1128. hitDeb=true
  1129. AttackPos=6
  1130. end
  1131. end
  1132.  
  1133. showDamage=function(Char,Dealt,du,Color)
  1134. m=Instance.new("Model")
  1135. m.Name=tostring(Dealt)
  1136. h=Instance.new("Humanoid")
  1137. h.Health=0
  1138. h.MaxHealth=0
  1139. h.Parent=m
  1140. c=Instance.new("Part")
  1141. c.Transparency=0
  1142. c.BrickColor=Color
  1143. c.Name="Head"
  1144. c.TopSurface=0
  1145. c.BottomSurface=0
  1146. c.formFactor="Plate"
  1147. c.Size=Vector3.new(1,.4,1)
  1148. ms=Instance.new("CylinderMesh")
  1149. ms.Scale=Vector3.new(.8,.8,.8)
  1150. if CRIT==true then
  1151. ms.Scale=Vector3.new(1,1.25,1)
  1152. end
  1153. ms.Parent=c
  1154. c.Reflectance=0
  1155. Instance.new("BodyGyro").Parent=c
  1156. c.Parent=m
  1157. if Char:findFirstChild("Head")~=nil then
  1158. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1159. elseif Char.Parent:findFirstChild("Head")~=nil then
  1160. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1161. end
  1162. f=Instance.new("BodyPosition")
  1163. f.P=2000
  1164. f.D=100
  1165. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1166. f.position=c.Position+Vector3.new(0,3,0)
  1167. f.Parent=c
  1168. game:GetService("Debris"):AddItem(m,.5+du)
  1169. c.CanCollide=false
  1170. m.Parent=workspace
  1171. c.CanCollide=false
  1172. end
  1173.  
  1174. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1175. local msh1 = it("SpecialMesh")
  1176. msh1.Scale = vt(0.5,0.5,0.5)
  1177. msh1.MeshType = "Sphere"
  1178. local S=it("Part")
  1179. S.Name="Effect"
  1180. S.formFactor=0
  1181. S.Size=vt(x1,y1,z1)
  1182. S.BrickColor=color
  1183. S.Reflectance = 0
  1184. S.TopSurface=0
  1185. S.BottomSurface=0
  1186. S.Transparency=0
  1187. S.Anchored=true
  1188. S.CanCollide=false
  1189. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1190. S.Parent=workspace
  1191. msh1.Parent = S
  1192. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1193. end
  1194.  
  1195. function SummonSword(Part,cframe1,cframe2)
  1196. coroutine.resume(coroutine.create(function()
  1197.  
  1198. local sword=part(1,workspace,0,0.5,TorsoColor,"Sword",vt(2,2,2))
  1199. sword.Anchored=true
  1200. --con1=sword.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1201. local smesh=mesh("SpecialMesh",sword,"FileMesh","http://www.roblox.com/asset/?id=50798664",vt(0,0,0),vt(3,3,3))
  1202. --smesh.Parent=nil
  1203. smesh.VertexColor=Vector3.new(0, 0, 0)
  1204. sword.CFrame=Part.CFrame*cframe1
  1205. con1=sword.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  1206. so("http://roblox.com/asset/?id=231917788",sword,0.5,1)
  1207. hitconasdf = sword.Touched:connect(function(hit)
  1208. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1209. if hum12 and not hum12:IsDescendantOf(Character) then
  1210. so('http://roblox.com/asset/?id=220025675',sword,1,3)
  1211. hitconasdf:disconnect()
  1212. end
  1213. end)
  1214. EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,TorsoColor)
  1215. for i=0,1,0.2 do
  1216. wait()
  1217. local dir = sword.CFrame.lookVector*-1
  1218. hit2,pos = rayCast(sword.Position,dir,5,Character)
  1219. if hit2~=nil then
  1220. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1221. hum = hit2.Parent.Humanoid
  1222. --Damagefunc2(hit2,5,1)
  1223. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1224. hum = hit2.Parent.Parent.Humanoid
  1225. --Damagefunc2(hit2,5,1)
  1226. end
  1227. end
  1228. sword.CFrame=sword.CFrame*cframe2
  1229. end
  1230. EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,TorsoColor)
  1231. sword.Parent=nil
  1232. pcall(function()
  1233. hitconasdf:disconnect()
  1234. end)
  1235. con1:disconnect()
  1236. end))
  1237. end
  1238.  
  1239. rings=Instance.new('Model',Character)
  1240.  
  1241. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2)
  1242. local rng = Instance.new("Part", rings)
  1243. rng.Anchored = true
  1244. rng.BrickColor = BrickColor.new("Bright blue")
  1245. rng.CanCollide = false
  1246. rng.FormFactor = 3
  1247. rng.Name = "Ring"
  1248. rng.Size = Vector3.new(1, 1, 1)
  1249. rng.Transparency = .5
  1250. rng.TopSurface = 0
  1251. rng.BottomSurface = 0
  1252. rng.CFrame = where.CFrame * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  1253. local rngm = Instance.new("SpecialMesh", rng)
  1254. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1255. rngm.Scale = vector--10,10,1
  1256. for i = 1, 20, 1 do
  1257. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  1258. rng.Transparency = i/20
  1259. swait()
  1260. end
  1261. wait()
  1262. rng:destroy''
  1263. end
  1264.  
  1265. player=game.Players.localPlayer
  1266. char=player.Character
  1267. Effects={}
  1268. vt=Vector3.new
  1269. cf=CFrame.new
  1270. euler=CFrame.fromEulerAnglesXYZ
  1271. m=Instance.new("Model",char)
  1272.  
  1273. function atktype(s, e)
  1274. coroutine.resume(coroutine.create(function()
  1275. attacktype = e
  1276. swait(80)
  1277. attacktype = s
  1278. end))
  1279. end
  1280.  
  1281. mouse.Button1Down:connect(function()
  1282. if equipped==true and hand==false then
  1283. if attacktype==1 then
  1284. attackone()
  1285. elseif attacktype==2 then
  1286. attacktwo()
  1287. elseif attacktype==3 then
  1288. attackthree()
  1289. elseif attacktype==4 then
  1290. attackfour()
  1291. end
  1292. end
  1293. end)
  1294.  
  1295. mouse.KeyDown:connect(function(k)
  1296. k=k:lower()
  1297. if k=='q' then
  1298. if attack==false and mana>=40 then
  1299. spin()
  1300. end
  1301. elseif k=='f' then
  1302. if attack==false and mana>=50 then
  1303. boom()
  1304. end
  1305. elseif k=='e' then
  1306. if attack==false and mana>=20 then
  1307. Jab()
  1308. end
  1309. elseif k=='0' then
  1310. if attack==false then
  1311. Humanoid.WalkSpeed = 32
  1312. end
  1313. elseif k=='r' then
  1314. if attack==false and mana>=30 then
  1315. Throw()
  1316. end
  1317. end
  1318. end)
  1319.  
  1320. function spin()
  1321. attack=true
  1322. mana=mana-40
  1323. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1324. for i=0,1,0.1 do
  1325. swait()
  1326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1327. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1328. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1329. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1330. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1331. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1332. end
  1333. for i=0,1,0.15 do
  1334. so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
  1335. swait()
  1336. for i=0,1,0.1 do
  1337. swait()
  1338. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1339. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1340. RootJoint.C0=RootCF*euler(0,0,6.6*i)
  1341. end
  1342. end
  1343. con1:disconnect()
  1344. attack=false
  1345. end
  1346.  
  1347. function attackone()
  1348. if attack==false and attacktype==1 then
  1349. attacktype=2
  1350. attack=true
  1351. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1352. for i=0,1,0.1 do
  1353. swait()
  1354. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.3)
  1355. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.3)
  1357. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1358. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.3)
  1359. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1360. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1361. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1362. end
  1363. so("http://roblox.com/asset/?id=234365549",hitbox,1,0.75)
  1364. hitconasdf = hitbox.Touched:connect(function(hit)
  1365. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1366. if hum12 and not hum12:IsDescendantOf(Character) then
  1367. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1368. hitconasdf:disconnect()
  1369. end
  1370. end)
  1371. for i=0,1,0.2 do
  1372. swait()
  1373. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.3)
  1374. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  1375. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.3)
  1376. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.3)
  1378. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1379. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  1380. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  1381. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1382. end
  1383. for i=0,1,0.1 do
  1384. swait()
  1385. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.3)
  1386. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  1387. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.3)
  1388. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1389. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.3)
  1390. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1391. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  1392. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  1393. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1394. end
  1395. con1:disconnect()
  1396. hitconasdf:disconnect()
  1397. attack=false
  1398. atktype(1, 2)
  1399. end
  1400. end
  1401.  
  1402. function attacktwo()
  1403. if attack==false and attacktype==2 then
  1404. attacktype=3
  1405. attack=true
  1406. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1407. for i=0,1,0.75 do
  1408. swait()
  1409. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.3)
  1410. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1411. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.3)
  1412. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  1414. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1415. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1416. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1417. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1418. end
  1419. for i=0,1,0.1 do
  1420. swait()
  1421. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.3)
  1422. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.3)
  1423. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.3)
  1424. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1425. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.3)
  1426. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1427. RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.3)
  1428. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.3)
  1429. end
  1430. so("http://roblox.com/asset/?id=234365573",hitbox,1,0.75)
  1431. hitconasdf = hitbox.Touched:connect(function(hit)
  1432. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1433. if hum12 and not hum12:IsDescendantOf(Character) then
  1434. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1435. hitconasdf:disconnect()
  1436. end
  1437. end)
  1438. for i=0,1,0.2 do
  1439. swait()
  1440. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.3)
  1441. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.3)
  1443. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  1445. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1446. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1447. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1448. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1449. end
  1450. for i=0,1,0.1 do
  1451. swait()
  1452. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  1453. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1454. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.3)
  1455. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1456. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  1457. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1458. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1459. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1460. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1461. end
  1462. attack=false
  1463. atktype(1, 3)
  1464. con1:disconnect()
  1465. hitconasdf:disconnect()
  1466. end
  1467. end
  1468.  
  1469. function attackthree()
  1470. if attack==false and attacktype==3 then
  1471. attacktype=4
  1472. attack=true
  1473. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1474. for i=0,1,0.75 do
  1475. swait()
  1476. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1477. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1478. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(30),math.rad(0),math.rad(-30)),.3)
  1479. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1480. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(30),math.rad(0),math.rad(30)),.3)
  1481. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1482. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1483. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1484. Handleweld.C0=clerp(Handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1485. end
  1486. for i=0,1,0.075 do
  1487. swait()
  1488. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1489. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1490. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(120),math.rad(0),math.rad(-30)),.3)
  1491. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1492. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  1493. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1494. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1495. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1496. Handleweld.C0=clerp(Handleweld.C0,cf(-1,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1497. end
  1498. so("http://roblox.com/asset/?id=234365573",hitbox,1,1)
  1499. hitconasdf = hitbox.Touched:connect(function(hit)
  1500. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1501. if hum12 and not hum12:IsDescendantOf(Character) then
  1502. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1503. hitconasdf:disconnect()
  1504. end
  1505. end)
  1506. for i=0,1,0.05 do
  1507. swait()
  1508. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1509. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1510. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(30),math.rad(0),math.rad(-30)),.3)
  1511. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1512. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(30),math.rad(0),math.rad(30)),.3)
  1513. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1514. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1515. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1516. Handleweld.C0=clerp(Handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1517. end
  1518. attack=false
  1519. atktype(1, 4)
  1520. con1:disconnect()
  1521. hitconasdf:disconnect()
  1522. end
  1523. end
  1524.  
  1525. function attackfour()
  1526. if attack==false and attacktype==4 then
  1527. attacktype=1
  1528. attack=true
  1529. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1530. for i=0,1,0.075 do
  1531. swait()
  1532. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.3)
  1533. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  1534. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.3)
  1535. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1536. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.3)
  1537. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1538. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.3)
  1539. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.3)
  1540. end
  1541. so("http://roblox.com/asset/?id=234365549",hitbox,1,0.6)
  1542. hitconasdf = hitbox.Touched:connect(function(hit)
  1543. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1544. if hum12 and not hum12:IsDescendantOf(Character) then
  1545. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1546. hitconasdf:disconnect()
  1547. end
  1548. end)
  1549. for i=0,1,0.075 do
  1550. swait()
  1551. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
  1552. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
  1553. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
  1554. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  1555. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
  1556. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  1557. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
  1558. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
  1559. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-45),math.rad(0),math.rad(0)),.2)
  1560. end
  1561. attack=false
  1562. atktype(1, 1)
  1563. con1:disconnect()
  1564. hitconasdf:disconnect()
  1565. end
  1566. end
  1567.  
  1568. function Jab()
  1569. attack=true
  1570. mana=mana-20
  1571. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1572. for i=0,1,0.05 do
  1573. swait()
  1574. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1575. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1576. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(0),math.rad(-45),math.rad(-90)),.3)
  1577. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1578. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1579. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1580. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1581. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1582. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1583. end
  1584. so("http://roblox.com/asset/?id=231917871",hitbox,1,0.8)
  1585. hitconasdf = hitbox.Touched:connect(function(hit)
  1586. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1587. if hum12 and not hum12:IsDescendantOf(Character) then
  1588. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1589. hitconasdf:disconnect()
  1590. end
  1591. end)
  1592. for i=0,1,0.05 do
  1593. swait()
  1594. Torso.Velocity=RootPart.CFrame.lookVector*50
  1595. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1596. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1597. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  1598. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1600. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1601. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1602. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1603. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
  1604. end
  1605. attack=false
  1606. con1:disconnect()
  1607. hitconasdf:disconnect()
  1608. end
  1609.  
  1610. function Throw()
  1611. attack=true
  1612. mana=mana-30
  1613. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1614. for i=0,1,0.05 do
  1615. swait()
  1616. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  1617. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  1618. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-170),math.rad(6.5),math.rad(31)),.3)
  1619. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1620. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-20)),.3)
  1621. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1622. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1623. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1624. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1625. end
  1626. so("http://roblox.com/asset/?id=231917871",hitbox,1,0.8)
  1627. hitconasdf = hitbox.Touched:connect(function(hit)
  1628. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1629. if hum12 and not hum12:IsDescendantOf(Character) then
  1630. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1631. hitconasdf:disconnect()
  1632. end
  1633. end)
  1634. for i=0,0.5,2 do
  1635. so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
  1636. swait()
  1637. for i=0,1,0.025 do
  1638. swait()
  1639. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1640. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1641. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(6.5),math.rad(31)),.3)
  1642. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1643. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  1644. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1645. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1646. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1647. Handleweld.C0=clerp(Handleweld.C0,cf(0,0-50*i,0)*angles(math.rad(-45-1800*i),math.rad(0),math.rad(0)),.3)
  1648. end
  1649. end
  1650. for i=0,0.5,2 do
  1651. so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
  1652. swait()
  1653. for i=0,1,0.025 do
  1654. swait()
  1655. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1656. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(6.5),math.rad(31)),.3)
  1658. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1659. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  1660. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1661. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1663. Handleweld.C0=clerp(Handleweld.C0,cf(0,-50+50*i,0)*angles(math.rad(-45-1800*i),math.rad(0),math.rad(0)),.3)
  1664. end
  1665. end
  1666. for i=0,1,0.1 do
  1667. swait()
  1668. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  1669. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  1670. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-170),math.rad(6.5),math.rad(31)),.3)
  1671. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1672. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-20)),.3)
  1673. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1674. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1675. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1676. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1677. end
  1678. attack=false
  1679. con1:disconnect()
  1680. hitconasdf:disconnect()
  1681. end
  1682.  
  1683. function boom()
  1684. attack=true
  1685. mana=mana-50
  1686. for i=0,3,0.3 do
  1687. swait()
  1688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(10),math.rad(90)),.3)
  1690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(15)),.3)
  1691. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(45)),.3)
  1692. 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)
  1693. 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)
  1694. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1695. end
  1696. for i=0,1,0.07 do
  1697. swait()
  1698. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1700. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(15)),.3)
  1701. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  1702. 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)
  1703. 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)
  1704. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1705. end
  1706. --so("http://roblox.com/asset/?id=231917813",hitbox,1,1)
  1707. for i=0,20 do
  1708. inc=1
  1709. wait(0)
  1710. SummonSword(Torso,CFrame.fromEulerAnglesXYZ(math.rad(210),math.rad(90),math.rad(150))*CFrame.new(0,inc,-4),CFrame.new(0,0,-3))
  1711. inc=inc-5
  1712. end
  1713. attack=false
  1714. end
  1715.  
  1716. local function CFrameFromTopBack(at, top, back)
  1717. local right = top:Cross(back)
  1718. return CFrame.new(at.x, at.y, at.z,
  1719. right.x, top.x, back.x,
  1720. right.y, top.y, back.y,
  1721. right.z, top.z, back.z)
  1722. end
  1723.  
  1724. function Triangle(a, b, c)
  1725. local edg1 = (c-a):Dot((b-a).unit)
  1726. local edg2 = (a-b):Dot((c-b).unit)
  1727. local edg3 = (b-c):Dot((a-c).unit)
  1728. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1729. a, b, c = a, b, c
  1730. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1731. a, b, c = b, c, a
  1732. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1733. a, b, c = c, a, b
  1734. else
  1735. assert(false, "unreachable")
  1736. end
  1737.  
  1738. local len1 = (c-a):Dot((b-a).unit)
  1739. local len2 = (b-a).magnitude - len1
  1740. local width = (a + (b-a).unit*len1 - c).magnitude
  1741.  
  1742. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1743.  
  1744. local list = {}
  1745.  
  1746. if len1 > 0.01 then
  1747. local w1 = Instance.new('WedgePart', m)
  1748. game:GetService("Debris"):AddItem(w1,5)
  1749. w1.Material = "SmoothPlastic"
  1750. w1.FormFactor = 'Custom'
  1751. w1.BrickColor = TorsoColor
  1752. w1.Transparency = 0
  1753. w1.Reflectance = 0
  1754. w1.Material = "SmoothPlastic"
  1755. w1.CanCollide = false
  1756. NoOutline(w1)
  1757. local sz = Vector3.new(0.2, width, len1)
  1758. w1.Size = sz
  1759. local sp = Instance.new("SpecialMesh",w1)
  1760. sp.MeshType = "Wedge"
  1761. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1762. w1:BreakJoints()
  1763. w1.Anchored = true
  1764. w1.Parent = workspace
  1765. w1.Transparency = 0.7
  1766. table.insert(Effects,{w1,"Disappear",.01})
  1767. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1768. table.insert(list,w1)
  1769. end
  1770.  
  1771. if len2 > 0.01 then
  1772. local w2 = Instance.new('WedgePart', m)
  1773. game:GetService("Debris"):AddItem(w2,5)
  1774. w2.Material = "SmoothPlastic"
  1775. w2.FormFactor = 'Custom'
  1776. w2.BrickColor = TorsoColor
  1777. w2.Transparency = 0
  1778. w2.Reflectance = 0
  1779. w2.Material = "SmoothPlastic"
  1780. w2.CanCollide = false
  1781. NoOutline(w2)
  1782. local sz = Vector3.new(0.2, width, len2)
  1783. w2.Size = sz
  1784. local sp = Instance.new("SpecialMesh",w2)
  1785. sp.MeshType = "Wedge"
  1786. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1787. w2:BreakJoints()
  1788. w2.Anchored = true
  1789. w2.Parent = workspace
  1790. w2.Transparency = 0.7
  1791. table.insert(Effects,{w2,"Disappear",.01})
  1792. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1793. table.insert(list,w2)
  1794. end
  1795. return unpack(list)
  1796. end
  1797.  
  1798. function NoOutline(Part)
  1799. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1800. end
  1801.  
  1802. local sine = 0
  1803. local change = 1
  1804. local val = 0
  1805.  
  1806. if #Effects>0 then
  1807. --table.insert(Effects,{prt,"Block1",delay})
  1808. for e=1,#Effects do
  1809. if Effects[e]~=nil then
  1810. --for j=1,#Effects[e] do
  1811. local Thing=Effects[e]
  1812. if Thing~=nil then
  1813. local Part=Thing[1]
  1814. local Mode=Thing[2]
  1815. local Delay=Thing[3]
  1816. local IncX=Thing[4]
  1817. local IncY=Thing[5]
  1818. local IncZ=Thing[6]
  1819. if Thing[1].Transparency<=1 then
  1820. if Thing[2]=="Block1" then
  1821. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1822. Mesh=Thing[1].Mesh
  1823. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1824. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1825. elseif Thing[2]=="Cylinder" then
  1826. Mesh=Thing[1].Mesh
  1827. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1828. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1829. elseif Thing[2]=="Blood" then
  1830. Mesh=Thing[1].Mesh
  1831. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1832. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1833. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1834. elseif Thing[2]=="Elec" then
  1835. Mesh=Thing[1].Mesh
  1836. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1837. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1838. elseif Thing[2]=="Disappear" then
  1839. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1840. end
  1841. else
  1842. Part.Parent=nil
  1843. table.remove(Effects,e)
  1844. end
  1845. end
  1846. --end
  1847. end
  1848. end
  1849. end
  1850.  
  1851. local mananum=0
  1852. while true do
  1853. swait()
  1854. sine = sine + change
  1855. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1856. local velderp=RootPart.Velocity.y
  1857. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1858. if equipped==true or equipped==false then
  1859. if attack==false then
  1860. idle=idle+1
  1861. else
  1862. idle=0
  1863. end
  1864. if idle>=500 then
  1865. if attack==false then
  1866. --Sheath()
  1867. end
  1868. end
  1869. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1870. Anim="Jump"
  1871. if attack==false then
  1872. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1873. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1874. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1875. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1876. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1877. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1878. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1879. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
  1880. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
  1881. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1882. end
  1883. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1884. Anim="Fall"
  1885. if attack==false then
  1886. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1887. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1888. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1889. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1890. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1891. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1892. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1893. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
  1894. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
  1895. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1896. end
  1897. elseif torvel<1 and hitfloor~=nil then
  1898. Anim="Idle"
  1899. if attack==false then
  1900. Humanoid.WalkSpeed = 16
  1901. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.25)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1902. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6+2.5*math.cos(sine/40)),math.rad(5+2.5*math.cos(sine/40)),math.rad(30)),.3)
  1903. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15-2.5*math.cos(sine/40)),math.rad(0),math.rad(15-2.5*math.cos(sine/40))),.3)
  1904. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15-2.5*math.cos(sine/40)),math.rad(0),math.rad(-15+2.5*math.cos(sine/40))),.3)
  1905. RH.C0=clerp(RH.C0,cf(1.1,-0.75,0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),.3)
  1906. LH.C0=clerp(LH.C0,cf(-1.15,-0.8,-0.1)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(5)),.3)
  1907. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1908. end
  1909. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1910. Anim="Walk"
  1911. if attack==false then
  1912. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1913. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1914. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30+5*math.cos(sine/30)),math.rad(-17),math.rad(30+5*math.cos(sine/30))),.3)
  1915. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15-5*math.cos(sine/30)),math.rad(0),math.rad(-30-5*math.cos(sine/30))),.3)
  1916. 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)
  1917. 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)
  1918. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1919. end
  1920. elseif torvel>=22 and hitfloor~=nil then
  1921. Anim="Run"
  1922. if attack==false then
  1923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(-30)),.3)
  1924. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(-10),math.rad(30)),.3)
  1925. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30-2.5*math.cos(sine/20)),math.rad(-75),math.rad(15+2.5*math.cos(sine/20))),.3)
  1926. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90+2.5*math.cos(sine/20)),math.rad(0),math.rad(45+2.5*math.cos(sine/20))),.3)
  1927. 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)
  1928. 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)
  1929. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0.5,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1930. end
  1931. end
  1932. end
  1933. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1934. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  1935. if mana>=100 then
  1936. mana=100
  1937. else
  1938. if mananum<=8 then
  1939. mananum=mananum+100
  1940. else
  1941. mananum=0
  1942. mana=mana+100
  1943. end
  1944. end
  1945. end
Add Comment
Please, Sign In to add comment