Advertisement
SlySlixty

Untitled

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