Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 67 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it = Instance.new
  18. vt = Vector3.new
  19. cf = CFrame.new
  20. euler = CFrame.fromEulerAnglesXYZ
  21. angles = CFrame.Angles
  22. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  23. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RootPart = Character.HumanoidRootPart
  29. RootJoint = RootPart.RootJoint
  30. RootCF = euler(-1.57, 0, 3.14)
  31. attack = false
  32. attackdebounce = false
  33. MMouse = nil
  34. combo = 0
  35. mana = 0
  36. local idle = 0
  37. local Anim = "Idle"
  38. local Effects = {}
  39. local Mode = "Normal"
  40. local velCF = vt(0, 0, 0)
  41. local flyanim = false
  42. local overjet = false
  43. player = nil
  44. RSH, LSH = nil, nil
  45. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  46. RHP, LHP = Instance.new("Weld"), Instance.new("Weld")
  47. RW.Name = "Right Shoulder"
  48. LW.Name = "Left Shoulder"
  49. RHP.Name = "Right Hip"
  50. LHP.Name = "Left Hip"
  51. LH = Torso["Left Hip"]
  52. RH = Torso["Right Hip"]
  53. Charge = 0
  54. TorsoColor = Torso.BrickColor
  55. ArtificialHB = Instance.new("BindableEvent", script)
  56. ArtificialHB.Name = "Heartbeat"
  57. script:WaitForChild("Heartbeat")
  58. frame = 0.022222222222222223
  59. tf = 0
  60. allowframeloss = false
  61. tossremainder = false
  62. lastframe = tick()
  63. script.Heartbeat:Fire()
  64. game:GetService("RunService").Heartbeat:connect(function(s, p)
  65.   tf = tf + s
  66.   if tf >= frame then
  67.     if allowframeloss then
  68.       script.Heartbeat:Fire()
  69.       lastframe = tick()
  70.     else
  71.       for i = 1, math.floor(tf / frame) do
  72.         script.Heartbeat:Fire()
  73.       end
  74.       lastframe = tick()
  75.     end
  76.     if tossremainder then
  77.       tf = 0
  78.     else
  79.       tf = tf - frame * math.floor(tf / frame)
  80.     end
  81.   end
  82. end)
  83. function swait(num)
  84.   if num == 0 or num == nil then
  85.     ArtificialHB.Event:wait()
  86.   else
  87.     for i = 0, num do
  88.       ArtificialHB.Event:wait()
  89.     end
  90.   end
  91. end
  92. if Character:findFirstChild("Aero Board", true) ~= nil then
  93.   Character:findFirstChild("Aero Board", true).Parent = nil
  94. end
  95. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  96.   Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  97. end
  98. function NoOutline(Part)
  99.   Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  100. end
  101. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  102.   local fp = it("Part")
  103.   fp.formFactor = formfactor
  104.   fp.Parent = parent
  105.   fp.Reflectance = reflectance
  106.   fp.Transparency = transparency
  107.   fp.CanCollide = false
  108.   fp.Locked = true
  109.   fp.BrickColor = brickcolor
  110.   fp.Name = name
  111.   fp.Size = size
  112.   fp.Position = Torso.Position
  113.   NoOutline(fp)
  114.   fp.Material = "SmoothPlastic"
  115.   fp:BreakJoints()
  116.   return fp
  117. end
  118. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  119.   local mesh = it(Mesh)
  120.   mesh.Parent = part
  121.   if Mesh == "SpecialMesh" then
  122.     mesh.MeshType = meshtype
  123.     mesh.MeshId = meshid
  124.   end
  125.   mesh.Offset = offset
  126.   mesh.Scale = scale
  127.   return mesh
  128. end
  129. function weld(parent, part0, part1, c0)
  130.   local weld = it("Weld")
  131.   weld.Parent = parent
  132.   weld.Part0 = part0
  133.   weld.Part1 = part1
  134.   weld.C0 = c0
  135.   return weld
  136. end
  137. local Color1 = Torso.BrickColor
  138. local fengui = it("GuiMain")
  139. fengui.Parent = Player.PlayerGui
  140. fengui.Name = "WeaponGUI"
  141. local fenframe = it("Frame")
  142. fenframe.Parent = fengui
  143. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  144. fenframe.BackgroundTransparency = 1
  145. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  146. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  147. fenframe.Position = UDim2.new(0.4, 0, 0.1, 0)
  148. local fenbarmana1 = it("TextLabel")
  149. fenbarmana1.Parent = fenframe
  150. fenbarmana1.Text = " "
  151. fenbarmana1.BackgroundTransparency = 0
  152. fenbarmana1.BackgroundColor3 = Color3.new(0, 0, 0)
  153. fenbarmana1.SizeConstraint = "RelativeXY"
  154. fenbarmana1.TextXAlignment = "Center"
  155. fenbarmana1.TextYAlignment = "Center"
  156. fenbarmana1.Position = UDim2.new(0, 0, 0, 0)
  157. fenbarmana1.Size = UDim2.new(4, 0, 0.2, 0)
  158. local fenbarmana2 = it("TextLabel")
  159. fenbarmana2.Parent = fenframe
  160. fenbarmana2.Text = " "
  161. fenbarmana2.BackgroundTransparency = 0
  162. fenbarmana2.BackgroundColor3 = Torso.Color
  163. fenbarmana2.SizeConstraint = "RelativeXY"
  164. fenbarmana2.TextXAlignment = "Center"
  165. fenbarmana2.TextYAlignment = "Center"
  166. fenbarmana2.Position = UDim2.new(0, 0, 0, 0)
  167. fenbarmana2.Size = UDim2.new(4 * mana / 100, 0, 0.2, 0)
  168. local fenbarmana3 = it("TextLabel")
  169. fenbarmana3.Parent = fenframe
  170. fenbarmana3.Text = " "
  171. fenbarmana3.BackgroundTransparency = 0
  172. fenbarmana3.BackgroundColor3 = Color3.new(Col1, Col2, Col3)
  173. fenbarmana3.SizeConstraint = "RelativeXY"
  174. fenbarmana3.TextXAlignment = "Center"
  175. fenbarmana3.TextYAlignment = "Center"
  176. fenbarmana3.Position = UDim2.new(0, 0, 0, 0)
  177. fenbarmana3.Size = UDim2.new(0, 0, 0.2, 0)
  178. local fenbarmana4 = it("TextLabel")
  179. fenbarmana4.Parent = fenframe
  180. fenbarmana4.Text = "Energy(" .. mana .. ")"
  181. fenbarmana4.BackgroundTransparency = 1
  182. fenbarmana4.BackgroundColor3 = Color3.new(0, 0, 0)
  183. fenbarmana4.SizeConstraint = "RelativeXY"
  184. fenbarmana4.TextXAlignment = "Center"
  185. fenbarmana4.TextYAlignment = "Center"
  186. fenbarmana4.Position = UDim2.new(0, 0, -0.3, 0)
  187. fenbarmana4.Size = UDim2.new(4, 0, 0.2, 0)
  188. fenbarmana4.FontSize = "Size9"
  189. fenbarmana4.TextStrokeTransparency = 0
  190. fenbarmana4.TextColor = BrickColor.new("White")
  191. local modelzorz = Instance.new("Model")
  192. modelzorz.Parent = Character
  193. modelzorz.Name = "Aero Board"
  194. local handle = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Handle1", vt())
  195. local hprt2 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Handle2", vt())
  196. local hprt3 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Handle3", vt())
  197. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part1", vt())
  198. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part2", vt())
  199. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part3", vt())
  200. local prt4 = part(3, modelzorz, 0, 0, TorsoColor, "Part4", vt())
  201. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part5", vt())
  202. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part6", vt())
  203. local prt7 = part(3, modelzorz, 0, 0, TorsoColor, "Part7", vt())
  204. local prt8 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part8", vt())
  205. local prt9 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part9", vt())
  206. local prt10 = part(3, modelzorz, 0, 0, TorsoColor, "Part10", vt())
  207. local prt11 = part(3, modelzorz, 0, 0, TorsoColor, "Part11", vt())
  208. local prt12 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part12", vt())
  209. local prt13 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part13", vt())
  210. local prt14 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part14", vt())
  211. local prt15 = part(3, modelzorz, 0, 0, TorsoColor, "Part15", vt())
  212. local prt16 = part(3, modelzorz, 0, 0, TorsoColor, "Part16", vt())
  213. local prt17 = part(3, modelzorz, 0, 0, TorsoColor, "Part17", vt())
  214. local prt18 = part(3, modelzorz, 0, 0, TorsoColor, "Part18", vt())
  215. local prt19 = part(3, modelzorz, 0, 0, TorsoColor, "Part19", vt())
  216. local prt20 = part(3, modelzorz, 0, 0, TorsoColor, "Part20", vt())
  217. local prt21 = part(3, modelzorz, 0, 0, TorsoColor, "Part21", vt())
  218. local prt22 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part22", vt())
  219. local prt23 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part23", vt())
  220. local prt24 = part(3, modelzorz, 0, 0, TorsoColor, "Part24", vt())
  221. local prt25 = part(3, modelzorz, 0, 0, TorsoColor, "Part25", vt())
  222. local hmsh = mesh("BlockMesh", handle, "", "", vt(0, 0, 0), vt(1, 1, 5))
  223. local hmsh2 = mesh("BlockMesh", hprt2, "", "", vt(0, 0, 0), vt(1, 1, 2))
  224. local hmsh3 = mesh("BlockMesh", hprt3, "", "", vt(0, 0, 0), vt(1, 1, 2))
  225. local msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 12))
  226. local msh2 = mesh("CylinderMesh", prt2, "", "", vt(0, 0, 0), vt(5, 1.99, 5))
  227. local msh3 = mesh("SpecialMesh", prt3, "Wedge", "", vt(0, 0, 0), vt(2, 3, 2.3))
  228. local msh4 = mesh("SpecialMesh", prt4, "Wedge", "", vt(0, 0, 0), vt(2.1, 1.5, 1.15))
  229. local msh5 = mesh("CylinderMesh", prt5, "", "", vt(0, 0, 0), vt(5, 1.99, 5))
  230. local msh6 = mesh("SpecialMesh", prt6, "Wedge", "", vt(0, 0, 0), vt(2, 3, 2.3))
  231. local msh7 = mesh("SpecialMesh", prt7, "Wedge", "", vt(0, 0, 0), vt(2.1, 1.5, 1.15))
  232. local msh8 = mesh("SpecialMesh", prt8, "Torso", "", vt(0, 0, 0), vt(6, 1, 1.98))
  233. local msh9 = mesh("SpecialMesh", prt9, "Torso", "", vt(0, 0, 0), vt(6, 1, 1.98))
  234. local msh10 = mesh("SpecialMesh", prt10, "Wedge", "", vt(0, 0, 0), vt(2, 1, 8))
  235. local msh11 = mesh("SpecialMesh", prt11, "Wedge", "", vt(0, 0, 0), vt(2, 1, 8))
  236. local msh12 = mesh("SpecialMesh", prt12, "Torso", "", vt(0, 0, 0), vt(10, 3, 2.05))
  237. local msh13 = mesh("SpecialMesh", prt13, "Torso", "", vt(0, 0, 0), vt(10, 3, 2.05))
  238. local msh14 = mesh("BlockMesh", prt14, "", "", vt(0, 0, 0), vt(10, 10, 2.05))
  239. local msh15 = mesh("SpecialMesh", prt15, "Torso", "", vt(0, 0, 0), vt(8, 2, 2.1))
  240. local msh16 = mesh("SpecialMesh", prt16, "Torso", "", vt(0, 0, 0), vt(8, 2, 2.1))
  241. local msh17 = mesh("BlockMesh", prt17, "", "", vt(0, 0, 0), vt(8, 0.5, 2.1))
  242. local msh18 = mesh("BlockMesh", prt18, "", "", vt(0, 0, 0), vt(8, 0.5, 2.1))
  243. local msh19 = mesh("BlockMesh", prt19, "", "", vt(0, 0, 0), vt(2.1, 5, 6))
  244. local msh20 = mesh("SpecialMesh", prt20, "Wedge", "", vt(0, 0, 0), vt(2.1, 3, 2))
  245. local msh21 = mesh("SpecialMesh", prt21, "Wedge", "", vt(0, 0, 0), vt(2.1, 3, 2))
  246. local msh22 = mesh("SpecialMesh", prt22, "Sphere", "", vt(0, 0, 0), vt(1, 6, 5))
  247. local msh23 = mesh("SpecialMesh", prt23, "Sphere", "", vt(0, 0, 0), vt(1, 8, 5))
  248. local msh24 = mesh("BlockMesh", prt24, "", "", vt(0, 0, 0), vt(2.1, 16, 5))
  249. local msh25 = mesh("SpecialMesh", prt25, "Torso", "", vt(0, 0, 0), vt(5, 5, 2.1))
  250. local hwld = weld(handle, handle, Torso, euler(1, 1.57, 0) * cf(-1, -1, -1))
  251. local hwld2 = weld(hprt2, hprt2, handle, euler(0, 1.57, 0) * cf(0.2, 0, 0.4))
  252. local hwld3 = weld(hprt3, hprt3, handle, euler(0, 1.57, 0) * cf(0.2, 0, -0.4))
  253. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0.5, 1, 0))
  254. local wld2 = weld(prt2, prt2, prt1, euler(0, 0, 1.57) * cf(0, -2.5, 1.2))
  255. local wld3 = weld(prt3, prt3, prt2, euler(0, 0, 1.57) * cf(-0.5, 0, 0.23))
  256. local wld4 = weld(prt4, prt4, prt3, euler(0, 0, 0) * cf(0, 0, -0.1))
  257. local wld5 = weld(prt5, prt5, prt1, euler(0, 0, 1.57) * cf(0, -2.5, -1.2))
  258. local wld6 = weld(prt6, prt6, prt5, euler(0, 3.14, 1.57) * cf(-0.5, 0, -0.23))
  259. local wld7 = weld(prt7, prt7, prt6, euler(0, 0, 0) * cf(0, 0, -0.1))
  260. local wld8 = weld(prt8, prt8, prt1, euler(1.57, 0, 1.57) * cf(0, -1.4, 1.3))
  261. local wld9 = weld(prt9, prt9, prt1, euler(-1.57, 0, 1.57) * cf(0, -1.4, -1.3))
  262. local wld10 = weld(prt10, prt10, prt1, euler(1.57, 0, 0) * cf(0, -0.1, 1.3))
  263. local wld11 = weld(prt11, prt11, prt1, euler(1.57, 3.14, 0) * cf(0, -0.1, -1.3))
  264. local wld12 = weld(prt12, prt12, prt1, euler(1.57, 0, 1.57) * cf(0, 3, 1.3))
  265. local wld13 = weld(prt13, prt13, prt1, euler(-1.57, 0, 1.57) * cf(0, 3, -1.3))
  266. local wld14 = weld(prt14, prt14, prt1, euler(1.57, 0, 1.57) * cf(0, 3, 0))
  267. local wld15 = weld(prt15, prt15, prt12, euler(0, 0, 0) * cf(0, 0.2, 0))
  268. local wld16 = weld(prt16, prt16, prt13, euler(0, 0, 0) * cf(0, 0.2, 0))
  269. local wld17 = weld(prt17, prt17, prt12, euler(0, 0, 0) * cf(0, 0.6, 0))
  270. local wld18 = weld(prt18, prt18, prt13, euler(0, 0, 0) * cf(0, 0.6, 0))
  271. local wld19 = weld(prt19, prt19, prt1, euler(0, 0, 0) * cf(0, -2, 0))
  272. local wld20 = weld(prt20, prt20, prt1, euler(3.14, 0, 0) * cf(0, -1.2, 0.4))
  273. local wld21 = weld(prt21, prt21, prt1, euler(0, 0, 3.14) * cf(0, -1.2, -0.4))
  274. local wld22 = weld(prt22, prt22, prt1, euler(0, 0, 0) * cf(0.2, -0.5, 0))
  275. local wld23 = weld(prt23, prt23, prt1, euler(0, 0, 0) * cf(0.2, 1.7, 0))
  276. local wld24 = weld(prt24, prt24, prt1, euler(0, 0, 0) * cf(0, 2.39, 0))
  277. local wld25 = weld(prt25, prt25, prt1, euler(0, 1.57, 0) * cf(0, 0.29, 0))
  278. local bprt1 = part(3, modelzorz, 0, 1, TorsoColor, "Boomerang1", vt())
  279. local bmsh1 = mesh("CylinderMesh", bprt1, "", "", vt(0, 0, 0), vt(40, 1, 40))
  280. local bwld1 = weld(bprt1, bprt1, prt1, euler(0, 0, 1.57) * cf(0, 0.5, 0))
  281. eul = 0
  282. for i = 1, 4 do
  283.   local bprt2 = part(3, modelzorz, 0, 1, TorsoColor, "Boomerang2", vt())
  284.   local bmsh2 = mesh("BlockMesh", bprt2, "", "", vt(0, 0, 0), vt(45, 1, 10))
  285.   local bwld2 = weld(bprt2, bprt2, bprt1, euler(0, eul, 0) * cf(0, 0, 0))
  286.   eul = eul + 0.785
  287. end
  288. local hitbox = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  289. hitbox.Anchored = false
  290. velx = Instance.new("BodyVelocity")
  291. velx.Parent = nil
  292. velx.maxForce = Vector3.new(400000, 400000, 400000) * 2
  293. if script.Parent.className ~= "HopperBin" then
  294.   Tool = Instance.new("HopperBin")
  295.   Tool.Parent = Backpack
  296.   Tool.Name = "Aero Board"
  297.   script.Parent = Tool
  298. end
  299. Bin = script.Parent
  300. local bodvel = Instance.new("BodyVelocity")
  301. local bg = Instance.new("BodyGyro")
  302. bg.Parent = nil
  303. bg.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  304. bg.P = 20000
  305. function so(id, par, vol, pit)
  306.   coroutine.resume(coroutine.create(function()
  307.     local sou = Instance.new("Sound", par or workspace)
  308.     sou.Volume = vol
  309.     sou.Pitch = pit or 1
  310.     sou.SoundId = id
  311.     swait()
  312.     sou:play()
  313.     game:GetService("Debris"):AddItem(sou, 6)
  314.   end))
  315. end
  316. function clerp(a, b, t)
  317.   local qa = {
  318.     QuaternionFromCFrame(a)
  319.   }
  320.   local qb = {
  321.     QuaternionFromCFrame(b)
  322.   }
  323.   local ax, ay, az = a.x, a.y, a.z
  324.   local bx, by, bz = b.x, b.y, b.z
  325.   local _t = 1 - t
  326.   return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  327. end
  328. function QuaternionFromCFrame(cf)
  329.   local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  330.   local trace = m00 + m11 + m22
  331.   if trace > 0 then
  332.     local s = math.sqrt(1 + trace)
  333.     local recip = 0.5 / s
  334.     return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  335.   else
  336.     local i = 0
  337.     if m00 < m11 then
  338.       i = 1
  339.     end
  340.     if m22 > (i == 0 and m00 or m11) then
  341.       i = 2
  342.     end
  343.     if i == 0 then
  344.       local s = math.sqrt(m00 - m11 - m22 + 1)
  345.       local recip = 0.5 / s
  346.       return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  347.     elseif i == 1 then
  348.       local s = math.sqrt(m11 - m22 - m00 + 1)
  349.       local recip = 0.5 / s
  350.       return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  351.     elseif i == 2 then
  352.       local s = math.sqrt(m22 - m00 - m11 + 1)
  353.       local recip = 0.5 / s
  354.       return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  355.     end
  356.   end
  357. end
  358. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  359.   local xs, ys, zs = x + x, y + y, z + z
  360.   local wx, wy, wz = w * xs, w * ys, w * zs
  361.   local xx = x * xs
  362.   local xy = x * ys
  363.   local xz = x * zs
  364.   local yy = y * ys
  365.   local yz = y * zs
  366.   local zz = z * zs
  367.   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))
  368. end
  369. function QuaternionSlerp(a, b, t)
  370.   local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  371.   local startInterp, finishInterp
  372.   if cosTheta >= 1.0E-4 then
  373.     if 1 - cosTheta > 1.0E-4 then
  374.       local theta = math.acos(cosTheta)
  375.       local invSinTheta = 1 / math.sin(theta)
  376.       startInterp = math.sin((1 - t) * theta) * invSinTheta
  377.       finishInterp = math.sin(t * theta) * invSinTheta
  378.     else
  379.       startInterp = 1 - t
  380.       finishInterp = t
  381.     end
  382.   elseif 1 + cosTheta > 1.0E-4 then
  383.     local theta = math.acos(-cosTheta)
  384.     local invSinTheta = 1 / math.sin(theta)
  385.     startInterp = math.sin((t - 1) * theta) * invSinTheta
  386.     finishInterp = math.sin(t * theta) * invSinTheta
  387.   else
  388.     startInterp = t - 1
  389.     finishInterp = t
  390.   end
  391.   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
  392. end
  393. function hideanim()
  394.   equipped = false
  395.   for i = 0, 1, 0.1 do
  396.     swait()
  397.     hwld.C0 = clerp(hwld.C0, euler(1.57, -1.57, 3.5) * cf(0.6, 0.4, 1), 0.3)
  398.     Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.8), 0.3)
  399.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  400.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.3, 0, -0.1), 0.3)
  401.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  402.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
  403.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  404.   end
  405.   hwld.Part1 = Torso
  406.   hwld.C0 = euler(1, 1.57, 0) * cf(-1, -1, -1)
  407.   for i = 0, 1, 0.1 do
  408.     swait()
  409.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  410.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.4)
  411.     Torso.Neck.C1 = clerp(Torso.Neck.C1, necko2 * euler(0, 0, 0), 0.4)
  412.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  413.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  414.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  415.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  416.     RH.C0 = clerp(RH.C0, RHC0, 0.3)
  417.     RH.C1 = clerp(RH.C1, RHC1, 0.3)
  418.     LH.C0 = clerp(LH.C0, LHC0, 0.3)
  419.     LH.C1 = clerp(LH.C1, LHC1, 0.3)
  420.   end
  421. end
  422. function equipanim()
  423.   equipped = true
  424.   for i = 0, 1, 0.1 do
  425.     swait()
  426.     Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.8), 0.3)
  427.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  428.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.3, 0, -0.1), 0.3)
  429.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  430.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
  431.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  432.   end
  433.   hwld.Part1 = RightArm
  434.   hwld.C0 = euler(1.57, -1.57, 3.5) * cf(0.6, 0.4, 1)
  435.   so("http://roblox.com/asset/?id=161006212", prt1, 1, 0.6)
  436.   for i = 0, 1, 0.1 do
  437.     swait()
  438.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  439.     Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.3), 0.3)
  440.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.3), 0.3)
  441.     RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.3, 0, -0.3), 0.3)
  442.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  443.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
  444.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  445.   end
  446. end
  447. function attackone()
  448.   attack = true
  449.   so("http://roblox.com/asset/?id=2101137", prt1, 1, 1.4)
  450.   for i = 0, 1, 0.1 do
  451.     swait()
  452.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  453.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8), 0.3)
  454.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.8), 0.3)
  455.     RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(2, 0, 0.5), 0.3)
  456.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  457.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.8), 0.3)
  458.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  459.   end
  460.   Torso.Velocity = RootPart.CFrame.lookVector * 100
  461.   so("http://roblox.com/asset/?id=161006195", prt1, 1, 0.6)
  462.   so("http://roblox.com/asset/?id=2248511", prt1, 1, 1.4)
  463.   MagicCircle(TorsoColor, prt1.CFrame, 1, 1, 1, 5, 5, 5, 0.05)
  464.   hitbox.Parent = modelzorz
  465.   hitbox.Size = vt(2, 7, 4)
  466.   hitbox.Transparency = 1
  467.   hitbox.CFrame = prt1.CFrame
  468.   con1 = hitbox.Touched:connect(function(hit)
  469.     Damagefunc(hit, 5, 10, 0, "Normal", RootPart, 0.5, 1)
  470.   end)
  471.   num = 0
  472.   for i = 0, 1, 0.1 do
  473.     swait()
  474.     hitbox.CFrame = prt1.CFrame
  475.     if num >= 3 then
  476.       MagicWave(TorsoColor, prt1.CFrame * cf(0, 1, 0) * euler(3.14, 0, 0), 1, 1, 1, 0.5, 1, 0.5, 0.1)
  477.       num = 0
  478.     end
  479.     num = num + 1
  480.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(0.2, 0, 0), 0.3)
  481.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.2), 0.3)
  482.     RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1, 0, 0.5), 0.3)
  483.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  484.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.8), 0.3)
  485.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  486.     RH.C0 = clerp(RH.C0, cf(0.5, -1, 1) * euler(0, 1.57, 0) * euler(0, -1.2, 0), 0.3)
  487.     LH.C0 = clerp(LH.C0, cf(-0.5, -1, -1) * euler(0, -1.57, 0) * euler(0, -1.2, 0), 0.3)
  488.   end
  489.   con1:disconnect()
  490.   hitbox.Parent = nil
  491.   swait(10)
  492.   attack = false
  493. end
  494. function attacktwo()
  495.   attack = true
  496.   so("http://roblox.com/asset/?id=147722227", prt1, 1, 0.6)
  497.   for i = 0, 1, 0.1 do
  498.     swait()
  499.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(0.2, 0, 0), 0.3)
  500.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.2), 0.3)
  501.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, -0.8) * euler(0, 1.57, 0), 0.3)
  502.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  503.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  504.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  505.   end
  506.   so("http://www.roblox.com/asset/?id=153092348", prt1, 1, 1.2)
  507.   Torso.Velocity = RootPart.CFrame.lookVector * 50
  508.   hitbox.Parent = modelzorz
  509.   hitbox.Size = vt(2, 7, 4)
  510.   hitbox.Transparency = 1
  511.   hitbox.CFrame = prt1.CFrame
  512.   con1 = hitbox.Touched:connect(function(hit)
  513.     Damagefunc(hit, 10, 15, 0, "Normal", RootPart, 1, 1)
  514.   end)
  515.   for i = 0, 1, 0.1 do
  516.     swait()
  517.     Torso.Velocity = RootPart.CFrame.lookVector * 50
  518.     MagicCircle(TorsoColor, prt1.CFrame * cf(0, 3, 0), 1, 1, 1, 5, 5, 5, 0.1)
  519.     hitbox.CFrame = prt1.CFrame
  520.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5), 0.3)
  521.     RootJoint.C0 = RootCF * euler(0, 0, 1.2 - 6.28 * i)
  522.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 1.57, 0), 0.3)
  523.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  524.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -1), 0.3)
  525.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  526.   end
  527.   for i = 0, 1, 0.1 do
  528.     swait()
  529.     hitbox.CFrame = prt1.CFrame
  530.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.3)
  531.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.3)
  532.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 1) * euler(0, 1.57, 0), 0.3)
  533.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  534.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -1), 0.3)
  535.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  536.   end
  537.   con1:disconnect()
  538.   hitbox.Parent = nil
  539.   swait(5)
  540.   attack = false
  541. end
  542. function attackthree()
  543.   attack = true
  544.   so("http://roblox.com/asset/?id=147722227", prt1, 1, 0.6)
  545.   for i = 0, 1, 0.1 do
  546.     swait()
  547.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  548.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.3)
  549.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.3)
  550.     RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.6), 0.3)
  551.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  552.     LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.57, 0, 0.8), 0.3)
  553.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  554.     RH.C0 = clerp(RH.C0, cf(0.5, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1, 0), 0.3)
  555.     LH.C0 = clerp(LH.C0, cf(-0.5, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1, 0), 0.3)
  556.   end
  557.   so("http://roblox.com/asset/?id=161006212", prt1, 1, 0.5)
  558.   vel = Instance.new("BodyVelocity")
  559.   vel.Parent = RootPart
  560.   vel.maxForce = Vector3.new(400000, 400000, 400000) * 2
  561.   vel.velocity = RootPart.CFrame.lookVector * 70
  562.   gairo = Instance.new("BodyGyro")
  563.   gairo.Parent = RootPart
  564.   gairo.maxTorque = Vector3.new(400000, 400000, 400000) * math.huge
  565.   gairo.P = 20000
  566.   gairo.cframe = RootPart.CFrame
  567.   hitbox.Parent = modelzorz
  568.   hitbox.Size = vt(2, 7, 4)
  569.   hitbox.Transparency = 1
  570.   hitbox.CFrame = prt1.CFrame
  571.   con1 = hitbox.Touched:connect(function(hit)
  572.     Damagefunc(hit, 10, 15, 0, "Knockdown2", RootPart, 0.5, 2)
  573.   end)
  574.   num = 0
  575.   for i = 0, 2, 0.1 do
  576.     swait()
  577.     hitbox.CFrame = prt1.CFrame
  578.     if num >= 3 then
  579.       MagicWave(TorsoColor, prt1.CFrame * euler(0, 0, -1.57), 1, 1, 1, 0.8, 0.7, 0.8, 0.1)
  580.       num = 0
  581.     end
  582.     num = num + 1
  583.   end
  584.   vel.Parent = nil
  585.   gairo.Parent = nil
  586.   con1:disconnect()
  587.   hitbox.Parent = nil
  588.   swait(10)
  589.   attack = false
  590. end
  591. function OverDrive()
  592.   attack = true
  593.   for i = 0, 1, 0.1 do
  594.     swait()
  595.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  596.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.6) * euler(0.2, 0, -0.5), 0.3)
  597.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.5), 0.4)
  598.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.6) * euler(0, 1, 0), 0.4)
  599.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  600.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.8), 0.4)
  601.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  602.     RH.C0 = clerp(RH.C0, cf(1, -1, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.5, -0.6), 0.3)
  603.     LH.C0 = clerp(LH.C0, cf(-1.1, -0.4, -0.1) * euler(0, -1.57, 0) * euler(0.1, 0.5, -0.2), 0.3)
  604.   end
  605.   Humanoid.WalkSpeed = 5
  606.   for i = 1, 2 do
  607.     so("http://roblox.com/asset/?id=2101137", RootPart, 1, 1.2)
  608.     num = 0
  609.     for i = 0, 4, 0.1 do
  610.       swait()
  611.       hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  612.       if hit ~= nil then
  613.         if num >= 10 then
  614.           MagicWave(TorsoColor, cf(pos), 1, 1, 1, 0.6, 0.2, 0.6, 0.05)
  615.           num = 0
  616.         end
  617.         num = num + 1
  618.       end
  619.     end
  620.     MagicBlock(TorsoColor, cf(prt1.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 6, 6, 6, 0.1, 2)
  621.     so("http://roblox.com/asset/?id=2248511", prt1, 1, 2)
  622.     mana = mana - 10
  623.   end
  624.   swait(5)
  625.   so("http://roblox.com/asset/?id=161006093", prt1, 1, 1)
  626.   so("http://roblox.com/asset/?id=169380505", prt1, 1, 1)
  627.   vel = Instance.new("BodyVelocity")
  628.   vel.Parent = RootPart
  629.   vel.maxForce = Vector3.new(400000, 400000, 400000) * 2
  630.   vel.velocity = RootPart.CFrame.lookVector * 50
  631.   hitbox.Parent = modelzorz
  632.   hitbox.Size = vt(2, 7, 4)
  633.   hitbox.Transparency = 1
  634.   hitbox.CFrame = prt1.CFrame
  635.   con1 = hitbox.Touched:connect(function(hit)
  636.     Damagefunc(hit, 10, 15, math.random(1, 5), "OrbBlast", RootPart, 1, 1, 1)
  637.   end)
  638.   for i = 0, 1, 0.1 do
  639.     swait()
  640.     if 5 <= num then
  641.       MagicWave(TorsoColor, prt1.CFrame * cf(0, 1, 0) * euler(3.14, 0, 0), 1, 1, 1, 0.5, 1, 0.5, 0.1)
  642.       num = 0
  643.     end
  644.     num = num + 1
  645.     hitbox.CFrame = prt1.CFrame
  646.     vel.velocity = RootPart.CFrame.lookVector * 50
  647.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(0.2, 0, 0), 0.3)
  648.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.2), 0.3)
  649.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.2), 0.3)
  650.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  651.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.3)
  652.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  653.     RH.C0 = clerp(RH.C0, cf(0.5, -1, 1) * euler(0, 1.57, 0) * euler(0, -1.2, 0), 0.3)
  654.     LH.C0 = clerp(LH.C0, cf(-0.5, -1, -1) * euler(0, -1.57, 0) * euler(0, -1.2, 0), 0.3)
  655.   end
  656.   for i = 1, 7, 0.1 do
  657.     swait()
  658.     hitbox.CFrame = prt1.CFrame
  659.     if 5 <= num then
  660.       MagicWave(TorsoColor, prt1.CFrame * cf(0, 1, 0) * euler(3.14, 0, 0), 1, 1, 1, 0.5, 1, 0.5, 0.1)
  661.       num = 0
  662.     end
  663.     num = num + 1
  664.     vel.velocity = RootPart.CFrame.lookVector * 50
  665.   end
  666.   con1:disconnect()
  667.   hitbox.Parent = nil
  668.   Humanoid.WalkSpeed = 0
  669.   for i = 0, 1, 0.02 do
  670.     swait()
  671.     vel.velocity = RootPart.CFrame.lookVector * (50 - 50 * i)
  672.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.6) * euler(0.2, 0, 0.5), 0.2)
  673.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -0.5) * euler(0.2, 0, 0), 0.2)
  674.     RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -0.4) * euler(0, 0.5, 0), 0.2)
  675.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  676.     LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.5, 0, 0.8), 0.2)
  677.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  678.     RH.C0 = clerp(RH.C0, cf(1.1, -0.4, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.5, 0.2), 0.2)
  679.     LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, -0.5, 0.4), 0.2)
  680.   end
  681.   vel.Parent = nil
  682.   Humanoid.WalkSpeed = 16
  683.   attack = false
  684. end
  685. function Boomerang()
  686.   attack = true
  687.   mana = mana - 40
  688.   Humanoid.WalkSpeed = 5
  689.   so("http://roblox.com/asset/?id=10209296", prt1, 1, 1.2)
  690.   so("http://roblox.com/asset/?id=2101144", prt1, 1, 1)
  691.   for _, c in pairs(modelzorz:children()) do
  692.     if c.Name == "Boomerang1" or c.Name == "Boomerang2" then
  693.       coroutine.resume(coroutine.create(function(Part)
  694.         for i = 1, 0.2, -0.1 do
  695.           swait()
  696.           Part.Transparency = i
  697.         end
  698.       end), c)
  699.     end
  700.   end
  701.   for i = 0, 1, 0.1 do
  702.     swait()
  703.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  704.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.6) * euler(0.2, 0, -0.5), 0.3)
  705.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  706.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 1) * euler(0, 1.5, 0), 0.3)
  707.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  708.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.6), 0.3)
  709.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  710.     RH.C0 = clerp(RH.C0, cf(1, -1, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.5, -0.6), 0.3)
  711.     LH.C0 = clerp(LH.C0, cf(-1.1, -0.4, -0.1) * euler(0, -1.57, 0) * euler(0.1, 0.5, -0.2), 0.3)
  712.   end
  713.   hitbox.Parent = modelzorz
  714.   hitbox.Size = vt(1, 10, 10)
  715.   hitbox.Transparency = 1
  716.   hitbox.CFrame = prt1.CFrame
  717.   con1 = hitbox.Touched:connect(function(hit)
  718.     Damagefunc(hit, 10, 15, math.random(20, 30), "Knockdown2", prt1, 0.5, 2)
  719.   end)
  720.   so("http://roblox.com/asset/?id=10209640", prt1, 1, 0.6)
  721.   for i = 0, 1, 0.03 do
  722.     so("rbxasset://sounds\\swordslash.wav", prt1, 1, 1.5)
  723.     swait()
  724.     hitbox.CFrame = prt1.CFrame
  725.     hwld.C0 = euler(3.14 + 6.28 * i, 3.14, 0) * cf(0, 1 + 40 * i, 0)
  726.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 1), 0.3)
  727.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -1), 0.3)
  728.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 1.5, 0), 0.3)
  729.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  730.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.6), 0.3)
  731.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  732.     RH.C0 = clerp(RH.C0, cf(0.5, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1, 0), 0.3)
  733.     LH.C0 = clerp(LH.C0, cf(-0.5, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1, 0), 0.3)
  734.   end
  735.   for i = 0, 1, 0.03 do
  736.     so("rbxasset://sounds\\swordslash.wav", prt1, 1, 1.5)
  737.     swait()
  738.     hitbox.CFrame = prt1.CFrame
  739.     hwld.C0 = euler(9.42 + 6.28 * i, 3.14, 0) * cf(0, 41 - 40 * i, 0)
  740.   end
  741.   con1:disconnect()
  742.   hitbox.Parent = nil
  743.   for _, c in pairs(modelzorz:children()) do
  744.     if c.Name == "Boomerang1" or c.Name == "Boomerang2" then
  745.       coroutine.resume(coroutine.create(function(Part)
  746.         for i = 0.2, 1, 0.1 do
  747.           swait()
  748.           Part.Transparency = i
  749.         end
  750.       end), c)
  751.     end
  752.   end
  753.   for i = 0, 1, 0.05 do
  754.     swait()
  755.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.2)
  756.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -1), 0.2)
  757.     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.2)
  758.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 0.5, 0), 0.2)
  759.     RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  760.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1), 0.2)
  761.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  762.     RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  763.     LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  764.   end
  765.   swait(10)
  766.   Humanoid.WalkSpeed = 16
  767.   attack = false
  768. end
  769. function EnergyBlades()
  770.   attack = true
  771.   for i = 0, 1, 0.1 do
  772.     swait()
  773.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  774.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.3)
  775.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.3)
  776.     RW.C0 = clerp(RW.C0, cf(1.3, 1, -0.2) * euler(3.14, 0, -0.3) * euler(0, -0.5, 0), 0.3)
  777.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  778.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
  779.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  780.   end
  781.   Humanoid.WalkSpeed = 0
  782.   for i = 0, 1, 0.15 do
  783.     swait()
  784.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  785.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.3)
  786.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.3)
  787.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.14, 0, 0) * euler(0, -0.5, 0), 0.3)
  788.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  789.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  790.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  791.   end
  792.   MagicCircle(TorsoColor, prt1.CFrame * cf(0, -4.5, 0), 1, 1, 1, 5, 0.5, 5, 0.05)
  793.   so("http://roblox.com/asset/?id=169445602", prt1, 1, 0.8)
  794.   mana = mana - 40
  795.   for i = 100, 300, 50 do
  796.     do
  797.       local sord = part(3, modelzorz, 0, 0.5, TorsoColor, "Sord", vt(1, 1, 5))
  798.       local smsh = mesh("SpecialMesh", sord, "FileMesh", "rbxasset://fonts/sword.mesh", vt(0, 0, 0), vt(1, 1, 1))
  799.       sord.Anchored = true
  800.       newCF = cf(math.random(-600, 600) / 100, math.random(500, 1000) / 100, math.random(-600, 600) / 100)
  801.       sord.CFrame = cf(RootPart.Position) * newCF
  802.       sord.CFrame = cf(sord.Position, MMouse.Hit.p) * euler(3.14, 0, 0)
  803.       MagicCircle(TorsoColor, sord.CFrame, 5, 5, 10, 1, 1, 3, 0.05)
  804.       so("http://roblox.com/asset/?id=2101144", sord, 0.6, 0.7)
  805.       game:GetService("Debris"):AddItem(sord, 10)
  806.       local hitt = false
  807.       con = sord.Touched:connect(function(hit)
  808.         if hitt == true then
  809.           return
  810.         end
  811.         hitt = true
  812.         if hit.Name ~= "Sord" then
  813.           sord.Parent = nil
  814.           local ref = part(3, workspace, 0, 1, hit.BrickColor, "Effect", vt())
  815.           ref.Anchored = true
  816.           ref.CFrame = cf(sord.Position)
  817.           so("http://roblox.com/asset/?id=161006093", ref, 1, 1)
  818.           so("http://roblox.com/asset/?id=10209303", ref, 1, 1)
  819.           MagicCircle(TorsoColor, cf(ref.Position), 1, 1, 1, 2, 2, 2, 0.01)
  820.           MagniDamage(ref, 15, 5, 10, math.random(10, 30), "Knockdown2")
  821.           for i = 0, 10 do
  822.             MagicBlock(TorsoColor, cf(ref.Position), 1, 1, 1, 1, 1, 1, 0.05, 3)
  823.           end
  824.           game:GetService("Debris"):AddItem(ref, 1)
  825.         end
  826.       end)
  827.       coroutine.resume(coroutine.create(function(Part, Cframe, numb)
  828.         while Part.Parent ~= nil do
  829.           swait()
  830.           numb = numb - 1
  831.           if numb <= 0 then
  832.             Part.CFrame = Part.CFrame * cf(0, 0, 2)
  833.             local prt = Part:clone()
  834.             prt.Size = vt()
  835.             prt.Parent = workspace
  836.             prt.CFrame = Part.CFrame
  837.             table.insert(Effects, {
  838.               prt,
  839.               "Disappear",
  840.               0.1
  841.             })
  842.           else
  843.             Part.CFrame = cf(RootPart.Position) * Cframe
  844.             Part.CFrame = cf(Part.Position, MMouse.Hit.p) * euler(3.14, 0, 0)
  845.           end
  846.         end
  847.       end), sord, newCF, i)
  848.     end
  849.   end
  850.   swait(100)
  851.   Humanoid.WalkSpeed = 16
  852.   attack = false
  853. end
  854. function JetMode()
  855.   attack = true
  856.   Mode = "Jet"
  857.   for i = 0, 1, 0.1 do
  858.     swait()
  859.     hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  860.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.2, 0, 0), 0.3)
  861.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  862.     RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.5, 0, -0.3), 0.3)
  863.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  864.     LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.6, 0, 1), 0.3)
  865.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  866.   end
  867.   so("http://roblox.com/asset/?id=10209640", prt1, 1, 0.6)
  868.   bg.Parent = RootPart
  869.   velx.Parent = RootPart
  870.   velCF = vt(RootPart.CFrame.lookVector.x * 70, RootPart.CFrame.lookVector.y * 0, RootPart.CFrame.lookVector.z * 70)
  871.   velx.velocity = velCF
  872.   RH.Parent = nil
  873.   LH.Parent = nil
  874.   RHP.Part0 = Torso
  875.   RHP.C0 = cf(0.5, -1, 0)
  876.   RHP.C1 = cf(0, 1, 0)
  877.   RHP.Part1 = RightLeg
  878.   RHP.Parent = Torso
  879.   LHP.Part0 = Torso
  880.   LHP.C0 = cf(-0.5, -1, 0)
  881.   LHP.C1 = cf(0, 1, 0)
  882.   LHP.Part1 = LeftLeg
  883.   LHP.Parent = Torso
  884.   hwld.Part1 = Torso
  885.   hwld.C0 = euler(-1.57, 3.14, 0) * cf(-1.2, -0.5, 2)
  886.   for i = 0, 1, 0.1 do
  887.     swait()
  888.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1, 2.5, 0), 0.2)
  889.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.2)
  890.     RootJoint.C0 = RootCF * euler(0, 0, -0.5 + 3.4 * i)
  891.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.1), 0.2)
  892.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  893.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.1), 0.2)
  894.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  895.   end
  896.   for i = 0, 1, 0.05 do
  897.     swait()
  898.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.2)
  899.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.2)
  900.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.57), 0.2)
  901.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.3), 0.2)
  902.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  903.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.3), 0.2)
  904.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  905.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  906.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  907.   end
  908.   attack = false
  909. end
  910. function attackjet()
  911.   attack = true
  912.   for i = 0, 1, 0.1 do
  913.     swait()
  914.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.2)
  915.     Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 1.57), 0.2)
  916.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.5, 0, -1.57) * euler(0, 0, -0.5), 0.3)
  917.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.5), 0.2)
  918.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  919.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.5), 0.2)
  920.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  921.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  922.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  923.   end
  924.   so("http://roblox.com/asset/?id=161006221", prt1, 1, 1.1)
  925.   hitbox.Parent = modelzorz
  926.   hitbox.Size = vt(2, 7, 4)
  927.   hitbox.Transparency = 1
  928.   hitbox.CFrame = prt1.CFrame
  929.   con1 = hitbox.Touched:connect(function(hit)
  930.     Damagefunc(hit, 7, 10, math.random(10, 30), "Knockdown2", RootPart, 0.5, 1)
  931.   end)
  932.   for i = 0, 1, 0.05 do
  933.     swait()
  934.     hitbox.CFrame = prt1.CFrame
  935.     MagicClone(prt1, TorsoColor, prt1.CFrame, 0, 0, 0, 0.2)
  936.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.2)
  937.     RootJoint.C0 = RootCF * cf(0, -8 * i, 0) * euler(0.5 - 1.2 * i, 0, -1.57 + 5 * i) * euler(0, 0, -0.5 + 0.5 * i)
  938.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.2)
  939.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  940.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.2)
  941.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  942.   end
  943.   for i = 0, 1, 0.1 do
  944.     swait()
  945.     hitbox.CFrame = prt1.CFrame
  946.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.1)
  947.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.57) * euler(0, 0, 0), 0.1)
  948.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.1)
  949.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  950.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.1)
  951.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  952.   end
  953.   con1:disconnect()
  954.   hitbox.Parent = nil
  955.   attack = false
  956. end
  957. function OverDriveJet()
  958.   attack = true
  959.   flyanim = true
  960.   overjet = true
  961.   for i = 0, 1, 0.1 do
  962.     swait()
  963.     velCF = vt(RootPart.CFrame.lookVector.x * 50 * (i * 1.5), RootPart.CFrame.lookVector.y * 0, RootPart.CFrame.lookVector.z * 50 * (i * 1.5))
  964.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.3)
  965.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.3)
  966.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -1.57), 0.3)
  967.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.3)
  968.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  969.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.3)
  970.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  971.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.3)
  972.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.3)
  973.   end
  974.   for i = 25, 125 do
  975.     swait()
  976.     velCF = vt(RootPart.CFrame.lookVector.x * 75, RootPart.CFrame.lookVector.y * 0, RootPart.CFrame.lookVector.z * 75)
  977.     if i % 25 == 0 then
  978.       mana = mana - 12
  979.       local ref = part(3, workspace, 0, 0.5, TorsoColor, "Effect", vt())
  980.       ref.Anchored = true
  981.       ref.CFrame = cf(prt1.Position)
  982.       rmsh = mesh("SpecialMesh", ref, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
  983.       MagicBlock(TorsoColor, cf(ref.Position), 5, 5, 5, 1, 1, 1, 0.05, 1)
  984.       so("http://roblox.com/asset/?id=160745944", ref, 1, 1)
  985.       game:GetService("Debris"):AddItem(ref, 4)
  986.       coroutine.resume(coroutine.create(function(Part, CF)
  987.         while Part.Parent ~= nil do
  988.           swait()
  989.         end
  990.         local ref = part(3, workspace, 0, 1, TorsoColor, "Effect", vt())
  991.         ref.Anchored = true
  992.         ref.CFrame = CF
  993.         game:GetService("Debris"):AddItem(ref, 1)
  994.         so("http://roblox.com/asset/?id=161006093", ref, 1, 1)
  995.         so("http://roblox.com/asset/?id=10209303", ref, 1, 1)
  996.         MagicCircle(TorsoColor, cf(ref.Position), 20, 20, 20, 15, 15, 15, 0.1)
  997.         MagicBlock(TorsoColor, cf(ref.Position), 20, 20, 20, 1, 1, 1, 0.05, 1)
  998.         coroutine.resume(coroutine.create(function(Part)
  999.           for i = 0, 30 do
  1000.             swait()
  1001.             MagicBlock(TorsoColor, cf(Part.Position) * cf(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100), 1, 1, 1, 1, 1, 1, 0.1, 3)
  1002.           end
  1003.         end), ref)
  1004.         MagniDamage(ref, 20, 15, 25, math.random(20, 40), "Knockdown")
  1005.       end), ref, ref.CFrame)
  1006.     end
  1007.   end
  1008.   overjet = false
  1009.   flyanim = false
  1010.   attack = false
  1011. end
  1012. function BoomerangJet()
  1013.   attack = true
  1014.   mana = mana - 20
  1015.   so("http://roblox.com/asset/?id=10209296", prt1, 1, 1.2)
  1016.   so("http://roblox.com/asset/?id=2101144", prt1, 1, 1)
  1017.   for _, c in pairs(modelzorz:children()) do
  1018.     if c.Name == "Boomerang1" or c.Name == "Boomerang2" then
  1019.       coroutine.resume(coroutine.create(function(Part)
  1020.         for i = 1, 0.2, -0.1 do
  1021.           swait()
  1022.           Part.Transparency = i
  1023.         end
  1024.       end), c)
  1025.     end
  1026.   end
  1027.   for i = 0, 1, 0.1 do
  1028.     swait()
  1029.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.2)
  1030.     Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 1.57), 0.2)
  1031.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.5, 0, -1.57) * euler(0, 0, -0.5), 0.3)
  1032.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.5), 0.2)
  1033.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1034.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.5), 0.2)
  1035.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1036.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  1037.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  1038.   end
  1039.   hwld.Part1 = RootPart
  1040.   hwld.C0 = euler(2, 0, -1.57) * cf(0, 2.5, 0)
  1041.   hitbox.Parent = modelzorz
  1042.   hitbox.Size = vt(1, 10, 10)
  1043.   hitbox.Transparency = 1
  1044.   hitbox.CFrame = prt1.CFrame
  1045.   con1 = hitbox.Touched:connect(function(hit)
  1046.     Damagefunc(hit, 10, 20, math.random(30, 40), "Knockdown2", prt1, 0.5, 2)
  1047.   end)
  1048.   so("http://roblox.com/asset/?id=10209640", prt1, 1, 0.6)
  1049.   for i = 0, 1, 0.05 do
  1050.     swait()
  1051.     so("rbxasset://sounds\\swordslash.wav", prt1, 1, 1.3)
  1052.     hitbox.CFrame = prt1.CFrame
  1053.     hwld.C0 = euler(2 - 5 * i, 0, -1.57) * cf(0, 2.5 - 2 * i, 30 * i)
  1054.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.3)
  1055.     RootJoint.C0 = RootCF * euler(0.5 - 1.5 * i, 0, -1.57) * euler(0, 0, -0.5 + 4 * i)
  1056.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.3)
  1057.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1058.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.3)
  1059.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1060.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.3)
  1061.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.3)
  1062.   end
  1063.   for i = 0, 1, 0.05 do
  1064.     swait()
  1065.     so("rbxasset://sounds\\swordslash.wav", prt1, 1, 1.3)
  1066.     hitbox.CFrame = prt1.CFrame
  1067.     hwld.C0 = euler(-3 - 5 * i, 0, -1.57) * cf(0, 0.5 + 2 * i, 30 - 35 * i)
  1068.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.3)
  1069.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.57) * euler(0, 0, 0), 0.1)
  1070.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.15)
  1071.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1072.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -1), 0.15)
  1073.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1074.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.3)
  1075.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.3)
  1076.   end
  1077.   con1:disconnect()
  1078.   hitbox.Parent = nil
  1079.   hwld.Part1 = Torso
  1080.   for _, c in pairs(modelzorz:children()) do
  1081.     if c.Name == "Boomerang1" or c.Name == "Boomerang2" then
  1082.       coroutine.resume(coroutine.create(function(Part)
  1083.         for i = 0.2, 1, 0.1 do
  1084.           swait()
  1085.           Part.Transparency = i
  1086.         end
  1087.       end), c)
  1088.     end
  1089.   end
  1090.   attack = false
  1091. end
  1092. function EnergySwordJet()
  1093.   attack = true
  1094.   mana = mana - 20
  1095.   for i = 0, 1, 0.1 do
  1096.     swait()
  1097.     hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.3)
  1098.     Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.3)
  1099.     RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-1, 0, -1.57), 0.3)
  1100.     RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.2)
  1101.     RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1102.     LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.2)
  1103.     LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1104.     RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  1105.     LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  1106.   end
  1107.   num = 0
  1108.   for i = 0, 1, 0.01 do
  1109.     swait()
  1110.     if 20 <= num then
  1111.       do
  1112.         local sord = part(3, modelzorz, 0, 0.5, TorsoColor, "Sord", vt(1, 1, 4))
  1113.         local smsh = mesh("SpecialMesh", sord, "FileMesh", "rbxasset://fonts/sword.mesh", vt(0, 0, 0), vt(2, 2, 2))
  1114.         sord.Anchored = true
  1115.         newCF = cf(math.random(-600, 600) / 100, math.random(-600, 600) / 100, math.random(-600, 600) / 100)
  1116.         sord.CFrame = cf(RootPart.Position) * newCF
  1117.         sord.CFrame = cf(sord.Position, MMouse.Hit.p) * euler(3.14, 0, 0)
  1118.         MagicCircle(TorsoColor, sord.CFrame, 5, 5, 10, 1, 1, 3, 0.05)
  1119.         so("http://roblox.com/asset/?id=169445602", sord, 1, 0.7)
  1120.         game:GetService("Debris"):AddItem(sord, 5)
  1121.         local hitt = false
  1122.         con = sord.Touched:connect(function(hit)
  1123.           if hitt == true then
  1124.             return
  1125.           end
  1126.           hitt = true
  1127.           if hit.Parent == Character or hit.Parent.Parent == Character then
  1128.             return
  1129.           end
  1130.           if hit.Name ~= "Sord" then
  1131.             sord.Parent = nil
  1132.             local ref = part(3, workspace, 0, 1, hit.BrickColor, "Effect", vt())
  1133.             ref.Anchored = true
  1134.             ref.CFrame = cf(sord.Position)
  1135.             so("http://roblox.com/asset/?id=161006093", ref, 1, 1)
  1136.             so("http://roblox.com/asset/?id=10209303", ref, 1, 1)
  1137.             MagicCircle(TorsoColor, cf(ref.Position), 1, 1, 1, 2, 2, 2, 0.01)
  1138.             for i = 0, 10 do
  1139.               MagicBlock(TorsoColor, cf(ref.Position), 1, 1, 1, 1, 1, 1, 0.05, 3)
  1140.             end
  1141.             MagniDamage(ref, 15, 5, 10, math.random(10, 30), "Knockdown2")
  1142.             game:GetService("Debris"):AddItem(ref, 1)
  1143.           end
  1144.           debounce = Instance.new("BoolValue")
  1145.           debounce.Name = "DebounceHit"
  1146.           debounce.Parent = hit.Parent
  1147.           debounce.Value = true
  1148.           game:GetService("Debris"):AddItem(debounce, 0.5)
  1149.         end)
  1150.         coroutine.resume(coroutine.create(function(Part)
  1151.           while Part.Parent ~= nil do
  1152.             swait()
  1153.             Part.CFrame = Part.CFrame * cf(0, 0, 2)
  1154.             for _, c in pairs(workspace:children()) do
  1155.               local hum = c:findFirstChild("Humanoid")
  1156.               if hum ~= nil then
  1157.                 local head = c:findFirstChild("Torso")
  1158.                 if head ~= nil then
  1159.                   local targ = head.Position - Part.Position
  1160.                   local mag = targ.magnitude
  1161.                   if mag <= 10 and c.Name ~= Player.Name then
  1162.                     Part.Parent = nil
  1163.                     local ref = part(3, workspace, 0, 1, TorsoColor, "Effect", vt())
  1164.                     ref.Anchored = true
  1165.                     ref.CFrame = cf(Part.Position)
  1166.                     so("http://roblox.com/asset/?id=161006093", ref, 1, 1)
  1167.                     so("http://roblox.com/asset/?id=10209303", ref, 1, 1)
  1168.                     MagicCircle(TorsoColor, cf(ref.Position), 1, 1, 1, 2, 2, 2, 0.01)
  1169.                     for i = 0, 10 do
  1170.                       MagicBlock(TorsoColor, cf(ref.Position), 1, 1, 1, 1, 1, 1, 0.05, 3)
  1171.                     end
  1172.                     game:GetService("Debris"):AddItem(ref, 1)
  1173.                     MagniDamage(ref, 15, 5, 10, math.random(10, 30), "Knockdown2")
  1174.                   end
  1175.                 end
  1176.               end
  1177.             end
  1178.           end
  1179.         end), sord)
  1180.         num = 0
  1181.       end
  1182.     end
  1183.     num = num + 1
  1184.     RootJoint.C0 = RootCF * euler(-1, 0, -1.57) * euler(0, 0, 25 * i)
  1185.   end
  1186.   attack = false
  1187. end
  1188. function ExitJet()
  1189.   while attack == true do
  1190.     swait()
  1191.   end
  1192.   attack = true
  1193.   Mode = "Normal"
  1194.   bg.Parent = nil
  1195.   velx.Parent = nil
  1196.   RHP.Parent = nil
  1197.   LHP.Parent = nil
  1198.   RH.Parent = Torso
  1199.   LH.Parent = Torso
  1200.   hwld.Part1 = RightArm
  1201.   attack = false
  1202. end
  1203. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1204.   for _, c in pairs(workspace:children()) do
  1205.     local hum = c:findFirstChild("Humanoid")
  1206.     if hum ~= nil then
  1207.       local head = c:findFirstChild("Torso")
  1208.       if head ~= nil then
  1209.         local targ = head.Position - Part.Position
  1210.         local mag = targ.magnitude
  1211.         if magni >= mag and c.Name ~= Player.Name then
  1212.           Damagefunc(head, mindam, maxdam, knock, Type, Part, 0.2, 1, 3, 1)
  1213.         end
  1214.       end
  1215.     end
  1216.   end
  1217. end
  1218. function rayCast(Pos, Dir, Max, Ignore)
  1219.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1220. end
  1221. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  1222. LastPoint = Point
  1223. function effect(Color, Ref, LP, P1, returnn)
  1224.   local effectsmsh = Instance.new("CylinderMesh")
  1225.   effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  1226.   effectsmsh.Name = "Mesh"
  1227.   local effectsg = Instance.new("Part")
  1228.   effectsg.formFactor = 3
  1229.   effectsg.CanCollide = false
  1230.   effectsg.Name = "Eff"
  1231.   effectsg.Locked = true
  1232.   effectsg.Anchored = true
  1233.   effectsg.Size = Vector3.new(0.5, 1, 0.5)
  1234.   effectsg.Parent = workspace
  1235.   effectsmsh.Parent = effectsg
  1236.   effectsg.BrickColor = Color1
  1237.   effectsg.Reflectance = Ref
  1238.   local point1 = P1
  1239.   local mg = (LP.p - point1.p).magnitude
  1240.   effectsg.Size = Vector3.new(0.5, mg, 0.5)
  1241.   effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  1242.   effectsmsh.Scale = Vector3.new(0.4, 1, 0.4)
  1243.   game:GetService("Debris"):AddItem(effectsg, 2)
  1244.   if returnn then
  1245.     return effectsg
  1246.   end
  1247.   if not returnn then
  1248.     table.insert(Effects, {
  1249.       effectsg,
  1250.       "Cylinder",
  1251.       0.05,
  1252.       0.01,
  1253.       0,
  1254.       0.01,
  1255.       effectsmsh
  1256.     })
  1257.   end
  1258. end
  1259. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1260.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1261.   prt.Anchored = true
  1262.   prt.CFrame = cframe
  1263.   msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1264.   game:GetService("Debris"):AddItem(prt, 5)
  1265.   if Type == 1 or Type == nil then
  1266.     table.insert(Effects, {
  1267.       prt,
  1268.       "Block1",
  1269.       delay,
  1270.       x3,
  1271.       y3,
  1272.       z3,
  1273.       msh
  1274.     })
  1275.   elseif Type == 2 then
  1276.     table.insert(Effects, {
  1277.       prt,
  1278.       "Block2",
  1279.       delay,
  1280.       x3,
  1281.       y3,
  1282.       z3,
  1283.       msh
  1284.     })
  1285.   elseif Type == 3 then
  1286.     table.insert(Effects, {
  1287.       prt,
  1288.       "Block3",
  1289.       delay,
  1290.       x3,
  1291.       y3,
  1292.       z3,
  1293.       msh,
  1294.       vt(math.random(-10, 10) / 10, math.random(-10, 10) / 10, math.random(-10, 10) / 10)
  1295.     })
  1296.   end
  1297. end
  1298. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1299.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1300.   prt.Anchored = true
  1301.   prt.CFrame = cframe
  1302.   local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1303.   game:GetService("Debris"):AddItem(prt, 2)
  1304.   table.insert(Effects, {
  1305.     prt,
  1306.     "Cylinder",
  1307.     delay,
  1308.     x3,
  1309.     y3,
  1310.     z3,
  1311.     msh
  1312.   })
  1313. end
  1314. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1315.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1316.   prt.Anchored = true
  1317.   prt.CFrame = cframe
  1318.   local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1319.   game:GetService("Debris"):AddItem(prt, 2)
  1320.   table.insert(Effects, {
  1321.     prt,
  1322.     "Cylinder",
  1323.     delay,
  1324.     x3,
  1325.     y3,
  1326.     z3,
  1327.     msh
  1328.   })
  1329. end
  1330. function MagicClone(part, brickcolor, cframe, x3, y3, z3, delay)
  1331.   local prt = part:clone()
  1332.   for _, v in pairs(prt:children()) do
  1333.     if v.className == "Weld" then
  1334.       v.Parent = nil
  1335.     end
  1336.   end
  1337.   prt.Parent = workspace
  1338.   prt.Name = "Effect"
  1339.   prt.Anchored = true
  1340.   prt.BrickColor = brickcolor
  1341.   prt.CFrame = cframe
  1342.   game:GetService("Debris"):AddItem(prt, 2)
  1343.   table.insert(Effects, {
  1344.     prt,
  1345.     "Cylinder",
  1346.     delay,
  1347.     x3,
  1348.     y3,
  1349.     z3,
  1350.     prt.Mesh
  1351.   })
  1352. end
  1353. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1354.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1355.   prt.Anchored = true
  1356.   prt.CFrame = cframe
  1357.   local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1358.   game:GetService("Debris"):AddItem(prt, 5)
  1359.   table.insert(Effects, {
  1360.     prt,
  1361.     "Cylinder",
  1362.     delay,
  1363.     x3,
  1364.     y3,
  1365.     z3,
  1366.     msh
  1367.   })
  1368. end
  1369. function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, movnum)
  1370.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1371.   prt.Anchored = true
  1372.   prt.CFrame = cframe
  1373.   msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1374.   game:GetService("Debris"):AddItem(prt, 2)
  1375.   table.insert(Effects, {
  1376.     prt,
  1377.     "Ring",
  1378.     delay,
  1379.     x3,
  1380.     y3,
  1381.     z3,
  1382.     msh,
  1383.     movnum
  1384.   })
  1385. end
  1386. function Lightning(p0, p1, tym, ofs, col, th, tra, last)
  1387.   local magz = (p0 - p1).magnitude
  1388.   local curpos = p0
  1389.   local trz = {
  1390.     -ofs,
  1391.     ofs
  1392.   }
  1393.   for i = 1, tym do
  1394.     local li = Instance.new("Part", workspace)
  1395.     li.TopSurface = 0
  1396.     li.BottomSurface = 0
  1397.     li.Anchored = true
  1398.     li.Transparency = tra or 0.4
  1399.     li.BrickColor = BrickColor.new(col)
  1400.     li.formFactor = "Custom"
  1401.     li.CanCollide = false
  1402.     li.Size = Vector3.new(th, th, magz / tym)
  1403.     local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1404.     local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1405.     if tym == i then
  1406.       local magz2 = (curpos - p1).magnitude
  1407.       li.Size = Vector3.new(th, th, magz2)
  1408.       li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1409.     else
  1410.       li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1411.     end
  1412.     curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1413.     game.Debris:AddItem(li, last)
  1414.   end
  1415. end
  1416. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  1417.   if hit.Parent == nil then
  1418.     return
  1419.   end
  1420.   h = hit.Parent:FindFirstChild("Humanoid")
  1421.   for _, v in pairs(hit.Parent:children()) do
  1422.     if v:IsA("Humanoid") then
  1423.       h = v
  1424.     end
  1425.   end
  1426.   if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1427.     h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1428.   end
  1429.   if hit.Parent.className == "Hat" then
  1430.     hit = hit.Parent.Parent:findFirstChild("Head")
  1431.   end
  1432.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1433.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1434.       return
  1435.     end
  1436.     c = Instance.new("ObjectValue")
  1437.     c.Name = "creator"
  1438.     c.Value = game:service("Players").LocalPlayer
  1439.     c.Parent = h
  1440.     game:GetService("Debris"):AddItem(c, 0.5)
  1441.     Damage = minim + 1
  1442.     blocked = false
  1443.     block = hit.Parent:findFirstChild("Block")
  1444.     if block ~= nil then
  1445.       print(block.className)
  1446.       if block.className == "NumberValue" and block.Value > 0 then
  1447.         blocked = true
  1448.         if decreaseblock ~= nil then
  1449.           block.Value = block.Value - decreaseblock
  1450.         end
  1451.       end
  1452.       if block.className == "IntValue" and block.Value > 0 then
  1453.         blocked = true
  1454.         if decreaseblock ~= nil then
  1455.           block.Value = block.Value - decreaseblock
  1456.         end
  1457.       end
  1458.     end
  1459.     if blocked == false then
  1460.       HitHealth = h.Health
  1461.       h.Health = h.Health - Damage
  1462.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1463.         print("gained spree")
  1464.         Player:FindFirstChild("leaderstats").Spree.Value = Player.leaderstats.Spree.Value + 1
  1465.       end
  1466.       showDamage(hit.Parent, Damage, 0.5, BrickColor:Red())
  1467.     else
  1468.       h.Health = h.Health - Damage / 2
  1469.       showDamage(hit.Parent, Damage / 2, 0.5, BrickColor.new("Bright blue"))
  1470.     end
  1471.     if Type == "Knockdown" then
  1472.       hum = hit.Parent.Humanoid
  1473.       hum.PlatformStand = true
  1474.       coroutine.resume(coroutine.create(function(HHumanoid)
  1475.         swait(1)
  1476.         HHumanoid.PlatformStand = false
  1477.       end), hum)
  1478.       local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1479.       local bodvol = Instance.new("BodyVelocity")
  1480.       bodvol.velocity = angle * knockback / 1.5
  1481.       bodvol.P = 5000
  1482.       bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1483.       bodvol.Parent = hit
  1484.       rl = Instance.new("BodyAngularVelocity")
  1485.       rl.P = 3000
  1486.       rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1487.       rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1488.       rl.Parent = hit
  1489.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1490.       game:GetService("Debris"):AddItem(rl, 0.5)
  1491.     elseif Type == "Knockdown2" then
  1492.       hum = hit.Parent.Humanoid
  1493.       local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1494.       local bodvol = Instance.new("BodyVelocity")
  1495.       bodvol.velocity = angle * knockback
  1496.       bodvol.P = 5000
  1497.       bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1498.       bodvol.Parent = hit
  1499.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1500.     elseif Type == "Normal" then
  1501.       vp = Instance.new("BodyVelocity")
  1502.       vp.P = 500
  1503.       vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1504.       if KnockbackType == 1 then
  1505.         vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1506.       elseif KnockbackType == 2 then
  1507.         vp.velocity = Property.CFrame.lookVector * knockback
  1508.       end
  1509.       if knockback > 0 then
  1510.         vp.Parent = hit.Parent.Torso
  1511.       end
  1512.       game:GetService("Debris"):AddItem(vp, 0.5)
  1513.     elseif Type == "Up" then
  1514.       local bodyVelocity = Instance.new("BodyVelocity")
  1515.       bodyVelocity.velocity = vt(0, 30, 0)
  1516.       bodyVelocity.P = 5000
  1517.       bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  1518.       bodyVelocity.Parent = hit
  1519.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1520.       rl = Instance.new("BodyAngularVelocity")
  1521.       rl.P = 3000
  1522.       rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1523.       rl.angularvelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  1524.       rl.Parent = hit
  1525.       game:GetService("Debris"):AddItem(rl, 0.5)
  1526.     elseif Type == "OrbBlast" then
  1527.       if 30 <= mana then
  1528.         mana = mana - 30
  1529.         so("http://roblox.com/asset/?id=161006093", hit, 1, 1)
  1530.         so("http://roblox.com/asset/?id=10209303", hit, 1, 1)
  1531.         MagicCircle(TorsoColor, cf(hit.Position), 1, 1, 1, 2, 2, 2, 0.01)
  1532.         coroutine.resume(coroutine.create(function(Part)
  1533.           for i = 0, 30 do
  1534.             swait()
  1535.             MagicBlock(TorsoColor, cf(Part.Position), 1, 1, 1, 1, 1, 1, 0.05, 3)
  1536.           end
  1537.         end), hit)
  1538.         local ref = part(3, workspace, 0, 1, hit.BrickColor, "Effect", vt())
  1539.         ref.Anchored = true
  1540.         ref.CFrame = cf(hit.Position) * cf(math.random(-10, 10) / 100, -0.1, math.random(-10, 10) / 100)
  1541.         game:GetService("Debris"):AddItem(ref, 1)
  1542.         MagniDamage(ref, 10, 10, 20, math.random(20, 40), "Knockdown2")
  1543.       end
  1544.     elseif Type == "Snare" then
  1545.       bp = Instance.new("BodyPosition")
  1546.       bp.P = 2000
  1547.       bp.D = 100
  1548.       bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1549.       bp.position = hit.Parent.Torso.Position
  1550.       bp.Parent = hit.Parent.Torso
  1551.       game:GetService("Debris"):AddItem(bp, 1)
  1552.     end
  1553.     debounce = Instance.new("BoolValue")
  1554.     debounce.Name = "DebounceHit"
  1555.     debounce.Parent = hit.Parent
  1556.     debounce.Value = true
  1557.     game:GetService("Debris"):AddItem(debounce, Delay)
  1558.     c = Instance.new("ObjectValue")
  1559.     c.Name = "creator"
  1560.     c.Value = Player
  1561.     c.Parent = h
  1562.     game:GetService("Debris"):AddItem(c, 0.5)
  1563.     CRIT = false
  1564.   end
  1565. end
  1566. function showDamage(Char, Dealt, du, Color)
  1567.   m = Instance.new("Model")
  1568.   m.Name = tostring(math.floor(Dealt))
  1569.   h = Instance.new("Humanoid")
  1570.   h.Health = 0
  1571.   h.MaxHealth = 0
  1572.   h.Parent = m
  1573.   c = Instance.new("Part")
  1574.   c.Transparency = 0
  1575.   c.BrickColor = Color
  1576.   c.Name = "Head"
  1577.   c.TopSurface = 0
  1578.   c.BottomSurface = 0
  1579.   c.formFactor = "Plate"
  1580.   c.Size = Vector3.new(1, 0.4, 1)
  1581.   ms = Instance.new("CylinderMesh")
  1582.   ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1583.   if CRIT == true then
  1584.     ms.Scale = Vector3.new(1, 1.25, 1)
  1585.   end
  1586.   ms.Parent = c
  1587.   c.Reflectance = 0
  1588.   Instance.new("BodyGyro").Parent = c
  1589.   c.Parent = m
  1590.   if Char:findFirstChild("Head") ~= nil then
  1591.     c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(0, 1.5, 0))
  1592.   elseif Char.Parent:findFirstChild("Head") ~= nil then
  1593.     c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(0, 1.5, 0))
  1594.   end
  1595.   f = Instance.new("BodyPosition")
  1596.   f.P = 2000
  1597.   f.D = 100
  1598.   f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1599.   f.position = c.Position + Vector3.new(0, 3, 0)
  1600.   f.Parent = c
  1601.   game:GetService("Debris"):AddItem(m, 0.5 + du)
  1602.   c.CanCollide = false
  1603.   m.Parent = workspace
  1604.   c.CanCollide = false
  1605. end
  1606. combo = 0
  1607. function ob1d(mouse)
  1608.   if attack == true or equipped == false then
  1609.     return
  1610.   end
  1611.   hold = true
  1612.   if Mode == "Normal" then
  1613.     if combo == 0 then
  1614.       combo = 1
  1615.       attackone()
  1616.     elseif combo == 1 then
  1617.       combo = 2
  1618.       attackthree()
  1619.     elseif combo == 2 then
  1620.       combo = 0
  1621.       attacktwo()
  1622.     end
  1623.   else
  1624.     attackjet()
  1625.   end
  1626.   coroutine.resume(coroutine.create(function()
  1627.     for i = 1, 50 do
  1628.       if attack == false then
  1629.         swait()
  1630.       end
  1631.     end
  1632.     if attack == false then
  1633.       combo = 0
  1634.     end
  1635.   end))
  1636. end
  1637. function ob1u(mouse)
  1638.   hold = false
  1639. end
  1640. buttonhold = false
  1641. eul = 0
  1642. size = 0
  1643. holdz = false
  1644. holdq = false
  1645. holde = false
  1646. cansword = true
  1647. equipped = false
  1648. function key(key)
  1649.   if attack == true then
  1650.     return
  1651.   end
  1652.   if key == "f" and Mode == "Normal" then
  1653.     attack = true
  1654.     if equipped == false then
  1655.       equipped = true
  1656.       RSH = ch.Torso["Right Shoulder"]
  1657.       LSH = ch.Torso["Left Shoulder"]
  1658.       RSH.Parent = nil
  1659.       LSH.Parent = nil
  1660.       RW.Name = "Right Shoulder"
  1661.       RW.Part0 = ch.Torso
  1662.       RW.C0 = cf(1.5, 0.5, 0)
  1663.       RW.C1 = cf(0, 0.5, 0)
  1664.       RW.Part1 = ch["Right Arm"]
  1665.       RW.Parent = ch.Torso
  1666.       LW.Name = "Left Shoulder"
  1667.       LW.Part0 = ch.Torso
  1668.       LW.C0 = cf(-1.5, 0.5, 0)
  1669.       LW.C1 = cf(0, 0.5, 0)
  1670.       LW.Part1 = ch["Left Arm"]
  1671.       LW.Parent = ch.Torso
  1672.       equipanim()
  1673.     else
  1674.       equipped = false
  1675.       hideanim()
  1676.       swait(0)
  1677.       RW.Parent = nil
  1678.       LW.Parent = nil
  1679.       RSH.Parent = player.Character.Torso
  1680.       LSH.Parent = player.Character.Torso
  1681.     end
  1682.     attack = false
  1683.   end
  1684.   if equipped == false then
  1685.     return
  1686.   end
  1687.   if Mode == "Normal" then
  1688.     if key == "z" and mana >= 20 then
  1689.       OverDrive()
  1690.     end
  1691.     if key == "x" and mana >= 40 then
  1692.       Boomerang()
  1693.     end
  1694.     if key == "c" and mana >= 30 and cansword == true then
  1695.       cansword = false
  1696.       coroutine.resume(coroutine.create(function()
  1697.         swait(500)
  1698.         cansword = true
  1699.       end))
  1700.       EnergyBlades()
  1701.     end
  1702.     if key == "v" and mana >= 50 then
  1703.       JetMode()
  1704.     end
  1705.   else
  1706.     if key == "q" then
  1707.       holdq = true
  1708.       attack = true
  1709.       flyanim = true
  1710.       velCF = vt(RootPart.CFrame.lookVector.x * 30, 20, RootPart.CFrame.lookVector.z * 30)
  1711.       coroutine.resume(coroutine.create(function()
  1712.         while holdq == true do
  1713.           swait()
  1714.           velCF = vt(RootPart.CFrame.lookVector.x * 30, 20, RootPart.CFrame.lookVector.z * 30)
  1715.           hwld.C0 = clerp(hwld.C0, euler(0, 0.4, -1.57) * cf(1.2, 2.5, 0.5), 0.2)
  1716.           Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1717.           RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.2)
  1718.           RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.3), 0.2)
  1719.           RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1720.           LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.3), 0.2)
  1721.           LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1722.           RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0.4, 0, 0.2), 0.2)
  1723.           LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0.4, 0, -0.2), 0.2)
  1724.         end
  1725.         attack = false
  1726.         flyanim = false
  1727.       end))
  1728.     end
  1729.     if key == "e" then
  1730.       holde = true
  1731.       attack = true
  1732.       flyanim = true
  1733.       velCF = vt(RootPart.CFrame.lookVector.x * 30, -20, RootPart.CFrame.lookVector.z * 30)
  1734.       coroutine.resume(coroutine.create(function()
  1735.         while holde == true do
  1736.           swait()
  1737.           velCF = vt(RootPart.CFrame.lookVector.x * 30, -20, RootPart.CFrame.lookVector.z * 30)
  1738.           hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.2)
  1739.           Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  1740.           RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -1.57), 0.3)
  1741.           RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.5), 0.2)
  1742.           RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1743.           LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.5), 0.2)
  1744.           LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1745.           RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  1746.           LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  1747.         end
  1748.         attack = false
  1749.         flyanim = false
  1750.       end))
  1751.     end
  1752.     if key == "z" and mana >= 60 then
  1753.       OverDriveJet()
  1754.     end
  1755.     if key == "x" and mana >= 20 then
  1756.       BoomerangJet()
  1757.     end
  1758.     if key == "c" and mana >= 20 then
  1759.       EnergySwordJet()
  1760.     end
  1761.     if key == "v" then
  1762.       ExitJet()
  1763.     end
  1764.   end
  1765.   if key == "h" then
  1766.   end
  1767.   if key == "e" then
  1768.     idle = 500
  1769.   end
  1770.   coroutine.resume(coroutine.create(function()
  1771.     for i = 1, 50 do
  1772.       if attack == false then
  1773.         swait()
  1774.       end
  1775.     end
  1776.     if attack == false then
  1777.       combo = 0
  1778.     end
  1779.   end))
  1780.   combo = 0
  1781. end
  1782. function key2(key)
  1783.   if key == "q" then
  1784.     holdq = false
  1785.   end
  1786.   if key == "e" then
  1787.     holde = false
  1788.   end
  1789. end
  1790. function s(mouse)
  1791.   mouse.Button1Down:connect(function()
  1792.     ob1d(mouse)
  1793.   end)
  1794.   mouse.Button1Up:connect(function()
  1795.     ob1u(mouse)
  1796.   end)
  1797.   mouse.KeyDown:connect(key)
  1798.   mouse.KeyUp:connect(key2)
  1799.   player = Player
  1800.   ch = Character
  1801.   MMouse = mouse
  1802. end
  1803. function ds(mouse)
  1804. end
  1805. Bin.Selected:connect(s)
  1806. Bin.Deselected:connect(ds)
  1807. print("Cyber Stratosphere loaded.")
  1808. local mananum = 0
  1809. local handidle = false
  1810. local donum = 0
  1811. while true do
  1812.   swait()
  1813.   if donum >= 0.5 then
  1814.     handidle = true
  1815.   elseif donum <= 0 then
  1816.     handidle = false
  1817.   end
  1818.   if handidle == false then
  1819.     donum = donum + 0.003
  1820.   else
  1821.     donum = donum - 0.003
  1822.   end
  1823.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1824.   local velderp = RootPart.Velocity.y
  1825.   hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1826.   if equipped == true then
  1827.     if Anim == "Idle" and attack == false then
  1828.       idle = idle + 1
  1829.     else
  1830.       idle = 0
  1831.     end
  1832.     if Mode == "Jet" then
  1833.       if flyanim == false then
  1834.         velCF = vt(RootPart.CFrame.lookVector.x * 50, RootPart.CFrame.lookVector.y * 0, RootPart.CFrame.lookVector.z * 50)
  1835.       end
  1836.       velx.velocity = velCF
  1837.       bg.Parent = nil
  1838.       if flyanim == false and attack == false then
  1839.         Anim = "Fly"
  1840.         hwld.C0 = clerp(hwld.C0, euler(0, 0, -1.57) * cf(1.5, 2.5, 0), 0.3)
  1841.         Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57), 0.3)
  1842.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0.1, -1.57), 0.3)
  1843.         RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5 + donum * 2, 0, 0.3), 0.2)
  1844.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1845.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5 + donum * 2, 0, -0.3), 0.2)
  1846.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1847.         RHP.C0 = clerp(RHP.C0, cf(0.5, -1, 0) * euler(0, 0, 0.2), 0.2)
  1848.         LHP.C0 = clerp(LHP.C0, cf(-0.5, -1, 0) * euler(0, 0, -0.2), 0.2)
  1849.       end
  1850.     elseif 1 < RootPart.Velocity.y and hitfloor == nil then
  1851.       Anim = "Jump"
  1852.       if attack == false then
  1853.         Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  1854.         Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  1855.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  1856.         RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.2, 0, -0.5), 0.2)
  1857.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1858.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5), 0.2)
  1859.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1860.         RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  1861.         LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  1862.       end
  1863.     elseif -1 > RootPart.Velocity.y and hitfloor == nil then
  1864.       Anim = "Fall"
  1865.       if attack == false then
  1866.         hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  1867.         Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.1)
  1868.         Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.1)
  1869.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.1)
  1870.         RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0.3), 0.1)
  1871.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1872.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -0.2), 0.1)
  1873.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1874.         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  1875.         LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  1876.       end
  1877.     elseif torvel < 1 and hitfloor ~= nil then
  1878.       Anim = "Idle"
  1879.       if idle >= 300 then
  1880.         if attack == false then
  1881.           hwld.C0 = clerp(hwld.C0, euler(-0.3, 2.8, 1.4) * cf(-1.5, 0, 0.7), 0.1)
  1882.           Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.1)
  1883.           RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.1)
  1884.           RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.3) * euler(0.5, 0, 0), 0.1)
  1885.           RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1886.           LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.1)
  1887.           LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1888.         end
  1889.       elseif attack == false then
  1890.         hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  1891.         Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.3), 0.3)
  1892.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.3), 0.3)
  1893.         RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.3 - donum / 3, 0, -0.3 - donum / 5), 0.3)
  1894.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1895.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2 + donum / 5), 0.3)
  1896.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1897.         RH.C0 = clerp(RH.C0, RHC0, 0.3)
  1898.         LH.C0 = clerp(LH.C0, LHC0, 0.3)
  1899.       end
  1900.     elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  1901.       Anim = "Walk"
  1902.       if attack == false then
  1903.         hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  1904.         Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5), 0.3)
  1905.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 0.5), 0.3)
  1906.         RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.2, 0, -0.5), 0.3)
  1907.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1908.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  1909.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1910.         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0), 0.3)
  1911.         LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.5, 0), 0.3)
  1912.       end
  1913.     elseif torvel >= 22 and hitfloor ~= nil then
  1914.       Anim = "Run"
  1915.       if attack == false then
  1916.         hwld.C0 = clerp(hwld.C0, euler(3.14, 3.14, 0) * cf(0, 1, 0), 0.3)
  1917.         Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5), 0.3)
  1918.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 0.5), 0.3)
  1919.         RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.2, 0, -0.5), 0.3)
  1920.         RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1921.         LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  1922.         LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1923.         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0), 0.3)
  1924.         LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.5, 0), 0.3)
  1925.       end
  1926.     end
  1927.   end
  1928.   if #Effects > 0 then
  1929.     for e = 1, #Effects do
  1930.       if Effects[e] ~= nil then
  1931.         local Thing = Effects[e]
  1932.         if Thing ~= nil then
  1933.           local Part = Thing[1]
  1934.           local Mode = Thing[2]
  1935.           local Delay = Thing[3]
  1936.           local IncX = Thing[4]
  1937.           local IncY = Thing[5]
  1938.           local IncZ = Thing[6]
  1939.           if 1 >= Thing[1].Transparency then
  1940.             if Thing[2] == "Block1" then
  1941.               Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1942.               Mesh = Thing[7]
  1943.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1944.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1945.             elseif Thing[2] == "Block2" then
  1946.               Thing[1].CFrame = Thing[1].CFrame
  1947.               Mesh = Thing[7]
  1948.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1949.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1950.             elseif Thing[2] == "Block3" then
  1951.               Thing[1].CFrame = Thing[1].CFrame * cf(Thing[8]) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1952.               Mesh = Thing[7]
  1953.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1954.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1955.             elseif Thing[2] == "Cylinder" then
  1956.               Mesh = Thing[7]
  1957.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1958.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1959.             elseif Thing[2] == "Blood" then
  1960.               Mesh = Thing[7]
  1961.               Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1962.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1963.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1964.             elseif Thing[2] == "Elec" then
  1965.               Mesh = Thing[7]
  1966.               Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1967.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1968.             elseif Thing[2] == "Ring" then
  1969.               Mesh = Thing[7]
  1970.               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1971.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1972.               Thing[1].CFrame = Thing[1].CFrame * cf(0, 0, -Thing[8])
  1973.             elseif Thing[2] == "Disappear" then
  1974.               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1975.             end
  1976.           else
  1977.             Part.Parent = nil
  1978.             table.remove(Effects, e)
  1979.           end
  1980.         end
  1981.       end
  1982.     end
  1983.   end
  1984.   if 0 >= mana and Mode == "Jet" then
  1985.     coroutine.resume(coroutine.create(function()
  1986.       ExitJet()
  1987.     end))
  1988.   end
  1989.   if mana >= 100 then
  1990.     mana = 100
  1991.     if Mode == "Jet" then
  1992.       mana = 99
  1993.     end
  1994.   elseif mananum <= 8 then
  1995.     mananum = mananum + 1
  1996.   else
  1997.     mananum = 0
  1998.     if Mode == "Normal" then
  1999.       mana = mana + 1
  2000.     elseif Mode == "Jet" then
  2001.       mana = mana - 1
  2002.       if attack == false then
  2003.         MagicRing(Torso.BrickColor, prt22.CFrame * euler(0, 1.57, 0), 1, 1, 1, 0.5, 0.5, 0.5, 0.05, 0.2)
  2004.       end
  2005.       if overjet == true then
  2006.         MagicRing(Torso.BrickColor, prt22.CFrame * euler(0, 1.57, 0), 1, 1, 1, 0.5, 2, 1, 0.1, 0)
  2007.       end
  2008.     end
  2009.   end
  2010.   fenbarmana2:TweenSize(UDim2.new(4 * mana / 100, 0, 0.2, 0), nil, 1, 0.4, true)
  2011.   fenbarmana4.Text = "Energy(" .. mana .. ")"
  2012. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top