Advertisement
FloweyTheFlower

Roblox Scripts #17 Kol Sword

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