Advertisement
copra50

searing emporer v1

Mar 28th, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.62 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. wait(1)
  8.  
  9. --//====================================================\\--
  10. --|| CREATED BY SHACKLUSTER
  11. --\\====================================================//-- --henlo there
  12. --This was fixed by MRSHEEPY123. Here are some of the things I did/removed in the script (sorry if it upsets you)
  13. --The move "X" is basically a suicide move in this version as it makes you vanish and you do not come back
  14. --Removed Fire Particles. They broke and I did not have a solution to fix that issue.
  15. --Removed the package your character would have. It now uses your own character's current package.
  16. --Added Text like the working one Shackluster used.
  17. --I sadly had to remove some moves as they would not work. :(
  18. --Enjoy it anyways :) (its still rare ;p)
  19.  
  20. wait(1)
  21.  
  22. Player = game:GetService("Players").LocalPlayer
  23. PlayerGui = Player.PlayerGui
  24. Cam = workspace.CurrentCamera
  25. Backpack = Player.Backpack
  26. repeat wait() until Player.Character
  27. Character = Player.Character
  28. repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid")
  29. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  30. Mouse = Player:GetMouse()
  31. RootPart = Character["HumanoidRootPart"]
  32. Torso = Character["Torso"]
  33. Head = Character["Head"]
  34. RightArm = Character["Right Arm"]
  35. LeftArm = Character["Left Arm"]
  36. RightLeg = Character["Right Leg"]
  37. LeftLeg = Character["Left Leg"]
  38. RootJoint = RootPart["RootJoint"]
  39. Neck = Torso["Neck"]
  40. RightShoulder = Torso["Right Shoulder"]
  41. LeftShoulder = Torso["Left Shoulder"]
  42. RightHip = Torso["Right Hip"]
  43. LeftHip = Torso["Left Hip"]
  44.  
  45. IT = Instance.new
  46. CF = CFrame.new
  47. VT = Vector3.new
  48. RAD = math.rad
  49. C3 = Color3.new
  50. UD2 = UDim2.new
  51. BRICKC = BrickColor.new
  52. ANGLES = CFrame.Angles
  53. EULER = CFrame.fromEulerAnglesXYZ
  54. COS = math.cos
  55. ACOS = math.acos
  56. SIN = math.sin
  57. ASIN = math.asin
  58. ABS = math.abs
  59. MRANDOM = math.random
  60. FLOOR = math.floor
  61.  
  62. local naeeym2 = Instance.new("BillboardGui",Character)
  63. naeeym2.AlwaysOnTop = true
  64. naeeym2.Size = UDim2.new(7,35,3,15)
  65. naeeym2.StudsOffset = Vector3.new(0,2,0)
  66. naeeym2.MaxDistance = 75
  67. naeeym2.Adornee = Character.Head
  68. naeeym2.Name = "Name2"
  69. local tecks2 = Instance.new("TextLabel",naeeym2)
  70. tecks2.BackgroundTransparency = 1
  71. tecks2.TextScaled = true
  72. tecks2.BorderSizePixel = 0
  73. tecks2.Text = "The Searing Emperor"
  74. tecks2.Font = "ArialBold"
  75. tecks2.TextSize = 30
  76. tecks2.TextStrokeTransparency = 0
  77. tecks2.TextColor3 = Color3.fromRGB(119, 36, 130)
  78. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  79. tecks2.Size = UDim2.new(1,0,0.5,0)
  80. tecks2.Parent = naeeym2
  81.  
  82. local naeeym3 = Instance.new("BillboardGui",Character)
  83. naeeym3.AlwaysOnTop = true
  84. naeeym3.Size = UDim2.new(7,35,3,15)
  85. naeeym3.StudsOffset = Vector3.new(2,3,0)
  86. naeeym3.MaxDistance = 75
  87. naeeym3.Adornee = Character.Head
  88. naeeym3.Name = "Name3"
  89. local tecks3 = Instance.new("TextLabel",naeeym2)
  90. tecks3.BackgroundTransparency = 1
  91. tecks3.TextScaled = true
  92. tecks3.BorderSizePixel = 0
  93. tecks3.Text = "ShackIuster"
  94. tecks3.Font = "ArialBold"
  95. tecks3.TextSize = 30
  96. tecks3.TextStrokeTransparency = 0
  97. tecks3.TextColor3 = Color3.fromRGB(140, 140, 140)
  98. tecks3.TextStrokeColor3 = Color3.fromRGB(140, 140, 140)
  99. tecks3.Size = UDim2.new(0.5,0,0.2,0)
  100. tecks3.Parent = naeeym3
  101.  
  102. --//=================================\\
  103. --|| USEFUL VALUES
  104. --\\=================================//
  105.  
  106. Animation_Speed = 3
  107. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  108. local Speed = 16
  109. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  110. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  111. local RIGHTSHOULDERC0 = CF(-0.5, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  112. local LEFTSHOULDERC0 = CF(0.5, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  113. local DAMAGEMULTIPLIER = 1
  114. local ANIM = "Idle"
  115. local ATTACK = false
  116. local EQUIPPED = false
  117. local HOLD = false
  118. local COMBO = 1
  119. local Rooted = false
  120. local SINE = 0
  121. local KEYHOLD = false
  122. local CHANGE = 2 / Animation_Speed
  123. local WALKINGANIM = false
  124. local VALUE1 = false
  125. local VALUE2 = false
  126. local ROBLOXIDLEANIMATION = IT("Animation")
  127. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  128. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  129. --ROBLOXIDLEANIMATION.Parent = Humanoid
  130. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  131. WEAPONGUI.Name = "Weapon GUI"
  132. local Effects = IT("Folder", Character)
  133. Effects.Name = "Effects"
  134. local SpecialEffects = IT("Folder", Character)
  135. SpecialEffects.Name = "SpecialEffects"
  136. local ANIMATOR = Humanoid.Animator
  137. local ANIMATE = Character.Animate
  138. local UNANCHOR = true
  139. local REGENRATE = 1
  140. local FULLREGEN = false
  141. local POSEIDON = false
  142. local EXPLOSIONSMALLSOUND = 439342426
  143. local EXPLOSIONMEDIUMSOUND = 605005842
  144. local EXPLOSIONLARGESOUND = 565538688
  145. local CHARGE = 278641993
  146. local POSEIDONSOUND = 374289727
  147. local FIREBALLSOUND = 414517770
  148. local BURNSOUND = 565777213
  149. local FIREFIELD = false
  150. local SEARING = false
  151. local BODYPOS = nil
  152. local GYRO = nil
  153. local DIRECTTURN = false
  154. local APPLYGYRO = true
  155. local SONGS = {448290268,285883918,562367125,720006240,1604593557,306586318}
  156. local CHOSENSONG = MRANDOM(1,#SONGS)
  157.  
  158. --//=================================\\
  159. --\\=================================//
  160.  
  161.  
  162. --//=================================\\
  163. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  164. --\\=================================//
  165.  
  166. ArtificialHB = Instance.new("BindableEvent", script)
  167. ArtificialHB.Name = "ArtificialHB"
  168.  
  169. script:WaitForChild("ArtificialHB")
  170.  
  171. frame = Frame_Speed
  172. tf = 0
  173. allowframeloss = false
  174. tossremainder = false
  175. lastframe = tick()
  176. script.ArtificialHB:Fire()
  177.  
  178. game:GetService("RunService").Heartbeat:connect(function(s, p)
  179. tf = tf + s
  180. if tf >= frame then
  181. if allowframeloss then
  182. script.ArtificialHB:Fire()
  183. lastframe = tick()
  184. else
  185. for i = 1, math.floor(tf / frame) do
  186. script.ArtificialHB:Fire()
  187. end
  188. lastframe = tick()
  189. end
  190. if tossremainder then
  191. tf = 0
  192. else
  193. tf = tf - frame * math.floor(tf / frame)
  194. end
  195. end
  196. end)
  197.  
  198. --//=================================\\
  199. --\\=================================//
  200.  
  201. --//=================================\\
  202. --|| SOME FUNCTIONS
  203. --\\=================================//
  204.  
  205. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  206. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  207. end
  208.  
  209. function PositiveAngle(NUMBER)
  210. if NUMBER >= 0 then
  211. NUMBER = 0
  212. end
  213. return NUMBER
  214. end
  215.  
  216. function NegativeAngle(NUMBER)
  217. if NUMBER <= 0 then
  218. NUMBER = 0
  219. end
  220. return NUMBER
  221. end
  222.  
  223. function Swait(NUMBER)
  224. if NUMBER == 0 or NUMBER == nil then
  225. ArtificialHB.Event:wait()
  226. else
  227. for i = 1, NUMBER do
  228. ArtificialHB.Event:wait()
  229. end
  230. end
  231. end
  232.  
  233. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  234. local NEWMESH = IT(MESH)
  235. if MESH == "SpecialMesh" then
  236. NEWMESH.MeshType = MESHTYPE
  237. if MESHID ~= "nil" and MESHID ~= "" then
  238. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  239. end
  240. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  241. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  242. end
  243. end
  244. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  245. NEWMESH.Scale = SCALE
  246. NEWMESH.Parent = PARENT
  247. return NEWMESH
  248. end
  249.  
  250. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  251. local NEWPART = IT("Part")
  252. NEWPART.formFactor = FORMFACTOR
  253. NEWPART.Reflectance = REFLECTANCE
  254. NEWPART.Transparency = TRANSPARENCY
  255. NEWPART.CanCollide = false
  256. NEWPART.Locked = true
  257. NEWPART.Anchored = true
  258. if ANCHOR == false then
  259. NEWPART.Anchored = false
  260. end
  261. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  262. NEWPART.Name = NAME
  263. NEWPART.Size = SIZE
  264. NEWPART.Position = Torso.Position
  265. NEWPART.Material = MATERIAL
  266. NEWPART:BreakJoints()
  267. NEWPART.Parent = PARENT
  268. return NEWPART
  269. end
  270.  
  271. local function weldBetween(a, b)
  272. local weldd = Instance.new("ManualWeld")
  273. weldd.Part0 = a
  274. weldd.Part1 = b
  275. weldd.C0 = CFrame.new()
  276. weldd.C1 = b.CFrame:inverse() * a.CFrame
  277. weldd.Parent = a
  278. return weldd
  279. end
  280.  
  281.  
  282. function QuaternionFromCFrame(cf)
  283. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  284. local trace = m00 + m11 + m22
  285. if trace > 0 then
  286. local s = math.sqrt(1 + trace)
  287. local recip = 0.5 / s
  288. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  289. else
  290. local i = 0
  291. if m11 > m00 then
  292. i = 1
  293. end
  294. if m22 > (i == 0 and m00 or m11) then
  295. i = 2
  296. end
  297. if i == 0 then
  298. local s = math.sqrt(m00 - m11 - m22 + 1)
  299. local recip = 0.5 / s
  300. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  301. elseif i == 1 then
  302. local s = math.sqrt(m11 - m22 - m00 + 1)
  303. local recip = 0.5 / s
  304. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  305. elseif i == 2 then
  306. local s = math.sqrt(m22 - m00 - m11 + 1)
  307. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  308. end
  309. end
  310. end
  311.  
  312. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  313. local xs, ys, zs = x + x, y + y, z + z
  314. local wx, wy, wz = w * xs, w * ys, w * zs
  315. local xx = x * xs
  316. local xy = x * ys
  317. local xz = x * zs
  318. local yy = y * ys
  319. local yz = y * zs
  320. local zz = z * zs
  321. 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))
  322. end
  323.  
  324. function QuaternionSlerp(a, b, t)
  325. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  326. local startInterp, finishInterp;
  327. if cosTheta >= 0.0001 then
  328. if (1 - cosTheta) > 0.0001 then
  329. local theta = ACOS(cosTheta)
  330. local invSinTheta = 1 / SIN(theta)
  331. startInterp = SIN((1 - t) * theta) * invSinTheta
  332. finishInterp = SIN(t * theta) * invSinTheta
  333. else
  334. startInterp = 1 - t
  335. finishInterp = t
  336. end
  337. else
  338. if (1 + cosTheta) > 0.0001 then
  339. local theta = ACOS(-cosTheta)
  340. local invSinTheta = 1 / SIN(theta)
  341. startInterp = SIN((t - 1) * theta) * invSinTheta
  342. finishInterp = SIN(t * theta) * invSinTheta
  343. else
  344. startInterp = t - 1
  345. finishInterp = t
  346. end
  347. end
  348. 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
  349. end
  350.  
  351. function Clerp(a, b, t)
  352. local qa = {QuaternionFromCFrame(a)}
  353. local qb = {QuaternionFromCFrame(b)}
  354. local ax, ay, az = a.x, a.y, a.z
  355. local bx, by, bz = b.x, b.y, b.z
  356. local _t = 1 - t
  357. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  358. end
  359.  
  360. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  361. local frame = IT("Frame")
  362. frame.BackgroundTransparency = TRANSPARENCY
  363. frame.BorderSizePixel = BORDERSIZEPIXEL
  364. frame.Position = POSITION
  365. frame.Size = SIZE
  366. frame.BackgroundColor3 = COLOR
  367. frame.BorderColor3 = BORDERCOLOR
  368. frame.Name = NAME
  369. frame.Parent = PARENT
  370. return frame
  371. end
  372.  
  373. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  374. local label = IT("TextLabel")
  375. label.BackgroundTransparency = 1
  376. label.Size = UD2(1, 0, 1, 0)
  377. label.Position = UD2(0, 0, 0, 0)
  378. label.TextColor3 = TEXTCOLOR
  379. label.TextStrokeTransparency = STROKETRANSPARENCY
  380. label.TextTransparency = TRANSPARENCY
  381. label.FontSize = TEXTFONTSIZE
  382. label.Font = TEXTFONT
  383. label.BorderSizePixel = BORDERSIZEPIXEL
  384. label.TextScaled = false
  385. label.Text = TEXT
  386. label.Name = NAME
  387. label.Parent = PARENT
  388. return label
  389. end
  390.  
  391. function NoOutlines(PART)
  392. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  393. end
  394.  
  395. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  396. local NEWWELD = IT(TYPE)
  397. NEWWELD.Part0 = PART0
  398. NEWWELD.Part1 = PART1
  399. NEWWELD.C0 = C0
  400. NEWWELD.C1 = C1
  401. NEWWELD.Parent = PARENT
  402. return NEWWELD
  403. end
  404.  
  405. local S = IT("Sound")
  406. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  407. local NEWSOUND = nil
  408. coroutine.resume(coroutine.create(function()
  409. NEWSOUND = S:Clone()
  410. NEWSOUND.Parent = PARENT
  411. NEWSOUND.Volume = VOLUME
  412. NEWSOUND.Pitch = PITCH
  413. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  414. NEWSOUND:play()
  415. if DOESLOOP == true then
  416. NEWSOUND.Looped = true
  417. else
  418. repeat wait(1) until NEWSOUND.Playing == false
  419. NEWSOUND:remove()
  420. end
  421. end))
  422. return NEWSOUND
  423. end
  424.  
  425. function CFrameFromTopBack(at, top, back)
  426. local right = top:Cross(back)
  427. 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)
  428. end
  429.  
  430. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  431. function WACKYEFFECT(Table)
  432. local TYPE = (Table.EffectType or "Sphere")
  433. local SIZE = (Table.Size or VT(1,1,1))
  434. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  435. local TRANSPARENCY = (Table.Transparency or 0)
  436. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  437. local CFRAME = (Table.CFrame or Torso.CFrame)
  438. local MOVEDIRECTION = (Table.MoveToPos or nil)
  439. local ROTATION1 = (Table.RotationX or 0)
  440. local ROTATION2 = (Table.RotationY or 0)
  441. local ROTATION3 = (Table.RotationZ or 0)
  442. local MATERIAL = (Table.Material or "Neon")
  443. local COLOR = (Table.Color or C3(1,1,1))
  444. local TIME = (Table.Time or 45)
  445. local SOUNDID = (Table.SoundID or nil)
  446. local SOUNDPITCH = (Table.SoundPitch or nil)
  447. local SOUNDVOLUME = (Table.SoundVolume or nil)
  448. coroutine.resume(coroutine.create(function()
  449. local PLAYSSOUND = false
  450. local SOUND = nil
  451. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  452. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  453. PLAYSSOUND = true
  454. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  455. end
  456. EFFECT.Color = COLOR
  457. local MSH = nil
  458. if TYPE == "Sphere" then
  459. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  460. elseif TYPE == "Block" then
  461. MSH = IT("BlockMesh",EFFECT)
  462. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  463. elseif TYPE == "Wave" then
  464. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  465. elseif TYPE == "Ring" then
  466. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  467. elseif TYPE == "Slash" then
  468. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  469. elseif TYPE == "Round Slash" then
  470. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  471. elseif TYPE == "Swirl" then
  472. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  473. elseif TYPE == "Skull" then
  474. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  475. elseif TYPE == "Crystal" then
  476. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  477. end
  478. if MSH ~= nil then
  479. local MOVESPEED = nil
  480. if MOVEDIRECTION ~= nil then
  481. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  482. end
  483. local GROWTH = SIZE - ENDSIZE
  484. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  485. if TYPE == "Block" then
  486. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  487. else
  488. EFFECT.CFrame = CFRAME
  489. end
  490. for LOOP = 1, TIME+1 do
  491. Swait()
  492. MSH.Scale = MSH.Scale - GROWTH/TIME
  493. if TYPE == "Wave" then
  494. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  495. end
  496. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  497. if TYPE == "Block" then
  498. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  499. else
  500. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  501. end
  502. if MOVEDIRECTION ~= nil then
  503. local ORI = EFFECT.Orientation
  504. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  505. EFFECT.Orientation = ORI
  506. end
  507. end
  508. if PLAYSSOUND == false then
  509. EFFECT:remove()
  510. else
  511. repeat Swait() until SOUND.Playing == false
  512. EFFECT:remove()
  513. end
  514. else
  515. if PLAYSSOUND == false then
  516. EFFECT:remove()
  517. else
  518. repeat Swait() until SOUND.Playing == false
  519. EFFECT:remove()
  520. end
  521. end
  522. end))
  523. end
  524.  
  525. function MakeForm(PART,TYPE)
  526. if TYPE == "Cyl" then
  527. local MSH = IT("CylinderMesh",PART)
  528. elseif TYPE == "Ball" then
  529. local MSH = IT("SpecialMesh",PART)
  530. MSH.MeshType = "Sphere"
  531. elseif TYPE == "Wedge" then
  532. local MSH = IT("SpecialMesh",PART)
  533. MSH.MeshType = "Wedge"
  534. end
  535. end
  536.  
  537. Debris = game:GetService("Debris")
  538.  
  539. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  540. local DIRECTION = CF(StartPos,EndPos).lookVector
  541. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  542. end
  543.  
  544. --//=================================\\
  545. --|| WEAPON CREATION
  546. --\\=================================//
  547.  
  548.  
  549. local REGENSOUND = 487215897
  550. for _, c in pairs(Character:GetDescendants()) do
  551. if c and c.Parent then
  552. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  553. local ACCESSORY = c.Parent
  554. c.Parent = Character
  555. if c then
  556. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  557. weldBetween(Head,c)
  558. else
  559. weldBetween(Torso,c)
  560. end
  561. end
  562. ACCESSORY:remove()
  563. end
  564. end
  565. end
  566. wait()
  567. local BODY = {}
  568. for _, c in pairs(Character:GetDescendants()) do
  569. if c:IsA("BasePart") then
  570. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  571. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  572. end
  573. local REGENVALUE = IT("BoolValue",c)
  574. REGENVALUE.Name = "IsRegening"
  575. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
  576. elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then
  577. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil})
  578. end
  579. end
  580. function FullBodyRegen()
  581. if FULLREGEN == false then
  582. FULLREGEN = true
  583. Character.Parent = workspace
  584. CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false)
  585. UNANCHOR = false
  586. for e = 1, #BODY do
  587. if BODY[e] ~= nil then
  588. local STUFF = BODY[e]
  589. local PART = STUFF[1]
  590. local PARENT = STUFF[2]
  591. local MATERIAL = STUFF[3]
  592. local COLOR = STUFF[4]
  593. local TRANSPARENCY = STUFF[5]
  594. local SIZE = STUFF[6]
  595. local NAME = STUFF[7]
  596. local VALUE = STUFF[8]
  597. PART.Parent = PARENT
  598. Humanoid.MaxHealth = "inf"
  599. Humanoid.Health = "inf"
  600. Humanoid.Parent = nil
  601. Humanoid = IT("Humanoid",Character)
  602. Humanoid.Died:Connect(FullBodyRegen)
  603. PART.Parent = PARENT
  604. if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then
  605. VALUE.Value = true
  606. coroutine.resume(coroutine.create(function()
  607. PART.Transparency = 1
  608. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false)
  609. local REGEN = script.Regen:Clone()
  610. REGEN.Parent = PART
  611. REGEN.Speed = NumberRange.new(30)
  612. REGEN:Emit(100)
  613. local REGENING = script.Regen:Clone()
  614. REGENING.Parent = PART
  615. REGENING.Enabled = true
  616. REGENING.Speed = NumberRange.new(35)
  617. wait()
  618. local RANGE = 35
  619. for i = 1, math.ceil(REGENRATE*25) do
  620. wait()
  621. ApplyAoE(PART.Position,6,1,1,0,false)
  622. REGENING.Speed = NumberRange.new(RANGE)
  623. RANGE = RANGE - (35/(math.ceil(REGENRATE*20)))
  624. end
  625. REGEN.Speed = NumberRange.new(6)
  626. REGEN:Emit(60)
  627. wait(REGENRATE/3)
  628. RootPart.Velocity = VT(0,0,0)
  629. UNANCHOR = true
  630. PART.Transparency = 0
  631. REGEN.Rate = 50
  632. REGEN.Enabled = true
  633. REGENING.Enabled = false
  634. wait(REGENRATE/1.5)
  635. VALUE.Value = false
  636. Debris:AddItem(REGENING,5)
  637. FULLREGEN = false
  638. REGEN.Enabled = false
  639. Debris:AddItem(REGEN,5)
  640. end))
  641. end
  642. end
  643. end
  644. end
  645. end
  646.  
  647. function Regen()
  648. Character.Parent = workspace
  649. for e = 1, #BODY do
  650. if BODY[e] ~= nil then
  651. local STUFF = BODY[e]
  652. local PART = STUFF[1]
  653. local PARENT = STUFF[2]
  654. local MATERIAL = STUFF[3]
  655. local COLOR = STUFF[4]
  656. local TRANSPARENCY = STUFF[5]
  657. --local SIZE = STUFF[6]
  658. local NAME = STUFF[7]
  659. local VALUE = STUFF[8]
  660. if PART.ClassName == "Part" and PART ~= RootPart then
  661. PART.Material = MATERIAL
  662. PART.Name = NAME
  663. end
  664. if PART.Parent ~= PARENT then
  665. PART.Parent = PARENT
  666. if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then
  667. if VALUE.Value == false then
  668. VALUE.Value = true
  669. coroutine.resume(coroutine.create(function()
  670. PART.Transparency = 1
  671. wait(REGENRATE)
  672. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
  673. local REGENING = script.Regen:Clone()
  674. REGENING.Parent = PART
  675. REGENING.Enabled = true
  676. for i = 1, math.ceil(REGENRATE*10) do
  677. wait()
  678. ApplyAoE(PART.Position,6,1,1,0,false)
  679. end
  680. wait(REGENRATE)
  681. PART.Transparency = 0
  682. wait(REGENRATE/5)
  683. REGENING.Enabled = false
  684. VALUE.Value = false
  685. Debris:AddItem(REGENING,5)
  686. end))
  687. end
  688. elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then
  689. local VALUE = PARENT.IsRegening
  690. if VALUE == false then
  691. VALUE.Value = true
  692. local PART = PART.Part1
  693. coroutine.resume(coroutine.create(function()
  694. PART.Transparency = 1
  695. wait(REGENRATE)
  696. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
  697. local REGENING = script.Regen:Clone()
  698. REGENING.Parent = PART
  699. REGENING.Enabled = true
  700. for i = 1, math.ceil(REGENRATE*10) do
  701. wait()
  702. ApplyAoE(PART.Position,6,1,1,0,false)
  703. end
  704. wait(REGENRATE)
  705. PART.Transparency = 1
  706. wait(REGENRATE/5)
  707. REGENING.Enabled = true
  708. VALUE.Value = false
  709. end))
  710. end
  711. end
  712. end
  713. end
  714. end
  715. end
  716.  
  717. local b = IT("BodyForce",RootPart)
  718. b.Name = "LowGrav"
  719. b.force = Vector3.new(0,1500,0)
  720.  
  721. local SKILLTEXTCOLOR = C3(0,0,0)
  722. local SKILLFONT = "Fantasy"
  723. local SKILLTEXTSIZE = 7
  724.  
  725. local BACKATTACHMENT1 = IT("Attachment",Torso)
  726. BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
  727. local BACKATTACHMENT2 = IT("Attachment",Torso)
  728. BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
  729.  
  730. Humanoid.Died:Connect(FullBodyRegen)
  731.  
  732. --//=================================\\
  733. --|| DAMAGING
  734. --\\=================================//
  735.  
  736. function ApplyDamage(Humanoid,Damage)
  737. if Humanoid.Health == math.huge then
  738. Humanoid.Parent:BreakJoints()
  739. else
  740. local MULTIPLY = Humanoid.MaxHealth/100
  741. Damage = Damage * DAMAGEMULTIPLIER
  742. if Humanoid.Health ~= 0 then
  743. Humanoid.Health = Humanoid.Health - Damage*MULTIPLY
  744. end
  745. end
  746. end
  747.  
  748. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL)
  749. local CHILDREN = workspace:GetDescendants()
  750. for index, CHILD in pairs(CHILDREN) do
  751. if CHILD.ClassName == "Model" and CHILD ~= Character then
  752. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  753. if HUM then
  754. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  755. if TORSO then
  756. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  757. if INSTAKILL == true or HUM.MaxHealth == math.huge then
  758. CHILD:BreakJoints()
  759. else
  760. local DMG = MRANDOM(MINDMG,MAXDMG)
  761. ApplyDamage(HUM,DMG)
  762. end
  763. if FLING > 0 then
  764. for _, c in pairs(CHILD:GetChildren()) do
  765. if c:IsA("BasePart") then
  766. local bv = Instance.new("BodyVelocity")
  767. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  768. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  769. bv.Parent = c
  770. Debris:AddItem(bv,0.05)
  771. end
  772. end
  773. end
  774. end
  775. end
  776. end
  777. end
  778. end
  779. end
  780.  
  781. --//=================================\\
  782. --|| ATTACK FUNCTIONS AND STUFF
  783. --\\=================================//
  784.  
  785. function Fireball()
  786. ATTACK = true
  787. Rooted = true
  788. local GYRO = IT("BodyGyro",RootPart)
  789. GYRO.D = 20
  790. GYRO.P = 4000
  791. GYRO.MaxTorque = VT(40000,40000,40000)
  792. local POSITION = IT("BodyPosition",RootPart)
  793. POSITION.Position = RootPart.Position+VT(0,2,0)
  794. POSITION.D = 450
  795. POSITION.P = 40000
  796. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  797. CreateSound(CHARGE,RightArm,6,1,false)
  798. coroutine.resume(coroutine.create(function()
  799. repeat
  800. Swait()
  801. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  802. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  808. until ATTACK == false
  809. GYRO:remove()
  810. POSITION:remove()
  811. end))
  812. wait(1)
  813. repeat
  814. coroutine.resume(coroutine.create(function()
  815. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10,10,10))
  816. FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
  817. CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
  818. for i = 1, 250 do
  819. Swait()
  820. local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character)
  821. FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5)
  822. if HIT then
  823. ApplyAoE(FIREBALL.Position,200,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  824. for i = 1, 3 do
  825. WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  826. end
  827. for i = 1, 3 do
  828. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  829. end
  830. for i = 1, 5 do
  831. WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  832. end
  833. break
  834. end
  835. end
  836. Debris:AddItem(FIREBALL,7)
  837. end))
  838. wait(0.1)
  839. until KEYHOLD == false
  840. wait(0.2)
  841. ATTACK = false
  842. Rooted = false
  843. end
  844.  
  845. function SearingOrb()
  846. ATTACK = true
  847. Rooted = true
  848. local POSITION = IT("BodyPosition",RootPart)
  849. POSITION.Position = RootPart.Position+VT(0,2,0)
  850. POSITION.D = 450
  851. POSITION.P = 40000
  852. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  853. CreateSound(CHARGE,Torso,6,1,false)
  854. local NEWANIM = false
  855. coroutine.resume(coroutine.create(function()
  856. repeat
  857. Swait()
  858. 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)
  859. 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)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  864. until ATTACK == false or NEWANIM == true
  865. if NEWANIM == true then
  866. local GYRO = IT("BodyGyro",RootPart)
  867. GYRO.D = 20
  868. GYRO.P = 4000
  869. GYRO.MaxTorque = VT(40000,40000,40000)
  870. repeat
  871. Swait()
  872. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  873. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  874. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  875. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  876. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  877. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  878. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  879. until ATTACK == false
  880. GYRO:remove()
  881. end
  882. POSITION:remove()
  883. end))
  884. local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
  885. MakeForm(ORB,"Ball")
  886. ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
  887. local A = IT("Attachment",ORB)
  888. local LOOP = 0
  889. for i = 1, 500 do
  890. Swait()
  891. LOOP = LOOP + 1
  892. if LOOP >= 30 then
  893. LOOP = 0
  894. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  895. end
  896. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  897. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  898. end
  899. wait(1)
  900. if KEYHOLD == false then
  901. coroutine.resume(coroutine.create(function()
  902. ORB.Transparency = 1
  903. Debris:AddItem(ORB,10)
  904. ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  905. CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false)
  906. CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false)
  907. for i = 1, 3 do
  908. WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  909. end
  910. for i = 1, 3 do
  911. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  912. end
  913. for i = 1, 15 do
  914. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  915. end
  916. end))
  917. else
  918. for i = 1, 100 do
  919. Swait()
  920. ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5
  921. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  922. end
  923. ORB.Transparency = 1
  924. Debris:AddItem(ORB,10)
  925. CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
  926. for _, c in pairs(Character:GetChildren()) do
  927. if c:IsA("BasePart") then
  928. end
  929. end
  930. NEWANIM = true
  931. wait(0.5)
  932. for i = 1, 15 do
  933. wait(0.1)
  934. coroutine.resume(coroutine.create(function()
  935. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2))
  936. FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
  937. CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
  938. for i = 1, 250 do
  939. Swait()
  940. local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character)
  941. FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2)
  942. if HIT then
  943. CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
  944. local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
  945. local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
  946. FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  947. FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0))
  948. coroutine.resume(coroutine.create(function()
  949. for i = 1, 15 do
  950. wait(1)
  951. ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  952. end
  953. Debris:AddItem(FIELD,5)
  954. Debris:AddItem(FIELD2,5)
  955. end))
  956. break
  957. end
  958. end
  959. Debris:AddItem(FIREBALL,7)
  960. end))
  961. end
  962. end
  963. wait(0.3)
  964. ATTACK = false
  965. Rooted = false
  966. end
  967.  
  968. function Shroud()
  969. if Mouse.Target ~= nil then
  970. if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  971. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
  972. local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  973. if TORSO and HUM.Health > 0 then
  974. local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
  975. if DISTANCE < 100 then
  976. ATTACK = true
  977. POSEIDON = false
  978. Rooted = true
  979. local GYRO = IT("BodyGyro",RootPart)
  980. GYRO.D = 20
  981. GYRO.P = 4000
  982. GYRO.MaxTorque = VT(40000,40000,40000)
  983. local POSITION = IT("BodyPosition",RootPart)
  984. POSITION.Position = RootPart.Position+VT(0,2,0)
  985. POSITION.D = 450
  986. POSITION.P = 40000
  987. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  988. local TARGETTING = true
  989. local HIT = false
  990.  
  991. CreateSound(CHARGE,Torso,6,1,false)
  992. coroutine.resume(coroutine.create(function()
  993. repeat
  994. GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
  995. Swait()
  996. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  997. 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)
  998. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  999. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1000. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1001. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1002. until TARGETTING == false
  1003. repeat
  1004. GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
  1005. POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p
  1006. DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
  1007. Swait()
  1008. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1009. 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)
  1010. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1011. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1012. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1013. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1014. until HIT == true
  1015. POSITION:remove()
  1016. GYRO:remove()
  1017. end))
  1018. wait(0.5)
  1019. repeat wait() until HOLD == true
  1020. for _, c in pairs(Character:GetChildren()) do
  1021. if c:IsA("BasePart") then
  1022.  
  1023. end
  1024. end
  1025. for _, c in pairs(Character:GetChildren()) do
  1026. if c:IsA("BasePart") then
  1027. c.Transparency = 1
  1028. end
  1029. end
  1030. TARGETTING = false
  1031. for i = 1, 100 do
  1032. wait()
  1033. if DISTANCE < 5 or DISTANCE >= 200 then
  1034. break
  1035. end
  1036. end
  1037. HIT = true
  1038. end
  1039. for _, c in pairs(HUM.Parent:GetChildren()) do
  1040. end
  1041. end
  1042. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  1043. RootPart.CFrame = TORSO.CFrame
  1044. local WELD = weldBetween(RootPart,TORSO)
  1045. repeat wait() until HOLD == true
  1046. CreateSound(416328540,Torso,6,1,false)
  1047. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1048. local bv = Instance.new("BodyVelocity")
  1049. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1050. bv.velocity = CF(TORSO.Position,TORSO.Position+VT(0,15,0)).lookVector*125
  1051. bv.Parent = TORSO
  1052. for i = 1, 70 do
  1053. wait(0.1)
  1054. if TORSO.Parent == nil then
  1055. break
  1056. end
  1057. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1058. end
  1059. UNANCHOR = false
  1060. bv:remove()
  1061. wait(1)
  1062. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1063. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  1064. UNANCHOR = true
  1065. local bv = Instance.new("BodyVelocity")
  1066. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1067. bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
  1068. bv.Parent = TORSO
  1069. local LANDED = false
  1070. for i = 1, 500 do
  1071. wait()
  1072. Ignore = {Character,HUM.Parent}
  1073. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1074. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1075. local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
  1076. if HITFLOOR or FULLREGEN == true then
  1077. LANDED = true
  1078. break
  1079. end
  1080. if TORSO.Parent == nil then
  1081. break
  1082. end
  1083. end
  1084. if TORSO.Parent ~= nil then
  1085. UNANCHOR = false
  1086. bv:remove()
  1087. wait(1)
  1088. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1089. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  1090. UNANCHOR = true
  1091. local bv = Instance.new("BodyVelocity")
  1092. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1093. bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
  1094. bv.Parent = TORSO
  1095. local LANDED = false
  1096. for i = 1, 500 do
  1097. wait()
  1098. Ignore = {Character,HUM.Parent}
  1099. WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1100. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1101. local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
  1102. if HITFLOOR or FULLREGEN == true then
  1103. LANDED = true
  1104. break
  1105. end
  1106. if TORSO.Parent == nil then
  1107. break
  1108. end
  1109. end
  1110. bv:remove()
  1111. if LANDED == true then
  1112. UNANCHOR = false
  1113. for i = 1, 10 do
  1114. ApplyAoE(TORSO.Position+VT(0,1,0),10+(2*i),15,15,45,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  1115. end
  1116. CreateSound(EXPLOSIONLARGESOUND,TORSO,10,1,false)
  1117. CreateSound(EXPLOSIONSMALLSOUND,TORSO,10,1,false)
  1118. for i = 1, 15 do
  1119. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1120. end
  1121. WELD:remove()
  1122. wait(0.3)
  1123. UNANCHOR = true
  1124. else
  1125. WELD:remove()
  1126. end
  1127. end
  1128. end
  1129. for _, c in pairs(Character:GetChildren()) do
  1130. if c:IsA("BasePart") and c ~= RootPart then
  1131. c.Transparency = 0
  1132. end
  1133. end
  1134. RootPart.Velocity = VT(0,0,0)
  1135. ATTACK = false
  1136. Rooted = false
  1137. end
  1138. end
  1139.  
  1140. function Spitter()
  1141. ATTACK = true
  1142. Rooted = true
  1143. local GYRO = IT("BodyGyro",RootPart)
  1144. GYRO.D = 20
  1145. GYRO.P = 4000
  1146. GYRO.MaxTorque = VT(40000,40000,40000)
  1147. local POSITION = IT("BodyPosition",RootPart)
  1148. POSITION.Position = RootPart.Position+VT(0,2,0)
  1149. POSITION.D = 450
  1150. POSITION.P = 40000
  1151. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1152. CreateSound(CHARGE,RightArm,6,0.8,false)
  1153. coroutine.resume(coroutine.create(function()
  1154. repeat
  1155. Swait()
  1156. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1157. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1161. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1162. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1163. until ATTACK == false
  1164. GYRO:remove()
  1165. POSITION:remove()
  1166. end))
  1167. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
  1168. MakeForm(FIREBALL,"Ball")
  1169. FIREBALL.CFrame = RightArm.CFrame*CF(0,-1,0)
  1170. local CORE = IT("Attachment",FIREBALL)
  1171. local LOOP = 0
  1172. repeat
  1173. Swait()
  1174. LOOP = LOOP + 1
  1175. if LOOP == 20 then
  1176. LOOP = 0
  1177. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1178. end
  1179. if FIREBALL.Size.X < 20 then
  1180. FIREBALL.Size = FIREBALL.Size + VT(0.1,0.1,0.1)
  1181. end
  1182. FIREBALL.CFrame = RightArm.CFrame*CF(0,-1-FIREBALL.Size.Z/2,0)
  1183. until KEYHOLD == false and FIREBALL.Size.X >= 10
  1184. CreateSound(FIREBALLSOUND,FIREBALL,10,0.8,false)
  1185. coroutine.resume(coroutine.create(function()
  1186. FIREBALL.CFrame = CF(FIREBALL.Position,Mouse.Hit.p)
  1187. local RANGE = 75
  1188. for i = 1, 600 do
  1189. LOOP = LOOP + 1
  1190. if LOOP == 20 then
  1191. LOOP = 0
  1192. ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*5,5,25,0,false)
  1193. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1194. end
  1195. Swait()
  1196. FIREBALL.CFrame = CF(FIREBALL.Position,FIREBALL.CFrame*CF(0,-0.001,-1).p)*CF(0,0,-0.2)
  1197. local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, FIREBALL.Size.X/2.5, Character)
  1198. if HIT then
  1199. ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*12,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  1200. CreateSound(EXPLOSIONLARGESOUND,FIREBALL,10,1,false)
  1201. CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
  1202. for i = 1, 3 do
  1203. WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1204. end
  1205. for i = 1, 3 do
  1206. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1207. end
  1208. for i = 1, 15 do
  1209. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X*10,FIREBALL.Size.X*10,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1210. end
  1211. break
  1212. end
  1213. end
  1214. for i = 1, 10 do
  1215. Swait()
  1216. FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1)
  1217. end
  1218. Debris:AddItem(FIREBALL,5)
  1219. end))
  1220. wait(0.5)
  1221. ATTACK = false
  1222. Rooted = false
  1223. end
  1224.  
  1225. function Devastor()
  1226. ATTACK = true
  1227. Rooted = true
  1228. local POSITION = IT("BodyPosition",RootPart)
  1229. POSITION.Position = RootPart.Position+VT(0,2,0)
  1230. POSITION.D = 450
  1231. POSITION.P = 40000
  1232. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1233. CreateSound(CHARGE,Torso,6,1,false)
  1234. local NEWANIM = false
  1235. coroutine.resume(coroutine.create(function()
  1236. repeat
  1237. Swait()
  1238. 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)
  1239. 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)
  1240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1242. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1244. until ATTACK == false or NEWANIM == true
  1245. if NEWANIM == true then
  1246. local GYRO = IT("BodyGyro",RootPart)
  1247. GYRO.D = 20
  1248. GYRO.P = 4000
  1249. GYRO.MaxTorque = VT(40000,40000,40000)
  1250. repeat
  1251. Swait()
  1252. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1253. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1254. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1255. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1256. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1257. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1258. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1259. until ATTACK == false
  1260. GYRO:remove()
  1261. end
  1262. POSITION:remove()
  1263. end))
  1264. local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
  1265. MakeForm(ORB,"Ball")
  1266. ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
  1267. local A = IT("Attachment",ORB)
  1268. local LOOP = 0
  1269. for i = 1, 200 do
  1270. Swait()
  1271. LOOP = LOOP + 1
  1272. if LOOP >= 30 then
  1273. LOOP = 0
  1274. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1275. end
  1276. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  1277. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  1278. end
  1279. RightArm.Transparency = 1
  1280. LeftArm.Transparency = 1
  1281. for _, c in pairs(Character:GetChildren()) do
  1282. if c:IsA("BasePart") then
  1283. end
  1284. end
  1285. CreateSound(CHARGE,Torso,6,0.5,false)
  1286. for i = 1, 200 do
  1287. Swait()
  1288. LOOP = LOOP + 1
  1289. if LOOP >= 30 then
  1290. LOOP = 0
  1291. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1292. end
  1293. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  1294. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  1295. end
  1296. for _, c in pairs(Character:GetChildren()) do
  1297. if c:IsA("BasePart") then
  1298. c.Transparency = 1
  1299. end
  1300. end
  1301. for i = 1, 400 do
  1302. Swait()
  1303. LOOP = LOOP + 1
  1304. if LOOP >= 30 then
  1305. LOOP = 0
  1306. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1307. end
  1308. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  1309. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  1310. end
  1311. wait(0.5)
  1312. CreateSound(FIREBALLSOUND,Effects,4,1,false)
  1313. coroutine.resume(coroutine.create(function()
  1314. ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
  1315. for i = 1, 1200 do
  1316. Swait()
  1317. ORB.CFrame = ORB.CFrame*CF(0,0,-1)
  1318. local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character)
  1319. if HIT then
  1320. break
  1321. end
  1322. end
  1323. for i = 1, 6 do
  1324. ApplyAoE(ORB.Position,ORB.Size.X*10,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  1325. CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false)
  1326. CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false)
  1327. for i = 1, 3 do
  1328. WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1329. end
  1330. for i = 1, 3 do
  1331. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1332. end
  1333. for i = 1, 15 do
  1334. WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1335. end
  1336. wait(1)
  1337. end
  1338. for i = 1, 10 do
  1339. Swait()
  1340. ORB.Mesh.Scale = ORB.Mesh.Scale - VT(0.1,0.1,0.1)
  1341. end
  1342. Debris:AddItem(ORB,5)
  1343. end))
  1344. wait(1)
  1345. FullBodyRegen()
  1346. ATTACK = false
  1347. Rooted = false
  1348. end
  1349.  
  1350. --//=================================\\
  1351. --|| MISC
  1352. --\\=================================//
  1353.  
  1354. function Jupiter()
  1355. ATTACK = true
  1356. Rooted = true
  1357. local POSITION = IT("BodyPosition",RootPart)
  1358. POSITION.Position = RootPart.Position+VT(0,0.2,0)
  1359. POSITION.D = 450
  1360. POSITION.P = 40000
  1361. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1362. coroutine.resume(coroutine.create(function()
  1363. repeat
  1364. Swait()
  1365. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  1366. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1367. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1368. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  1370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  1371. until ATTACK == false
  1372. end))
  1373. wait(0.5)
  1374. repeat wait() until KEYHOLD == false
  1375. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10})
  1376. POSITION:remove()
  1377. RootPart.Velocity = VT(0,150,0)
  1378. ATTACK = false
  1379. Rooted = false
  1380. end
  1381.  
  1382. function Taunt()
  1383. ATTACK = true
  1384. Rooted = true
  1385. local TAUNT = CreateSound(159882303,Torso,10,1,false)
  1386. coroutine.resume(coroutine.create(function()
  1387. repeat
  1388. Swait()
  1389. 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)
  1390. 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)
  1391. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1392. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1393. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1394. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1395. until ATTACK == false
  1396. end))
  1397. repeat wait() until TAUNT.Playing == false
  1398. ATTACK = false
  1399. Rooted = false
  1400. end
  1401.  
  1402. --//=================================\\
  1403. --|| ASSIGN THINGS TO KEYS
  1404. --\\=================================//
  1405.  
  1406. function MouseDown(Mouse)
  1407. HOLD = true
  1408. if ATTACK == false then
  1409. end
  1410. end
  1411.  
  1412. function MouseUp(Mouse)
  1413. HOLD = false
  1414. end
  1415.  
  1416. local MUSIC = CreateSound(285883918,Character,3,1,true)
  1417.  
  1418. function KeyDown(Key)
  1419. KEYHOLD = true
  1420. if ATTACK == false and FULLREGEN == false then
  1421. if Key == "z" then
  1422. Fireball()
  1423. end
  1424.  
  1425. if Key == "v" and SEARING == false then
  1426. SearingOrb()
  1427. end
  1428.  
  1429. if Key == "q" and SEARING == false then
  1430. Shroud()
  1431. end
  1432.  
  1433. if Key == "x" and SEARING == false then
  1434. Jupiter()
  1435. wait(2)
  1436. Devastor()
  1437. end
  1438.  
  1439. if Key == "e" then
  1440. Spitter()
  1441. end
  1442.  
  1443. if Key == "j" then
  1444. Jupiter()
  1445. end
  1446.  
  1447. if Key == "t" and SEARING == false then
  1448. Taunt()
  1449. end
  1450.  
  1451. if Key == "h" then
  1452. if POSEIDON == false then
  1453. POSEIDON = true
  1454. CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false)
  1455. else
  1456. POSEIDON = false
  1457. end
  1458. end
  1459. end
  1460.  
  1461. if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then
  1462. repeat
  1463. VALUE2 = true
  1464. Swait()
  1465. BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p
  1466. until KEYHOLD == false
  1467. VALUE2 = false
  1468. end
  1469.  
  1470. if string.byte(Key) == 50 and ATTACK == false then
  1471. if Speed == 16 then
  1472. Speed = 45
  1473. elseif Speed == 45 then
  1474. Speed = 16
  1475. end
  1476. end
  1477.  
  1478. if Key == "1" then
  1479. MUSIC:Play()
  1480. CHOSENSONG = CHOSENSONG + 1
  1481. if CHOSENSONG > #SONGS then
  1482. CHOSENSONG = 1
  1483. end
  1484. end
  1485. end
  1486.  
  1487. function KeyUp(Key)
  1488. KEYHOLD = false
  1489. end
  1490.  
  1491. Mouse.Button1Down:connect(function(NEWKEY)
  1492. MouseDown(NEWKEY)
  1493. end)
  1494. Mouse.Button1Up:connect(function(NEWKEY)
  1495. MouseUp(NEWKEY)
  1496. end)
  1497. Mouse.KeyDown:connect(function(NEWKEY)
  1498. KeyDown(NEWKEY)
  1499. end)
  1500. Mouse.KeyUp:connect(function(NEWKEY)
  1501. KeyUp(NEWKEY)
  1502. end)
  1503.  
  1504. --//=================================\\
  1505. --\\=================================//
  1506.  
  1507. function unanchor()
  1508. if UNANCHOR == true then
  1509. for _, c in pairs(Character:GetChildren()) do
  1510. if c:IsA("BasePart") then
  1511. c.Anchored = false
  1512. end
  1513. end
  1514. else
  1515. for _, c in pairs(Character:GetChildren()) do
  1516. if c:IsA("BasePart") then
  1517. c.Anchored = true
  1518. end
  1519. end
  1520. end
  1521. end
  1522.  
  1523. --//=================================\\
  1524. --|| WRAP THE WHOLE SCRIPT UP
  1525. --\\=================================//
  1526.  
  1527. Humanoid.Changed:connect(function(Jump)
  1528. if Jump == "Jump" and (Disable_Jump == true) then
  1529. Humanoid.Jump = false
  1530. end
  1531. end)
  1532.  
  1533. local LOOP = 0
  1534.  
  1535. while true do
  1536. Swait()
  1537. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1538. Humanoid = IT("Humanoid",Character)
  1539. end
  1540. Effects.Parent = Character
  1541. script.Parent = WEAPONGUI
  1542. ANIMATE.Parent = nil
  1543. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1544. v:Stop();
  1545. end
  1546. SINE = SINE + CHANGE
  1547. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1548. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1549. Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
  1550. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1551. local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
  1552. local WALKSPEEDVALUE = 5
  1553. if SEARING == false then
  1554. if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then
  1555. if Humanoid.WalkSpeed <= 20 then
  1556. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1557. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1558. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1559. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1560. elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then
  1561. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1562. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1563. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1564. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1565. end
  1566. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then
  1567. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1568. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1569. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1570. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1571. end
  1572. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1573. ANIM = "Jump"
  1574. if ATTACK == false then
  1575. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1576. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1577. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1578. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1579. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1580. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1581. end
  1582. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1583. ANIM = "Fall"
  1584. if ATTACK == false then
  1585. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed)
  1586. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed)
  1587. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1588. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1589. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1590. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1591. end
  1592. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1593. ANIM = "Idle"
  1594. if ATTACK == false then
  1595. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1596. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1597. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1598. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1599. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1600. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1601. end
  1602. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1603. ANIM = "Walk"
  1604. if ATTACK == false then
  1605. if Humanoid.WalkSpeed <= 20 then
  1606. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1607. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1608. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
  1609. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
  1610. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1611. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1612. elseif Humanoid.WalkSpeed > 20 then
  1613. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1614. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1615. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1616. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1617. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
  1618. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1619. end
  1620. end
  1621. end
  1622. elseif SEARING == true then
  1623. if APPLYGYRO == true then
  1624. if VALUE2 == false and DIRECTTURN == false then
  1625. if GYRO ~= nil then
  1626. GYRO.MaxTorque = VT(0,40000,0)
  1627. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1628. end
  1629. else
  1630. if GYRO ~= nil then
  1631. GYRO.MaxTorque = VT(80000,40000,80000)
  1632. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1633. end
  1634. end
  1635. end
  1636. if VALUE2 == false and ATTACK == false then
  1637. ANIM = "IdleFlight"
  1638. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1639. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1640. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1641. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1642. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1643. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1644. elseif VALUE2 == true and ATTACK == false then
  1645. ANIM = "Flight"
  1646. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  1647. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1648. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0,1 / Animation_Speed)
  1649. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1650. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1651. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1652. end
  1653. end
  1654. unanchor()
  1655. Humanoid.MaxHealth = "inf"
  1656. Humanoid.Health = "inf"
  1657. if Rooted == false then
  1658. Disable_Jump = false
  1659. Humanoid.WalkSpeed = Speed
  1660. elseif Rooted == true then
  1661. Disable_Jump = true
  1662. Humanoid.WalkSpeed = 0
  1663. end
  1664. Regen()
  1665. if Head:FindFirstChild("face") then
  1666. Head.face.Texture = "rbxassetid://608798717"
  1667. Head.face.Transparency = Head.Transparency
  1668. end
  1669. for _, c in pairs(Character:GetDescendants()) do
  1670. if c.ClassName == "Attachment" and c ~= BACKATTACHMENT1 and c ~= BACKATTACHMENT2 and c.Parent.Parent ~= Effects then
  1671. c:remove()
  1672. end
  1673. if c and c.Parent then
  1674. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1675. local ACCESSORY = c.Parent
  1676. c.Parent = Character
  1677. local REGENVALUE = IT("BoolValue",c)
  1678. REGENVALUE.Name = "IsRegening"
  1679. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
  1680. if c then
  1681. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1682. local WELD = weldBetween(Head,c)
  1683. table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
  1684. else
  1685. local WELD = weldBetween(Torso,c)
  1686. table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
  1687. end
  1688. end
  1689. ACCESSORY:remove()
  1690. end
  1691. end
  1692. end
  1693. for _, c in pairs(Character:GetChildren()) do
  1694. if SEARING == true and c:IsA("BasePart") then
  1695. c.Transparency = 1
  1696. end
  1697. end
  1698. MUSIC.Parent = Character
  1699. MUSIC.SoundId = "rbxassetid://"..SONGS[CHOSENSONG]
  1700. MUSIC.Pitch = 1
  1701. if CHOSENSONG ~= 5 then
  1702. MUSIC.Volume = 2
  1703. else
  1704. MUSIC.Volume = 4
  1705. end
  1706. MUSIC.Playing = true
  1707. if POSEIDON == true and FULLREGEN == false then
  1708. LOOP = LOOP + 1
  1709. local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
  1710. FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))
  1711. FLOOR.CanCollide = true
  1712. Debris:AddItem(FLOOR,0.2)
  1713. local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
  1714. FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))*ANGLES(RAD(0),RAD(45),RAD(0))
  1715. FLOOR.CanCollide = true
  1716. Debris:AddItem(FLOOR,0.2)
  1717. if LOOP >= 5 then
  1718. LOOP = 0
  1719. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = HITPOS+VT(0,0.45,0), RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1720. end
  1721. end
  1722. RootJoint.Parent = RootPart
  1723. Humanoid.DisplayDistanceType = "None"
  1724. Humanoid.Name = "Searing Emperor"
  1725. end
  1726.  
  1727. --//=================================\\
  1728. --\\=================================//
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734. --//====================================================\\--
  1735. --|| END OF SCRIPT
  1736. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement