Advertisement
Unspecifi_ed

Untitled

Feb 26th, 2018
1,884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 114.60 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. --8th mode added by delta1035. Had to reuse moves, lol
  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://196739738"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 2
  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, ANCHOR)
  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 ANCHOR == 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. --|| CUSTOMIZATION
  95. --\\=================================//
  96.  
  97. Class_Name = "Template"
  98. Weapon_Name = "Add-ons"
  99.  
  100. Custom_Colors = {
  101. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  102. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  103.  
  104. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  105. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  106. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  107. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  108. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  109.  
  110. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  111. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  112. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  113. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  114. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  115. }
  116.  
  117.  
  118. Player_Size = 1 --Size of the player.
  119. Animation_Speed = 3
  120. Animation_Speed2 = 1
  121. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  122.  
  123. local Speed = 16
  124. local Effects2 = {}
  125.  
  126. --//=================================\\
  127. --|| END OF CUSTOMIZATION
  128. --\\=================================//
  129.  
  130. local function weldBetween(a, b)
  131. local weldd = Instance.new("ManualWeld")
  132. weldd.Part0 = a
  133. weldd.Part1 = b
  134. weldd.C0 = CFrame.new()
  135. weldd.C1 = b.CFrame:inverse() * a.CFrame
  136. weldd.Parent = a
  137. return weldd
  138. end
  139.  
  140. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  141. local acs = Instance.new("Part")
  142. acs.CanCollide = false
  143. acs.Anchored = false
  144. acs.Size = Vector3.new(0,0,0)
  145. acs.CFrame = attachmentpart.CFrame
  146. acs.Parent = Character
  147. acs.BrickColor = color
  148. local meshs = Instance.new("SpecialMesh")
  149. meshs.MeshId = mesh
  150. meshs.TextureId = texture
  151. meshs.Parent = acs
  152. meshs.Scale = scale
  153. meshs.Offset = offset
  154. weldBetween(attachmentpart,acs)
  155. end
  156.  
  157. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  158. if TYPE == "Gem" then
  159. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  160. acs.Anchored = false
  161. acs.CanCollide = false
  162. acs.CFrame = PART.CFrame
  163. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  164. weldBetween(PART,acs)
  165. elseif TYPE == "Skull" then
  166. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  167. acs.Anchored = false
  168. acs.CanCollide = false
  169. acs.CFrame = PART.CFrame
  170. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  171. weldBetween(PART,acs)
  172. elseif TYPE == "Eye" then
  173. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  174. acs.Anchored = false
  175. acs.CanCollide = false
  176. acs.CFrame = PART.CFrame
  177. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  178. weldBetween(PART,acs)
  179. end
  180. end
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  187. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  188. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  189. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  190. local CHANGEDEFENSE = 0
  191. local CHANGEDAMAGE = 0
  192. local CHANGEMOVEMENT = 0
  193. local ANIM = "Idle"
  194. local ATTACK = false
  195. local EQUIPPED = false
  196. local HOLD = false
  197. local COMBO = 1
  198. local Rooted = false
  199. local SINE = 0
  200. local KEYHOLD = false
  201. local CHANGE = 2 / Animation_Speed
  202. local WALKINGANIM = false
  203. local WALK = 0
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "Weapon GUI"
  212. local Weapon = IT("Model")
  213. Weapon.Name = Weapon_Name
  214. local Effects = IT("Folder", Weapon)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  219. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  220. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  221. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  222. local CASTSOUNDS = {"1369158","2974000","2974249"}
  223. local BOLTSOUNDS = {"821439273","224339201","168586586"}
  224. local TORNADOSOUND = "362395087"
  225. local UNANCHOR = true
  226.  
  227. local SKILLTEXTCOLOR = C3(0,0,0)
  228.  
  229. --//=================================\\
  230. --\\=================================//
  231.  
  232.  
  233. --//=================================\\
  234. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  235. --\\=================================//
  236.  
  237. ArtificialHB = Instance.new("BindableEvent", script)
  238. ArtificialHB.Name = "ArtificialHB"
  239.  
  240. script:WaitForChild("ArtificialHB")
  241.  
  242. frame = Frame_Speed
  243. tf = 0
  244. allowframeloss = false
  245. tossremainder = false
  246. lastframe = tick()
  247. script.ArtificialHB:Fire()
  248.  
  249. game:GetService("RunService").Heartbeat:connect(function(s, p)
  250. tf = tf + s
  251. if tf >= frame then
  252. if allowframeloss then
  253. script.ArtificialHB:Fire()
  254. lastframe = tick()
  255. else
  256. for i = 1, math.floor(tf / frame) do
  257. script.ArtificialHB:Fire()
  258. end
  259. lastframe = tick()
  260. end
  261. if tossremainder then
  262. tf = 0
  263. else
  264. tf = tf - frame * math.floor(tf / frame)
  265. end
  266. end
  267. end)
  268.  
  269. --//=================================\\
  270. --\\=================================//
  271.  
  272.  
  273.  
  274.  
  275.  
  276. --//=================================\\
  277. --|| SOME FUNCTIONS
  278. --\\=================================//
  279.  
  280. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  281. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  282. end
  283.  
  284. function PositiveAngle(NUMBER)
  285. if NUMBER >= 0 then
  286. NUMBER = 0
  287. end
  288. return NUMBER
  289. end
  290.  
  291. function NegativeAngle(NUMBER)
  292. if NUMBER <= 0 then
  293. NUMBER = 0
  294. end
  295. return NUMBER
  296. end
  297.  
  298. function Swait(NUMBER)
  299. if NUMBER == 0 or NUMBER == nil then
  300. ArtificialHB.Event:wait()
  301. else
  302. for i = 1, NUMBER do
  303. ArtificialHB.Event:wait()
  304. end
  305. end
  306. end
  307.  
  308. function QuaternionFromCFrame(cf)
  309. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  310. local trace = m00 + m11 + m22
  311. if trace > 0 then
  312. local s = math.sqrt(1 + trace)
  313. local recip = 0.5 / s
  314. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  315. else
  316. local i = 0
  317. if m11 > m00 then
  318. i = 1
  319. end
  320. if m22 > (i == 0 and m00 or m11) then
  321. i = 2
  322. end
  323. if i == 0 then
  324. local s = math.sqrt(m00 - m11 - m22 + 1)
  325. local recip = 0.5 / s
  326. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  327. elseif i == 1 then
  328. local s = math.sqrt(m11 - m22 - m00 + 1)
  329. local recip = 0.5 / s
  330. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  331. elseif i == 2 then
  332. local s = math.sqrt(m22 - m00 - m11 + 1)
  333. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  334. end
  335. end
  336. end
  337.  
  338. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  339. local xs, ys, zs = x + x, y + y, z + z
  340. local wx, wy, wz = w * xs, w * ys, w * zs
  341. local xx = x * xs
  342. local xy = x * ys
  343. local xz = x * zs
  344. local yy = y * ys
  345. local yz = y * zs
  346. local zz = z * zs
  347. 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))
  348. end
  349.  
  350. function QuaternionSlerp(a, b, t)
  351. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  352. local startInterp, finishInterp;
  353. if cosTheta >= 0.0001 then
  354. if (1 - cosTheta) > 0.0001 then
  355. local theta = ACOS(cosTheta)
  356. local invSinTheta = 1 / SIN(theta)
  357. startInterp = SIN((1 - t) * theta) * invSinTheta
  358. finishInterp = SIN(t * theta) * invSinTheta
  359. else
  360. startInterp = 1 - t
  361. finishInterp = t
  362. end
  363. else
  364. if (1 + cosTheta) > 0.0001 then
  365. local theta = ACOS(-cosTheta)
  366. local invSinTheta = 1 / SIN(theta)
  367. startInterp = SIN((t - 1) * theta) * invSinTheta
  368. finishInterp = SIN(t * theta) * invSinTheta
  369. else
  370. startInterp = t - 1
  371. finishInterp = t
  372. end
  373. end
  374. 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
  375. end
  376.  
  377. function Clerp(a, b, t)
  378. local qa = {QuaternionFromCFrame(a)}
  379. local qb = {QuaternionFromCFrame(b)}
  380. local ax, ay, az = a.x, a.y, a.z
  381. local bx, by, bz = b.x, b.y, b.z
  382. local _t = 1 - t
  383. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  384. end
  385.  
  386. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  387. local frame = IT("Frame")
  388. frame.BackgroundTransparency = TRANSPARENCY
  389. frame.BorderSizePixel = BORDERSIZEPIXEL
  390. frame.Position = POSITION
  391. frame.Size = SIZE
  392. frame.BackgroundColor3 = COLOR
  393. frame.BorderColor3 = BORDERCOLOR
  394. frame.Name = NAME
  395. frame.Parent = PARENT
  396. return frame
  397. end
  398.  
  399. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  400. local label = IT("TextLabel")
  401. label.BackgroundTransparency = 1
  402. label.Size = UD2(1, 0, 1, 0)
  403. label.Position = UD2(0, 0, 0, 0)
  404. label.TextColor3 = TEXTCOLOR
  405. label.TextStrokeTransparency = STROKETRANSPARENCY
  406. label.TextTransparency = TRANSPARENCY
  407. label.FontSize = TEXTFONTSIZE
  408. label.Font = TEXTFONT
  409. label.BorderSizePixel = BORDERSIZEPIXEL
  410. label.TextScaled = false
  411. label.Text = TEXT
  412. label.Name = NAME
  413. label.Parent = PARENT
  414. return label
  415. end
  416.  
  417. function NoOutlines(PART)
  418. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  419. end
  420.  
  421.  
  422. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  423. local NEWWELD = IT(TYPE)
  424. NEWWELD.Part0 = PART0
  425. NEWWELD.Part1 = PART1
  426. NEWWELD.C0 = C0
  427. NEWWELD.C1 = C1
  428. NEWWELD.Parent = PARENT
  429. return NEWWELD
  430. end
  431.  
  432. function CreateSound(ID, PARENT, VOLUME, PITCH)
  433. local NEWSOUND = nil
  434. coroutine.resume(coroutine.create(function()
  435. NEWSOUND = IT("Sound", PARENT)
  436. NEWSOUND.Volume = VOLUME
  437. NEWSOUND.Pitch = PITCH
  438. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  439. NEWSOUND:play()
  440. game:GetService("Debris"):AddItem(NEWSOUND, 20)
  441. end))
  442. return NEWSOUND
  443. end
  444.  
  445. function CFrameFromTopBack(at, top, back)
  446. local right = top:Cross(back)
  447. 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)
  448. end
  449.  
  450. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  451. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  452. local mesh = IT("SpecialMesh",wave)
  453. mesh.MeshType = "FileMesh"
  454. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  455. mesh.Scale = SIZE
  456. mesh.Offset = VT(0,0,-SIZE.X/8)
  457. wave.CFrame = CFRAME
  458. coroutine.resume(coroutine.create(function(PART)
  459. for i = 1, WAIT do
  460. Swait()
  461. mesh.Scale = mesh.Scale + GROW
  462. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  463. if DOESROT == true then
  464. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  465. end
  466. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  467. if wave.Transparency > 0.99 then
  468. wave:remove()
  469. end
  470. end
  471. end))
  472. end
  473.  
  474. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  475. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  476. local mesh = IT("SpecialMesh",wave)
  477. mesh.MeshType = "FileMesh"
  478. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  479. mesh.Scale = SIZE
  480. mesh.Offset = VT(0,0,-SIZE.X/8)
  481. wave.CFrame = CFRAME
  482. coroutine.resume(coroutine.create(function(PART)
  483. for i = 1, WAIT do
  484. Swait()
  485. mesh.Scale = mesh.Scale + GROW
  486. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  487. if DOESROT == true then
  488. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  489. end
  490. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  491. if wave.Transparency > 0.99 then
  492. wave:remove()
  493. end
  494. end
  495. end))
  496. end
  497.  
  498. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  499. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  500. local mesh = IT("SpecialMesh",wave)
  501. mesh.MeshType = "FileMesh"
  502. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  503. mesh.Scale = SIZE
  504. mesh.Offset = VT(0,0,-SIZE.X/8)
  505. wave.CFrame = CFRAME
  506. coroutine.resume(coroutine.create(function(PART)
  507. for i = 1, WAIT do
  508. Swait()
  509. mesh.Scale = mesh.Scale + GROW
  510. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  511. if DOESROT == true then
  512. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  513. end
  514. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  515. if wave.Transparency > 0.99 then
  516. wave:remove()
  517. end
  518. end
  519. end))
  520. end
  521.  
  522. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  523. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  524. local mesh = IT("SpecialMesh",wave)
  525. mesh.MeshType = "FileMesh"
  526. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  527. mesh.Scale = SIZE
  528. mesh.Offset = VT(0,0,-SIZE.X/8)
  529. wave.CFrame = CFRAME
  530. coroutine.resume(coroutine.create(function(PART)
  531. for i = 1, WAIT do
  532. Swait()
  533. mesh.Scale = mesh.Scale + GROW
  534. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  535. if DOESROT == true then
  536. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  537. end
  538. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  539. if wave.Transparency > 0.99 then
  540. wave:remove()
  541. end
  542. end
  543. end))
  544. end
  545.  
  546. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  547. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  548. local mesh = IT("SpecialMesh",wave)
  549. mesh.MeshType = "FileMesh"
  550. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  551. mesh.Scale = SIZE
  552. wave.CFrame = CFRAME
  553. coroutine.resume(coroutine.create(function(PART)
  554. for i = 1, WAIT do
  555. Swait()
  556. mesh.Scale = mesh.Scale + GROW
  557. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  558. if DOESROT == true then
  559. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  560. end
  561. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  562. if wave.Transparency > 0.99 then
  563. wave:remove()
  564. end
  565. end
  566. end))
  567. end
  568.  
  569. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS)
  570. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  571. local mesh = IT("SpecialMesh",wave)
  572. mesh.MeshType = "FileMesh"
  573. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  574. mesh.Scale = SIZE
  575. wave.CFrame = CFRAME
  576. coroutine.resume(coroutine.create(function(PART)
  577. for i = 1, WAIT do
  578. Swait()
  579. mesh.Scale = mesh.Scale + GROW
  580. if DOESROT == true then
  581. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  582. end
  583. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS)
  592. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  593. local mesh = IT("SpecialMesh",wave)
  594. mesh.MeshType = "FileMesh"
  595. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  596. mesh.Scale = SIZE
  597. mesh.Offset = VT(0,0,0)
  598. wave.CFrame = CFRAME
  599. coroutine.resume(coroutine.create(function(PART)
  600. for i = 1, WAIT do
  601. Swait()
  602. mesh.Scale = mesh.Scale + GROW
  603. if DOESROT == true then
  604. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  605. end
  606. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  607. if wave.Transparency > 0.99 then
  608. wave:remove()
  609. end
  610. end
  611. end))
  612. end
  613.  
  614. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS)
  615. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  616. local mesh = IT("SpecialMesh",wave)
  617. mesh.MeshType = "Sphere"
  618. mesh.Scale = SIZE
  619. mesh.Offset = VT(0,0,0)
  620. wave.CFrame = CFRAME
  621. coroutine.resume(coroutine.create(function(PART)
  622. for i = 1, WAIT do
  623. Swait()
  624. mesh.Scale = mesh.Scale + GROW
  625. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  626. if wave.Transparency > 0.99 then
  627. wave:remove()
  628. end
  629. end
  630. end))
  631. end
  632.  
  633. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS)
  634. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  635. wave.CFrame = CFRAME
  636. coroutine.resume(coroutine.create(function(PART)
  637. for i = 1, WAIT do
  638. Swait()
  639. wave.Size = wave.Size + GROW
  640. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  641. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  642. if wave.Transparency > 0.99 then
  643. wave:remove()
  644. end
  645. end
  646. end))
  647. end
  648.  
  649. function MakeForm(PART,TYPE)
  650. if TYPE == "Cyl" then
  651. local MSH = IT("CylinderMesh",PART)
  652. elseif TYPE == "Ball" then
  653. local MSH = IT("SpecialMesh",PART)
  654. MSH.MeshType = "Sphere"
  655. elseif TYPE == "Wedge" then
  656. local MSH = IT("SpecialMesh",PART)
  657. MSH.MeshType = "Wedge"
  658. end
  659. end
  660.  
  661. function CheckTableForString(Table, String)
  662. for i, v in pairs(Table) do
  663. if string.find(string.lower(String), string.lower(v)) then
  664. return true
  665. end
  666. end
  667. return false
  668. end
  669.  
  670. function CheckIntangible(Hit)
  671. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  672. if Hit and Hit.Parent then
  673. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  674. return true
  675. end
  676. end
  677. return false
  678. end
  679.  
  680. Debris = game:GetService("Debris")
  681.  
  682. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  683. local Direction = CFrame.new(StartPos, Vec).lookVector
  684. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  685. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  686. if RayHit and CheckIntangible(RayHit) then
  687. if DelayIfHit then
  688. wait()
  689. end
  690. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  691. end
  692. return RayHit, RayPos, RayNormal
  693. end
  694.  
  695. function turnto(position)
  696. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  697. end
  698.  
  699. --//=================================\\
  700. --|| SPEECH
  701. --\\=================================//
  702.  
  703. function chatfunc(text,waitt)
  704. local chat = coroutine.wrap(function()
  705. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  706. Character:FindFirstChild("TalkingBillBoard"):destroy()
  707. end
  708. local naeeym2 = Instance.new("BillboardGui",Character)
  709. naeeym2.Size = UDim2.new(0,100,0,40)
  710. naeeym2.StudsOffset = Vector3.new(0,5,0)
  711. naeeym2.Adornee = Character.Head
  712. naeeym2.Name = "TalkingBillBoard"
  713. naeeym2.AlwaysOnTop = true
  714. local tecks2 = Instance.new("TextLabel",naeeym2)
  715. tecks2.BackgroundTransparency = 1
  716. tecks2.BorderSizePixel = 0
  717. tecks2.Text = ""
  718. tecks2.Font = "SciFi"
  719. tecks2.TextSize = 30
  720. tecks2.TextStrokeTransparency = 1
  721. tecks2.TextColor3 = SKILLTEXTCOLOR
  722. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  723. tecks2.Size = UDim2.new(1,0,0.5,0)
  724. for i = 1,string.len(text),1 do
  725. tecks2.Text = string.sub(text,1,i)
  726. Swait()
  727. end
  728. wait(waitt)
  729. coroutine.resume(coroutine.create(function()
  730. for i = 1, 10 do
  731. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  732. Swait()
  733. end
  734. naeeym2:Destroy()
  735. end))
  736. end)
  737. chat()
  738. end
  739.  
  740. --//=================================\\
  741. --|| WEAPON CREATION
  742. --\\=================================//
  743.  
  744. function CreateGauntlet(LIMB,ROT,OFFSET)
  745. local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.025,2.025,1.025),false)
  746. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LIMB, FIST, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  747. FIST.CanCollide = true
  748. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.075,0.25,1.075),false)
  749. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  750. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,0.15,1.1),false)
  751. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  752. --ALL OF THE 04--
  753. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.5,0.5),false)
  754. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  755. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false)
  756. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  757. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false)
  758. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  759.  
  760. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  761. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  762. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  763. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  764. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  765. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  766. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,2.065,1.065),false)
  767. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/4, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  768. MakeForm(part,"Wedge")
  769. -----------------
  770. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.45,0.45),false)
  771. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  772. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false)
  773. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  774. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false)
  775. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  776.  
  777. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.075,2.075,1.075),false)
  778. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3.5, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  779. MakeForm(part,"Wedge")
  780. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,2.1,1.1),false)
  781. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3, 0.1, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  782. MakeForm(part,"Wedge")
  783. end
  784.  
  785. CreateGauntlet(RightArm,180,0.3)
  786. CreateGauntlet(LeftArm,0,-0.3)
  787.  
  788. for _, c in pairs(Weapon:GetChildren()) do
  789. if c.ClassName == "Part" then
  790. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  791. end
  792. end
  793.  
  794. Weapon.Parent = Character
  795.  
  796. Humanoid.Died:connect(function()
  797. ATTACK = true
  798. end)
  799.  
  800. print(Class_Name.." loaded.")
  801.  
  802. 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")
  803. 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")
  804. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  805.  
  806. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Turret cannon", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  807. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Shield pulse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  808. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[1-8] Switch stance", C3(0,0,0), 6, "SciFi", 0, 2, 1, "Text 3")
  809.  
  810. --//=================================\\
  811. --|| DAMAGE FUNCTIONS
  812. --\\=================================//
  813.  
  814. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  815. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  816. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  817. local BODYGYRO = IT("BodyGyro", STATPART)
  818. local BODYPOSITION = IT("BodyPosition", STATPART)
  819. BODYPOSITION.P = 2000
  820. BODYPOSITION.D = 100
  821. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  822. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  823. game:GetService("Debris"):AddItem(STATPART ,5)
  824. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  825. BILLBOARDGUI.Adornee = STATPART
  826. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  827. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  828. BILLBOARDGUI.AlwaysOnTop = true
  829. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  830. TEXTLABEL.BackgroundTransparency = 1
  831. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  832. TEXTLABEL.Text = TEXT
  833. TEXTLABEL.Font = "SciFi"
  834. TEXTLABEL.FontSize="Size42"
  835. TEXTLABEL.TextColor3 = COLOR
  836. TEXTLABEL.TextStrokeTransparency = 1
  837. TEXTLABEL.TextScaled = true
  838. TEXTLABEL.TextWrapped = true
  839. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  840. if LABELTYPE == "Normal" then
  841. for i = 1, 20 do
  842. Swait()
  843. STATPART.Position = STATPART.Position + VT(0, (10-i)/10 ,0)
  844. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  845. end
  846. elseif LABELTYPE == "Debuff" then
  847. for i = 1, 20 do
  848. Swait()
  849. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  850. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  851. end
  852. elseif LABELTYPE == "Shock" then
  853. local ORIGIN = STATPART.Position
  854. for i = 1, 20 do
  855. Swait()
  856. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  857. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  858. end
  859. end
  860. THEPART.Parent = nil
  861. end),STATPART, BODYPOSITION, TEXTLABEL)
  862. end
  863.  
  864.  
  865. --//=================================\\
  866. --|| DAMAGING
  867. --\\=================================//
  868.  
  869. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  870. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  871. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  872. local dmg = math.random(min,max)
  873. if humanoid.Health > 0 then
  874. if beserk == true then
  875. humanoid.Health = 0
  876. else
  877. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  878. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  879. if math.random(1,100) < critrate+1 then
  880. humanoid.Health = humanoid.Health - dmg*critmultiplier
  881. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  882. else
  883. humanoid.Health = humanoid.Health - dmg
  884. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  885. end
  886. local defence = Instance.new("BoolValue",hit.Parent)
  887. defence.Name = ("HitBy"..Player.Name)
  888. game:GetService("Debris"):AddItem(defence, 0.1)
  889. end
  890. end
  891. end
  892. end
  893.  
  894. function AoEWarp(position,radius)
  895. for i,v in ipairs(workspace:GetChildren()) do
  896. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  897. local body = v:GetChildren()
  898. for part = 1, #body do
  899. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  900. if(body[part].Position - position).Magnitude < radius then
  901. if v.ClassName == "Model" then
  902. if v:FindFirstChild("Humanoid") then
  903. if v.Humanoid.Health ~= 0 then
  904. if body[part].Position.Y < position.Y+12 then
  905. print("Got "..v.Name)
  906. local defence = Instance.new("BoolValue",v)
  907. defence.Name = ("HitBy"..Player.Name)
  908. game:GetService("Debris"):AddItem(defence, 0.01)
  909. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  910. Warp(TORSO)
  911. end
  912. end
  913. end
  914. end
  915. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  916. end
  917. end
  918. end
  919. end
  920. end
  921. end
  922.  
  923. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  924. local dmg = math.random(min,max)
  925. for i,v in ipairs(workspace:GetChildren()) do
  926. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  927. local body = v:GetChildren()
  928. for part = 1, #body do
  929. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  930. if(body[part].Position - position).Magnitude < radius then
  931. if v.ClassName == "Model" then
  932. if v:FindFirstChild("Humanoid") then
  933. if v.Humanoid.Health ~= 0 then
  934. if CanBeDodgedByJumping == true then
  935. if body[part].Position.Y < position.Y+5 then
  936. if math.random(1,100) < critrate+1 then
  937. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  938. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  939. else
  940. v.Humanoid.Health = v.Humanoid.Health - dmg
  941. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  942. end
  943. local defence = Instance.new("BoolValue",v)
  944. defence.Name = ("HitBy"..Player.Name)
  945. game:GetService("Debris"):AddItem(defence, 0.1)
  946. end
  947. else
  948. if beserk == true then
  949. v.Humanoid.Health = 0
  950. end
  951. if math.random(1,100) < critrate+1 then
  952. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  953. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  954. else
  955. v.Humanoid.Health = v.Humanoid.Health - dmg
  956. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  957. end
  958. local defence = Instance.new("BoolValue",v)
  959. defence.Name = ("HitBy"..Player.Name)
  960. game:GetService("Debris"):AddItem(defence, 0.1)
  961. end
  962. end
  963. end
  964. end
  965. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  966. end
  967. end
  968. end
  969. if v.ClassName == "Part" then
  970. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  971. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  972. end
  973. end
  974. end
  975. end
  976. end
  977.  
  978. function AoEStun(POS,RANGE,LAST,TYPE)
  979. for i,v in ipairs(workspace:GetChildren()) do
  980. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  981. local body = v:GetChildren()
  982. for part = 1, #body do
  983. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  984. if(body[part].Position - POS).Magnitude < RANGE then
  985. if v.ClassName == "Model" then
  986. if v:FindFirstChild("Humanoid") then
  987. if v.Humanoid.Health ~= 0 then
  988. if TYPE == "Stun" then
  989. Stun(v.Humanoid,LAST)
  990. elseif TYPE == "Freeze" then
  991. Freeze(v.Humanoid,LAST)
  992. end
  993. local defence = Instance.new("BoolValue",v)
  994. defence.Name = ("StunnedBy"..Player.Name)
  995. game:GetService("Debris"):AddItem(defence, 0.1)
  996. end
  997. end
  998. end
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005.  
  1006. function Warp(Victim)
  1007. print("Warping "..Victim.Name.."...")
  1008. Victim.Anchored = true
  1009. coroutine.resume(coroutine.create(function()
  1010. local GUI,GUI2 = CreateGUICircle(Victim)
  1011. CreateSound("1208650519", Victim, 10, 1)
  1012. for i = 1, 200 do
  1013. Swait()
  1014. GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0)
  1015. GUI2.Rotation = GUI2.Rotation + 2
  1016. end
  1017. CastWarpOutlines(Victim.Parent)
  1018. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  1019. CreateSound("1177785010", Victim, 10, 1)
  1020. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  1021. if HUMANOID ~= nil then
  1022. local dmg = MRANDOM(75,95)
  1023. HUMANOID.Health = HUMANOID.Health - dmg
  1024. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  1025. end
  1026. for i = 1, 50 do
  1027. Swait()
  1028. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1029. GUI2.Rotation = GUI2.Rotation - 8
  1030. end
  1031. Victim.Anchored = false
  1032. GUI:remove()
  1033. end))
  1034. end
  1035.  
  1036. function Stun(HUMANOID,LAST)
  1037. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  1038. HUMANOID.PlatformStand = true
  1039. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  1040. defence.Name = ("StunnedBy"..Player.Name)
  1041. game:GetService("Debris"):AddItem(defence, LAST)
  1042. if HUMANOID.Parent:FindFirstChild("Head") then
  1043. StatLabel("Shock", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  1044. end
  1045. coroutine.resume(coroutine.create(function()
  1046. Swait(LAST*100)
  1047. HUMANOID.PlatformStand = false
  1048. end))
  1049. end
  1050. end
  1051.  
  1052. function Freeze(HUMANOID,LAST)
  1053. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  1054. local q = HUMANOID.Parent:GetChildren()
  1055. for i = 1, #q do
  1056. local bob = q[i]
  1057. if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1058. if bob.Transparency < 1 then
  1059. bob.Anchored = true
  1060. local icelayer = bob:Clone()
  1061. icelayer.Parent = bob
  1062. icelayer.Material = "Ice"
  1063. icelayer.CanCollide = false
  1064. icelayer.BrickColor = BRICKC"Steel blue"
  1065. icelayer.Transparency = 0.5
  1066. icelayer.CFrame = bob.CFrame
  1067. icelayer.Name = "Ice"
  1068. icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1)
  1069. if icelayer:FindFirstChildOfClass("Decal") then
  1070. icelayer:FindFirstChildOfClass("Decal"):remove()
  1071. end
  1072. end
  1073. end
  1074. end
  1075. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  1076. defence.Name = ("StunnedBy"..Player.Name)
  1077. game:GetService("Debris"):AddItem(defence, LAST)
  1078. if HUMANOID.Parent:FindFirstChild("Head") then
  1079. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Frozen!", C3(0.3, 0.3, 0.3))
  1080. end
  1081. coroutine.resume(coroutine.create(function()
  1082. Swait(LAST*100)
  1083. local q = HUMANOID.Parent:GetChildren()
  1084. for i = 1, #q do
  1085. local bob = q[i]
  1086. if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1087. if bob.Transparency < 1 then
  1088. bob.Anchored = false
  1089. bob.Ice:remove()
  1090. end
  1091. end
  1092. end
  1093. end))
  1094. end
  1095. end
  1096.  
  1097. function killnearest(position,range,maxstrength)
  1098. for i,v in ipairs(workspace:GetChildren()) do
  1099. local body = v:GetChildren()
  1100. for part = 1, #body do
  1101. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1102. if(body[part].Position - position).Magnitude < range then
  1103. table.insert(Effects2,{body[part],"Evaporate",0.005,2,2,2,2})
  1104. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1105. end
  1106. end
  1107. end
  1108. if v.ClassName == "Part" then
  1109. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1110. table.insert(Effects2,{v,"Evaporate",0.005,2,2,2,2})
  1111. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1112. end
  1113. end
  1114. end
  1115. end
  1116.  
  1117. --//=================================\\
  1118. --|| ATTACK FUNCTIONS AND STUFF
  1119. --\\=================================//
  1120.  
  1121. function Stance1()
  1122. VALUE1 = 1
  1123. SKILL1TEXT.Text = "[Z] Turret cannon"
  1124. SKILL2TEXT.Text = "[X] Shield pulse"
  1125. sick.SoundId = "rbxassetid://196739738"
  1126. local wep = Weapon:GetChildren()
  1127. for part = 1, #wep do
  1128. if wep[part].ClassName == "Part" then
  1129. local P = wep[part]
  1130. if P.Name == "01-Type" then
  1131. P.Material = "Granite"
  1132. P.BrickColor = BRICKC"Pearl"
  1133. elseif P.Name == "02-Type" then
  1134. P.Material = "Metal"
  1135. P.BrickColor = BRICKC"Pearl"
  1136. elseif P.Name == "03-Type" then
  1137. P.Material = "Metal"
  1138. P.BrickColor = BRICKC"Really black"
  1139. elseif P.Name == "04-Type" then
  1140. P.Material = "Neon"
  1141. P.BrickColor = BRICKC"Pearl"
  1142. end
  1143. end
  1144. end
  1145. end
  1146.  
  1147. function Stance2()
  1148. VALUE1 = 2
  1149. SKILL1TEXT.Text = "[Z] Fireball"
  1150. SKILL2TEXT.Text = "[X] Fire field"
  1151. sick.SoundId = "rbxassetid://231131640"
  1152. local wep = Weapon:GetChildren()
  1153. for part = 1, #wep do
  1154. if wep[part].ClassName == "Part" then
  1155. local P = wep[part]
  1156. if P.Name == "01-Type" then
  1157. P.Material = "Granite"
  1158. P.BrickColor = BRICKC"Deep orange"
  1159. elseif P.Name == "02-Type" then
  1160. P.Material = "Metal"
  1161. P.BrickColor = BRICKC"Maroon"
  1162. elseif P.Name == "03-Type" then
  1163. P.Material = "Metal"
  1164. P.BrickColor = BRICKC"Really black"
  1165. elseif P.Name == "04-Type" then
  1166. P.Material = "Neon"
  1167. P.BrickColor = BRICKC"CGA brown"
  1168. end
  1169. end
  1170. end
  1171. end
  1172.  
  1173. function Stance3()
  1174. VALUE1 = 3
  1175. SKILL1TEXT.Text = "[Z] Icicle storm"
  1176. SKILL2TEXT.Text = "[X] Frost breath"
  1177. sick.SoundId = "rbxassetid://590071128"
  1178. local wep = Weapon:GetChildren()
  1179. for part = 1, #wep do
  1180. if wep[part].ClassName == "Part" then
  1181. local P = wep[part]
  1182. if P.Name == "01-Type" then
  1183. P.Material = "Marble"
  1184. P.BrickColor = BRICKC"Medium stone grey"
  1185. elseif P.Name == "02-Type" then
  1186. P.Material = "Neon"
  1187. P.BrickColor = BRICKC"Cyan"
  1188. elseif P.Name == "03-Type" then
  1189. P.Material = "Metal"
  1190. P.BrickColor = BRICKC"Cyan"
  1191. elseif P.Name == "04-Type" then
  1192. P.Material = "Ice"
  1193. P.BrickColor = BRICKC"Steel blue"
  1194. end
  1195. end
  1196. end
  1197. end
  1198.  
  1199. function Stance4()
  1200. VALUE1 = 4
  1201. SKILL1TEXT.Text = "[Z] Shriek"
  1202. SKILL2TEXT.Text = "[X] Bloodbath"
  1203. sick.SoundId = "rbxassetid://614032233"
  1204. local wep = Weapon:GetChildren()
  1205. for part = 1, #wep do
  1206. if wep[part].ClassName == "Part" then
  1207. local P = wep[part]
  1208. if P.Name == "01-Type" then
  1209. P.Material = "Cobblestone"
  1210. P.BrickColor = BRICKC"Really black"
  1211. elseif P.Name == "02-Type" then
  1212. P.Material = "Metal"
  1213. P.BrickColor = BRICKC"Maroon"
  1214. elseif P.Name == "03-Type" then
  1215. P.Material = "Metal"
  1216. P.BrickColor = BRICKC"Black"
  1217. elseif P.Name == "04-Type" then
  1218. P.Material = "Neon"
  1219. P.BrickColor = BRICKC"Dark indigo"
  1220. end
  1221. end
  1222. end
  1223. end
  1224. function Stance5()
  1225. VALUE1 = 5
  1226. SKILL1TEXT.Text = "[Z] Rock throw"
  1227. SKILL2TEXT.Text = "[X] Earth tremor"
  1228. sick.SoundId = "rbxassetid://167492778"
  1229. local wep = Weapon:GetChildren()
  1230. for part = 1, #wep do
  1231. if wep[part].ClassName == "Part" then
  1232. local P = wep[part]
  1233. if P.Name == "01-Type" then
  1234. P.Material = "Cobblestone"
  1235. P.BrickColor = BRICKC"Rust"
  1236. elseif P.Name == "02-Type" then
  1237. P.Material = "Cobblestone"
  1238. P.BrickColor = BRICKC"CGA brown"
  1239. elseif P.Name == "03-Type" then
  1240. P.Material = "Marble"
  1241. P.BrickColor = BRICKC"Black"
  1242. elseif P.Name == "04-Type" then
  1243. P.Material = "Slate"
  1244. P.BrickColor = BRICKC"Pine cone"
  1245. end
  1246. end
  1247. end
  1248. end
  1249.  
  1250. function Stance6()
  1251. VALUE1 = 6
  1252. SKILL1TEXT.Text = "[Z] Radiant void"
  1253. SKILL2TEXT.Text = "[X] Void warp"
  1254. sick.SoundId = "rbxassetid://275188871"
  1255. local wep = Weapon:GetChildren()
  1256. for part = 1, #wep do
  1257. if wep[part].ClassName == "Part" then
  1258. local P = wep[part]
  1259. if P.Name == "01-Type" then
  1260. P.Material = "Granite"
  1261. P.BrickColor = BRICKC"Royal purple"
  1262. elseif P.Name == "02-Type" then
  1263. P.Material = "Slate"
  1264. P.BrickColor = BRICKC"Really black"
  1265. elseif P.Name == "03-Type" then
  1266. P.Material = "Metal"
  1267. P.BrickColor = BRICKC"Black"
  1268. elseif P.Name == "04-Type" then
  1269. P.Material = "Neon"
  1270. P.BrickColor = BRICKC"Royal purple"
  1271. end
  1272. end
  1273. end
  1274. end
  1275.  
  1276. function Stance7()
  1277. VALUE1 = 7
  1278. SKILL1TEXT.Text = "[Z] Divine glow"
  1279. SKILL2TEXT.Text = "[X] Divine evaporation"
  1280. sick.SoundId = "rbxassetid://965804171"
  1281. local wep = Weapon:GetChildren()
  1282. for part = 1, #wep do
  1283. if wep[part].ClassName == "Part" then
  1284. local P = wep[part]
  1285. if P.Name == "01-Type" then
  1286. P.Material = "Neon"
  1287. P.BrickColor = BRICKC"Stone grey"
  1288. elseif P.Name == "02-Type" then
  1289. P.Material = "Granite"
  1290. P.BrickColor = BRICKC"Gold"
  1291. elseif P.Name == "03-Type" then
  1292. P.Material = "Metal"
  1293. P.BrickColor = BRICKC"Gold"
  1294. elseif P.Name == "04-Type" then
  1295. P.Material = "Granite"
  1296. P.BrickColor = BRICKC"New Yeller"
  1297. end
  1298. end
  1299. end
  1300. end
  1301.  
  1302. function Stance8()
  1303. VALUE1 = 8
  1304. SKILL1TEXT.Text = "[Z] Leaf Storm"
  1305. SKILL2TEXT.Text = "[X] Leaf Field"
  1306. sick.SoundId = "rbxassetid://630020632"
  1307. local wep = Weapon:GetChildren()
  1308. for part = 1, #wep do
  1309. if wep[part].ClassName == "Part" then
  1310. local P = wep[part]
  1311. if P.Name == "01-Type" then
  1312. P.Material = "Granite"
  1313. P.BrickColor = BRICKC"1020"
  1314. elseif P.Name == "02-Type" then
  1315. P.Material = "Slate"
  1316. P.BrickColor = BRICKC"Really black"
  1317. elseif P.Name == "03-Type" then
  1318. P.Material = "Metal"
  1319. P.BrickColor = BRICKC"Shamrock"
  1320. elseif P.Name == "04-Type" then
  1321. P.Material = "Neon"
  1322. P.BrickColor = BRICKC"1020"
  1323. end
  1324. end
  1325. end
  1326. end
  1327.  
  1328. function createfireball(size,explosionsize,pos,velocity)
  1329. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1330. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  1331. local FIREBALL = IT("Part",Effects)
  1332. FIREBALL.Shape = "Ball"
  1333. FIREBALL.Size = VT(size,size,size)
  1334. FIREBALL.Material = "Neon"
  1335. FIREBALL.CFrame = CF(pos)
  1336. FIREBALL.Transparency = 1
  1337. local bv = Instance.new("BodyVelocity")
  1338. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1339. bv.velocity = velocity
  1340. bv.Parent = FIREBALL
  1341. bv.Name = "MOVE"
  1342. local HIT = false
  1343. local harm = FIREBALL.Touched:Connect(function(hit)
  1344. if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then
  1345. HIT = true
  1346. coroutine.resume(coroutine.create(function()
  1347. FIREBALL.Anchored = true
  1348. FIREBALL.CanCollide = false
  1349. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1)
  1350. AoEDamage(FIREBALL.Position,explosionsize*2,45,65,25,false,3,2,false,true)
  1351. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3,3,3),0)
  1352. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3.5,3.5,3.5),0)
  1353. Swait(250)
  1354. FIREBALL:remove()
  1355. end))
  1356. end
  1357. end)
  1358. coroutine.resume(coroutine.create(function()
  1359. repeat
  1360. Swait()
  1361. MagicSphere(VT(size,size,size),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-size/15,-size/15,-size/15),0)
  1362. until HIT == true
  1363. end))
  1364. return FIREBALL
  1365. end
  1366.  
  1367. function AttackTemplate()
  1368. ATTACK = true
  1369. Rooted = false
  1370. for i=0, 1, 0.1 / Animation_Speed do
  1371. Swait()
  1372. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1373. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1375. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1376. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1377. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1378. end
  1379. ATTACK = false
  1380. Rooted = false
  1381. end
  1382.  
  1383. local asd = Instance.new("ParticleEmitter")
  1384. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1385. asd.LightEmission = .1
  1386. asd.Size = NumberSequence.new(0.2)
  1387. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1388. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1389. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1390. asd.Transparency = bbb
  1391. asd.Size = aaa
  1392. asd.ZOffset = .9
  1393. asd.Acceleration = Vector3.new(0, -15, 0)
  1394. asd.LockedToPart = false
  1395. asd.EmissionDirection = "Back"
  1396. asd.Lifetime = NumberRange.new(1, 2)
  1397. asd.Rotation = NumberRange.new(-100, 100)
  1398. asd.RotSpeed = NumberRange.new(-100, 100)
  1399. asd.Speed = NumberRange.new(25,35)
  1400. asd.Enabled = false
  1401. asd.VelocitySpread = 15
  1402.  
  1403. function getbloody(victim,amount)
  1404. local PART = IT("Part",Effects)
  1405. PART.Transparency = 1
  1406. PART.Size = victim.Size
  1407. PART.Anchored = true
  1408. PART.CanCollide = false
  1409. PART.CFrame = CF(victim.Position,Torso.Position)
  1410. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1411. Debris:AddItem(PART,5)
  1412. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1413. local prtcl = asd:Clone()
  1414. prtcl.Parent = PART
  1415. prtcl:Emit(amount*10)
  1416. end
  1417.  
  1418. function CreateMagicCircle()
  1419. local sinkhole = IT("Part")
  1420. sinkhole.Size = VT(0,0,0)
  1421. sinkhole.Parent = Effects
  1422. sinkhole.Material = "Neon"
  1423. sinkhole.Color = C3(0,0,0)
  1424. sinkhole.Anchored = true
  1425. sinkhole.CanCollide = false
  1426. sinkhole.Transparency = 1
  1427. local decal = IT("Decal",sinkhole)
  1428. decal.Face = "Top"
  1429. decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1430. local decal2 = IT("Decal",sinkhole)
  1431. decal2.Face = "Bottom"
  1432. decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1433. return sinkhole
  1434. end
  1435.  
  1436. function CreateLeafMagicCircle()
  1437. local sinkhole = IT("Part")
  1438. sinkhole.Size = VT(0,0,0)
  1439. sinkhole.Parent = Effects
  1440. sinkhole.Material = "Neon"
  1441. sinkhole.Color = C3(0,0,0)
  1442. sinkhole.Anchored = true
  1443. sinkhole.CanCollide = false
  1444. sinkhole.Transparency = 1
  1445. local decal = IT("Decal",sinkhole)
  1446. decal.Face = "Top"
  1447. decal.Texture = "http://www.roblox.com/asset/?id=332014171"
  1448. local decal2 = IT("Decal",sinkhole)
  1449. decal2.Face = "Bottom"
  1450. decal2.Texture = "http://www.roblox.com/asset/?id=332014171"
  1451. return sinkhole
  1452. end
  1453.  
  1454. function CreateGUICircle(TARGET)
  1455. local GUI = Instance.new("BillboardGui",Character)
  1456. GUI.Size = UDim2.new(0,0,0,0)
  1457. GUI.Adornee = TARGET
  1458. local GUI2 = IT("ImageLabel",GUI)
  1459. GUI2.BackgroundTransparency = 1
  1460. GUI2.BorderSizePixel = 0
  1461. GUI2.Size = UDim2.new(1,0,1,0)
  1462. GUI2.SizeConstraint = "RelativeYY"
  1463. GUI.AlwaysOnTop = true
  1464. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  1465. return GUI,GUI2
  1466. end
  1467.  
  1468. function CastWarpOutlines(TARGET)
  1469. coroutine.resume(coroutine.create(function()
  1470. local T = TARGET:GetChildren()
  1471. for i = 1, # T do
  1472. local child = T[i]
  1473. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1474. local clone = child:Clone()
  1475. clone.Parent = Effects
  1476. clone.Anchored = true
  1477. clone.CanCollide = false
  1478. clone:ClearAllChildren()
  1479. clone.CFrame = child.CFrame
  1480. if clone.Name == "Head" then
  1481. if TARGET:FindFirstChildOfClass("MeshPart") == nil then
  1482. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  1483. end
  1484. end
  1485. if clone.ClassName == "MeshPart" then
  1486. clone.TextureID = ""
  1487. end
  1488. clone.BrickColor = BRICKC"Black"
  1489. clone.Material = "Neon"
  1490. coroutine.resume(coroutine.create(function()
  1491. for i = 1, 200 do
  1492. Swait()
  1493. clone.Transparency = clone.Transparency + 0.005
  1494. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  1495. end
  1496. clone:remove()
  1497. end))
  1498. end
  1499. end
  1500. end))
  1501. end
  1502.  
  1503. --Z MOVES--
  1504.  
  1505. function TurretCannon()
  1506. ATTACK = true
  1507. Rooted = false
  1508. for i=0, 2, 0.1 / Animation_Speed do
  1509. Swait()
  1510. turnto(Mouse.Hit.p)
  1511. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1512. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1513. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1514. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1515. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1516. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1517. end
  1518. Rooted = true
  1519. local TURRETS = {RightArm,LeftArm}
  1520. local soundeffect = IT("Sound",Torso)
  1521. soundeffect.SoundId = "rbxassetid://337638956"
  1522. soundeffect.Looped = true
  1523. soundeffect.Volume = 1
  1524. soundeffect.Playing = true
  1525. repeat
  1526. Swait()
  1527. turnto(Mouse.Hit.p)
  1528. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  1529. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"New Yeller",VT(0.3,0.3,0.3),0)
  1530. local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  1531. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  1532. local bv = Instance.new("BodyVelocity")
  1533. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1534. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  1535. bv.Parent = BULLET
  1536. bv.Name = "PROJECTILEVELOCITY"
  1537. MakeForm(BULLET,"Ball")
  1538. local BOO = BULLET.Touched:Connect(function(hit)
  1539. dealdamage(hit,5,8,5,false,2,3)
  1540. end)
  1541. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  1542. until KEYHOLD == false
  1543. soundeffect:remove()
  1544. ATTACK = false
  1545. Rooted = false
  1546. end
  1547.  
  1548. function Fireball()
  1549. ATTACK = true
  1550. Rooted = true
  1551. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1552. CreateSound("169445572", RightArm, 2, 1.6)
  1553. for i=0, 5, 0.1 / Animation_Speed2 do
  1554. Swait()
  1555. MagicSphere(VT(2,2,2),35,RightArm.CFrame*CF(0,-1,0),FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-2/35,-2/35,-2/35),0.6)
  1556. turnto(Mouse.Hit.p)
  1557. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2)
  1558. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2)
  1559. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1560. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1561. 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(0)), 0.15 / Animation_Speed2)
  1562. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1563. end
  1564. local aimpos = Mouse.Hit.p
  1565. createfireball(2,8,RightArm.CFrame * CF(0,-2,0).p,CF(RightArm.CFrame * CF(0,-2,0).p,aimpos).lookVector*100)
  1566. for i=0, 1.5, 0.1 / Animation_Speed2 do
  1567. Swait()
  1568. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2)
  1569. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2)
  1570. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1571. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1572. 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(0)), 0.15 / Animation_Speed2)
  1573. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1574. end
  1575. ATTACK = false
  1576. Rooted = false
  1577. end
  1578.  
  1579. function IcicleStorm()
  1580. ATTACK = true
  1581. Rooted = false
  1582. local BulletHolder = IT("Folder",Weapon)
  1583. BulletHolder.Name = "Bullets"
  1584. game:GetService("Debris"):AddItem(BulletHolder, 40)
  1585. for i=0, 3, 0.1 / Animation_Speed do
  1586. Swait()
  1587. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1588. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1589. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1590. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1591. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1592. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1593. end
  1594. CreateSound("333476017", Torso, 10, 1)
  1595. for i = 1, 150 do
  1596. Swait()
  1597. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1598. coroutine.resume(coroutine.create(function()
  1599. local gem = IT("Part",BulletHolder)
  1600. gem.Size = VT(0.3,0.3,0.3)
  1601. gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(25,50),math.random(-25,25))
  1602. gem.Anchored = true
  1603. gem.BrickColor = BRICKC"Steel blue"
  1604. local Cys = Instance.new("SpecialMesh", gem)
  1605. Cys.MeshType = "FileMesh"
  1606. Cys.MeshId = "rbxassetid://9756362"
  1607. Cys.Scale = Vector3.new(2,2,2)
  1608. end))
  1609. end
  1610. local IceHitSounds = {
  1611. "338594737",
  1612. "338594687",
  1613. "338594666",
  1614. "338594648",
  1615. "338594606",
  1616. "338594574",
  1617. "338594556",
  1618. "338594524",
  1619. "338594467"
  1620. }
  1621. coroutine.resume(coroutine.create(function()
  1622. q = BulletHolder:GetChildren()
  1623. for i = 1, #q do
  1624. Swait()
  1625. turnto(Mouse.Hit.p)
  1626. local bullet = q[i]
  1627. local bv = Instance.new("BodyVelocity")
  1628. bullet.Mesh.Scale = VT(2,2,5)
  1629. bullet.CFrame = CF(bullet.Position,Mouse.Hit.p)
  1630. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1631. bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*500
  1632. bv.Parent = bullet
  1633. bv.Name = "DASH"
  1634. bullet.Anchored = false
  1635. local paw = bullet.Touched:Connect(function(hit)
  1636. if bullet.Anchored == false then
  1637. CreateSound(IceHitSounds[math.random(1, #IceHitSounds)], bullet, 3, 1)
  1638. local cframe = bullet.CFrame
  1639. bullet.Anchored = true
  1640. table.insert(Effects2,{bullet,"Block1",0.15,0,0,0,5})
  1641. AoEDamage(bullet.Position,5,15,15,0,false,5,3,false)
  1642. if MRANDOM(1,45) == 1 then
  1643. AoEStun(bullet.Position,5,5,"Freeze")
  1644. end
  1645. end
  1646. end)
  1647. end
  1648. end))
  1649. ATTACK = false
  1650. Rooted = false
  1651. end
  1652.  
  1653. function Shriek()
  1654. ATTACK = true
  1655. Rooted = false
  1656. for i=0, 1, 0.1 / Animation_Speed do
  1657. Swait()
  1658. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1659. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1660. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1661. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1662. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  1663. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 , -0.8, -0.2) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  1664. end
  1665. Rooted = true
  1666. CreateSound("439369949", Effects, 10, 1)
  1667. for i=0, 3, 0.1 / Animation_Speed do
  1668. Swait()
  1669. MagicSphere(VT(2,2,2),5,Head.CFrame,"Pearl",VT(35,35,35),0.97)
  1670. AoEDamage(Head.Position,65,3,5,4,false,12,3,false)
  1671. AoEStun(Head.Position,65,2,"Stun")
  1672. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1673. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)),1 / Animation_Speed)
  1674. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1675. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1676. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 1 / Animation_Speed)
  1677. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.2) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1678. end
  1679. ATTACK = false
  1680. Rooted = false
  1681. end
  1682.  
  1683. function clerp(a, b, t)
  1684. return a:lerp(b, t)
  1685. end
  1686.  
  1687. function newBezier(startpos, pos2, pos3, endpos, t)
  1688. local A = clerp(startpos, pos2, t)
  1689. local B = clerp(pos2, pos3, t)
  1690. local C = clerp(pos3, endpos, t)
  1691. local lerp1 = clerp(A, B, t)
  1692. local lerp2 = clerp(B, C, t)
  1693. local cubic = clerp(lerp1, lerp2, t)
  1694. return cubic
  1695. end
  1696.  
  1697. function RockThrow()
  1698. ATTACK = true
  1699. Rooted = false
  1700. for i=0, 2, 0.1 / Animation_Speed do
  1701. Swait()
  1702. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1703. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1704. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1705. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1706. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1707. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1708. end
  1709. local ROCK = IT("Part",Effects)
  1710. ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0)
  1711. ROCK.Size = VT(1.2,1.2,1.2)
  1712. ROCK.Material = "Cobblestone"
  1713. ROCK.Transparency = 1
  1714. ROCK.BrickColor = BRICKC"Pine Cone"
  1715. local WELD = weldBetween(RightArm,ROCK)
  1716. ROCK.CanCollide = false
  1717. for i = 1, 10 do
  1718. Swait()
  1719. ROCK.Transparency = ROCK.Transparency - 0.1
  1720. end
  1721. for i=0, 0.2, 0.1 / Animation_Speed do
  1722. Swait()
  1723. turnto(Mouse.Hit.p)
  1724. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1725. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed)
  1726. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1727. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1728. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1729. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1730. end
  1731. WELD:remove()
  1732. coroutine.resume(coroutine.create(function()
  1733. local POS = ROCK.Position
  1734. ROCK.Anchored = true
  1735. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  1736. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  1737. for i = 0, 1, 0.07 do
  1738. Swait()
  1739. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  1740. end
  1741. ROCK.Anchored = false
  1742. ROCK.CanCollide = true
  1743. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Pearl",VT(1,0.2,1),0.5)
  1744. AoEDamage(ROCK.Position,5,35,55,4,false,12,3,true)
  1745. Swait(500)
  1746. ROCK.Anchored = true
  1747. ROCK.CanCollide = false
  1748. for i = 1, 10 do
  1749. Swait()
  1750. ROCK.Transparency = ROCK.Transparency + 0.1
  1751. end
  1752. ROCK:remove()
  1753. end))
  1754. for i=0, 1.6, 0.1 / Animation_Speed do
  1755. Swait()
  1756. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1757. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed)
  1758. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1759. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1760. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1761. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1762. end
  1763. ATTACK = false
  1764. Rooted = false
  1765. end
  1766.  
  1767. function RadiantVoid()
  1768. ATTACK = true
  1769. Rooted = true
  1770. for i=0, 1, 0.1 / Animation_Speed do
  1771. Swait()
  1772. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1773. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1774. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1775. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1776. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1777. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1778. end
  1779. local RING = CreateMagicCircle()
  1780. RING.CFrame = CF(RootPart.Position)*CF(0,-2.8,0)
  1781. CreateSound("1208650519", Torso, 10, 1)
  1782. for i = 1, 200 do
  1783. Swait()
  1784. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/15),RAD(0))
  1785. RING.Size = RING.Size + VT(1,0,1)
  1786. end
  1787. AoEWarp(RING.Position,RING.Size.X/2)
  1788. coroutine.resume(coroutine.create(function()
  1789. Swait(75)
  1790. for i = 1, 50 do
  1791. Swait()
  1792. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(-i/2),RAD(0))
  1793. RING.Size = RING.Size - VT(4,0,4)
  1794. end
  1795. RING:remove()
  1796. end))
  1797. ATTACK = false
  1798. Rooted = false
  1799. end
  1800.  
  1801. function DivineGlow()
  1802. ATTACK = true
  1803. Rooted = true
  1804. for i=0, 2, 0.1 / Animation_Speed do
  1805. Swait()
  1806. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,0.5),0.5)
  1807. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1808. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1809. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1810. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1811. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1812. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1813. end
  1814. CreateSound("3264923", Torso, 10, 3)
  1815. coroutine.resume(coroutine.create(function()
  1816. local FRAME = Torso.CFrame
  1817. MagicSphere(VT(3,3,3),450,FRAME,"New Yeller",VT(-3/550,-3/550,-3/550),0)
  1818. for i = 1, 450 do
  1819. Swait()
  1820. MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"New Yeller",VT(0.001,0.001,2.5),0.5)
  1821. AoEDamage(FRAME.p,1,1,1,-5,false,12,3,false)
  1822. end
  1823. MagicSphere(VT(6,6,6),70,FRAME,"New Yeller",VT(1,1,1),0)
  1824. MagicSphere(VT(5,5,5),70,FRAME,"Pearl",VT(1,1,1),0.5)
  1825. AoEDamage(FRAME.p,55,45,45,-5,false,2,30,false)
  1826. end))
  1827. ATTACK = false
  1828. Rooted = false
  1829. end
  1830.  
  1831. --X MOVES--
  1832.  
  1833. function ShieldPulse()
  1834. ATTACK = true
  1835. Rooted = false
  1836. for i=0, 1, 0.1 / Animation_Speed do
  1837. Swait()
  1838. turnto(Mouse.Hit.p)
  1839. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1840. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1841. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1842. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1843. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1844. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1845. end
  1846. local shield = IT("Part",Effects)
  1847. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1848. shield.Size = VT(0.2,0.2,0.2)
  1849. shield.Anchored = true
  1850. shield.Material = "Neon"
  1851. shield.Color = C3(1,1,1)
  1852. shield.Transparency = 0.5
  1853. repeat
  1854. Swait()
  1855. turnto(Mouse.Hit.p)
  1856. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1857. shield.Size = shield.Size + VT(0.2,0.2,0)
  1858. until KEYHOLD == false
  1859. local bv = Instance.new("BodyVelocity")
  1860. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1861. bv.velocity = RootPart.CFrame.lookVector*300
  1862. bv.Parent = shield
  1863. shield.Anchored = false
  1864. shield.CanCollide = false
  1865. bv.Name = "PROJECTILEVELOCITY"
  1866. local BOO = shield.Touched:Connect(function(hit)
  1867. dealdamage(hit,55,75,5,false,2,3)
  1868. end)
  1869. Debris:AddItem(shield,5)
  1870. ATTACK = false
  1871. Rooted = false
  1872. end
  1873.  
  1874. function FireField()
  1875. ATTACK = true
  1876. Rooted = true
  1877. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  1878. Swait()
  1879. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1880. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1881. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1882. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1883. 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(0)), 0.15 / Animation_Speed)
  1884. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1885. end
  1886. CreateSound("217767125", LeftArm, 10, 1)
  1887. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1888. coroutine.resume(coroutine.create(function()
  1889. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  1890. for i = 1, 450 do
  1891. Swait()
  1892. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  1893. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  1894. end
  1895. end))
  1896. for i=0, 1.5, 0.1 / Animation_Speed do
  1897. Swait()
  1898. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1899. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1900. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1901. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1902. 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(0)), 0.15 / Animation_Speed)
  1903. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1904. end
  1905. ATTACK = false
  1906. Rooted = false
  1907. end
  1908.  
  1909. function FrostBreath()
  1910. ATTACK = true
  1911. Rooted = true
  1912. for i=0, 2, 0.1 / Animation_Speed do
  1913. Swait()
  1914. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1915. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1916. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1917. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1918. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1919. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1920. end
  1921. CreateSound("976606790", Head, 10, 2)
  1922. local IceColors = {"Steel blue","Cyan","Pastel blue-green"}
  1923. for i=0, 4, 0.1 / Animation_Speed do
  1924. Swait()
  1925. for i = 1, 6 do
  1926. AoEStun(Head.CFrame * CF(0,-0.4,-i*3).p,i*3,35,"Freeze")
  1927. CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/15,i/10,i/15),0.7)
  1928. CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/10,i/10,i/10),0.7)
  1929. end
  1930. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1931. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1932. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1933. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1934. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1935. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1936. end
  1937. ATTACK = false
  1938. Rooted = false
  1939. end
  1940.  
  1941. function Bloodbath()
  1942. local HASSTARTED = false
  1943. local target = nil
  1944. local targettorso = nil
  1945. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1946. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  1947. target = Mouse.Target.Parent.Humanoid
  1948. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  1949. end
  1950. end
  1951. if target ~= nil then
  1952. CreateSound("305685800", Head, 10, 1)
  1953. targettorso.Anchored = true
  1954. HASSTARTED = true
  1955. ATTACK = true
  1956. Rooted = true
  1957. CastWarpOutlines(Character)
  1958. RootPart.CFrame = targettorso.CFrame * CF(0,0,2)
  1959. coroutine.resume(coroutine.create(function()
  1960. Swait(10*100)
  1961. if HASSTARTED == true then
  1962. ATTACK = false
  1963. Rooted = false
  1964. UNANCHOR = true
  1965. end
  1966. end))
  1967. UNANCHOR = false
  1968. RootPart.Anchored = true
  1969. coroutine.resume(coroutine.create(function()
  1970. for i=0, 3, 0.1 / Animation_Speed do
  1971. Swait()
  1972. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed)
  1973. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed)
  1974. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1975. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed)
  1976. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1977. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1978. end
  1979. for i=0, 3, 0.1 / Animation_Speed do
  1980. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed)
  1981. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed)
  1982. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1983. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1984. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1985. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1986. end
  1987. getbloody(targettorso,25)
  1988. Swait(5)
  1989. targettorso:remove()
  1990. Swait(15)
  1991. ATTACK = false
  1992. Rooted = false
  1993. HASSTARTED = false
  1994. UNANCHOR = true
  1995. end))
  1996. end
  1997. end
  1998.  
  1999. function EarthTremor()
  2000. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2001. if HITFLOOR ~= nil then
  2002. ATTACK = true
  2003. Rooted = true
  2004. for i=0, 2, 0.1 / Animation_Speed do
  2005. Swait()
  2006. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2007. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2008. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2009. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2010. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2011. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.3 / Animation_Speed)
  2012. end
  2013. for i=0, 0.3, 0.1 / Animation_Speed do
  2014. Swait()
  2015. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2017. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2018. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2019. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  2020. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed)
  2021. end
  2022. CreateSound("438666141", RightLeg, 5, 1)
  2023. local sinkhole = IT("Part")
  2024. sinkhole.Size = VT(35,0,35)
  2025. sinkhole.Parent = Effects
  2026. sinkhole.Material = "Neon"
  2027. sinkhole.Color = C3(0,0,0)
  2028. sinkhole.Anchored = true
  2029. sinkhole.CanCollide = false
  2030. sinkhole.Transparency = 1
  2031. local decal = IT("Decal",sinkhole)
  2032. decal.Face = "Top"
  2033. decal.Texture = "http://www.roblox.com/asset/?id=29268434"
  2034. decal.Transparency = 1
  2035. sinkhole.CFrame = CF(RightLeg.Position)*CF(0,-0.75,0)
  2036. AoEDamage(RightLeg.Position,35,15,25,4,false,32,7,true)
  2037. coroutine.resume(coroutine.create(function()
  2038. for i = 1, 5 do
  2039. Swait()
  2040. decal.Transparency = decal.Transparency - 0.2
  2041. end
  2042. Swait(500)
  2043. for i = 1, 5 do
  2044. Swait()
  2045. decal.Transparency = decal.Transparency + 0.2
  2046. end
  2047. sinkhole:remove()
  2048. end))
  2049. for i=0, 1, 0.1 / Animation_Speed do
  2050. Swait()
  2051. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2052. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2053. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2054. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2055. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  2056. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed)
  2057. end
  2058. ATTACK = false
  2059. Rooted = false
  2060. end
  2061. end
  2062.  
  2063. function VoidWarp()
  2064. local HASSTARTED = false
  2065. local target = nil
  2066. local targettorso = nil
  2067. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  2068. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  2069. target = Mouse.Target.Parent.Humanoid
  2070. targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  2071. end
  2072. end
  2073. if target ~= nil then
  2074. ATTACK = true
  2075. Rooted = true
  2076. for i=0, 1.5, 0.1 / Animation_Speed do
  2077. Swait()
  2078. if targettorso ~= nil then
  2079. turnto(targettorso.Position)
  2080. end
  2081. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2085. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2087. end
  2088. if targettorso ~= nil then
  2089. local GUI,GUI3 = CreateGUICircle(targettorso)
  2090. local GUI2,GUI4 = CreateGUICircle(Torso)
  2091. CreateSound("1208650519", targettorso, 10, 1)
  2092. CreateSound("1208650519", Torso, 10, 1)
  2093. targettorso.Anchored = true
  2094. for i = 1, 200 do
  2095. Swait()
  2096. GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0)
  2097. GUI2.Size = GUI.Size
  2098. GUI3.Rotation = GUI3.Rotation + 2
  2099. GUI4.Rotation = GUI4.Rotation - 2
  2100. end
  2101. if targettorso ~= nil then
  2102. CastWarpOutlines(targettorso.Parent)
  2103. CastWarpOutlines(Character)
  2104. local TFrame = Torso.CFrame
  2105. local TTFrame = targettorso.CFrame
  2106. Torso.CFrame = TTFrame
  2107. targettorso.CFrame = TFrame
  2108. local HUMANOID = targettorso.Parent:FindFirstChildOfClass("Humanoid")
  2109. local dmg = MRANDOM(75,95)
  2110. HUMANOID.Health = HUMANOID.Health - dmg
  2111. StatLabel("Normal", targettorso.CFrame * CF(0, 0 + (targettorso.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  2112. CreateSound("1177785010", targettorso, 10, 1)
  2113. CreateSound("1177785010", Torso, 10, 1)
  2114. HASSTARTED = true
  2115. coroutine.resume(coroutine.create(function()
  2116. for i = 1, 50 do
  2117. Swait()
  2118. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  2119. GUI2.Size = GUI.Size
  2120. GUI3.Rotation = GUI3.Rotation - 8
  2121. GUI4.Rotation = GUI4.Rotation + 8
  2122. end
  2123. GUI:remove()
  2124. GUI2:remove()
  2125. targettorso.Anchored = false
  2126. end))
  2127. end
  2128. if HASSTARTED == false then
  2129. GUI:remove()
  2130. GUI2:remove()
  2131. end
  2132. end
  2133. ATTACK = false
  2134. Rooted = false
  2135. end
  2136. end
  2137.  
  2138. function DivineEvaporation()
  2139. ATTACK = true
  2140. Rooted = false
  2141. for i=0, 6, 0.1 / Animation_Speed do
  2142. Swait()
  2143. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,1),0)
  2144. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2145. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2146. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2147. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2148. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2149. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2150. end
  2151. CreateSound("3264923", Torso, 10, 1)
  2152. for i = 1, 50 do
  2153. MagicSphere(VT(0.2,0.2,0.2),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.005,0.005,0.1),0)
  2154. end
  2155. MagicSphere(VT(20,20,20),50,Torso.CFrame,"New Yeller",VT(0,0,0),0.9)
  2156. killnearest(Torso.Position,15,5)
  2157. ATTACK = false
  2158. Rooted = false
  2159. end
  2160.  
  2161.  
  2162. function LeafField()
  2163. ATTACK = true
  2164. Rooted = true
  2165. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  2166. Swait()
  2167. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2168. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2169. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2170. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2171. 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(0)), 0.15 / Animation_Speed)
  2172. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2173. end
  2174. CreateSound("217767125", LeftArm, 10, 1)
  2175. local FIREBALLCOLORS = {"Lime green", "Mint", "Forest green"}
  2176. coroutine.resume(coroutine.create(function()
  2177. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  2178. for i = 1, 450 do
  2179. Swait()
  2180. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  2181. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  2182. end
  2183. end))
  2184. for i=0, 1.5, 0.1 / Animation_Speed do
  2185. Swait()
  2186. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2190. 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(0)), 0.15 / Animation_Speed)
  2191. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2192. end
  2193. ATTACK = false
  2194. Rooted = false
  2195. end
  2196.  
  2197.  
  2198. function LeafStorm()
  2199. ATTACK = true
  2200. ATTACK = true
  2201. Rooted = false
  2202. for i=0, 2, 0.1 / Animation_Speed do
  2203. Swait()
  2204. turnto(Mouse.Hit.p)
  2205. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2206. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2207. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2208. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2209. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2210. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2211. end
  2212. Rooted = true
  2213. local TURRETS = {RightArm,LeftArm}
  2214. local soundeffect = IT("Sound",Torso)
  2215. soundeffect.SoundId = "rbxassetid://337638956"
  2216. soundeffect.Looped = true
  2217. soundeffect.Volume = 1
  2218. soundeffect.Playing = true
  2219. repeat
  2220. Swait()
  2221. turnto(Mouse.Hit.p)
  2222. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  2223. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Shamrock",VT(0.3,0.3,0.3),0)
  2224. local BULLET = CreatePart(3, Effects, "Grass", 0, 0, "Shamrock", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  2225. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  2226. local bv = Instance.new("BodyVelocity")
  2227. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2228. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  2229. bv.Parent = BULLET
  2230. bv.Name = "PROJECTILEVELOCITY"
  2231. MakeForm(BULLET,"Ball")
  2232. local BOO = BULLET.Touched:Connect(function(hit)
  2233. dealdamage(hit,5,8,5,false,2,3)
  2234. end)
  2235. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  2236. until KEYHOLD == false
  2237. soundeffect:remove()
  2238. ATTACK = false
  2239. Rooted = false
  2240. end
  2241.  
  2242. --//=================================\\
  2243. --|| ASSIGN THINGS TO KEYS
  2244. --\\=================================//
  2245.  
  2246. function ChineseEarthquake()
  2247. Rooted = true
  2248. local icri = CreateSound("1177999394", Torso, 10, 1)
  2249. Swait(130)
  2250. local FRAME = Torso.CFrame
  2251. repeat
  2252. Swait()
  2253. Torso.CFrame = FRAME * CF(0,1,0)
  2254. Swait()
  2255. Torso.CFrame = FRAME
  2256. until icri.Playing == false
  2257. Rooted = false
  2258. end
  2259.  
  2260. function MouseDown(Mouse)
  2261. if ATTACK == false then
  2262. end
  2263. end
  2264.  
  2265. function MouseUp(Mouse)
  2266. HOLD = false
  2267. end
  2268.  
  2269. function KeyDown(Key)
  2270. KEYHOLD = true
  2271. if Rooted == false then
  2272. if Key == "z" and ATTACK == false then
  2273. if VALUE1 == 1 then
  2274. TurretCannon()
  2275. elseif VALUE1 == 2 then
  2276. Fireball()
  2277. elseif VALUE1 == 3 then
  2278. IcicleStorm()
  2279. elseif VALUE1 == 4 then
  2280. Shriek()
  2281. elseif VALUE1 == 5 then
  2282. RockThrow()
  2283. elseif VALUE1 == 6 then
  2284. RadiantVoid()
  2285. elseif VALUE1 == 7 then
  2286. DivineGlow()
  2287. elseif VALUE1 == 8 then
  2288. LeafStorm()
  2289. end
  2290. end
  2291.  
  2292. if Key == "x" and ATTACK == false then
  2293. if VALUE1 == 1 then
  2294. ShieldPulse()
  2295. elseif VALUE1 == 2 then
  2296. FireField()
  2297. elseif VALUE1 == 3 then
  2298. FrostBreath()
  2299. elseif VALUE1 == 4 then
  2300. Bloodbath()
  2301. elseif VALUE1 == 5 then
  2302. EarthTremor()
  2303. elseif VALUE1 == 6 then
  2304. VoidWarp()
  2305. elseif VALUE1 == 7 then
  2306. DivineEvaporation()
  2307. elseif VALUE1 == 8 then
  2308. LeafField()
  2309. end
  2310. end
  2311.  
  2312. if Key == "1" and ATTACK == false then
  2313. Stance1()
  2314. end
  2315.  
  2316. if Key == "2" and ATTACK == false then
  2317. Stance2()
  2318. end
  2319.  
  2320. if Key == "3" and ATTACK == false then
  2321. Stance3()
  2322. end
  2323.  
  2324. if Key == "4" and ATTACK == false then
  2325. Stance4()
  2326. end
  2327.  
  2328. if Key == "5" and ATTACK == false then
  2329. Stance5()
  2330. end
  2331.  
  2332. if Key == "6" and ATTACK == false then
  2333. Stance6()
  2334. end
  2335.  
  2336. if Key == "7" and ATTACK == false then
  2337. Stance7()
  2338. end
  2339.  
  2340. if Key == "8" and ATTACK == false then
  2341. Stance8()
  2342. end
  2343.  
  2344. if Key == "t" and ATTACK == false and VALUE1 == 5 then
  2345. ChineseEarthquake()
  2346. end
  2347. end
  2348. end
  2349.  
  2350. function KeyUp(Key)
  2351. KEYHOLD = false
  2352. end
  2353.  
  2354. Mouse.Button1Down:connect(function(NEWKEY)
  2355. MouseDown(NEWKEY)
  2356. end)
  2357. Mouse.Button1Up:connect(function(NEWKEY)
  2358. MouseUp(NEWKEY)
  2359. end)
  2360. Mouse.KeyDown:connect(function(NEWKEY)
  2361. KeyDown(NEWKEY)
  2362. end)
  2363. Mouse.KeyUp:connect(function(NEWKEY)
  2364. KeyUp(NEWKEY)
  2365. end)
  2366.  
  2367. --//=================================\\
  2368. --\\=================================//
  2369.  
  2370.  
  2371. function unanchor()
  2372. if UNANCHOR == true then
  2373. g = Character:GetChildren()
  2374. for i = 1, #g do
  2375. if g[i].ClassName == "Part" then
  2376. g[i].Anchored = false
  2377. end
  2378. end
  2379. end
  2380. end
  2381.  
  2382.  
  2383. --//=================================\\
  2384. --|| WRAP THE WHOLE SCRIPT UP
  2385. --\\=================================//
  2386.  
  2387. Humanoid.Changed:connect(function(Jump)
  2388. if Jump == "Jump" and (Disable_Jump == true) then
  2389. Humanoid.Jump = false
  2390. end
  2391. end)
  2392.  
  2393. VALUE1 = 1
  2394. Speed = 25
  2395.  
  2396. while true do
  2397. Swait()
  2398. ANIMATE.Parent = nil
  2399. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2400. IDLEANIMATION:Play()
  2401. SINE = SINE + CHANGE
  2402. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2403. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2404. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2405. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2406. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  2407. if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then
  2408. 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)
  2409. 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)
  2410. --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)
  2411. --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)
  2412. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2413. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2414. 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)
  2415. --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)
  2416. --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)
  2417. end
  2418. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2419. ANIM = "Jump"
  2420. if ATTACK == false then
  2421. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2422. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2423. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2424. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2425. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2426. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2427. end
  2428. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2429. ANIM = "Fall"
  2430. if ATTACK == false then
  2431. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2432. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2433. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2434. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2435. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2436. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2437. end
  2438. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2439. ANIM = "Idle"
  2440. if ATTACK == false then
  2441. if VALUE1 == 1 then
  2442. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2443. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2444. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2445. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2446. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2447. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2448. elseif VALUE1 == 2 then
  2449. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  2450. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  2451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2453. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2454. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2455. elseif VALUE1 == 3 then
  2456. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2457. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2458. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2459. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2460. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2461. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2462. elseif VALUE1 == 4 then
  2463. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2464. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2465. if MRANDOM(1,5) == 1 then
  2466. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1)
  2467. end
  2468. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2469. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2470. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2471. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2472. elseif VALUE1 == 5 then
  2473. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2474. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2475. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2476. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2477. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2478. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2479. elseif VALUE1 == 6 then
  2480. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2481. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2482. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2483. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2484. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2485. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2486. if MRANDOM(1,25) == 1 then
  2487. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1)
  2488. end
  2489. elseif VALUE1 == 7 then
  2490. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2491. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2492. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2493. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2494. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2495. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2496. elseif VALUE1 == 8 then
  2497. 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(-25)), 0.15 / Animation_Speed)
  2498. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  2499. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2500. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2501. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2502. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2503. end
  2504. end
  2505. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2506. ANIM = "Walk"
  2507. WALK = WALK + 1 / Animation_Speed
  2508. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2509. WALK = 0
  2510. if WALKINGANIM == true then
  2511. WALKINGANIM = false
  2512. elseif WALKINGANIM == false then
  2513. WALKINGANIM = true
  2514. end
  2515. end
  2516. --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)
  2517. --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)
  2518. if ATTACK == false then
  2519. if VALUE1 < 4 or VALUE1 == 6 then
  2520. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2521. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2522. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2523. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2524. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2525. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2526. elseif VALUE1 == 4 then
  2527. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2528. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2529. if MRANDOM(1,15) == 1 then
  2530. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1)
  2531. end
  2532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2534. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed)
  2535. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed)
  2536. elseif VALUE1 == 7 then
  2537. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2538. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2539. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2540. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2541. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2542. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2543. elseif VALUE1 == 5 then
  2544. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2545. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2546. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2547. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2548. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2549. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2550. elseif VALUE1 == 8 then
  2551. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2552. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2553. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2554. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2555. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2556. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2557. end
  2558. end
  2559. end
  2560. if #Effects2>0 then
  2561. for e=1,#Effects2 do
  2562. if Effects2[e]~=nil then
  2563. local Thing=Effects2[e]
  2564. if Thing~=nil then
  2565. local Part=Thing[1]
  2566. local Mode=Thing[2]
  2567. local Delay=Thing[3]
  2568. local IncX=Thing[4]
  2569. local IncY=Thing[5]
  2570. local IncZ=Thing[6]
  2571. local Part2=Thing[8]
  2572. if Thing[1].Transparency<=1 then
  2573. if Thing[2]=="Block1" then
  2574. Thing[1].CFrame=Thing[1].CFrame
  2575. Mesh=Thing[1].Mesh
  2576. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2577. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2578. elseif Thing[2]=="Cylinder" then
  2579. Mesh=Thing[1].Mesh
  2580. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2581. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2582. elseif Thing[2]=="Blood" then
  2583. Mesh=Thing[7]
  2584. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2585. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2586. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2587. elseif Thing[2]=="Elec" then
  2588. Mesh=Thing[1].Mesh
  2589. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2590. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2591. elseif Thing[2]=="Disappear" then
  2592. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2593. elseif Thing[2]=="Evaporate" then
  2594. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2595. local C = {-5,-2,2,5}
  2596. MagicSphere(VT(0,0,0),15,CF(Thing[1].CFrame*CF(C[MRANDOM(1,#C)],C[MRANDOM(1,#C)],C[MRANDOM(1,#C)]).p,Thing[1].Position),"New Yeller",VT(0.01,0.01,0.5),0.8)
  2597. end
  2598. else
  2599. Part.Parent=nil
  2600. table.remove(Effects2,e)
  2601. end
  2602. end
  2603. end
  2604. end
  2605. end
  2606. unanchor()
  2607. Humanoid.MaxHealth = "inf"
  2608. Humanoid.Health = "inf"
  2609. if Rooted == false then
  2610. Disable_Jump = false
  2611. Humanoid.WalkSpeed = Speed
  2612. elseif Rooted == true then
  2613. Disable_Jump = true
  2614. Humanoid.WalkSpeed = 0
  2615. end
  2616. local MATHS = {"0","1"}
  2617. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  2618. Humanoid.PlatformStand = false
  2619. end
  2620.  
  2621. --//=================================\\
  2622. --\\=================================//
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628. --//====================================================\\--
  2629. --|| END OF SCRIPT
  2630. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement