Advertisement
UhhLegoboy

Moon Magic (Script Edit!)

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