codemen

Cyan sword script [roblox]

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