Advertisement
AgentVK

Moxie Lance

Jan 2nd, 2018
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.22 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://321467240"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  56. local NEWMESH = IT(MESH)
  57. if MESH == "SpecialMesh" then
  58. NEWMESH.MeshType = MESHTYPE
  59. if MESHID ~= "nil" and MESHID ~= "" then
  60. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  61. end
  62. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  63. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  64. end
  65. end
  66. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  67. NEWMESH.Scale = SCALE
  68. NEWMESH.Parent = PARENT
  69. return NEWMESH
  70. end
  71.  
  72. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHR)
  73. local NEWPART = IT("Part")
  74. NEWPART.formFactor = FORMFACTOR
  75. NEWPART.Reflectance = REFLECTANCE
  76. NEWPART.Transparency = TRANSPARENCY
  77. NEWPART.CanCollide = false
  78. NEWPART.Locked = true
  79. NEWPART.Anchored = true
  80. if ANCHR == false then
  81. NEWPART.Anchored = false
  82. end
  83. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  84. NEWPART.Name = NAME
  85. NEWPART.Size = SIZE
  86. NEWPART.Position = Torso.Position
  87. NEWPART.Material = MATERIAL
  88. NEWPART:BreakJoints()
  89. NEWPART.Parent = PARENT
  90. return NEWPART
  91. end
  92.  
  93.  
  94. --//=================================\\
  95. --|| CUSTOMIZATION
  96. --\\=================================//
  97.  
  98. Class_Name = "Moxie Lance"
  99. Weapon_Name = "Add-ons"
  100.  
  101. Custom_Colors = {
  102. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  103. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  104.  
  105. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  106. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  107. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  108. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  109. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  110.  
  111. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  112. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  113. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  114. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  115. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  116. }
  117.  
  118.  
  119. Player_Size = 1 --Size of the player.
  120. Animation_Speed = 3
  121. Animation_Speed2 = 0.5
  122. Animation_Speed3 = 0.25
  123. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  124.  
  125. local Speed = 16
  126. local Effects2 = {}
  127.  
  128. --//=================================\\
  129. --|| END OF CUSTOMIZATION
  130. --\\=================================//
  131.  
  132. local function weldBetween(a, b)
  133. local weldd = Instance.new("ManualWeld")
  134. weldd.Part0 = a
  135. weldd.Part1 = b
  136. weldd.C0 = CFrame.new()
  137. weldd.C1 = b.CFrame:inverse() * a.CFrame
  138. weldd.Parent = a
  139. return weldd
  140. end
  141.  
  142. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  143. local acs = Instance.new("Part")
  144. acs.CanCollide = false
  145. acs.Anchored = false
  146. acs.Size = Vector3.new(0,0,0)
  147. acs.CFrame = attachmentpart.CFrame
  148. acs.Parent = Character
  149. acs.BrickColor = color
  150. local meshs = Instance.new("SpecialMesh")
  151. meshs.MeshId = mesh
  152. meshs.TextureId = texture
  153. meshs.Parent = acs
  154. meshs.Scale = scale
  155. meshs.Offset = offset
  156. weldBetween(attachmentpart,acs)
  157. end
  158.  
  159. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  160. if TYPE == "Gem" then
  161. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  162. acs.Anchored = false
  163. acs.CanCollide = false
  164. acs.CFrame = PART.CFrame
  165. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  166. weldBetween(PART,acs)
  167. elseif TYPE == "Skull" then
  168. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  169. acs.Anchored = false
  170. acs.CanCollide = false
  171. acs.CFrame = PART.CFrame
  172. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  173. weldBetween(PART,acs)
  174. elseif TYPE == "Eye" then
  175. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  176. acs.Anchored = false
  177. acs.CanCollide = false
  178. acs.CFrame = PART.CFrame
  179. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  180. weldBetween(PART,acs)
  181. end
  182. end
  183.  
  184. --//=================================\\
  185. --|| USEFUL VALUES
  186. --\\=================================//
  187.  
  188. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  189. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  190. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  191. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  192. local CO1 = 0
  193. local CO2 = 0
  194. local CO3 = 0
  195. local CO4 = 0
  196. local CHANGEDEFENSE = 0
  197. local CHANGEDAMAGE = 0
  198. local CHANGEMOVEMENT = 0
  199. local ANIM = "Idle"
  200. local ATTACK = false
  201. local EQUIPPED = false
  202. local HOLD = false
  203. local COMBO = 1
  204. local LASTPOINT = nil
  205. local BLCF = nil
  206. local SCFR = nil
  207. local STAGGERHITANIM = false
  208. local STAGGERANIM = false
  209. local STUNANIM = false
  210. local CRITCHANCENUMBER = 0
  211. local IDLENUMBER = 0
  212. local DONUMBER = 0
  213. local HANDIDLE = false
  214. local Rooted = false
  215. local SINE = 0
  216. local MOXIE = 0
  217. local CHANGE = 2 / Animation_Speed
  218. local WALKINGANIM = false
  219. local WALK = 0
  220. local DISABLEJUMPING = false
  221. local ROBLOXIDLEANIMATION = IT("Animation")
  222. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  223. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  224. --ROBLOXIDLEANIMATION.Parent = Humanoid
  225. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  226. WEAPONGUI.Name = "Weapon GUI"
  227. local Weapon = IT("Model")
  228. Weapon.Name = Weapon_Name
  229. local Effects = IT("Folder", Weapon)
  230. Effects.Name = "Effects"
  231. local ANIMATOR = Humanoid.Animator
  232. local ANIMATE = Character.Animate
  233. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  234. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  235. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  236. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  237. local UNANCHOR = true
  238. local MAGICPARTICLE = "655109389"
  239.  
  240. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  241.  
  242. local ATTACK1COST = 0
  243. local ATTACK2COST = 0
  244. local ATTACK3COST = 0
  245. local ATTACK4COST = 0
  246.  
  247. --//=================================\\
  248. --\\=================================//
  249.  
  250.  
  251. --//=================================\\
  252. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  253. --\\=================================//
  254.  
  255. ArtificialHB = Instance.new("BindableEvent", script)
  256. ArtificialHB.Name = "ArtificialHB"
  257.  
  258. script:WaitForChild("ArtificialHB")
  259.  
  260. frame = Frame_Speed
  261. tf = 0
  262. allowframeloss = false
  263. tossremainder = false
  264. lastframe = tick()
  265. script.ArtificialHB:Fire()
  266.  
  267. game:GetService("RunService").Heartbeat:connect(function(s, p)
  268. tf = tf + s
  269. if tf >= frame then
  270. if allowframeloss then
  271. script.ArtificialHB:Fire()
  272. lastframe = tick()
  273. else
  274. for i = 1, math.floor(tf / frame) do
  275. script.ArtificialHB:Fire()
  276. end
  277. lastframe = tick()
  278. end
  279. if tossremainder then
  280. tf = 0
  281. else
  282. tf = tf - frame * math.floor(tf / frame)
  283. end
  284. end
  285. end)
  286.  
  287. --//=================================\\
  288. --\\=================================//
  289.  
  290.  
  291.  
  292.  
  293.  
  294. --//=================================\\
  295. --|| SOME FUNCTIONS
  296. --\\=================================//
  297.  
  298. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  299. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  300. end
  301.  
  302. function PositiveAngle(NUMBER)
  303. if NUMBER >= 0 then
  304. NUMBER = 0
  305. end
  306. return NUMBER
  307. end
  308.  
  309. function NegativeAngle(NUMBER)
  310. if NUMBER <= 0 then
  311. NUMBER = 0
  312. end
  313. return NUMBER
  314. end
  315.  
  316. function Swait(NUMBER)
  317. if NUMBER == 0 or NUMBER == nil then
  318. ArtificialHB.Event:wait()
  319. else
  320. for i = 1, NUMBER do
  321. ArtificialHB.Event:wait()
  322. end
  323. end
  324. end
  325.  
  326. function QuaternionFromCFrame(cf)
  327. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  328. local trace = m00 + m11 + m22
  329. if trace > 0 then
  330. local s = math.sqrt(1 + trace)
  331. local recip = 0.5 / s
  332. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  333. else
  334. local i = 0
  335. if m11 > m00 then
  336. i = 1
  337. end
  338. if m22 > (i == 0 and m00 or m11) then
  339. i = 2
  340. end
  341. if i == 0 then
  342. local s = math.sqrt(m00 - m11 - m22 + 1)
  343. local recip = 0.5 / s
  344. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  345. elseif i == 1 then
  346. local s = math.sqrt(m11 - m22 - m00 + 1)
  347. local recip = 0.5 / s
  348. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  349. elseif i == 2 then
  350. local s = math.sqrt(m22 - m00 - m11 + 1)
  351. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  352. end
  353. end
  354. end
  355.  
  356. function MakeForm(PART,TYPE)
  357. if TYPE == "Cyl" then
  358. local MSH = IT("CylinderMesh",PART)
  359. elseif TYPE == "Ball" then
  360. local MSH = IT("SpecialMesh",PART)
  361. MSH.MeshType = "Sphere"
  362. elseif TYPE == "Wedge" then
  363. local MSH = IT("SpecialMesh",PART)
  364. MSH.MeshType = "Wedge"
  365. end
  366. end
  367.  
  368. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  369. local xs, ys, zs = x + x, y + y, z + z
  370. local wx, wy, wz = w * xs, w * ys, w * zs
  371. local xx = x * xs
  372. local xy = x * ys
  373. local xz = x * zs
  374. local yy = y * ys
  375. local yz = y * zs
  376. local zz = z * zs
  377. 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))
  378. end
  379.  
  380. function QuaternionSlerp(a, b, t)
  381. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  382. local startInterp, finishInterp;
  383. if cosTheta >= 0.0001 then
  384. if (1 - cosTheta) > 0.0001 then
  385. local theta = ACOS(cosTheta)
  386. local invSinTheta = 1 / SIN(theta)
  387. startInterp = SIN((1 - t) * theta) * invSinTheta
  388. finishInterp = SIN(t * theta) * invSinTheta
  389. else
  390. startInterp = 1 - t
  391. finishInterp = t
  392. end
  393. else
  394. if (1 + cosTheta) > 0.0001 then
  395. local theta = ACOS(-cosTheta)
  396. local invSinTheta = 1 / SIN(theta)
  397. startInterp = SIN((t - 1) * theta) * invSinTheta
  398. finishInterp = SIN(t * theta) * invSinTheta
  399. else
  400. startInterp = t - 1
  401. finishInterp = t
  402. end
  403. end
  404. 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
  405. end
  406.  
  407. function Clerp(a, b, t)
  408. local qa = {QuaternionFromCFrame(a)}
  409. local qb = {QuaternionFromCFrame(b)}
  410. local ax, ay, az = a.x, a.y, a.z
  411. local bx, by, bz = b.x, b.y, b.z
  412. local _t = 1 - t
  413. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  414. end
  415.  
  416. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  417. local frame = IT("Frame")
  418. frame.BackgroundTransparency = TRANSPARENCY
  419. frame.BorderSizePixel = BORDERSIZEPIXEL
  420. frame.Position = POSITION
  421. frame.Size = SIZE
  422. frame.BackgroundColor3 = COLOR
  423. frame.BorderColor3 = BORDERCOLOR
  424. frame.Name = NAME
  425. frame.Parent = PARENT
  426. return frame
  427. end
  428.  
  429. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  430. local label = IT("TextLabel")
  431. label.BackgroundTransparency = 1
  432. label.Size = UD2(1, 0, 1, 0)
  433. label.Position = UD2(0, 0, 0, 0)
  434. label.TextColor3 = TEXTCOLOR
  435. label.TextStrokeTransparency = STROKETRANSPARENCY
  436. label.TextTransparency = TRANSPARENCY
  437. label.FontSize = TEXTFONTSIZE
  438. label.Font = TEXTFONT
  439. label.BorderSizePixel = BORDERSIZEPIXEL
  440. label.TextScaled = false
  441. label.Text = TEXT
  442. label.Name = NAME
  443. label.Parent = PARENT
  444. return label
  445. end
  446.  
  447. function NoOutlines(PART)
  448. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  449. end
  450.  
  451.  
  452. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  453. local NEWWELD = IT(TYPE)
  454. NEWWELD.Part0 = PART0
  455. NEWWELD.Part1 = PART1
  456. NEWWELD.C0 = C0
  457. NEWWELD.C1 = C1
  458. NEWWELD.Parent = PARENT
  459. return NEWWELD
  460. end
  461.  
  462. function CreateSound(ID, PARENT, VOLUME, PITCH)
  463. local NEWSOUND = nil
  464. coroutine.resume(coroutine.create(function()
  465. NEWSOUND = IT("Sound", PARENT)
  466. NEWSOUND.Volume = VOLUME
  467. NEWSOUND.Pitch = PITCH
  468. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  469. Swait()
  470. NEWSOUND:play()
  471. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  472. end))
  473. return NEWSOUND
  474. end
  475.  
  476. function CFrameFromTopBack(at, top, back)
  477. local right = top:Cross(back)
  478. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  479. end
  480.  
  481. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  482. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  483. local mesh = IT("SpecialMesh",wave)
  484. mesh.MeshType = "FileMesh"
  485. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  486. mesh.Scale = VT(size,size,size)
  487. mesh.Offset = VT(0,0,-size/8)
  488. wave.CFrame = cframe
  489. coroutine.resume(coroutine.create(function(PART)
  490. for i = 1, waitt do
  491. Swait()
  492. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  493. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  494. if doesrotate == true then
  495. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  496. end
  497. wave.Transparency = wave.Transparency + (0.5/waitt)
  498. if wave.Transparency > 0.99 then
  499. wave:remove()
  500. end
  501. end
  502. end))
  503. end
  504.  
  505. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  506. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  507. local mesh = IT("SpecialMesh",wave)
  508. mesh.MeshType = "FileMesh"
  509. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  510. mesh.Scale = VT(size,size,size)
  511. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  512. coroutine.resume(coroutine.create(function(PART)
  513. for i = 1, waitt do
  514. Swait()
  515. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  516. if doesrotate == true then
  517. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  518. end
  519. wave.Transparency = wave.Transparency + (0.5/waitt)
  520. if wave.Transparency > 0.99 then
  521. wave:remove()
  522. end
  523. end
  524. end))
  525. end
  526.  
  527. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  528. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  529. local mesh = IT("SpecialMesh",wave)
  530. mesh.MeshType = "FileMesh"
  531. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  532. mesh.Scale = VT(size,size,size)
  533. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  534. coroutine.resume(coroutine.create(function(PART)
  535. for i = 1, waitt do
  536. Swait()
  537. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  538. if doesrotate == true then
  539. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  540. end
  541. wave.Transparency = wave.Transparency + (0.5/waitt)
  542. if wave.Transparency > 0.99 then
  543. wave:remove()
  544. end
  545. end
  546. end))
  547. end
  548.  
  549. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  550. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  551. local mesh = IT("SpecialMesh",wave)
  552. mesh.MeshType = "FileMesh"
  553. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  554. mesh.Scale = VT(size,size,size)
  555. mesh.Offset = VT(0,0,0)
  556. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  557. coroutine.resume(coroutine.create(function(PART)
  558. for i = 1, waitt do
  559. Swait()
  560. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  561. if doesrotate == true then
  562. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  563. end
  564. wave.Transparency = wave.Transparency + (0.5/waitt)
  565. if wave.Transparency > 0.99 then
  566. wave:remove()
  567. end
  568. end
  569. end))
  570. end
  571.  
  572. function MagicSphere(size,waitt,part,offset,color)
  573. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  574. local mesh = IT("SpecialMesh",wave)
  575. mesh.MeshType = "Sphere"
  576. mesh.Scale = VT(size,size,size)
  577. mesh.Offset = VT(0,0,0)
  578. wave.CFrame = part
  579. coroutine.resume(coroutine.create(function(PART)
  580. for i = 1, waitt do
  581. Swait()
  582. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  583. wave.Transparency = wave.Transparency + (1/waitt)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. local asd = Instance.new("ParticleEmitter")
  592. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  593. asd.LightEmission = .1
  594. asd.Size = NumberSequence.new(0.2)
  595. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  596. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  597. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  598. asd.Transparency = bbb
  599. asd.Size = aaa
  600. asd.ZOffset = .9
  601. asd.Acceleration = Vector3.new(0, -5, 0)
  602. asd.LockedToPart = false
  603. asd.EmissionDirection = "Back"
  604. asd.Lifetime = NumberRange.new(1, 2)
  605. asd.Rotation = NumberRange.new(-100, 100)
  606. asd.RotSpeed = NumberRange.new(-100, 100)
  607. asd.Speed = NumberRange.new(2)
  608. asd.Enabled = false
  609. asd.VelocitySpread = 10000
  610.  
  611. function getbloody(victim,amount)
  612. local prtcl = asd:Clone()
  613. prtcl.Parent = victim
  614. prtcl:Emit(amount)
  615. end
  616.  
  617. --//=================================\\
  618. --\\=================================//
  619.  
  620.  
  621. --//=================================\\
  622. --|| WEAPON CREATION
  623. --\\=================================//
  624.  
  625. if Player_Size ~= 1 then
  626. for _, v in pairs (Weapon:GetChildren()) do
  627. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  628. local p1 = v.Part1
  629. v.Part1 = nil
  630. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  631. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  632. v.Part1 = p1
  633. elseif v.ClassName == "Part" then
  634. for _, b in pairs (v:GetChildren()) do
  635. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  636. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  637. end
  638. end
  639. end
  640. end
  641. end
  642.  
  643. Weapon.Parent = Character
  644.  
  645. Humanoid.Died:connect(function()
  646. ATTACK = true
  647. end)
  648.  
  649. print(Class_Name.." loaded.")
  650.  
  651. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  652. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  653. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  654. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  655. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  656.  
  657. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Flying slash ["..ATTACK1COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 1")
  658. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Moxie wheel ["..ATTACK2COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 2")
  659. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Gigastun strobe ["..ATTACK3COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 3")
  660. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Moxie impaler ["..ATTACK4COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 4")
  661. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "MOXIE: "..MOXIE, SKILLTEXTCOLOR, 10, "Code", 0, 2, 1, "Text 5")
  662.  
  663. local HandlePart = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Handle", VT(0.25*Player_Size,3*Player_Size,0.25*Player_Size),false)
  664. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  665. MakeForm(HandlePart,"Cyl")
  666. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Handle", VT(0.5*Player_Size,0.5*Player_Size,0.5*Player_Size),false)
  667. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, 1.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  668. MakeForm(part,"Ball")
  669. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,0.8*Player_Size,0.8*Player_Size),false)
  670. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, -1.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  671. MakeForm(part,"Ball")
  672. local part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Pearl", "Handle", VT(1*Player_Size,1*Player_Size,1*Player_Size),false)
  673. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, -1.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  674. MakeForm(part,"Ball")
  675. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
  676. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(1.7 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
  677. MakeForm(part,"Wedge")
  678. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
  679. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-1.7 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
  680. MakeForm(part,"Wedge")
  681. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
  682. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-0.4 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-90)), CF(0, 0, 0))
  683. MakeForm(part,"Wedge")
  684. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
  685. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0.4 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)), CF(0, 0, 0))
  686. MakeForm(part,"Wedge")
  687. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,3*Player_Size),false)
  688. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(1.2 * Player_Size, -4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
  689. MakeForm(part,"Wedge")
  690. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,3*Player_Size),false)
  691. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-1.2 * Player_Size, -4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
  692. MakeForm(part,"Wedge")
  693. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,10*Player_Size),false)
  694. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0.5 * Player_Size, -8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
  695. MakeForm(part,"Wedge")
  696. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,10*Player_Size),false)
  697. local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-0.5 * Player_Size, -8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
  698. MakeForm(part,"Wedge")
  699.  
  700. local hitbox = CreatePart(3, Weapon, "Marble", 0, 1, "Pearl", "Hitbox", VT(3.5*Player_Size,10*Player_Size,0.15*Player_Size),false)
  701. local weld = CreateWeldOrSnapOrMotor("Weld", hitbox, HandlePart, hitbox, CF(0 * Player_Size, -7 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  702.  
  703. local tip = CreatePart(3, Weapon, "Marble", 0, 1, "Pearl", "Blade tip", VT(0.15*Player_Size,0.15*Player_Size,0.15*Player_Size),false)
  704. local weld = CreateWeldOrSnapOrMotor("Weld", tip, HandlePart, tip, CF(0 * Player_Size, -13 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  705.  
  706. local A = IT("Attachment",hitbox)
  707. A.Position = VT(0.004, -5.8, -0.008)
  708. local B = IT("Attachment",hitbox)
  709. B.Position = VT(0.004, 5.8, -0.008)
  710. local Trail = IT("Trail",hitbox)
  711. Trail.Attachment0 = A
  712. Trail.Attachment1 = B
  713. Trail.Lifetime = 0.2
  714. Trail.Transparency = NumberSequence.new(0, 1)
  715. Trail.Enabled = false
  716.  
  717. for _, c in pairs(Weapon:GetChildren()) do
  718. if c.ClassName == "Part" then
  719. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  720. end
  721. end
  722.  
  723. --//=================================\\
  724. --|| DAMAGE FUNCTIONS
  725. --\\=================================//
  726.  
  727. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  728. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  729. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  730. local BODYGYRO = IT("BodyGyro", STATPART)
  731. local BODYPOSITION = IT("BodyPosition", STATPART)
  732. BODYPOSITION.P = 2000
  733. BODYPOSITION.D = 100
  734. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  735. if LABELTYPE == "Normal" then
  736. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  737. elseif LABELTYPE == "Debuff" then
  738. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  739. elseif LABELTYPE == "Interruption" then
  740. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  741. end
  742. game:GetService("Debris"):AddItem(STATPART ,5)
  743. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  744. BILLBOARDGUI.Adornee = STATPART
  745. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  746. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  747. BILLBOARDGUI.AlwaysOnTop = false
  748. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  749. TEXTLABEL.BackgroundTransparency = 1
  750. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  751. TEXTLABEL.Text = TEXT
  752. TEXTLABEL.Font = "SciFi"
  753. TEXTLABEL.FontSize="Size42"
  754. TEXTLABEL.TextColor3 = COLOR
  755. TEXTLABEL.TextStrokeTransparency = 1
  756. TEXTLABEL.TextScaled = true
  757. TEXTLABEL.TextWrapped = true
  758. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  759. wait(0.2)
  760. for i=1, 5 do
  761. wait()
  762. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  763. end
  764. wait(1.2)
  765. for i=1, 5 do
  766. wait()
  767. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  768. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  769. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  770. end
  771. THEPART.Parent = nil
  772. end),STATPART, BODYPOSITION, TEXTLABEL)
  773. end
  774.  
  775.  
  776. --//=================================\\
  777. --|| DAMAGING
  778. --\\=================================//
  779.  
  780. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier,frames)
  781. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  782. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  783. local dmg = math.random(min,max)
  784. if humanoid.Health > 0 then
  785. if beserk == true then
  786. humanoid.Health = 0
  787. else
  788. CreateSound("201858024", hit, 1.2, MRANDOM(7, 12) / 10)
  789. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  790. if math.random(1,100) < critrate+1 then
  791. humanoid.Health = humanoid.Health - dmg*critmultiplier
  792. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  793. MOXIE = MOXIE + dmg*critmultiplier
  794. else
  795. humanoid.Health = humanoid.Health - dmg
  796. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  797. MOXIE = MOXIE + dmg
  798. end
  799. local defence = Instance.new("BoolValue",hit.Parent)
  800. defence.Name = ("HitBy"..Player.Name)
  801. game:GetService("Debris"):AddItem(defence, frames)
  802. end
  803. end
  804. end
  805. end
  806.  
  807. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  808. local dmg = math.random(min,max)
  809. for i,v in ipairs(workspace:GetChildren()) do
  810. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  811. local body = v:GetChildren()
  812. for part = 1, #body do
  813. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  814. if(body[part].Position - position).Magnitude < radius then
  815. if v.ClassName == "Model" then
  816. if v:FindFirstChild("Humanoid") then
  817. if v.Humanoid.Health ~= 0 then
  818. if CanBeDodgedByJumping == true then
  819. if body[part].Position.Y < position.Y+5 then
  820. if math.random(1,100) < critrate+1 then
  821. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  822. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  823. MOXIE = MOXIE + dmg*critmultiplier
  824. else
  825. v.Humanoid.Health = v.Humanoid.Health - dmg
  826. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  827. MOXIE = MOXIE + dmg
  828. end
  829. local defence = Instance.new("BoolValue",v)
  830. defence.Name = ("HitBy"..Player.Name)
  831. game:GetService("Debris"):AddItem(defence, 0.5)
  832. end
  833. else
  834. if beserk == true then
  835. v.Humanoid.Health = 0
  836. end
  837. if math.random(1,100) < critrate+1 then
  838. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  839. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  840. MOXIE = MOXIE + dmg*critmultiplier
  841. else
  842. v.Humanoid.Health = v.Humanoid.Health - dmg
  843. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  844. MOXIE = MOXIE + dmg
  845. end
  846. local defence = Instance.new("BoolValue",v)
  847. defence.Name = ("HitBy"..Player.Name)
  848. game:GetService("Debris"):AddItem(defence, 0.5)
  849. end
  850. end
  851. end
  852. end
  853. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  854. end
  855. end
  856. end
  857. if v.ClassName == "Part" then
  858. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  859. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  860. end
  861. end
  862. end
  863. end
  864. end
  865.  
  866. function AoEStun(position,radius)
  867. for i,v in ipairs(workspace:GetChildren()) do
  868. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  869. local body = v:GetChildren()
  870. for part = 1, #body do
  871. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  872. if(body[part].Position - position).Magnitude < radius then
  873. if v.ClassName == "Model" then
  874. if v:FindFirstChild("Humanoid") then
  875. if v.Humanoid.Health ~= 0 then
  876. Stun(v.Humanoid)
  877. local defence = Instance.new("BoolValue",v)
  878. defence.Name = ("StunnedBy"..Player.Name)
  879. game:GetService("Debris"):AddItem(defence, 0.1)
  880. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "Stunned!", C3(0, 0, 0))
  881. end
  882. end
  883. end
  884. end
  885. end
  886. end
  887. end
  888. end
  889. end
  890.  
  891. function AoEImpale(position,radius)
  892. for i,v in ipairs(workspace:GetChildren()) do
  893. if v:FindFirstChild("StabbedBy"..Player.Name) == nil then
  894. local body = v:GetChildren()
  895. for part = 1, #body do
  896. if(v:FindFirstChild("StabbedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  897. if(body[part].Position - position).Magnitude < radius then
  898. if v.ClassName == "Model" then
  899. if v:FindFirstChild("Humanoid") then
  900. if v.Humanoid.Health ~= 0 then
  901. v.Torso.CFrame = CF(v.Torso.Position,tip.Position)
  902. v.Torso.Anchored = true
  903. local defence = Instance.new("BoolValue",v)
  904. defence.Name = ("StabbedBy"..Player.Name)
  905. end
  906. end
  907. end
  908. end
  909. end
  910. end
  911. end
  912. end
  913. end
  914.  
  915. function ImpaleFinnish()
  916. for i,v in ipairs(workspace:GetChildren()) do
  917. if v:FindFirstChild("StabbedBy"..Player.Name) then
  918. v:BreakJoints()
  919. if v:FindFirstChild("Head") then
  920. StatLabel("Normal", v.Head.CFrame * CF(0, 0 + (v.Head.Size.z - 1), 0), "Impaled!", C3(0, 0, 0))
  921. end
  922. local def = v:FindFirstChild("StabbedBy"..Player.Name)
  923. def:remove()
  924. local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  925. if tors then
  926. local Heart = IT("Part",v)
  927. MakeForm(Heart,"Ball")
  928. Heart.Material = "Pebble"
  929. Heart.Color = C3(1,0.5,0.5)
  930. Heart.CanCollide = true
  931. Heart.Size = VT(0.5,1,0.5)
  932. Heart.CFrame = tors.CFrame * CF(-0.3,0.2,-1)
  933. getbloody(Heart,35)
  934. CreateSound("264486467", Heart, 5, MRANDOM(7, 12) / 10)
  935. end
  936. end
  937. end
  938. end
  939.  
  940. function Stun(HUMANOID)
  941. HUMANOID.PlatformStand = true
  942. coroutine.resume(coroutine.create(function()
  943. Swait(500)
  944. HUMANOID.PlatformStand = false
  945. end))
  946. end
  947.  
  948. function killnearest(position,range,maxstrength)
  949. for i,v in ipairs(workspace:GetChildren()) do
  950. local body = v:GetChildren()
  951. for part = 1, #body do
  952. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  953. if(body[part].Position - position).Magnitude < range then
  954. if v.ClassName == "Model" then
  955. v:BreakJoints()
  956. end
  957. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  958. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  959. end
  960. end
  961. end
  962. if v.ClassName == "Part" then
  963. if v.Anchored == false and (v.Position - position).Magnitude < range then
  964. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  965. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  966. end
  967. end
  968. end
  969. end
  970.  
  971. --//=================================\\
  972. --|| ATTACK FUNCTIONS AND STUFF
  973. --\\=================================//
  974.  
  975. function AttackTemplate()
  976. ATTACK = true
  977. for i=0, 1.5, 0.1 / Animation_Speed do
  978. Swait()
  979. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  980. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  981. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  982. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  983. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  984. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  985. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  986. end
  987. ATTACK = false
  988. end
  989.  
  990. function Attack1()
  991. ATTACK = true
  992. Trail.Enabled = true
  993. local paw = hitbox.Touched:Connect(function(hit)
  994. dealdamage(hit,20,25,5,false,7,2,0.5)
  995. end)
  996. local bv = Instance.new("BodyVelocity")
  997. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  998. bv.velocity = RootPart.CFrame.lookVector * 50
  999. bv.Parent = Torso
  1000. bv.Name = "DASH"
  1001. ATTACK = false
  1002. Rooted = false
  1003. game:GetService("Debris"):AddItem(bv, 0.05)
  1004. CreateSound("1112042117", hitbox, 2, MRANDOM(7, 12) / 10)
  1005. for i=0, 6, 0.1 / Animation_Speed2 do
  1006. Swait()
  1007. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
  1008. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1011. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  1012. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1013. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
  1014. end
  1015. Trail.Enabled = false
  1016. ATTACK = false
  1017. paw:disconnect()
  1018. end
  1019.  
  1020. function Attack2()
  1021. ATTACK = true
  1022. Rooted = true
  1023. local bv = Instance.new("BodyVelocity")
  1024. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1025. bv.velocity = RootPart.CFrame.lookVector * 50
  1026. bv.Parent = Torso
  1027. bv.Name = "DASH"
  1028. ATTACK = false
  1029. Rooted = false
  1030. game:GetService("Debris"):AddItem(bv, 0.05)
  1031. local paw = hitbox.Touched:Connect(function(hit)
  1032. dealdamage(hit,25,35,5,false,7,2,0.5)
  1033. end)
  1034. Trail.Enabled = true
  1035. CreateSound("134012322", hitbox, 2, MRANDOM(7, 12) / 10)
  1036. for i=0, 1.3, 0.1 / Animation_Speed3 do
  1037. Swait()
  1038. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.15 / Animation_Speed3)
  1039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
  1040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1042. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1044. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1045. end
  1046. for i=0, 1.3, 0.1 / Animation_Speed3 do
  1047. Swait()
  1048. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(280)), 0.15 / Animation_Speed3)
  1049. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
  1050. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1051. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1052. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1053. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1054. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1055. end
  1056. for i=0, 1.3, 0.1 / Animation_Speed3 do
  1057. Swait()
  1058. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(40)), 0.15 / Animation_Speed3)
  1059. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
  1060. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1061. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1062. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1063. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1064. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1065. end
  1066. for i=0, 2, 0.1 / Animation_Speed3 do
  1067. Swait()
  1068. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed3)
  1069. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
  1070. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1071. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1072. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1073. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1074. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1075. end
  1076. Trail.Enabled = false
  1077. paw:disconnect()
  1078. for i=0, 1, 0.1 / Animation_Speed do
  1079. Swait()
  1080. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  1081. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  1082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1083. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1084. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1085. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1086. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1087. end
  1088. Rooted = false
  1089. ATTACK = false
  1090. end
  1091.  
  1092. function FlyingSlash()
  1093. ATTACK = true
  1094. for i=0, 8, 0.1 / Animation_Speed2 do
  1095. Swait()
  1096. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(30)), 0.15 / Animation_Speed2)
  1097. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-20)), 0.15 / Animation_Speed2)
  1098. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1099. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1100. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  1101. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1102. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
  1103. end
  1104. Rooted = true
  1105. Trail.Enabled = true
  1106. local sphere = Instance.new("Part",Effects)
  1107. sphere.Size = Vector3.new(15,1,1)
  1108. sphere.Material = "Neon"
  1109. sphere.Name = "Energy swipe"
  1110. sphere.BrickColor = BrickColor.new("Gold")
  1111. sphere.CFrame = RootPart.CFrame * CF(0,0.6,0)
  1112. sphere.CanCollide = false
  1113. local mesh = Instance.new("SpecialMesh",sphere)
  1114. mesh.MeshType = "Sphere"
  1115. local bv = Instance.new("BodyVelocity")
  1116. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1117. bv.velocity = RootPart.CFrame.lookVector*150
  1118. bv.Parent = sphere
  1119. bv.Name = "DASH"
  1120. table.insert(Effects2,{sphere,"Disappear",0.02,2,2,2,2})
  1121. local paw = sphere.Touched:Connect(function(hit)
  1122. dealdamage(hit,15,25,5,false,7,2,0.5)
  1123. end)
  1124. local bv = Instance.new("BodyVelocity")
  1125. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1126. bv.velocity = RootPart.CFrame.lookVector * -50
  1127. bv.Parent = Torso
  1128. bv.Name = "DASH"
  1129. ATTACK = false
  1130. Rooted = false
  1131. game:GetService("Debris"):AddItem(bv, 0.05)
  1132. CreateSound("615910787", sphere, 5, MRANDOM(7, 12) / 10)
  1133. for i=0, 4, 0.1 / Animation_Speed3 do
  1134. Swait()
  1135. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
  1136. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(70)), 0.15 / Animation_Speed3)
  1137. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1138. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1139. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1140. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1141. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1142. end
  1143. Trail.Enabled = false
  1144. Swait(50)
  1145. Rooted = false
  1146. ATTACK = false
  1147. end
  1148.  
  1149. function MoxieWheel()
  1150. ATTACK = true
  1151. for i=0, 1, 0.1 / Animation_Speed2 do
  1152. Swait()
  1153. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 10 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1154. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1155. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1156. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1157. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  1158. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1159. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(120), RAD(-35)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
  1160. end
  1161. Speed = 75
  1162. local paw = hitbox.Touched:Connect(function(hit)
  1163. dealdamage(hit,25,35,5,false,7,2,0.05)
  1164. end)
  1165. local loop = IT("Sound",hitbox)
  1166. loop.Looped = true
  1167. loop.SoundId = "http://www.roblox.com/asset/?id=120745021"
  1168. loop:Play()
  1169. loop.Volume = 6
  1170. Trail.Enabled = true
  1171. local TOR = 0
  1172. for i = 1, 55 do
  1173. TOR = TOR + 80
  1174. for i=0, 0.6, 0.1 / Animation_Speed3 do
  1175. Swait()
  1176. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 10 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(TOR), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1177. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1178. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1179. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1180. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1181. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1182. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(120), RAD(-35)), 0.15 / Animation_Speed3)
  1183. end
  1184. end
  1185. loop:Stop()
  1186. loop:remove()
  1187. Rooted = true
  1188. paw:disconnect()
  1189. for i=0, 1.5, 0.1 / Animation_Speed3 do
  1190. Swait()
  1191. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed3)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed3)
  1193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1195. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1196. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1197. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1198. end
  1199. Speed = 16
  1200. Rooted = false
  1201. Trail.Enabled = false
  1202. ATTACK = false
  1203. end
  1204.  
  1205. function GigastunStrobe()
  1206. ATTACK = true
  1207. for i=0, 1.5, 0.1 / Animation_Speed do
  1208. Swait()
  1209. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1210. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1211. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1212. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1213. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1214. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1215. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1216. end
  1217. for i = 1, 5 do
  1218. CreateSound("1225795161", tip, 5, MRANDOM(7, 12) / 10)
  1219. MagicSphere(10,15,tip.CFrame,0,"Cyan")
  1220. MagicSphere(5,20,tip.CFrame,0,"Gold")
  1221. Swait(25)
  1222. end
  1223. CreateSound("160740144", tip, 5, MRANDOM(7, 12) / 10)
  1224. MagicSphere(0.25,55,tip.CFrame,0,"Cyan")
  1225. MagicSphere(0.2,55,tip.CFrame,0,"Gold")
  1226. CreateRing(0,1.5,true,0.2,55,tip,0,-0.2,0.2,"Cyan")
  1227. CreateRing(0,3,true,-0.2,55,tip,0,0.2,-0.2,"Cyan")
  1228. CreateRing(0,1.5,true,-0.2,55,tip,0,0.2,-0.2,"Gold")
  1229. CreateRing(0,3,true,0.2,55,tip,0,-0.2,0.2,"Gold")
  1230. MagicSphere(5.5,55,tip.CFrame,0,"Cyan")
  1231. MagicSphere(5,55,tip.CFrame,0,"Gold")
  1232. AoEStun(RootPart.Position,35)
  1233. Swait(50)
  1234. ATTACK = false
  1235. end
  1236.  
  1237. function MoxieImpaler()
  1238. ATTACK = true
  1239. for i=0, 4, 0.1 / Animation_Speed do
  1240. Swait()
  1241. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 / Animation_Speed)
  1242. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.15 / Animation_Speed)
  1243. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1244. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1245. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1246. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1247. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1248. end
  1249. Rooted = true
  1250. for i=0, 1, 0.1 / Animation_Speed2 do
  1251. Swait()
  1252. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
  1253. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
  1254. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(160)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1255. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1256. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  1257. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1258. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
  1259. end
  1260. CreateSound("444667859", tip, 10, MRANDOM(7, 12) / 10)
  1261. local offset = 0
  1262. local size = 5
  1263. for i = 1, 20 do
  1264. CreateWave(0,size,true,0.05,25,tip.CFrame * CF(0,-offset,0),"Cyan")
  1265. MagicSphere(size/2,25,tip.CFrame * CF(0,-offset,0),0,"Cyan")
  1266. size = size - 0.25
  1267. offset = offset + 5
  1268. AoEImpale(tip.CFrame * CF(0,-offset,0).p,size*3)
  1269. end
  1270. for i=0, 8, 0.1 / Animation_Speed2 do
  1271. Swait()
  1272. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
  1273. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
  1274. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(160)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1275. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1276. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  1277. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1278. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
  1279. end
  1280. ImpaleFinnish()
  1281. for i=0, 4, 0.1 / Animation_Speed3 do
  1282. Swait()
  1283. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 / Animation_Speed3)
  1284. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.15 / Animation_Speed3)
  1285. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
  1286. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
  1287. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
  1288. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
  1289. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
  1290. end
  1291. Rooted = false
  1292. ATTACK = false
  1293. end
  1294.  
  1295. --//=================================\\
  1296. --|| ASSIGN THINGS TO KEYS
  1297. --\\=================================//
  1298.  
  1299. Humanoid.Changed:connect(function(Jump)
  1300. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1301. Humanoid.Jump = false
  1302. end
  1303. end)
  1304.  
  1305. function MouseDown(Mouse)
  1306. if ATTACK == false then
  1307. if COMBO == 1 then
  1308. COMBO = nil
  1309. Attack1()
  1310. COMBO = 2
  1311. elseif COMBO == 2 then
  1312. COMBO = nil
  1313. Attack2()
  1314. COMBO = 1
  1315. end
  1316. end
  1317. end
  1318.  
  1319. function MouseUp(Mouse)
  1320. HOLD = false
  1321. end
  1322.  
  1323. function KeyDown(Key)
  1324. if Key == "z" and MOXIE >= ATTACK1COST and ATTACK == false then
  1325. MOXIE = MOXIE - ATTACK1COST
  1326. FlyingSlash()
  1327. end
  1328.  
  1329. if Key == "b" and MOXIE >= ATTACK2COST and ATTACK == false then
  1330. MOXIE = MOXIE - ATTACK2COST
  1331. MoxieWheel()
  1332. end
  1333.  
  1334. if Key == "c" and MOXIE >= ATTACK3COST and ATTACK == false then
  1335. MOXIE = MOXIE - ATTACK3COST
  1336. GigastunStrobe()
  1337. end
  1338.  
  1339. if Key == "v" and MOXIE >= ATTACK4COST and ATTACK == false then
  1340. MOXIE = MOXIE - ATTACK4COST
  1341. MoxieImpaler()
  1342. end
  1343. end
  1344.  
  1345. function KeyUp(Key)
  1346. end
  1347.  
  1348. Mouse.Button1Down:connect(function(NEWKEY)
  1349. MouseDown(NEWKEY)
  1350. end)
  1351. Mouse.Button1Up:connect(function(NEWKEY)
  1352. MouseUp(NEWKEY)
  1353. end)
  1354. Mouse.KeyDown:connect(function(NEWKEY)
  1355. KeyDown(NEWKEY)
  1356. end)
  1357. Mouse.KeyUp:connect(function(NEWKEY)
  1358. KeyUp(NEWKEY)
  1359. end)
  1360.  
  1361. --//=================================\\
  1362. --\\=================================//
  1363.  
  1364.  
  1365. function unanchor()
  1366. if UNANCHOR == true then
  1367. g = Character:GetChildren()
  1368. for i = 1, #g do
  1369. if g[i].ClassName == "Part" then
  1370. g[i].Anchored = false
  1371. end
  1372. end
  1373. end
  1374. end
  1375.  
  1376.  
  1377. --//=================================\\
  1378. --|| WRAP THE WHOLE SCRIPT UP
  1379. --\\=================================//
  1380.  
  1381. Humanoid.Changed:connect(function(Jump)
  1382. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1383. Humanoid.Jump = false
  1384. end
  1385. end)
  1386.  
  1387. ANIMATE.Parent = nil
  1388. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1389. IDLEANIMATION:Play()
  1390.  
  1391. while true do
  1392. Swait()
  1393. SINE = SINE + CHANGE
  1394. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1395. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1396. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1397. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1398. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1399. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1400. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1401. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1402. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1403. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1404. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1405. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1406. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1407. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1408. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1409. end
  1410. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1411. ANIM = "Jump"
  1412. if ATTACK == false then
  1413. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  1414. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  1415. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1416. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1417. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1418. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1419. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1420. end
  1421. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1422. ANIM = "Fall"
  1423. if ATTACK == false then
  1424. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  1425. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  1426. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1427. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1428. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1429. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1430. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1431. end
  1432. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1433. ANIM = "Idle"
  1434. if ATTACK == false then
  1435. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  1436. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  1437. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1438. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1439. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1440. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1441. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1442. end
  1443. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1444. ANIM = "Walk"
  1445. WALK = WALK + 1 / Animation_Speed
  1446. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1447. WALK = 0
  1448. if WALKINGANIM == true then
  1449. WALKINGANIM = false
  1450. elseif WALKINGANIM == false then
  1451. WALKINGANIM = true
  1452. end
  1453. end
  1454. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1455. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1456. if ATTACK == false then
  1457. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
  1458. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
  1459. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1460. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1461. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1462. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1463. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1464. end
  1465. end
  1466. if #Effects2>0 then
  1467. for e=1,#Effects2 do
  1468. if Effects2[e]~=nil then
  1469. local Thing=Effects2[e]
  1470. if Thing~=nil then
  1471. local Part=Thing[1]
  1472. local Mode=Thing[2]
  1473. local Delay=Thing[3]
  1474. local IncX=Thing[4]
  1475. local IncY=Thing[5]
  1476. local IncZ=Thing[6]
  1477. local Part2=Thing[8]
  1478. if Thing[1].Transparency<=1 then
  1479. if Thing[2]=="Block1" then
  1480. Thing[1].CFrame=Thing[1].CFrame
  1481. Mesh=Thing[1].Mesh
  1482. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1483. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1484. elseif Thing[2]=="Cylinder" then
  1485. Mesh=Thing[1].Mesh
  1486. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1487. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1488. elseif Thing[2]=="Blood" then
  1489. Mesh=Thing[7]
  1490. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1491. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1492. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1493. elseif Thing[2]=="Elec" then
  1494. Mesh=Thing[1].Mesh
  1495. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1496. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1497. elseif Thing[2]=="Disappear" then
  1498. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1499. end
  1500. else
  1501. Part.Parent=nil
  1502. table.remove(Effects2,e)
  1503. end
  1504. end
  1505. end
  1506. end
  1507. end
  1508. unanchor()
  1509. Humanoid.MaxHealth = "inf"
  1510. Humanoid.Health = "inf"
  1511. if Rooted == false then
  1512. Disable_Jump = false
  1513. Humanoid.WalkSpeed = Speed
  1514. elseif Rooted == true then
  1515. Disable_Jump = true
  1516. Humanoid.WalkSpeed = 0
  1517. end
  1518. SKILL5TEXT.Text = "MOXIE: "..MOXIE
  1519. end
  1520.  
  1521. --//=================================\\
  1522. --\\=================================//
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528. --//====================================================\\--
  1529. --|| END OF SCRIPT
  1530. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement