Advertisement
Mr-Shadow_Cat

Some stuff

Feb 20th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 114.43 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://760856128"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  56. local NEWMESH = IT(MESH)
  57. if MESH == "SpecialMesh" then
  58. NEWMESH.MeshType = MESHTYPE
  59. if MESHID ~= "nil" and MESHID ~= "" then
  60. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  61. end
  62. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  63. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  64. end
  65. end
  66. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  67. NEWMESH.Scale = SCALE
  68. NEWMESH.Parent = PARENT
  69. return NEWMESH
  70. end
  71.  
  72. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, 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://760856128"
  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://731044437"
  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://1394470461"
  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://1239114293"
  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"Really red"
  1220. end
  1221. end
  1222. end
  1223. end
  1224.  
  1225. function Stance5()
  1226. VALUE1 = 5
  1227. SKILL1TEXT.Text = "[Z] Rock throw"
  1228. SKILL2TEXT.Text = "[X] Earth tremor"
  1229. sick.SoundId = "rbxassetid://1231708486"
  1230. local wep = Weapon:GetChildren()
  1231. for part = 1, #wep do
  1232. if wep[part].ClassName == "Part" then
  1233. local P = wep[part]
  1234. if P.Name == "01-Type" then
  1235. P.Material = "Cobblestone"
  1236. P.BrickColor = BRICKC"Rust"
  1237. elseif P.Name == "02-Type" then
  1238. P.Material = "Cobblestone"
  1239. P.BrickColor = BRICKC"CGA brown"
  1240. elseif P.Name == "03-Type" then
  1241. P.Material = "Marble"
  1242. P.BrickColor = BRICKC"Black"
  1243. elseif P.Name == "04-Type" then
  1244. P.Material = "Slate"
  1245. P.BrickColor = BRICKC"Pine cone"
  1246. end
  1247. end
  1248. end
  1249. end
  1250.  
  1251. function Stance6()
  1252. VALUE1 = 6
  1253. SKILL1TEXT.Text = "[Z] Radiant void"
  1254. SKILL2TEXT.Text = "[X] Void warp"
  1255. sick.SoundId = "rbxassetid://398104305"
  1256. local wep = Weapon:GetChildren()
  1257. for part = 1, #wep do
  1258. if wep[part].ClassName == "Part" then
  1259. local P = wep[part]
  1260. if P.Name == "01-Type" then
  1261. P.Material = "Granite"
  1262. P.BrickColor = BRICKC"Royal purple"
  1263. elseif P.Name == "02-Type" then
  1264. P.Material = "Slate"
  1265. P.BrickColor = BRICKC"Really black"
  1266. elseif P.Name == "03-Type" then
  1267. P.Material = "Metal"
  1268. P.BrickColor = BRICKC"Black"
  1269. elseif P.Name == "04-Type" then
  1270. P.Material = "Neon"
  1271. P.BrickColor = BRICKC"Royal purple"
  1272. end
  1273. end
  1274. end
  1275. end
  1276.  
  1277. function Stance7()
  1278. VALUE1 = 7
  1279. SKILL1TEXT.Text = "[Z] Divine glow"
  1280. SKILL2TEXT.Text = "[X] Divine evaporation"
  1281. sick.SoundId = "rbxassetid://709100631"
  1282. local wep = Weapon:GetChildren()
  1283. for part = 1, #wep do
  1284. if wep[part].ClassName == "Part" then
  1285. local P = wep[part]
  1286. if P.Name == "01-Type" then
  1287. P.Material = "Neon"
  1288. P.BrickColor = BRICKC"Stone grey"
  1289. elseif P.Name == "02-Type" then
  1290. P.Material = "Granite"
  1291. P.BrickColor = BRICKC"Gold"
  1292. elseif P.Name == "03-Type" then
  1293. P.Material = "Metal"
  1294. P.BrickColor = BRICKC"Gold"
  1295. elseif P.Name == "04-Type" then
  1296. P.Material = "Granite"
  1297. P.BrickColor = BRICKC"New Yeller"
  1298. end
  1299. end
  1300. end
  1301. end
  1302.  
  1303. function Stance8()
  1304. VALUE1 = 8
  1305. SKILL1TEXT.Text = "[Z] Leaf Storm"
  1306. SKILL2TEXT.Text = "[X] Leaf Field"
  1307. sick.SoundId = "rbxassetid://958799098"
  1308. local wep = Weapon:GetChildren()
  1309. for part = 1, #wep do
  1310. if wep[part].ClassName == "Part" then
  1311. local P = wep[part]
  1312. if P.Name == "01-Type" then
  1313. P.Material = "Granite"
  1314. P.BrickColor = BRICKC"1020"
  1315. elseif P.Name == "02-Type" then
  1316. P.Material = "Slate"
  1317. P.BrickColor = BRICKC"Really black"
  1318. elseif P.Name == "03-Type" then
  1319. P.Material = "Metal"
  1320. P.BrickColor = BRICKC"Shamrock"
  1321. elseif P.Name == "04-Type" then
  1322. P.Material = "Neon"
  1323. P.BrickColor = BRICKC"1020"
  1324. end
  1325. end
  1326. end
  1327. end
  1328.  
  1329. function createfireball(size,explosionsize,pos,velocity)
  1330. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1331. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  1332. local FIREBALL = IT("Part",Effects)
  1333. FIREBALL.Shape = "Ball"
  1334. FIREBALL.Size = VT(size,size,size)
  1335. FIREBALL.Material = "Neon"
  1336. FIREBALL.CFrame = CF(pos)
  1337. FIREBALL.Transparency = 1
  1338. local bv = Instance.new("BodyVelocity")
  1339. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1340. bv.velocity = velocity
  1341. bv.Parent = FIREBALL
  1342. bv.Name = "MOVE"
  1343. local HIT = false
  1344. local harm = FIREBALL.Touched:Connect(function(hit)
  1345. if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then
  1346. HIT = true
  1347. coroutine.resume(coroutine.create(function()
  1348. FIREBALL.Anchored = true
  1349. FIREBALL.CanCollide = false
  1350. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1)
  1351. AoEDamage(FIREBALL.Position,explosionsize*2,45,65,25,false,3,2,false,true)
  1352. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3,3,3),0)
  1353. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3.5,3.5,3.5),0)
  1354. Swait(250)
  1355. FIREBALL:remove()
  1356. end))
  1357. end
  1358. end)
  1359. coroutine.resume(coroutine.create(function()
  1360. repeat
  1361. Swait()
  1362. MagicSphere(VT(size,size,size),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-size/15,-size/15,-size/15),0)
  1363. until HIT == true
  1364. end))
  1365. return FIREBALL
  1366. end
  1367.  
  1368. function AttackTemplate()
  1369. ATTACK = true
  1370. Rooted = false
  1371. for i=0, 1, 0.1 / Animation_Speed do
  1372. Swait()
  1373. 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)
  1374. 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)
  1375. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1376. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1377. 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)
  1378. 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)
  1379. end
  1380. ATTACK = false
  1381. Rooted = false
  1382. end
  1383.  
  1384. local asd = Instance.new("ParticleEmitter")
  1385. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1386. asd.LightEmission = .1
  1387. asd.Size = NumberSequence.new(0.2)
  1388. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1389. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1390. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1391. asd.Transparency = bbb
  1392. asd.Size = aaa
  1393. asd.ZOffset = .9
  1394. asd.Acceleration = Vector3.new(0, -15, 0)
  1395. asd.LockedToPart = false
  1396. asd.EmissionDirection = "Back"
  1397. asd.Lifetime = NumberRange.new(1, 2)
  1398. asd.Rotation = NumberRange.new(-100, 100)
  1399. asd.RotSpeed = NumberRange.new(-100, 100)
  1400. asd.Speed = NumberRange.new(25,35)
  1401. asd.Enabled = false
  1402. asd.VelocitySpread = 15
  1403.  
  1404. function getbloody(victim,amount)
  1405. local PART = IT("Part",Effects)
  1406. PART.Transparency = 1
  1407. PART.Size = victim.Size
  1408. PART.Anchored = true
  1409. PART.CanCollide = false
  1410. PART.CFrame = CF(victim.Position,Torso.Position)
  1411. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1412. Debris:AddItem(PART,5)
  1413. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1414. local prtcl = asd:Clone()
  1415. prtcl.Parent = PART
  1416. prtcl:Emit(amount*10)
  1417. end
  1418.  
  1419. function CreateMagicCircle()
  1420. local sinkhole = IT("Part")
  1421. sinkhole.Size = VT(0,0,0)
  1422. sinkhole.Parent = Effects
  1423. sinkhole.Material = "Neon"
  1424. sinkhole.Color = C3(0,0,0)
  1425. sinkhole.Anchored = true
  1426. sinkhole.CanCollide = false
  1427. sinkhole.Transparency = 1
  1428. local decal = IT("Decal",sinkhole)
  1429. decal.Face = "Top"
  1430. decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1431. local decal2 = IT("Decal",sinkhole)
  1432. decal2.Face = "Bottom"
  1433. decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1434. return sinkhole
  1435. end
  1436.  
  1437. function CreateLeafMagicCircle()
  1438. local sinkhole = IT("Part")
  1439. sinkhole.Size = VT(0,0,0)
  1440. sinkhole.Parent = Effects
  1441. sinkhole.Material = "Neon"
  1442. sinkhole.Color = C3(0,0,0)
  1443. sinkhole.Anchored = true
  1444. sinkhole.CanCollide = false
  1445. sinkhole.Transparency = 1
  1446. local decal = IT("Decal",sinkhole)
  1447. decal.Face = "Top"
  1448. decal.Texture = "http://www.roblox.com/asset/?id=332014171"
  1449. local decal2 = IT("Decal",sinkhole)
  1450. decal2.Face = "Bottom"
  1451. decal2.Texture = "http://www.roblox.com/asset/?id=332014171"
  1452. return sinkhole
  1453. end
  1454.  
  1455. function CreateGUICircle(TARGET)
  1456. local GUI = Instance.new("BillboardGui",Character)
  1457. GUI.Size = UDim2.new(0,0,0,0)
  1458. GUI.Adornee = TARGET
  1459. local GUI2 = IT("ImageLabel",GUI)
  1460. GUI2.BackgroundTransparency = 1
  1461. GUI2.BorderSizePixel = 0
  1462. GUI2.Size = UDim2.new(1,0,1,0)
  1463. GUI2.SizeConstraint = "RelativeYY"
  1464. GUI.AlwaysOnTop = true
  1465. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  1466. return GUI,GUI2
  1467. end
  1468.  
  1469. function CastWarpOutlines(TARGET)
  1470. coroutine.resume(coroutine.create(function()
  1471. local T = TARGET:GetChildren()
  1472. for i = 1, # T do
  1473. local child = T[i]
  1474. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1475. local clone = child:Clone()
  1476. clone.Parent = Effects
  1477. clone.Anchored = true
  1478. clone.CanCollide = false
  1479. clone:ClearAllChildren()
  1480. clone.CFrame = child.CFrame
  1481. if clone.Name == "Head" then
  1482. if TARGET:FindFirstChildOfClass("MeshPart") == nil then
  1483. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  1484. end
  1485. end
  1486. if clone.ClassName == "MeshPart" then
  1487. clone.TextureID = ""
  1488. end
  1489. clone.BrickColor = BRICKC"Black"
  1490. clone.Material = "Neon"
  1491. coroutine.resume(coroutine.create(function()
  1492. for i = 1, 200 do
  1493. Swait()
  1494. clone.Transparency = clone.Transparency + 0.005
  1495. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  1496. end
  1497. clone:remove()
  1498. end))
  1499. end
  1500. end
  1501. end))
  1502. end
  1503.  
  1504. --Z MOVES--
  1505.  
  1506. function TurretCannon()
  1507. ATTACK = true
  1508. Rooted = false
  1509. for i=0, 2, 0.1 / Animation_Speed do
  1510. Swait()
  1511. turnto(Mouse.Hit.p)
  1512. 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)
  1513. 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)
  1514. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1515. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1516. 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)
  1517. 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)
  1518. end
  1519. Rooted = true
  1520. local TURRETS = {RightArm,LeftArm}
  1521. local soundeffect = IT("Sound",Torso)
  1522. soundeffect.SoundId = "rbxassetid://337638956"
  1523. soundeffect.Looped = true
  1524. soundeffect.Volume = 1
  1525. soundeffect.Playing = true
  1526. repeat
  1527. Swait()
  1528. turnto(Mouse.Hit.p)
  1529. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  1530. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"New Yeller",VT(0.3,0.3,0.3),0)
  1531. local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  1532. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  1533. local bv = Instance.new("BodyVelocity")
  1534. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1535. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  1536. bv.Parent = BULLET
  1537. bv.Name = "PROJECTILEVELOCITY"
  1538. MakeForm(BULLET,"Ball")
  1539. local BOO = BULLET.Touched:Connect(function(hit)
  1540. dealdamage(hit,5,8,5,false,2,3)
  1541. end)
  1542. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  1543. until KEYHOLD == false
  1544. soundeffect:remove()
  1545. ATTACK = false
  1546. Rooted = false
  1547. end
  1548.  
  1549. function Fireball()
  1550. ATTACK = true
  1551. Rooted = true
  1552. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1553. CreateSound("169445572", RightArm, 2, 1.6)
  1554. for i=0, 5, 0.1 / Animation_Speed2 do
  1555. Swait()
  1556. 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)
  1557. turnto(Mouse.Hit.p)
  1558. 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)
  1559. 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)
  1560. 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)
  1561. 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)
  1562. 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)
  1563. 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)
  1564. end
  1565. local aimpos = Mouse.Hit.p
  1566. createfireball(2,8,RightArm.CFrame * CF(0,-2,0).p,CF(RightArm.CFrame * CF(0,-2,0).p,aimpos).lookVector*100)
  1567. for i=0, 1.5, 0.1 / Animation_Speed2 do
  1568. Swait()
  1569. 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)
  1570. 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)
  1571. 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)
  1572. 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)
  1573. 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)
  1574. 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)
  1575. end
  1576. ATTACK = false
  1577. Rooted = false
  1578. end
  1579.  
  1580. function IcicleStorm()
  1581. ATTACK = true
  1582. Rooted = false
  1583. local BulletHolder = IT("Folder",Weapon)
  1584. BulletHolder.Name = "Bullets"
  1585. game:GetService("Debris"):AddItem(BulletHolder, 30)
  1586. for i=0, 3, 0.1 / Animation_Speed do
  1587. Swait()
  1588. 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)
  1589. 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)
  1590. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1591. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1592. 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)
  1593. 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)
  1594. end
  1595. CreateSound("333476017", Torso, 10, 1)
  1596. for i = 1, 25 do
  1597. Swait()
  1598. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1599. coroutine.resume(coroutine.create(function()
  1600. local gem = IT("Part",BulletHolder)
  1601. gem.Size = VT(0.2,0.2,0.2)
  1602. gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(25,50),math.random(-25,25))
  1603. gem.Anchored = true
  1604. gem.BrickColor = BRICKC"Steel blue"
  1605. local Cys = Instance.new("SpecialMesh", gem)
  1606. Cys.MeshType = "FileMesh"
  1607. Cys.MeshId = "rbxassetid://9756362"
  1608. Cys.Scale = Vector3.new(2,2,2)
  1609. end))
  1610. end
  1611. local IceHitSounds = {
  1612. "338594737",
  1613. "338594687",
  1614. "338594666",
  1615. "338594648",
  1616. "338594606",
  1617. "338594574",
  1618. "338594556",
  1619. "338594524",
  1620. "338594467"
  1621. }
  1622. coroutine.resume(coroutine.create(function()
  1623. q = BulletHolder:GetChildren()
  1624. for i = 1, #q do
  1625. Swait()
  1626. turnto(Mouse.Hit.p)
  1627. local bullet = q[i]
  1628. local bv = Instance.new("BodyVelocity")
  1629. bullet.Mesh.Scale = VT(2,2,5)
  1630. bullet.CFrame = CF(bullet.Position,Mouse.Hit.p)
  1631. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1632. bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*500
  1633. bv.Parent = bullet
  1634. bv.Name = "DASH"
  1635. bullet.Anchored = false
  1636. local paw = bullet.Touched:Connect(function(hit)
  1637. if bullet.Anchored == false then
  1638. CreateSound(IceHitSounds[math.random(1, #IceHitSounds)], bullet, 3, 1)
  1639. local cframe = bullet.CFrame
  1640. bullet.Anchored = true
  1641. table.insert(Effects2,{bullet,"Block1",0.015,0,0,0,2})
  1642. AoEDamage(bullet.Position,5,15,15,0,false,5,3,false)
  1643. if MRANDOM(1,45) == 1 then
  1644. AoEStun(bullet.Position,5,5,"Freeze")
  1645. end
  1646. end
  1647. end)
  1648. end
  1649. end))
  1650. ATTACK = false
  1651. Rooted = false
  1652. end
  1653.  
  1654. function Shriek()
  1655. ATTACK = true
  1656. Rooted = false
  1657. for i=0, 1, 0.1 / Animation_Speed do
  1658. Swait()
  1659. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1660. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1661. 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)
  1662. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1663. 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)
  1664. 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)
  1665. end
  1666. Rooted = true
  1667. CreateSound("439369949", Effects, 10, 1)
  1668. for i=0, 3, 0.1 / Animation_Speed do
  1669. Swait()
  1670. MagicSphere(VT(2,2,2),5,Head.CFrame,"Pearl",VT(35,35,35),0.97)
  1671. AoEDamage(Head.Position,65,3,5,4,false,12,3,false)
  1672. AoEStun(Head.Position,65,2,"Stun")
  1673. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1674. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)),1 / Animation_Speed)
  1675. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1676. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1677. 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)
  1678. 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)
  1679. end
  1680. ATTACK = false
  1681. Rooted = false
  1682. end
  1683.  
  1684. function clerp(a, b, t)
  1685. return a:lerp(b, t)
  1686. end
  1687.  
  1688. function newBezier(startpos, pos2, pos3, endpos, t)
  1689. local A = clerp(startpos, pos2, t)
  1690. local B = clerp(pos2, pos3, t)
  1691. local C = clerp(pos3, endpos, t)
  1692. local lerp1 = clerp(A, B, t)
  1693. local lerp2 = clerp(B, C, t)
  1694. local cubic = clerp(lerp1, lerp2, t)
  1695. return cubic
  1696. end
  1697.  
  1698. function RockThrow()
  1699. ATTACK = true
  1700. Rooted = false
  1701. for i=0, 2, 0.1 / Animation_Speed do
  1702. Swait()
  1703. 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)
  1704. 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)
  1705. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1706. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1707. 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)
  1708. 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)
  1709. end
  1710. local ROCK = IT("Part",Effects)
  1711. ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0)
  1712. ROCK.Size = VT(1.2,1.2,1.2)
  1713. ROCK.Material = "Cobblestone"
  1714. ROCK.Transparency = 1
  1715. ROCK.BrickColor = BRICKC"Pine Cone"
  1716. local WELD = weldBetween(RightArm,ROCK)
  1717. ROCK.CanCollide = false
  1718. for i = 1, 10 do
  1719. Swait()
  1720. ROCK.Transparency = ROCK.Transparency - 0.1
  1721. end
  1722. for i=0, 0.2, 0.1 / Animation_Speed do
  1723. Swait()
  1724. turnto(Mouse.Hit.p)
  1725. 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)
  1726. 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)
  1727. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1728. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1729. 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)
  1730. 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)
  1731. end
  1732. WELD:remove()
  1733. coroutine.resume(coroutine.create(function()
  1734. local POS = ROCK.Position
  1735. ROCK.Anchored = true
  1736. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  1737. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  1738. for i = 0, 1, 0.07 do
  1739. Swait()
  1740. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  1741. end
  1742. ROCK.Anchored = false
  1743. ROCK.CanCollide = true
  1744. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Pearl",VT(1,0.2,1),0.5)
  1745. AoEDamage(ROCK.Position,5,35,55,4,false,12,3,true)
  1746. Swait(500)
  1747. ROCK.Anchored = true
  1748. ROCK.CanCollide = false
  1749. for i = 1, 10 do
  1750. Swait()
  1751. ROCK.Transparency = ROCK.Transparency + 0.1
  1752. end
  1753. ROCK:remove()
  1754. end))
  1755. for i=0, 1.6, 0.1 / Animation_Speed do
  1756. Swait()
  1757. 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)
  1758. 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)
  1759. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1760. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1761. 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)
  1762. 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)
  1763. end
  1764. ATTACK = false
  1765. Rooted = false
  1766. end
  1767.  
  1768. function RadiantVoid()
  1769. ATTACK = true
  1770. Rooted = true
  1771. for i=0, 1, 0.1 / Animation_Speed do
  1772. Swait()
  1773. 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)
  1774. 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)
  1775. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1776. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1777. 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)
  1778. 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)
  1779. end
  1780. local RING = CreateMagicCircle()
  1781. RING.CFrame = CF(RootPart.Position)*CF(0,-2.8,0)
  1782. CreateSound("1208650519", Torso, 10, 1)
  1783. for i = 1, 200 do
  1784. Swait()
  1785. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/15),RAD(0))
  1786. RING.Size = RING.Size + VT(1,0,1)
  1787. end
  1788. AoEWarp(RING.Position,RING.Size.X/2)
  1789. coroutine.resume(coroutine.create(function()
  1790. Swait(75)
  1791. for i = 1, 50 do
  1792. Swait()
  1793. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(-i/2),RAD(0))
  1794. RING.Size = RING.Size - VT(4,0,4)
  1795. end
  1796. RING:remove()
  1797. end))
  1798. ATTACK = false
  1799. Rooted = false
  1800. end
  1801.  
  1802. function DivineGlow()
  1803. ATTACK = true
  1804. Rooted = true
  1805. for i=0, 2, 0.1 / Animation_Speed do
  1806. Swait()
  1807. 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)
  1808. 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)
  1809. 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)
  1810. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1811. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1812. 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)
  1813. 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)
  1814. end
  1815. CreateSound("3264923", Torso, 10, 3)
  1816. coroutine.resume(coroutine.create(function()
  1817. local FRAME = Torso.CFrame
  1818. MagicSphere(VT(3,3,3),450,FRAME,"New Yeller",VT(-3/550,-3/550,-3/550),0)
  1819. for i = 1, 450 do
  1820. Swait()
  1821. 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)
  1822. AoEDamage(FRAME.p,35,3,5,-5,false,12,3,false)
  1823. end
  1824. MagicSphere(VT(6,6,6),70,FRAME,"New Yeller",VT(1,1,1),0)
  1825. MagicSphere(VT(5,5,5),70,FRAME,"Pearl",VT(1,1,1),0.5)
  1826. AoEDamage(FRAME.p,55,45,45,-5,false,2,30,false)
  1827. end))
  1828. ATTACK = false
  1829. Rooted = false
  1830. end
  1831.  
  1832. --X MOVES--
  1833.  
  1834. function ShieldPulse()
  1835. ATTACK = true
  1836. Rooted = false
  1837. for i=0, 1, 0.1 / Animation_Speed do
  1838. Swait()
  1839. turnto(Mouse.Hit.p)
  1840. 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)
  1841. 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)
  1842. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1843. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1844. 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)
  1845. 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)
  1846. end
  1847. local shield = IT("Part",Effects)
  1848. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1849. shield.Size = VT(0.2,0.2,0.2)
  1850. shield.Anchored = true
  1851. shield.Material = "Neon"
  1852. shield.Color = C3(1,1,1)
  1853. shield.Transparency = 0.5
  1854. repeat
  1855. Swait()
  1856. turnto(Mouse.Hit.p)
  1857. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1858. shield.Size = shield.Size + VT(0.07,0.07,0)
  1859. until KEYHOLD == false
  1860. local bv = Instance.new("BodyVelocity")
  1861. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1862. bv.velocity = RootPart.CFrame.lookVector*300
  1863. bv.Parent = shield
  1864. shield.Anchored = false
  1865. shield.CanCollide = false
  1866. bv.Name = "PROJECTILEVELOCITY"
  1867. local BOO = shield.Touched:Connect(function(hit)
  1868. dealdamage(hit,55,75,5,false,2,3)
  1869. end)
  1870. Debris:AddItem(shield,5)
  1871. ATTACK = false
  1872. Rooted = false
  1873. end
  1874.  
  1875. function FireField()
  1876. ATTACK = true
  1877. Rooted = true
  1878. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  1879. Swait()
  1880. 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)
  1881. 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)
  1882. 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)
  1883. 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)
  1884. 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)
  1885. 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)
  1886. end
  1887. CreateSound("217767125", LeftArm, 10, 1)
  1888. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1889. coroutine.resume(coroutine.create(function()
  1890. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  1891. for i = 1, 450 do
  1892. Swait()
  1893. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  1894. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  1895. end
  1896. end))
  1897. for i=0, 1.5, 0.1 / Animation_Speed do
  1898. Swait()
  1899. 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)
  1900. 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)
  1901. 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)
  1902. 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)
  1903. 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)
  1904. 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)
  1905. end
  1906. ATTACK = false
  1907. Rooted = false
  1908. end
  1909.  
  1910. function FrostBreath()
  1911. ATTACK = true
  1912. Rooted = true
  1913. for i=0, 2, 0.1 / Animation_Speed do
  1914. Swait()
  1915. 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)
  1916. 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)
  1917. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1919. 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)
  1920. 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)
  1921. end
  1922. CreateSound("976606790", Head, 10, 2)
  1923. local IceColors = {"Steel blue","Cyan","Pastel blue-green"}
  1924. for i=0, 4, 0.1 / Animation_Speed do
  1925. Swait()
  1926. for i = 1, 6 do
  1927. AoEStun(Head.CFrame * CF(0,-0.4,-i*3).p,i*3,35,"Freeze")
  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/15,i/10,i/15),0.7)
  1929. 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)
  1930. end
  1931. 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)
  1932. 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)
  1933. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1934. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1935. 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)
  1936. 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)
  1937. end
  1938. ATTACK = false
  1939. Rooted = false
  1940. end
  1941.  
  1942. function Bloodbath()
  1943. local HASSTARTED = false
  1944. local target = nil
  1945. local targettorso = nil
  1946. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1947. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  1948. target = Mouse.Target.Parent.Humanoid
  1949. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  1950. end
  1951. end
  1952. if target ~= nil then
  1953. CreateSound("305685800", Head, 10, 1)
  1954. targettorso.Anchored = true
  1955. HASSTARTED = true
  1956. ATTACK = true
  1957. Rooted = true
  1958. CastWarpOutlines(Character)
  1959. RootPart.CFrame = targettorso.CFrame * CF(0,0,2)
  1960. coroutine.resume(coroutine.create(function()
  1961. Swait(10*100)
  1962. if HASSTARTED == true then
  1963. ATTACK = false
  1964. Rooted = false
  1965. UNANCHOR = true
  1966. end
  1967. end))
  1968. UNANCHOR = false
  1969. RootPart.Anchored = true
  1970. coroutine.resume(coroutine.create(function()
  1971. for i=0, 3, 0.1 / Animation_Speed do
  1972. Swait()
  1973. 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)
  1974. 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)
  1975. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1976. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed)
  1977. 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)
  1978. 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)
  1979. end
  1980. for i=0, 3, 0.1 / Animation_Speed do
  1981. 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)
  1982. 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)
  1983. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1984. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1985. 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)
  1986. 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)
  1987. end
  1988. getbloody(targettorso,25)
  1989. Swait(5)
  1990. targettorso:remove()
  1991. Swait(15)
  1992. ATTACK = false
  1993. Rooted = false
  1994. HASSTARTED = false
  1995. UNANCHOR = true
  1996. end))
  1997. end
  1998. end
  1999.  
  2000. function EarthTremor()
  2001. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2002. if HITFLOOR ~= nil then
  2003. ATTACK = true
  2004. Rooted = true
  2005. for i=0, 2, 0.1 / Animation_Speed do
  2006. Swait()
  2007. 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)
  2008. 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)
  2009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2011. 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)
  2012. 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)
  2013. end
  2014. for i=0, 0.3, 0.1 / Animation_Speed do
  2015. Swait()
  2016. 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)
  2017. 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)
  2018. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2020. 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)
  2021. 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)
  2022. end
  2023. CreateSound("438666141", RightLeg, 5, 1)
  2024. local sinkhole = IT("Part")
  2025. sinkhole.Size = VT(35,0,35)
  2026. sinkhole.Parent = Effects
  2027. sinkhole.Material = "Neon"
  2028. sinkhole.Color = C3(0,0,0)
  2029. sinkhole.Anchored = true
  2030. sinkhole.CanCollide = false
  2031. sinkhole.Transparency = 1
  2032. local decal = IT("Decal",sinkhole)
  2033. decal.Face = "Top"
  2034. decal.Texture = "http://www.roblox.com/asset/?id=29268434"
  2035. decal.Transparency = 1
  2036. sinkhole.CFrame = CF(RightLeg.Position)*CF(0,-0.75,0)
  2037. AoEDamage(RightLeg.Position,35,15,25,4,false,32,7,true)
  2038. coroutine.resume(coroutine.create(function()
  2039. for i = 1, 5 do
  2040. Swait()
  2041. decal.Transparency = decal.Transparency - 0.2
  2042. end
  2043. Swait(500)
  2044. for i = 1, 5 do
  2045. Swait()
  2046. decal.Transparency = decal.Transparency + 0.2
  2047. end
  2048. sinkhole:remove()
  2049. end))
  2050. for i=0, 1, 0.1 / Animation_Speed do
  2051. Swait()
  2052. 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)
  2053. 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)
  2054. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2055. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2056. 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)
  2057. 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)
  2058. end
  2059. ATTACK = false
  2060. Rooted = false
  2061. end
  2062. end
  2063.  
  2064. function VoidWarp()
  2065. local HASSTARTED = false
  2066. local target = nil
  2067. local targettorso = nil
  2068. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  2069. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  2070. target = Mouse.Target.Parent.Humanoid
  2071. targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  2072. end
  2073. end
  2074. if target ~= nil then
  2075. ATTACK = true
  2076. Rooted = true
  2077. for i=0, 1.5, 0.1 / Animation_Speed do
  2078. Swait()
  2079. if targettorso ~= nil then
  2080. turnto(targettorso.Position)
  2081. end
  2082. 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)
  2083. 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)
  2084. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2085. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2086. 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)
  2087. 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)
  2088. end
  2089. if targettorso ~= nil then
  2090. local GUI,GUI3 = CreateGUICircle(targettorso)
  2091. local GUI2,GUI4 = CreateGUICircle(Torso)
  2092. CreateSound("1208650519", targettorso, 10, 1)
  2093. CreateSound("1208650519", Torso, 10, 1)
  2094. targettorso.Anchored = true
  2095. for i = 1, 200 do
  2096. Swait()
  2097. GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0)
  2098. GUI2.Size = GUI.Size
  2099. GUI3.Rotation = GUI3.Rotation + 2
  2100. GUI4.Rotation = GUI4.Rotation - 2
  2101. end
  2102. if targettorso ~= nil then
  2103. CastWarpOutlines(targettorso.Parent)
  2104. CastWarpOutlines(Character)
  2105. local TFrame = Torso.CFrame
  2106. local TTFrame = targettorso.CFrame
  2107. Torso.CFrame = TTFrame
  2108. targettorso.CFrame = TFrame
  2109. local HUMANOID = targettorso.Parent:FindFirstChildOfClass("Humanoid")
  2110. local dmg = MRANDOM(75,95)
  2111. HUMANOID.Health = HUMANOID.Health - dmg
  2112. StatLabel("Normal", targettorso.CFrame * CF(0, 0 + (targettorso.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  2113. CreateSound("1177785010", targettorso, 10, 1)
  2114. CreateSound("1177785010", Torso, 10, 1)
  2115. HASSTARTED = true
  2116. coroutine.resume(coroutine.create(function()
  2117. for i = 1, 50 do
  2118. Swait()
  2119. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  2120. GUI2.Size = GUI.Size
  2121. GUI3.Rotation = GUI3.Rotation - 8
  2122. GUI4.Rotation = GUI4.Rotation + 8
  2123. end
  2124. GUI:remove()
  2125. GUI2:remove()
  2126. targettorso.Anchored = false
  2127. end))
  2128. end
  2129. if HASSTARTED == false then
  2130. GUI:remove()
  2131. GUI2:remove()
  2132. end
  2133. end
  2134. ATTACK = false
  2135. Rooted = false
  2136. end
  2137. end
  2138.  
  2139. function DivineEvaporation()
  2140. ATTACK = true
  2141. Rooted = false
  2142. for i=0, 6, 0.1 / Animation_Speed do
  2143. Swait()
  2144. 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)
  2145. 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)
  2146. 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)
  2147. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2148. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2149. 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)
  2150. 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)
  2151. end
  2152. CreateSound("3264923", Torso, 10, 1)
  2153. for i = 1, 50 do
  2154. 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)
  2155. end
  2156. MagicSphere(VT(20,20,20),50,Torso.CFrame,"New Yeller",VT(0,0,0),0.9)
  2157. killnearest(Torso.Position,15,5)
  2158. ATTACK = false
  2159. Rooted = false
  2160. end
  2161.  
  2162.  
  2163. function LeafField()
  2164. ATTACK = true
  2165. Rooted = true
  2166. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  2167. Swait()
  2168. 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)
  2169. 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)
  2170. 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)
  2171. 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)
  2172. 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)
  2173. 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)
  2174. end
  2175. CreateSound("217767125", LeftArm, 10, 1)
  2176. local FIREBALLCOLORS = {"Lime green", "Mint", "Forest green"}
  2177. coroutine.resume(coroutine.create(function()
  2178. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  2179. for i = 1, 450 do
  2180. Swait()
  2181. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  2182. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  2183. end
  2184. end))
  2185. for i=0, 1.5, 0.1 / Animation_Speed do
  2186. Swait()
  2187. 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)
  2188. 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)
  2189. 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)
  2190. 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)
  2191. 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)
  2192. 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)
  2193. end
  2194. ATTACK = false
  2195. Rooted = false
  2196. end
  2197.  
  2198.  
  2199. function LeafStorm()
  2200. ATTACK = true
  2201. ATTACK = true
  2202. Rooted = false
  2203. for i=0, 2, 0.1 / Animation_Speed do
  2204. Swait()
  2205. turnto(Mouse.Hit.p)
  2206. 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)
  2207. 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)
  2208. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2209. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2210. 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)
  2211. 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)
  2212. end
  2213. Rooted = true
  2214. local TURRETS = {RightArm,LeftArm}
  2215. local soundeffect = IT("Sound",Torso)
  2216. soundeffect.SoundId = "rbxassetid://337638956"
  2217. soundeffect.Looped = true
  2218. soundeffect.Volume = 1
  2219. soundeffect.Playing = true
  2220. repeat
  2221. Swait()
  2222. turnto(Mouse.Hit.p)
  2223. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  2224. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Shamrock",VT(0.3,0.3,0.3),0)
  2225. local BULLET = CreatePart(3, Effects, "Grass", 0, 0, "Shamrock", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  2226. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  2227. local bv = Instance.new("BodyVelocity")
  2228. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2229. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  2230. bv.Parent = BULLET
  2231. bv.Name = "PROJECTILEVELOCITY"
  2232. MakeForm(BULLET,"Ball")
  2233. local BOO = BULLET.Touched:Connect(function(hit)
  2234. dealdamage(hit,5,8,5,false,2,3)
  2235. end)
  2236. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  2237. until KEYHOLD == false
  2238. soundeffect:remove()
  2239. ATTACK = false
  2240. Rooted = false
  2241. end
  2242.  
  2243. --//=================================\\
  2244. --|| ASSIGN THINGS TO KEYS
  2245. --\\=================================//
  2246.  
  2247. function ChineseEarthquake()
  2248. Rooted = true
  2249. local icri = CreateSound("1177999394", Torso, 10, 1)
  2250. Swait(130)
  2251. local FRAME = Torso.CFrame
  2252. repeat
  2253. Swait()
  2254. Torso.CFrame = FRAME * CF(0,1,0)
  2255. Swait()
  2256. Torso.CFrame = FRAME
  2257. until icri.Playing == false
  2258. Rooted = false
  2259. end
  2260.  
  2261. function MouseDown(Mouse)
  2262. if ATTACK == false then
  2263. end
  2264. end
  2265.  
  2266. function MouseUp(Mouse)
  2267. HOLD = false
  2268. end
  2269.  
  2270. function KeyDown(Key)
  2271. KEYHOLD = true
  2272. if Rooted == false then
  2273. if Key == "z" and ATTACK == false then
  2274. if VALUE1 == 1 then
  2275. TurretCannon()
  2276. elseif VALUE1 == 2 then
  2277. Fireball()
  2278. elseif VALUE1 == 3 then
  2279. IcicleStorm()
  2280. elseif VALUE1 == 4 then
  2281. Shriek()
  2282. elseif VALUE1 == 5 then
  2283. RockThrow()
  2284. elseif VALUE1 == 6 then
  2285. RadiantVoid()
  2286. elseif VALUE1 == 7 then
  2287. DivineGlow()
  2288. elseif VALUE1 == 8 then
  2289. LeafStorm()
  2290. end
  2291. end
  2292.  
  2293. if Key == "x" and ATTACK == false then
  2294. if VALUE1 == 1 then
  2295. ShieldPulse()
  2296. elseif VALUE1 == 2 then
  2297. FireField()
  2298. elseif VALUE1 == 3 then
  2299. FrostBreath()
  2300. elseif VALUE1 == 4 then
  2301. Bloodbath()
  2302. elseif VALUE1 == 5 then
  2303. EarthTremor()
  2304. elseif VALUE1 == 6 then
  2305. VoidWarp()
  2306. elseif VALUE1 == 7 then
  2307. DivineEvaporation()
  2308. elseif VALUE1 == 8 then
  2309. LeafField()
  2310. end
  2311. end
  2312.  
  2313. if Key == "1" and ATTACK == false then
  2314. Stance1()
  2315. end
  2316.  
  2317. if Key == "2" and ATTACK == false then
  2318. Stance2()
  2319. end
  2320.  
  2321. if Key == "3" and ATTACK == false then
  2322. Stance3()
  2323. end
  2324.  
  2325. if Key == "4" and ATTACK == false then
  2326. Stance4()
  2327. end
  2328.  
  2329. if Key == "5" and ATTACK == false then
  2330. Stance5()
  2331. end
  2332.  
  2333. if Key == "6" and ATTACK == false then
  2334. Stance6()
  2335. end
  2336.  
  2337. if Key == "7" and ATTACK == false then
  2338. Stance7()
  2339. end
  2340.  
  2341. if Key == "8" and ATTACK == false then
  2342. Stance8()
  2343. end
  2344.  
  2345. if Key == "t" and ATTACK == false and VALUE1 == 5 then
  2346. ChineseEarthquake()
  2347. end
  2348. end
  2349. end
  2350.  
  2351. function KeyUp(Key)
  2352. KEYHOLD = false
  2353. end
  2354.  
  2355. Mouse.Button1Down:connect(function(NEWKEY)
  2356. MouseDown(NEWKEY)
  2357. end)
  2358. Mouse.Button1Up:connect(function(NEWKEY)
  2359. MouseUp(NEWKEY)
  2360. end)
  2361. Mouse.KeyDown:connect(function(NEWKEY)
  2362. KeyDown(NEWKEY)
  2363. end)
  2364. Mouse.KeyUp:connect(function(NEWKEY)
  2365. KeyUp(NEWKEY)
  2366. end)
  2367.  
  2368. --//=================================\\
  2369. --\\=================================//
  2370.  
  2371.  
  2372. function unanchor()
  2373. if UNANCHOR == true then
  2374. g = Character:GetChildren()
  2375. for i = 1, #g do
  2376. if g[i].ClassName == "Part" then
  2377. g[i].Anchored = false
  2378. end
  2379. end
  2380. end
  2381. end
  2382.  
  2383.  
  2384. --//=================================\\
  2385. --|| WRAP THE WHOLE SCRIPT UP
  2386. --\\=================================//
  2387.  
  2388. Humanoid.Changed:connect(function(Jump)
  2389. if Jump == "Jump" and (Disable_Jump == true) then
  2390. Humanoid.Jump = false
  2391. end
  2392. end)
  2393.  
  2394. VALUE1 = 1
  2395. Speed = 25
  2396.  
  2397. while true do
  2398. Swait()
  2399. ANIMATE.Parent = nil
  2400. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2401. IDLEANIMATION:Play()
  2402. SINE = SINE + CHANGE
  2403. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2404. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2405. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2406. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2407. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  2408. if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then
  2409. 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)
  2410. 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)
  2411. --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)
  2412. --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)
  2413. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2414. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2415. 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)
  2416. --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)
  2417. --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)
  2418. end
  2419. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2420. ANIM = "Jump"
  2421. if ATTACK == false then
  2422. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2425. 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)
  2426. 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)
  2427. 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)
  2428. end
  2429. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2430. ANIM = "Fall"
  2431. if ATTACK == false then
  2432. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2433. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2434. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2435. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2436. 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)
  2437. 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)
  2438. end
  2439. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2440. ANIM = "Idle"
  2441. if ATTACK == false then
  2442. if VALUE1 == 1 then
  2443. 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)
  2444. 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)
  2445. 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)
  2446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2447. 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)
  2448. 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)
  2449. elseif VALUE1 == 2 then
  2450. 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)
  2451. 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)
  2452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2454. 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)
  2455. 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)
  2456. elseif VALUE1 == 3 then
  2457. 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)
  2458. 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)
  2459. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2460. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2461. 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)
  2462. 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)
  2463. elseif VALUE1 == 4 then
  2464. 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)
  2465. 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)
  2466. if MRANDOM(1,15) == 1 then
  2467. 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)
  2468. end
  2469. 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)
  2470. 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)
  2471. 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)
  2472. 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)
  2473. elseif VALUE1 == 5 then
  2474. 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)
  2475. 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)
  2476. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2477. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2478. 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)
  2479. 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)
  2480. elseif VALUE1 == 6 then
  2481. 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)
  2482. 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)
  2483. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2484. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2485. 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)
  2486. 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)
  2487. elseif VALUE1 == 7 then
  2488. 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)
  2489. 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)
  2490. 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)
  2491. 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)
  2492. 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)
  2493. 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)
  2494. elseif VALUE1 == 8 then
  2495. 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)
  2496. 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)
  2497. 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)
  2498. 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)
  2499. 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)
  2500. 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)
  2501. end
  2502. end
  2503. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2504. ANIM = "Walk"
  2505. WALK = WALK + 1 / Animation_Speed
  2506. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2507. WALK = 0
  2508. if WALKINGANIM == true then
  2509. WALKINGANIM = false
  2510. elseif WALKINGANIM == false then
  2511. WALKINGANIM = true
  2512. end
  2513. end
  2514. --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)
  2515. --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)
  2516. if ATTACK == false then
  2517. if VALUE1 < 4 or VALUE1 == 6 then
  2518. 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)
  2519. 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)
  2520. 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)
  2521. 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)
  2522. 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)
  2523. 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)
  2524. elseif VALUE1 == 4 then
  2525. 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)
  2526. 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)
  2527. if MRANDOM(1,15) == 1 then
  2528. 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)
  2529. end
  2530. 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)
  2531. 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)
  2532. 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)
  2533. 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)
  2534. elseif VALUE1 == 7 then
  2535. 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)
  2536. 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)
  2537. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2538. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2539. 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)
  2540. 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)
  2541. elseif VALUE1 == 5 then
  2542. 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)
  2543. 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)
  2544. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2545. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2546. 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)
  2547. 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)
  2548. elseif VALUE1 == 8 then
  2549. 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)
  2550. 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)
  2551. 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)
  2552. 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)
  2553. 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)
  2554. 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)
  2555. end
  2556. end
  2557. end
  2558. if #Effects2>0 then
  2559. for e=1,#Effects2 do
  2560. if Effects2[e]~=nil then
  2561. local Thing=Effects2[e]
  2562. if Thing~=nil then
  2563. local Part=Thing[1]
  2564. local Mode=Thing[2]
  2565. local Delay=Thing[3]
  2566. local IncX=Thing[4]
  2567. local IncY=Thing[5]
  2568. local IncZ=Thing[6]
  2569. local Part2=Thing[8]
  2570. if Thing[1].Transparency<=1 then
  2571. if Thing[2]=="Block1" then
  2572. Thing[1].CFrame=Thing[1].CFrame
  2573. Mesh=Thing[1].Mesh
  2574. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2575. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2576. elseif Thing[2]=="Cylinder" then
  2577. Mesh=Thing[1].Mesh
  2578. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2579. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2580. elseif Thing[2]=="Blood" then
  2581. Mesh=Thing[7]
  2582. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2583. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2584. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2585. elseif Thing[2]=="Elec" then
  2586. Mesh=Thing[1].Mesh
  2587. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2588. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2589. elseif Thing[2]=="Disappear" then
  2590. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2591. elseif Thing[2]=="Evaporate" then
  2592. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2593. local C = {-5,-2,2,5}
  2594. 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)
  2595. end
  2596. else
  2597. Part.Parent=nil
  2598. table.remove(Effects2,e)
  2599. end
  2600. end
  2601. end
  2602. end
  2603. end
  2604. unanchor()
  2605. Humanoid.MaxHealth = "inf"
  2606. Humanoid.Health = "inf"
  2607. if Rooted == false then
  2608. Disable_Jump = false
  2609. Humanoid.WalkSpeed = Speed
  2610. elseif Rooted == true then
  2611. Disable_Jump = true
  2612. Humanoid.WalkSpeed = 0
  2613. end
  2614. local MATHS = {"0","1"}
  2615. 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)]
  2616. Humanoid.PlatformStand = false
  2617. end
  2618.  
  2619. --//=================================\\
  2620. --\\=================================//
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626. --//====================================================\\--
  2627. --|| END OF SCRIPT
  2628. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement