Dark_EccentricYT

Untitled

May 27th, 2018
2,529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.34 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://1140435341"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 0.5
  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. Player_Size = 1 --Size of the player.
  98. Animation_Speed = 3
  99. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  100.  
  101. local Speed = 16
  102. local Effects2 = {}
  103.  
  104. --//=================================\\
  105. --|| END OF CUSTOMIZATION
  106. --\\=================================//
  107.  
  108. local function weldBetween(a, b)
  109. local weldd = Instance.new("ManualWeld")
  110. weldd.Part0 = a
  111. weldd.Part1 = b
  112. weldd.C0 = CFrame.new()
  113. weldd.C1 = b.CFrame:inverse() * a.CFrame
  114. weldd.Parent = a
  115. return weldd
  116. end
  117.  
  118. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  119. local acs = Instance.new("Part")
  120. acs.CanCollide = false
  121. acs.Anchored = false
  122. acs.Size = Vector3.new(0,0,0)
  123. acs.CFrame = attachmentpart.CFrame
  124. acs.Parent = Character
  125. acs.BrickColor = color
  126. local meshs = Instance.new("SpecialMesh")
  127. meshs.MeshId = mesh
  128. meshs.TextureId = texture
  129. meshs.Parent = acs
  130. meshs.Scale = scale
  131. meshs.Offset = offset
  132. weldBetween(attachmentpart,acs)
  133. end
  134.  
  135. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  136. if TYPE == "Gem" then
  137. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  138. acs.Anchored = false
  139. acs.CanCollide = false
  140. acs.CFrame = PART.CFrame
  141. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  142. weldBetween(PART,acs)
  143. elseif TYPE == "Skull" then
  144. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  145. acs.Anchored = false
  146. acs.CanCollide = false
  147. acs.CFrame = PART.CFrame
  148. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  149. weldBetween(PART,acs)
  150. elseif TYPE == "Eye" then
  151. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  152. acs.Anchored = false
  153. acs.CanCollide = false
  154. acs.CFrame = PART.CFrame
  155. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  156. weldBetween(PART,acs)
  157. end
  158. end
  159.  
  160. --//=================================\\
  161. --|| USEFUL VALUES
  162. --\\=================================//
  163.  
  164. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  165. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  166. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  167. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  168. local CHANGEDEFENSE = 0
  169. local CHANGEDAMAGE = 0
  170. local CHANGEMOVEMENT = 0
  171. local ANIM = "Idle"
  172. local ATTACK = false
  173. local EQUIPPED = false
  174. local HOLD = false
  175. local COMBO = 1
  176. local Rooted = false
  177. local SINE = 0
  178. local KEYHOLD = false
  179. local CHANGE = 2 / Animation_Speed
  180. local WALKINGANIM = false
  181. local WALK = 0
  182. local VALUE1 = false
  183. local VALUE2 = false
  184. local ROBLOXIDLEANIMATION = IT("Animation")
  185. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  186. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  187. --ROBLOXIDLEANIMATION.Parent = Humanoid
  188. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  189. WEAPONGUI.Name = "Weapon GUI"
  190. local Weapon = IT("Model")
  191. Weapon.Name = "Adds"
  192. local Effects = IT("Folder", Weapon)
  193. Effects.Name = "Effects"
  194. local ANIMATOR = Humanoid.Animator
  195. local ANIMATE = Character.Animate
  196. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  197. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  198. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  199. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  200. local UNANCHOR = true
  201.  
  202. local SKILLTEXTCOLOR = C3(0,0,0)
  203. local CHOSENBRICK = "Really red"
  204.  
  205. --//=================================\\
  206. --\\=================================//
  207.  
  208.  
  209. --//=================================\\
  210. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  211. --\\=================================//
  212.  
  213. ArtificialHB = Instance.new("BindableEvent", script)
  214. ArtificialHB.Name = "ArtificialHB"
  215.  
  216. script:WaitForChild("ArtificialHB")
  217.  
  218. frame = Frame_Speed
  219. tf = 0
  220. allowframeloss = false
  221. tossremainder = false
  222. lastframe = tick()
  223. script.ArtificialHB:Fire()
  224.  
  225. game:GetService("RunService").Heartbeat:connect(function(s, p)
  226. tf = tf + s
  227. if tf >= frame then
  228. if allowframeloss then
  229. script.ArtificialHB:Fire()
  230. lastframe = tick()
  231. else
  232. for i = 1, math.floor(tf / frame) do
  233. script.ArtificialHB:Fire()
  234. end
  235. lastframe = tick()
  236. end
  237. if tossremainder then
  238. tf = 0
  239. else
  240. tf = tf - frame * math.floor(tf / frame)
  241. end
  242. end
  243. end)
  244.  
  245. --//=================================\\
  246. --\\=================================//
  247.  
  248.  
  249.  
  250.  
  251.  
  252. --//=================================\\
  253. --|| SOME FUNCTIONS
  254. --\\=================================//
  255.  
  256. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  257. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  258. end
  259.  
  260. function PositiveAngle(NUMBER)
  261. if NUMBER >= 0 then
  262. NUMBER = 0
  263. end
  264. return NUMBER
  265. end
  266.  
  267. function NegativeAngle(NUMBER)
  268. if NUMBER <= 0 then
  269. NUMBER = 0
  270. end
  271. return NUMBER
  272. end
  273.  
  274. function Swait(NUMBER)
  275. if NUMBER == 0 or NUMBER == nil then
  276. ArtificialHB.Event:wait()
  277. else
  278. for i = 1, NUMBER do
  279. ArtificialHB.Event:wait()
  280. end
  281. end
  282. end
  283.  
  284. function QuaternionFromCFrame(cf)
  285. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  286. local trace = m00 + m11 + m22
  287. if trace > 0 then
  288. local s = math.sqrt(1 + trace)
  289. local recip = 0.5 / s
  290. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  291. else
  292. local i = 0
  293. if m11 > m00 then
  294. i = 1
  295. end
  296. if m22 > (i == 0 and m00 or m11) then
  297. i = 2
  298. end
  299. if i == 0 then
  300. local s = math.sqrt(m00 - m11 - m22 + 1)
  301. local recip = 0.5 / s
  302. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  303. elseif i == 1 then
  304. local s = math.sqrt(m11 - m22 - m00 + 1)
  305. local recip = 0.5 / s
  306. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  307. elseif i == 2 then
  308. local s = math.sqrt(m22 - m00 - m11 + 1)
  309. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  310. end
  311. end
  312. end
  313.  
  314. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  315. local xs, ys, zs = x + x, y + y, z + z
  316. local wx, wy, wz = w * xs, w * ys, w * zs
  317. local xx = x * xs
  318. local xy = x * ys
  319. local xz = x * zs
  320. local yy = y * ys
  321. local yz = y * zs
  322. local zz = z * zs
  323. 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))
  324. end
  325.  
  326. function QuaternionSlerp(a, b, t)
  327. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  328. local startInterp, finishInterp;
  329. if cosTheta >= 0.0001 then
  330. if (1 - cosTheta) > 0.0001 then
  331. local theta = ACOS(cosTheta)
  332. local invSinTheta = 1 / SIN(theta)
  333. startInterp = SIN((1 - t) * theta) * invSinTheta
  334. finishInterp = SIN(t * theta) * invSinTheta
  335. else
  336. startInterp = 1 - t
  337. finishInterp = t
  338. end
  339. else
  340. if (1 + cosTheta) > 0.0001 then
  341. local theta = ACOS(-cosTheta)
  342. local invSinTheta = 1 / SIN(theta)
  343. startInterp = SIN((t - 1) * theta) * invSinTheta
  344. finishInterp = SIN(t * theta) * invSinTheta
  345. else
  346. startInterp = t - 1
  347. finishInterp = t
  348. end
  349. end
  350. 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
  351. end
  352.  
  353. function Clerp(a, b, t)
  354. local qa = {QuaternionFromCFrame(a)}
  355. local qb = {QuaternionFromCFrame(b)}
  356. local ax, ay, az = a.x, a.y, a.z
  357. local bx, by, bz = b.x, b.y, b.z
  358. local _t = 1 - t
  359. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  360. end
  361.  
  362. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  363. local frame = IT("Frame")
  364. frame.BackgroundTransparency = TRANSPARENCY
  365. frame.BorderSizePixel = BORDERSIZEPIXEL
  366. frame.Position = POSITION
  367. frame.Size = SIZE
  368. frame.BackgroundColor3 = COLOR
  369. frame.BorderColor3 = BORDERCOLOR
  370. frame.Name = NAME
  371. frame.Parent = PARENT
  372. return frame
  373. end
  374.  
  375. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  376. local label = IT("TextLabel")
  377. label.BackgroundTransparency = 1
  378. label.Size = UD2(1, 0, 1, 0)
  379. label.Position = UD2(0, 0, 0, 0)
  380. label.TextColor3 = TEXTCOLOR
  381. label.TextStrokeTransparency = STROKETRANSPARENCY
  382. label.TextTransparency = TRANSPARENCY
  383. label.FontSize = TEXTFONTSIZE
  384. label.Font = TEXTFONT
  385. label.BorderSizePixel = BORDERSIZEPIXEL
  386. label.TextScaled = false
  387. label.Text = TEXT
  388. label.Name = NAME
  389. label.Parent = PARENT
  390. return label
  391. end
  392.  
  393. function NoOutlines(PART)
  394. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  395. end
  396.  
  397.  
  398. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  399. local NEWWELD = IT(TYPE)
  400. NEWWELD.Part0 = PART0
  401. NEWWELD.Part1 = PART1
  402. NEWWELD.C0 = C0
  403. NEWWELD.C1 = C1
  404. NEWWELD.Parent = PARENT
  405. return NEWWELD
  406. end
  407.  
  408. function CreateSound(ID, PARENT, VOLUME, PITCH)
  409. local NEWSOUND = nil
  410. coroutine.resume(coroutine.create(function()
  411. NEWSOUND = IT("Sound", PARENT)
  412. NEWSOUND.Volume = VOLUME
  413. NEWSOUND.Pitch = PITCH
  414. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  415. Swait()
  416. NEWSOUND:play()
  417. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  418. end))
  419. return NEWSOUND
  420. end
  421.  
  422. function CFrameFromTopBack(at, top, back)
  423. local right = top:Cross(back)
  424. 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)
  425. end
  426.  
  427. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  428. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  429. local mesh = IT("SpecialMesh",wave)
  430. mesh.MeshType = "FileMesh"
  431. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  432. mesh.Scale = SIZE
  433. mesh.Offset = VT(0,0,-SIZE.X/8)
  434. wave.CFrame = CFRAME
  435. coroutine.resume(coroutine.create(function(PART)
  436. for i = 1, WAIT do
  437. Swait()
  438. mesh.Scale = mesh.Scale + GROW
  439. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  440. if DOESROT == true then
  441. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  442. end
  443. wave.Transparency = wave.Transparency + (0.5/WAIT)
  444. if wave.Transparency > 0.99 then
  445. wave:remove()
  446. end
  447. end
  448. end))
  449. end
  450.  
  451. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  452. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  453. local mesh = IT("SpecialMesh",wave)
  454. mesh.MeshType = "FileMesh"
  455. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  456. mesh.Scale = SIZE
  457. mesh.Offset = VT(0,0,-SIZE.X/8)
  458. wave.CFrame = CFRAME
  459. coroutine.resume(coroutine.create(function(PART)
  460. for i = 1, WAIT do
  461. Swait()
  462. mesh.Scale = mesh.Scale + GROW
  463. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  464. if DOESROT == true then
  465. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  466. end
  467. wave.Transparency = wave.Transparency + (0.5/WAIT)
  468. if wave.Transparency > 0.99 then
  469. wave:remove()
  470. end
  471. end
  472. end))
  473. end
  474.  
  475. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  476. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  477. local mesh = IT("SpecialMesh",wave)
  478. mesh.MeshType = "FileMesh"
  479. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  480. mesh.Scale = SIZE
  481. mesh.Offset = VT(0,0,-SIZE.X/8)
  482. wave.CFrame = CFRAME
  483. coroutine.resume(coroutine.create(function(PART)
  484. for i = 1, WAIT do
  485. Swait()
  486. mesh.Scale = mesh.Scale + GROW
  487. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  488. if DOESROT == true then
  489. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  490. end
  491. wave.Transparency = wave.Transparency + (0.5/WAIT)
  492. if wave.Transparency > 0.99 then
  493. wave:remove()
  494. end
  495. end
  496. end))
  497. end
  498.  
  499. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  500. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  501. local mesh = IT("SpecialMesh",wave)
  502. mesh.MeshType = "FileMesh"
  503. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  504. mesh.Scale = SIZE
  505. mesh.Offset = VT(0,0,-SIZE.X/8)
  506. wave.CFrame = CFRAME
  507. coroutine.resume(coroutine.create(function(PART)
  508. for i = 1, WAIT do
  509. Swait()
  510. mesh.Scale = mesh.Scale + GROW
  511. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  512. if DOESROT == true then
  513. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  514. end
  515. wave.Transparency = wave.Transparency + (0.5/WAIT)
  516. if wave.Transparency > 0.99 then
  517. wave:remove()
  518. end
  519. end
  520. end))
  521. end
  522.  
  523. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  524. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  525. local mesh = IT("SpecialMesh",wave)
  526. mesh.MeshType = "FileMesh"
  527. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  528. mesh.Scale = SIZE
  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 + (0.5/WAIT)
  539. if wave.Transparency > 0.99 then
  540. wave:remove()
  541. end
  542. end
  543. end))
  544. end
  545.  
  546. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  547. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, 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=102638417"
  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. if DOESROT == true then
  558. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  559. end
  560. wave.Transparency = wave.Transparency + (0.5/WAIT)
  561. if wave.Transparency > 0.99 then
  562. wave:remove()
  563. end
  564. end
  565. end))
  566. end
  567.  
  568. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  569. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  570. local mesh = IT("SpecialMesh",wave)
  571. mesh.MeshType = "FileMesh"
  572. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  573. mesh.Scale = SIZE
  574. mesh.Offset = VT(0,0,0)
  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 + (0.5/WAIT)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  592. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  593. local mesh = IT("SpecialMesh",wave)
  594. mesh.MeshType = "Sphere"
  595. mesh.Scale = SIZE
  596. mesh.Offset = VT(0,0,0)
  597. wave.CFrame = CFRAME
  598. coroutine.resume(coroutine.create(function(PART)
  599. for i = 1, WAIT do
  600. Swait()
  601. mesh.Scale = mesh.Scale + GROW
  602. wave.Transparency = wave.Transparency + (1/WAIT)
  603. if wave.Transparency > 0.99 then
  604. wave:remove()
  605. end
  606. end
  607. end))
  608. end
  609.  
  610. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  611. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  612. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  613. wave.CFrame = CFRAME
  614. coroutine.resume(coroutine.create(function(PART)
  615. for i = 1, WAIT do
  616. Swait()
  617. mesh.Scale = mesh.Scale * GROW
  618. wave.Transparency = wave.Transparency + (0.5/WAIT)
  619. if wave.Transparency > 0.99 then
  620. wave:remove()
  621. end
  622. end
  623. end))
  624. end
  625.  
  626. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  627. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  628. local mesh = IT("BlockMesh",wave)
  629. wave.CFrame = CFRAME
  630. coroutine.resume(coroutine.create(function(PART)
  631. for i = 1, WAIT do
  632. Swait()
  633. mesh.Scale = mesh.Scale + GROW
  634. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  635. wave.Transparency = wave.Transparency + (1/WAIT)
  636. if wave.Transparency > 0.99 then
  637. wave:remove()
  638. end
  639. end
  640. end))
  641. end
  642.  
  643. function MakeForm(PART,TYPE)
  644. if TYPE == "Cyl" then
  645. local MSH = IT("CylinderMesh",PART)
  646. elseif TYPE == "Ball" then
  647. local MSH = IT("SpecialMesh",PART)
  648. MSH.MeshType = "Sphere"
  649. elseif TYPE == "Wedge" then
  650. local MSH = IT("SpecialMesh",PART)
  651. MSH.MeshType = "Wedge"
  652. end
  653. end
  654.  
  655. function CheckTableForString(Table, String)
  656. for i, v in pairs(Table) do
  657. if string.find(string.lower(String), string.lower(v)) then
  658. return true
  659. end
  660. end
  661. return false
  662. end
  663.  
  664. function CheckIntangible(Hit)
  665. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  666. if Hit and Hit.Parent then
  667. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  668. return true
  669. end
  670. end
  671. return false
  672. end
  673.  
  674. Debris = game:GetService("Debris")
  675.  
  676. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  677. local Direction = CFrame.new(StartPos, Vec).lookVector
  678. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  679. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  680. if RayHit and CheckIntangible(RayHit) then
  681. if DelayIfHit then
  682. wait()
  683. end
  684. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  685. end
  686. return RayHit, RayPos, RayNormal
  687. end
  688.  
  689. function turnto(position)
  690. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  691. end
  692.  
  693. --//=================================\\
  694. --|| WEAPON CREATION
  695. --\\=================================//
  696.  
  697. local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
  698. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(15)), CF(0, 0, 0))
  699. local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false)
  700. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  701. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Acid", VT(0.65,1.4,0.65),false)
  702. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  703. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
  704. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  705.  
  706. local DECAL = IT("Decal",Part)
  707. DECAL.Texture = "http://www.roblox.com/asset/?id=119041112"
  708. DECAL.Face = "Top"
  709.  
  710. local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
  711. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.6, 0, 0.5) * ANGLES(RAD(80), RAD(0), RAD(15)), CF(0, 0, 0))
  712. local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.5,1.4,0.5),false)
  713. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  714. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Earth green", "Acid", VT(0.45,1.4,0.45),false)
  715. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  716. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
  717. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  718.  
  719. local DECAL = IT("Decal",Part)
  720. DECAL.Texture = "http://www.roblox.com/asset/?id=1172964487"
  721. DECAL.Face = "Top"
  722.  
  723. local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
  724. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.5, -0.5, 0.45) * ANGLES(RAD(110), RAD(0), RAD(15)), CF(0, 0, 0))
  725. local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.4,1.4,0.4),false)
  726. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  727. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Dark indigo", "Acid", VT(0.35,1.4,0.35),false)
  728. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  729. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
  730. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  731.  
  732. local DECAL = IT("Decal",Part)
  733. DECAL.Texture = "http://www.roblox.com/asset/?id=54466758"
  734. DECAL.Face = "Top"
  735.  
  736. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,1.1),false)
  737. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  738. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.55,0.7,1.1),false)
  739. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  740. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,0.525),false)
  741. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.28, 0, 0) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0))
  742. MakeForm(Part,"Wedge")
  743.  
  744. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
  745. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  746. MakeForm(Part,"Wedge")
  747.  
  748. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
  749. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  750. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  751. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
  752. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  753. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
  754. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
  755. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  756. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
  757. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  758.  
  759. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.1,0.2,0.1),false)
  760. CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(-0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  761. MakeForm(Part,"Ball")
  762. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.1,0.2,0.1),false)
  763. CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  764. MakeForm(Part,"Ball")
  765.  
  766. for _, c in pairs(Weapon:GetChildren()) do
  767. if c.ClassName == "Part" then
  768. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  769. end
  770. end
  771.  
  772. Weapon.Parent = Character
  773.  
  774. Humanoid.Died:connect(function()
  775. ATTACK = true
  776. end)
  777.  
  778. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  779. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  780. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  781.  
  782. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  783. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  784. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Toggle tanks", C3(0,0,0), 8, "SciFi", 0, 2, 1, "Text 3")
  785.  
  786. --//=================================\\
  787. --|| DAMAGE FUNCTIONS
  788. --\\=================================//
  789.  
  790. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  791. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  792. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  793. local BODYGYRO = IT("BodyGyro", STATPART)
  794. local BODYPOSITION = IT("BodyPosition", STATPART)
  795. BODYPOSITION.P = 2000
  796. BODYPOSITION.D = 100
  797. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  798. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  799. game:GetService("Debris"):AddItem(STATPART ,5)
  800. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  801. BILLBOARDGUI.Adornee = STATPART
  802. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  803. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  804. BILLBOARDGUI.AlwaysOnTop = false
  805. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  806. TEXTLABEL.BackgroundTransparency = 1
  807. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  808. TEXTLABEL.Text = TEXT
  809. TEXTLABEL.Font = "SciFi"
  810. TEXTLABEL.FontSize="Size42"
  811. TEXTLABEL.TextColor3 = COLOR
  812. TEXTLABEL.TextStrokeTransparency = 1
  813. TEXTLABEL.TextScaled = true
  814. TEXTLABEL.TextWrapped = true
  815. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  816. if LABELTYPE == "Normal" then
  817. for i = 1, 30 do
  818. Swait()
  819. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  820. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  821. end
  822. elseif LABELTYPE == "Debuff" then
  823. for i = 1, 30 do
  824. Swait()
  825. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  826. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  827. end
  828. elseif LABELTYPE == "Shock" then
  829. local ORIGIN = STATPART.Position
  830. for i = 1, 30 do
  831. Swait()
  832. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  833. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  834. end
  835. end
  836. THEPART.Parent = nil
  837. end),STATPART, BODYPOSITION, TEXTLABEL)
  838. end
  839.  
  840. --//=================================\\
  841. --|| DAMAGING
  842. --\\=================================//
  843.  
  844. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  845. local defence = Instance.new("BoolValue",Humanoid.Parent)
  846. defence.Name = ("HitBy"..Player.Name)
  847. game:GetService("Debris"):AddItem(defence, 0.5)
  848. if Humanoid.Health ~= 0 then
  849. local CritChance = MRANDOM(1,100)
  850. if CritChance < CritRate + 1 then
  851. Damage = Damage*CritMultiplier
  852. end
  853. if Damage > Humanoid.Health then
  854. Damage = Humanoid.Health
  855. end
  856. Humanoid.Health = Humanoid.Health - Damage
  857. if Humanoid.Parent:FindFirstChild("Head") then
  858. if CritChance < CritRate + 1 then
  859. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  860. else
  861. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  862. end
  863. end
  864. end
  865. end
  866.  
  867. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  868. local dmg = math.random(min,max)
  869. for i,v in ipairs(workspace:GetChildren()) do
  870. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  871. local body = v:GetChildren()
  872. for part = 1, #body do
  873. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  874. if(body[part].Position - position).Magnitude < radius then
  875. if v.ClassName == "Model" then
  876. if v:FindFirstChildOfClass("Humanoid") then
  877. if CanBeDodgedByJumping == true then
  878. if body[part].Position.Y < position.Y+5 then
  879. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  880. end
  881. else
  882. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  883. end
  884. local bv = Instance.new("BodyVelocity")
  885. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  886. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  887. bv.Parent = body[part]
  888. Debris:AddItem(bv,0.2)
  889. end
  890. end
  891. end
  892. end
  893. end
  894. end
  895. if v:FindFirstChild("HitBy"..Player.Name) then
  896. v:FindFirstChild("HitBy"..Player.Name):remove()
  897. end
  898. end
  899. end
  900.  
  901. function AoEStun(POS,RANGE,LAST)
  902. for i,v in ipairs(workspace:GetChildren()) do
  903. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  904. local body = v:GetChildren()
  905. for part = 1, #body do
  906. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  907. if(body[part].Position - POS).Magnitude < RANGE then
  908. if v.ClassName == "Model" then
  909. if v:FindFirstChild("Humanoid") then
  910. if v.Humanoid.Health ~= 0 then
  911. Stun(v.Humanoid,LAST)
  912. local defence = Instance.new("BoolValue",v)
  913. defence.Name = ("StunnedBy"..Player.Name)
  914. game:GetService("Debris"):AddItem(defence, 0.1)
  915. end
  916. end
  917. end
  918. end
  919. end
  920. end
  921. end
  922. end
  923. end
  924.  
  925. function Stun(HUMANOID,LAST)
  926. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  927. HUMANOID.PlatformStand = true
  928. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  929. defence.Name = ("StunnedBy"..Player.Name)
  930. game:GetService("Debris"):AddItem(defence, LAST)
  931. if HUMANOID.Parent:FindFirstChild("Head") then
  932. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  933. end
  934. coroutine.resume(coroutine.create(function()
  935. Swait(LAST*100)
  936. HUMANOID.PlatformStand = false
  937. end))
  938. end
  939. end
  940.  
  941. function Poison(HUMANOID,LAST,DAMAGE)
  942. if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
  943. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  944. defence.Name = ("PoisonedBy"..Player.Name)
  945. game:GetService("Debris"):AddItem(defence, LAST)
  946. coroutine.resume(coroutine.create(function()
  947. for i = 1, LAST/2 do
  948. if HUMANOID.Parent:FindFirstChild("Head") then
  949. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0))
  950. end
  951. Swait(2)
  952. HUMANOID.Health = HUMANOID.Health - DAMAGE
  953. end
  954. end))
  955. end
  956. end
  957.  
  958. function killnearest(position,range,maxstrength)
  959. for i,v in ipairs(workspace:GetChildren()) do
  960. local body = v:GetChildren()
  961. for part = 1, #body do
  962. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  963. if(body[part].Position - position).Magnitude < range then
  964. if v.ClassName == "Model" then
  965. v:BreakJoints()
  966. end
  967. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  968. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  969. end
  970. end
  971. end
  972. if v.ClassName == "Part" then
  973. if v.Anchored == false and (v.Position - position).Magnitude < range then
  974. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  975. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  976. end
  977. end
  978. end
  979. end
  980.  
  981. --//=================================\\
  982. --|| ATTACK FUNCTIONS AND STUFF
  983. --\\=================================//
  984.  
  985. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  986. if DoesCourontine == false then
  987. local Direction = CF(Part.Position,ToLocation)
  988. local Distance = (Part.Position - ToLocation).magnitude
  989. for i = 1, AmountOfTime do
  990. Swait()
  991. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  992. Direction = Part.CFrame
  993. end
  994. elseif DoesCourontine == true then
  995. coroutine.resume(coroutine.create(function()
  996. local Direction = CF(Part.Position,ToLocation)
  997. local Distance = (Part.Position - ToLocation).magnitude
  998. for i = 1, AmountOfTime do
  999. Swait()
  1000. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1001. Direction = Part.CFrame
  1002. end
  1003. end))
  1004. end
  1005. end
  1006.  
  1007. function Flamethrower()
  1008. ATTACK = true
  1009. Rooted = false
  1010. for i=0, 1, 0.1 / Animation_Speed do
  1011. Swait()
  1012. turnto(Mouse.Hit.p)
  1013. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1014. 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.5 / Animation_Speed)
  1015. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1016. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1017. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1018. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1019. end
  1020. local SOUND = CreateSound("346067083", Head, 10, 2)
  1021. Head.face.Texture = "rbxassetid://1297068763"
  1022. Swait(2)
  1023. repeat
  1024. Swait()
  1025. coroutine.resume(coroutine.create(function()
  1026. local COLORS = {"Deep orange","Really red","New Yeller","CGA brown"}
  1027. local COLOR = COLORS[MRANDOM(1,#COLORS)]
  1028. local FIRE = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "FirePart", VT(0.4,0.4,0.4))
  1029. MakeForm(FIRE,"Ball")
  1030. FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5)
  1031. for i = 1, 45 do
  1032. Swait()
  1033. FIRE.CFrame = FIRE.CFrame*CF(0,0,-0.4)
  1034. FIRE.Transparency = FIRE.Transparency + (0.5/45)
  1035. FIRE.Size = FIRE.Size * 1.1
  1036. if MRANDOM(1,10) == 1 then
  1037. AoEDamage(FIRE.Position,FIRE.Size.Y/2,1,2,0,1,1.5,false)
  1038. end
  1039. end
  1040. FIRE:remove()
  1041. end))
  1042. turnto(Mouse.Hit.p)
  1043. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(2.5 * SIN(SINE / 3)), RAD(0)), 2 / Animation_Speed)
  1045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1047. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1048. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1049. until SOUND.Playing == false
  1050. ATTACK = false
  1051. Rooted = false
  1052. end
  1053.  
  1054. function FlameOutburst()
  1055. ATTACK = true
  1056. Rooted = false
  1057. for i=0, 0.4, 0.1 / Animation_Speed do
  1058. Swait()
  1059. turnto(Mouse.Hit.p)
  1060. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1061. 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.5 / Animation_Speed)
  1062. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1063. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1064. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1065. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1066. end
  1067. Head.face.Texture = "rbxassetid://1297068763"
  1068. for i=0, 0.2, 0.1 / Animation_Speed do
  1069. Swait()
  1070. turnto(Mouse.Hit.p)
  1071. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1072. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1073. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1074. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1077. end
  1078. CreateSound("199978045", Head, 10, 1)
  1079. coroutine.resume(coroutine.create(function()
  1080. local COLORS = {"Deep orange","Really red","New Yeller","CGA brown"}
  1081. local FIRE = CreatePart(3, Effects, "Neon", 0, 0.5, COLORS[MRANDOM(1,#COLORS)], "FirePart", VT(0.5,0.5,2))
  1082. FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5)
  1083. local LIGHT = IT("PointLight",FIRE)
  1084. LIGHT.Range = 5
  1085. LIGHT.Brightness = 100
  1086. LIGHT.Color = C3(170/255, 85/255, 0)
  1087. for i = 1, 45 do
  1088. Swait()
  1089. Slice(0.2,15,FIRE.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
  1090. FIRE.CFrame = FIRE.CFrame*CF(0,0,-1)
  1091. local HIT = Raycast(FIRE.Position, FIRE.CFrame.lookVector, 1, Character)
  1092. if HIT ~= nil then
  1093. break
  1094. end
  1095. end
  1096. AoEDamage(FIRE.Position,10,25,30,0,6,1.5,false)
  1097. MagicSphere(VT(0,0,0),15,FIRE.CFrame,COLORS[MRANDOM(1,#COLORS)],VT(2.1,2.1,2.1))
  1098. MagicSphere(VT(0,0,0),15,FIRE.CFrame,COLORS[MRANDOM(1,#COLORS)],VT(2,2,2))
  1099. for i = 1, 50 do
  1100. Slice(0.3,15,FIRE.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
  1101. end
  1102. LIGHT.Range = 20
  1103. FIRE.Transparency = 1
  1104. CreateSound("144699494", FIRE, 10, 1)
  1105. Debris:AddItem(FIRE,10)
  1106. for i = 1, 20 do
  1107. Swait()
  1108. LIGHT.Range = LIGHT.Range - 1
  1109. end
  1110. end))
  1111. for i=0, 0.3, 0.1 / Animation_Speed do
  1112. Swait()
  1113. turnto(Mouse.Hit.p)
  1114. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1115. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1116. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1117. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1118. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1119. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1120. end
  1121. ATTACK = false
  1122. Rooted = false
  1123. end
  1124.  
  1125. function PowerOutburst()
  1126. ATTACK = true
  1127. Rooted = false
  1128. for i=0, 1, 0.1 / Animation_Speed do
  1129. Swait()
  1130. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1131. 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.5 / Animation_Speed)
  1132. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1133. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1134. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1135. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1136. end
  1137. Head.face.Texture = "rbxassetid://1297068763"
  1138. for i=0, 0.2, 0.1 / Animation_Speed do
  1139. Swait()
  1140. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  1141. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1142. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1143. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1144. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1145. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1146. end
  1147. for i=0, 3, 0.1 / Animation_Speed do
  1148. local COLORS = {"Earth green","Lime green","New Yeller"}
  1149. coroutine.resume(coroutine.create(function()
  1150. local FIRE = CreatePart(3, Effects, "Neon", 0, 0.8, COLORS[MRANDOM(1,#COLORS)], "FirePart", VT(0,0,0))
  1151. FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5)
  1152. MakeForm(FIRE,"Ball")
  1153. for i = 1, 25 do
  1154. Swait()
  1155. FIRE.CFrame = FIRE.CFrame*CF(0,0,-0.1)
  1156. FIRE.Transparency = FIRE.Transparency + (0.2/25)
  1157. FIRE.Size = FIRE.Size * 1.35
  1158. end
  1159. AoEDamage(FIRE.Position,FIRE.Size.Y/2.5,2,3,0,6,1.5,false)
  1160. FIRE:remove()
  1161. end))
  1162. Slice(0.6,15,Head.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
  1163. Swait()
  1164. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  1165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1168. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1169. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1170. end
  1171. ATTACK = false
  1172. Rooted = false
  1173. end
  1174.  
  1175. function RadioactiveSludge()
  1176. ATTACK = true
  1177. Rooted = false
  1178. local COLORS = {"Earth green","Slime green"}
  1179. local COLOR = COLORS[MRANDOM(1,#COLORS)]
  1180. local FIRE = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0))
  1181. MakeForm(FIRE,"Ball")
  1182. FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
  1183. local LIGHT = IT("PointLight",FIRE)
  1184. LIGHT.Range = 0.05
  1185. LIGHT.Brightness = 100
  1186. LIGHT.Color = C3(0,1,0)
  1187. for i=0, 1.5, 0.1 / Animation_Speed do
  1188. Swait()
  1189. turnto(Mouse.Hit.p)
  1190. FIRE.Size = FIRE.Size * 1.1
  1191. FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
  1192. LIGHT.Range = LIGHT.Range * 1.1
  1193. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1194. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1197. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1198. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1199. end
  1200. Rooted = true
  1201. coroutine.resume(coroutine.create(function()
  1202. local COLORS2 = {"Earth green","Lime green","New Yeller"}
  1203. FireArc(FIRE,Mouse.Hit.p,30,7,false)
  1204. local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0))
  1205. local HIT, POS = Raycast(FIRE.Position, CF(FIRE.Position,FIRE.Position+VT(0,-1,0)).lookVector, 2, Character)
  1206. MakeForm(FLOOR,"Cyl")
  1207. FLOOR.CFrame = CF(POS)
  1208. LIGHT.Parent = FLOOR
  1209. for i = 1, 50 do
  1210. Swait()
  1211. LIGHT.Range = LIGHT.Range + 0.3
  1212. AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
  1213. Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
  1214. FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
  1215. FLOOR.Size = FLOOR.Size + VT(0.7,0,0.7)
  1216. end
  1217. FIRE:remove()
  1218. for i = 1, 300 do
  1219. Swait()
  1220. AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
  1221. Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
  1222. end
  1223. for i = 1, 25 do
  1224. Swait()
  1225. LIGHT.Range = LIGHT.Range - 0.8
  1226. AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
  1227. Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
  1228. FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
  1229. FLOOR.Size = FLOOR.Size - VT(1.4,0,1.4)
  1230. end
  1231. FLOOR:remove()
  1232. end))
  1233. for i=0, 0.5, 0.1 / Animation_Speed do
  1234. Swait()
  1235. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1236. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1237. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1238. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1239. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1240. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1241. end
  1242. ATTACK = false
  1243. Rooted = false
  1244. end
  1245.  
  1246. function AcidicBreath()
  1247. ATTACK = true
  1248. Rooted = false
  1249. local HASGRABBED = false
  1250. local GRABTARGET = nil
  1251. local TORS = nil
  1252. local WELD = nil
  1253. for i=0, 1, 0.1 / Animation_Speed do
  1254. Swait()
  1255. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1256. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1257. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1258. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1259. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1260. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1261. end
  1262. local GRAB1 = RightArm.Touched:Connect(function(hit)
  1263. if hit.Parent:FindFirstChild("Humanoid") then
  1264. if hit.Parent.Humanoid.Health ~= 0 then
  1265. UNANCHOR = false
  1266. RootPart.Anchored = true
  1267. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1268. TORS.CFrame = RootPart.CFrame * CF(0,0,-2.3) * ANGLES(RAD(0),RAD(180),RAD(0))
  1269. WELD = weldBetween(RootPart,TORS)
  1270. HASGRABBED = true
  1271. Rooted = true
  1272. end
  1273. end
  1274. end)
  1275. local GRAB2 = LeftArm.Touched:Connect(function(hit)
  1276. if hit.Parent:FindFirstChild("Humanoid") then
  1277. if hit.Parent.Humanoid.Health ~= 0 then
  1278. UNANCHOR = false
  1279. RootPart.Anchored = true
  1280. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1281. TORS.CFrame = RootPart.CFrame * CF(0,0,-2.3) * ANGLES(RAD(0),RAD(180),RAD(0))
  1282. WELD = weldBetween(RootPart,TORS)
  1283. HASGRABBED = true
  1284. Rooted = true
  1285. end
  1286. end
  1287. end)
  1288. for i=0, 1, 0.1 / Animation_Speed do
  1289. Swait()
  1290. if HASGRABBED == true then
  1291. break
  1292. end
  1293. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1299. end
  1300. GRAB1:disconnect()
  1301. GRAB2:disconnect()
  1302. if HASGRABBED == true then
  1303. TORS.Anchored = false
  1304. GRABTARGET = TORS.Parent
  1305. for i=0, 2, 0.1 / Animation_Speed do
  1306. Swait()
  1307. 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)
  1308. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1309. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1310. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1311. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 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)
  1312. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 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)
  1313. end
  1314. local ECH = 0
  1315. CreateSound("305734380", Head, 10, 0.8)
  1316. Head.face.Texture = "rbxassetid://1297068763"
  1317. for i=0, 8, 0.1 / Animation_Speed do
  1318. Swait()
  1319. ECH = ECH + 1
  1320. local COLORS = {"Dark indigo","Royal purple","Magenta"}
  1321. coroutine.resume(coroutine.create(function()
  1322. local COLOR = COLORS[MRANDOM(1,#COLORS)]
  1323. local FIRE = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "FirePart", VT(0.4,0.4,0.4))
  1324. MakeForm(FIRE,"Ball")
  1325. FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5)
  1326. for i = 1, 45 do
  1327. Swait()
  1328. FIRE.CFrame = FIRE.CFrame*CF(0,0,-0.03)
  1329. FIRE.Transparency = FIRE.Transparency + (0.5/45)
  1330. FIRE.Size = FIRE.Size * 1.1
  1331. end
  1332. FIRE:remove()
  1333. end))
  1334. if ECH >= 120 and GRABTARGET:FindFirstChild("Head") then
  1335. GRABTARGET.Head.Transparency = 1
  1336. if GRABTARGET:FindFirstChild("Skull") == nil then
  1337. GRABTARGET.Head:ClearAllChildren()
  1338. local SKULL = IT("Part",GRABTARGET)
  1339. SKULL.CFrame = GRABTARGET.Head.CFrame
  1340. CreateMesh("SpecialMesh", SKULL, "FileMesh", "36869983", "36869975", VT(GRABTARGET.Head.Size.Y*0.5,GRABTARGET.Head.Size.Y*0.5,GRABTARGET.Head.Size.Y*0.5), VT(0,0,0))
  1341. SKULL.Size = GRABTARGET.Head.Size
  1342. SKULL.Name = "Skull"
  1343. SKULL.Size = SKULL.Size * 0.8
  1344. weldBetween(GRABTARGET.Head,SKULL)
  1345. end
  1346. Slice(0.6,15,GRABTARGET.Head.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.05)
  1347. end
  1348. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1349. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed)
  1350. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1351. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1352. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1353. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1354. end
  1355. WELD:remove()
  1356. GRABTARGET.Head:remove()
  1357. GRABTARGET:BreakJoints()
  1358. end
  1359. UNANCHOR = true
  1360. ATTACK = false
  1361. Rooted = false
  1362. end
  1363.  
  1364. function AcidicSludge()
  1365. ATTACK = true
  1366. Rooted = false
  1367. local COLORS = {"Dark indigo","Royal purple","Mulberry"}
  1368. local COLOR = COLORS[MRANDOM(1,#COLORS)]
  1369. local FIRE = CreatePart(3, Effects, "Neon", 0, 0, COLOR, "FirePart", VT(0,0,0))
  1370. MakeForm(FIRE,"Ball")
  1371. FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
  1372. local LIGHT = IT("PointLight",FIRE)
  1373. LIGHT.Range = 0.05
  1374. LIGHT.Brightness = 100
  1375. LIGHT.Color = BRICKC(COLOR).Color
  1376. CreateSound("178452216", FIRE, 10, 0.8)
  1377. for i=0, 1.5, 0.1 / Animation_Speed do
  1378. Swait()
  1379. turnto(Mouse.Hit.p)
  1380. FIRE.Size = FIRE.Size * 1.1
  1381. FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
  1382. LIGHT.Range = LIGHT.Range * 1.1
  1383. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1387. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1389. end
  1390. Rooted = true
  1391. coroutine.resume(coroutine.create(function()
  1392. FireArc(FIRE,Mouse.Hit.p,30,7,false)
  1393. local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, COLOR, "FirePart", VT(0,0,0))
  1394. local HIT, POS = Raycast(FIRE.Position, CF(FIRE.Position,FIRE.Position+VT(0,-1,0)).lookVector, 2, Character)
  1395. MakeForm(FLOOR,"Cyl")
  1396. FLOOR.CFrame = CF(POS)
  1397. LIGHT.Parent = FLOOR
  1398. local FLOORECH = FLOOR.Touched:Connect(function(hit)
  1399. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= Character and hit.Name ~= "Remains" then
  1400. local BONES = CreatePart(3, workspace, "Plastic", 0, 0, BRICKC(COLOR), "Remains", hit.Size, false)
  1401. BONES.CanCollide = true
  1402. BONES.CFrame = hit.CFrame
  1403. BONES.Velocity = VT(MRANDOM(-85,85),MRANDOM(15,25),MRANDOM(-85,85))
  1404. if hit.Name == "Head" then
  1405. CreateMesh("SpecialMesh", BONES, "FileMesh", "36869983", "36869975", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1406. elseif hit.Name == "Torso" then
  1407. CreateMesh("SpecialMesh", BONES, "FileMesh", "36780113", "36780292", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1408. elseif hit.Name == "Right Leg" then
  1409. CreateMesh("SpecialMesh", BONES, "FileMesh", "36780195", "36780292", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1410. elseif hit.Name == "Left Leg" then
  1411. CreateMesh("SpecialMesh", BONES, "FileMesh", "36780079", "36780292", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1412. elseif hit.Name == "Right Arm" then
  1413. CreateMesh("SpecialMesh", BONES, "FileMesh", "36780156", "36780292", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1414. elseif hit.Name == "Left Arm" then
  1415. CreateMesh("SpecialMesh", BONES, "FileMesh", "36780032", "36780292", VT(BONES.Size.Y*0.5,BONES.Size.Y*0.5,BONES.Size.Y*0.5), VT(0,0,0))
  1416. else
  1417. BONES:remove()
  1418. end
  1419. hit:remove()
  1420. end
  1421. end)
  1422. for i = 1, 50 do
  1423. Swait()
  1424. LIGHT.Range = LIGHT.Range + 0.3
  1425. FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
  1426. FLOOR.Size = FLOOR.Size + VT(0.7,0,0.7)
  1427. end
  1428. FIRE:remove()
  1429. wait(25)
  1430. for i = 1, 25 do
  1431. Swait()
  1432. LIGHT.Range = LIGHT.Range - 0.8
  1433. FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
  1434. FLOOR.Size = FLOOR.Size - VT(1.4,0,1.4)
  1435. end
  1436. FLOOR:remove()
  1437. end))
  1438. for i=0, 0.5, 0.1 / Animation_Speed do
  1439. Swait()
  1440. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
  1441. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1442. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1443. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1444. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
  1445. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
  1446. end
  1447. ATTACK = false
  1448. Rooted = false
  1449. end
  1450.  
  1451. function Taunt()
  1452. ATTACK = true
  1453. Rooted = false
  1454. Head.face.Texture = "rbxassetid://1297068763"
  1455. CreateSound("178452208", Head, 10, 0.5)
  1456. for i=0, 5, 0.1 / Animation_Speed do
  1457. Swait()
  1458. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1459. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1460. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1461. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1462. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1463. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1464. end
  1465. ATTACK = false
  1466. Rooted = false
  1467. end
  1468.  
  1469. --//=================================\\
  1470. --|| ASSIGN THINGS TO KEYS
  1471. --\\=================================//
  1472.  
  1473. function MouseDown(Mouse)
  1474. if ATTACK == false then
  1475. end
  1476. end
  1477.  
  1478. function MouseUp(Mouse)
  1479. HOLD = false
  1480. end
  1481.  
  1482. function KeyDown(Key)
  1483. KEYHOLD = true
  1484. if Key == "z" and ATTACK == false then
  1485. if CHOSENBRICK == "Really red" then
  1486. Flamethrower()
  1487. elseif CHOSENBRICK == "Earth green" then
  1488. PowerOutburst()
  1489. elseif CHOSENBRICK == "Dark indigo" then
  1490. AcidicBreath()
  1491. end
  1492. end
  1493.  
  1494. if Key == "b" and ATTACK == false then
  1495. if CHOSENBRICK == "Really red" then
  1496. FlameOutburst()
  1497. elseif CHOSENBRICK == "Earth green" then
  1498. RadioactiveSludge()
  1499. elseif CHOSENBRICK == "Dark indigo" then
  1500. AcidicSludge()
  1501. end
  1502. end
  1503.  
  1504. if Key == "c" and ATTACK == false then
  1505. if CHOSENBRICK == "Really red" then
  1506. CHOSENBRICK = "Earth green"
  1507. elseif CHOSENBRICK == "Earth green" then
  1508. CHOSENBRICK = "Dark indigo"
  1509. elseif CHOSENBRICK == "Dark indigo" then
  1510. CHOSENBRICK = "Really red"
  1511. end
  1512. end
  1513.  
  1514. if Key == "t" and ATTACK == false then
  1515. Taunt()
  1516. end
  1517. end
  1518.  
  1519. function KeyUp(Key)
  1520. KEYHOLD = false
  1521. end
  1522.  
  1523. Mouse.Button1Down:connect(function(NEWKEY)
  1524. MouseDown(NEWKEY)
  1525. end)
  1526. Mouse.Button1Up:connect(function(NEWKEY)
  1527. MouseUp(NEWKEY)
  1528. end)
  1529. Mouse.KeyDown:connect(function(NEWKEY)
  1530. KeyDown(NEWKEY)
  1531. end)
  1532. Mouse.KeyUp:connect(function(NEWKEY)
  1533. KeyUp(NEWKEY)
  1534. end)
  1535.  
  1536. --//=================================\\
  1537. --\\=================================//
  1538.  
  1539.  
  1540. function unanchor()
  1541. if UNANCHOR == true then
  1542. g = Character:GetChildren()
  1543. for i = 1, #g do
  1544. if g[i].ClassName == "Part" then
  1545. g[i].Anchored = false
  1546. end
  1547. end
  1548. end
  1549. end
  1550.  
  1551.  
  1552. --//=================================\\
  1553. --|| WRAP THE WHOLE SCRIPT UP
  1554. --\\=================================//
  1555.  
  1556. Humanoid.Changed:connect(function(Jump)
  1557. if Jump == "Jump" and (Disable_Jump == true) then
  1558. Humanoid.Jump = false
  1559. end
  1560. end)
  1561.  
  1562. while true do
  1563. Swait()
  1564. ANIMATE.Parent = nil
  1565. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1566. IDLEANIMATION:Play()
  1567. SINE = SINE + CHANGE
  1568. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1569. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1570. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1571. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1572. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1573. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1574. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1575. 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)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1576. 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), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1577. 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), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1578. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1579. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1580. 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)
  1581. 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)
  1582. 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)
  1583. end
  1584. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1585. ANIM = "Jump"
  1586. if ATTACK == false then
  1587. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1588. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1589. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1590. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1591. 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)
  1592. 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)
  1593. end
  1594. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1595. ANIM = "Fall"
  1596. if ATTACK == false then
  1597. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1598. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1601. 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)
  1602. 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)
  1603. end
  1604. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1605. ANIM = "Idle"
  1606. if ATTACK == false then
  1607. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1608. 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)
  1609. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1610. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1611. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1612. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1613. end
  1614. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1615. ANIM = "Walk"
  1616. WALK = WALK + 1 / Animation_Speed
  1617. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1618. WALK = 0
  1619. if WALKINGANIM == true then
  1620. WALKINGANIM = false
  1621. elseif WALKINGANIM == false then
  1622. WALKINGANIM = true
  1623. end
  1624. end
  1625. --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)
  1626. --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)
  1627. if ATTACK == false then
  1628. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1629. 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)
  1630. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1631. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1632. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1633. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1634. end
  1635. end
  1636. unanchor()
  1637. Humanoid.MaxHealth = "inf"
  1638. Humanoid.Health = "inf"
  1639. if Rooted == false then
  1640. Disable_Jump = false
  1641. Humanoid.WalkSpeed = Speed
  1642. elseif Rooted == true then
  1643. Disable_Jump = true
  1644. Humanoid.WalkSpeed = 0
  1645. end
  1646. sick.Parent = Character
  1647. if Head:FindFirstChild("face") and ATTACK == false then
  1648. Head.face.Texture = "rbxassetid://1297067294"
  1649. end
  1650. for _, c in pairs(Weapon:GetChildren()) do
  1651. if c.Name == "Eon" then
  1652. c.BrickColor = BRICKC(CHOSENBRICK)
  1653. end
  1654. end
  1655. SKILL1TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color
  1656. SKILL2TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color
  1657. if CHOSENBRICK == "Really red" then
  1658. SKILL1TEXT.Text = "[Z] Flamethrower"
  1659. SKILL2TEXT.Text = "[B] Flame outburst"
  1660. elseif CHOSENBRICK == "Earth green" then
  1661. SKILL1TEXT.Text = "[Z] Power outburst"
  1662. SKILL2TEXT.Text = "[B] Radioactive sludge"
  1663. elseif CHOSENBRICK == "Dark indigo" then
  1664. SKILL1TEXT.Text = "[Z] Acidic breath"
  1665. SKILL2TEXT.Text = "[B] Acidic sludge"
  1666. end
  1667. end
  1668.  
  1669. --//=================================\\
  1670. --\\=================================//
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676. --//====================================================\\--
  1677. --|| END OF SCRIPT
  1678. --\\====================================================//--
Add Comment
Please, Sign In to add comment