Advertisement
ZaGodlyNoob

Hyperion Glitcher V2.1.8

Nov 2nd, 2018
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 333.04 KB | None | 0 0
  1. --DO NOT LEAK!
  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 = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = RhiBel00351
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89.  
  90. wait(0.5)
  91.  
  92. warn([[Hyperion Glitcher Loaded.
  93. Hyperion has awoken once again.
  94. He's ready to kill those heroes again.
  95. Hyperion will take over the world!
  96.  
  97. Created, Reworked by NoobyGames12. Heavily edited by RhiBel00351.
  98. This ISN'T the regular Star Glitcher Rework.
  99. It's an edit of SGR.
  100. So if you want the regular, go find it yourself.
  101. ]])
  102.  
  103.  
  104. ------------- ORIGINAL WIELDER OC: Velnorum
  105. print([[Moves:
  106. > Stress Hyperion: Z, X
  107. > Frost Hyperion: Z, X
  108. > True Hyperion: J, K, Z, X, C, V, B, M
  109. > Divine Hyperion: Z
  110. > Murder Hyperion: Z
  111. > Destiny Hyperion: N/A MOVES
  112. > Calamity Hyperion: Z, X, C, V
  113. > Infestation Hyperion: Z
  114. > Omega Hyperion: Z, X
  115. > Evil Hyperion: Z, X, C, V
  116. ]])
  117. warn([[Update Log:
  118. N - ???
  119. Extra modes:
  120. > Stress Hyperion: N for Electroswing Hyperion
  121. > Frost Hyperion: N for Brightness Hyperion
  122. > True Hyperion: N for Insane Hyperion
  123. > Divine Hyperion: N for Fallen Hyperion
  124. > Destiny Hyperion: N for Omega Hyperion
  125. Note:
  126. Lots of hard work on this. I won't be making this again if this gets deleted.
  127. P.S Don't leak.]])
  128. --- its obs smooth af do not touch
  129. ---- Sources and functions might be taken from others
  130. plr = owner
  131. char = plr.Character
  132. hum = char.Humanoid
  133. local cam = game.Workspace.CurrentCamera
  134. Camera = cam
  135. local CamInterrupt = false
  136. local TwoD = false
  137. local TargetInfo = {nil, nil}
  138. cam.CameraType = "Custom"
  139. t = char.Torso
  140. h = char.Head
  141. ra = char["Right Arm"]
  142. la = char["Left Arm"]
  143. rl = char["Right Leg"]
  144. ll = char["Left Leg"]
  145. tors = char.Torso
  146. lleg = char["Left Leg"]
  147. root = char.HumanoidRootPart
  148. hed = char.Head
  149. rleg = char["Right Leg"]
  150. rarm = char["Right Arm"]
  151. larm = char["Left Arm"]
  152. radian = math.rad
  153. random = math.random
  154. Vec3 = Vector3.new
  155. Inst = Instance.new
  156. cFrame = CFrame.new
  157. Euler = CFrame.fromEulerAnglesXYZ
  158. vt = Vector3.new
  159. bc = BrickColor.new
  160. br = BrickColor.random
  161. it = Instance.new
  162. cf = CFrame.new
  163.  
  164. local Booleans = {
  165. CamFollow = true,
  166. GyroUse = true
  167. }
  168.  
  169. function lerp(object, newCFrame, alpha)
  170. return object:lerp(newCFrame, alpha)
  171. end
  172.  
  173. local Directer = Inst("BodyGyro", root)
  174. Directer.MaxTorque = Vec3(0, 0, 0)
  175. Directer.P = 600000
  176. local CPart = Inst("Part")
  177. CPart.Anchored = true
  178. CPart.CanCollide = false
  179. CPart.Locked = true
  180. CPart.Transparency = 1
  181.  
  182. local rainbowmode = false
  183. local chaosmode = false
  184.  
  185. local kan = Instance.new("Sound",char)
  186. kan.Volume = 1.25
  187. kan.TimePosition = 0
  188. kan.PlaybackSpeed = 1
  189. kan.Pitch = 1
  190. kan.SoundId = "rbxassetid://550578451"
  191. kan.Name = "wrecked"
  192. kan.Looped = true
  193. kan:Play()
  194.  
  195. local currentThemePlaying = kan.SoundId
  196. local currentPitch = kan.Pitch
  197. local currentVol = kan.Volume
  198. function newTheme(ID,timepos,pitch,vol)
  199. local kanz = kan
  200. --kanz:Stop()
  201. kanz.Volume = vol
  202. --kanz.TimePosition = timepos
  203. kanz.PlaybackSpeed = pitch
  204. kanz.Pitch = pitch
  205. kanz.SoundId = ID
  206. kanz.Name = "wrecked"
  207. kanz.Looped = true
  208. currentThemePlaying = kanz.SoundId
  209. currentVol = kanz.Volume
  210. currentPitch = kanz.Pitch
  211. --kanz:Play()
  212. --coroutine.resume(coroutine.create(function()
  213. --wait(0.05)
  214. --end))
  215. end
  216.  
  217.  
  218. function newThemeCust(ID,timepos,pitch,vol)
  219. local kanz = kan
  220. kanz:Stop()
  221. kanz.Volume = vol
  222. kanz.TimePosition = timepos
  223. kanz.PlaybackSpeed = pitch
  224. kanz.Pitch = pitch
  225. kanz.SoundId = ID
  226. kanz.Name = "wrecked"
  227. kanz.Looped = true
  228. currentThemePlaying = kanz.SoundId
  229. currentVol = kanz.Volume
  230. currentPitch = kanz.Pitch
  231. kanz:Play()
  232. coroutine.resume(coroutine.create(function()
  233. wait(0.05)
  234. end))
  235. end
  236.  
  237. local mutedtog = false
  238.  
  239. function CameraEnshaking(Length,Intensity)
  240. coroutine.resume(coroutine.create(function()
  241. local intensity = 1*Intensity
  242. local rotM = 0.01*Intensity
  243. for i = 0, Length, 0.1 do
  244. swait()
  245. intensity = intensity - 0.05*Intensity/Length
  246. rotM = rotM - 0.0005*Intensity/Length
  247. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  248. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  249. end
  250. Humanoid.CameraOffset = Vec3(0, 0, 0)
  251. end))
  252. end
  253. CamShake=function(Part,Distan,Power,Times)
  254. local de=Part.Position
  255. for i,v in pairs(workspace:children()) do
  256. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  257. for _,c in pairs(v:children()) do
  258. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  259. local Noob=v.Humanoid
  260. if Noob~=nil then
  261. coroutine.resume(coroutine.create(function()
  262. FV = Instance.new("BoolValue", Noob)
  263. FV.Name = "CameraShake"
  264. for ShakeNum=1,Times do
  265. swait()
  266. local ef=Power
  267. if ef>=1 then
  268. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  269. else
  270. ef=Power*10
  271. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  272. end
  273. end
  274. Humanoid.CameraOffset = Vector3.new(0,0,0)
  275. FV:Destroy()
  276. end))
  277. CameraShake(Times, Power, Noob)
  278. end
  279. end
  280. end
  281. end
  282. end
  283. end
  284.  
  285. local toggleTag = true
  286. local bilguit = Instance.new("BillboardGui", hed)
  287. bilguit.Adornee = nil
  288. bilguit.Name = "ModeName"
  289. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  290. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  291. local modet = Instance.new("TextLabel", bilguit)
  292. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  293. modet.FontSize = "Size8"
  294. modet.TextScaled = true
  295. modet.TextTransparency = 0
  296. modet.BackgroundTransparency = 1
  297. modet.TextTransparency = 0
  298. modet.TextStrokeTransparency = 0
  299. modet.Font = "Antique"
  300. modet.TextStrokeColor3 = Color3.new(1,0,0)
  301. modet.TextColor3 = Color3.new(0.25,0,0)
  302. modet.Text = "STRESS HYPERION"
  303.  
  304.  
  305. function chatfunc(text,color,typet,font,timeex)
  306. local chat = coroutine.wrap(function()
  307. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  308. Character:FindFirstChild("TalkingBillBoard"):destroy()
  309. end
  310. local naeeym2 = Instance.new("BillboardGui",Character)
  311. naeeym2.Size = UDim2.new(0,100,0,40)
  312. naeeym2.StudsOffset = Vector3.new(0,3,0)
  313. naeeym2.Adornee = Character.Head
  314. naeeym2.Name = "TalkingBillBoard"
  315. local tecks2 = Instance.new("TextLabel",naeeym2)
  316. tecks2.BackgroundTransparency = 1
  317. tecks2.BorderSizePixel = 0
  318. tecks2.Text = ""
  319. tecks2.Font = font
  320. tecks2.TextSize = 30
  321. tecks2.TextStrokeTransparency = 0
  322. tecks2.TextColor3 = color
  323. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  324. tecks2.Size = UDim2.new(1,0,0.5,0)
  325. local tecks3 = Instance.new("TextLabel",naeeym2)
  326. tecks3.BackgroundTransparency = 1
  327. tecks3.BorderSizePixel = 0
  328. tecks3.Text = ""
  329. tecks3.Font = font
  330. tecks3.TextSize = 30
  331. tecks3.TextStrokeTransparency = 0
  332. if typet == "Inverted" then
  333. tecks3.TextColor3 = Color3.new(0,0,0)
  334. tecks3.TextStrokeColor3 = color
  335. elseif typet == "Normal" then
  336. tecks3.TextColor3 = color
  337. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  338. end
  339. tecks3.Size = UDim2.new(1,0,0.5,0)
  340. coroutine.resume(coroutine.create(function()
  341. while true do
  342. swait(1)
  343. if chaosmode == true then
  344. tecks2.TextColor3 = BrickColor.random().Color
  345. tecks3.TextStrokeColor3 = BrickColor.random().Color
  346. end
  347. end
  348. end))
  349. modet.TextTransparency = modet.TextTransparency + 1
  350. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  351. for i = 0, 74*timeex do
  352. swait()
  353. modet.TextTransparency = 1
  354. modet.TextStrokeTransparency = 1
  355. tecks2.Text = text
  356. tecks3.Text = text
  357. end
  358. local randomrot = math.random(1,2)
  359. if randomrot == 1 then
  360. for i = 1, 50 do
  361. swait()
  362. tecks2.Text = text
  363. tecks3.Text = text
  364. modet.TextTransparency = modet.TextTransparency - .02
  365. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  366. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  367. tecks2.TextTransparency = tecks2.TextTransparency + .04
  368. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks3.TextTransparency = tecks2.TextTransparency + .04
  370. end
  371. elseif randomrot == 2 then
  372. for i = 1, 50 do
  373. swait()
  374. tecks2.Text = text
  375. tecks3.Text = text
  376. modet.TextTransparency = modet.TextTransparency - .02
  377. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  378. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks2.TextTransparency = tecks2.TextTransparency + .04
  380. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  381. tecks3.TextTransparency = tecks2.TextTransparency + .04
  382. end
  383. end
  384. modet.TextTransparency = 0
  385. modet.TextStrokeTransparency = 0
  386. if toggleTag == false then
  387. modet.TextTransparency = 1
  388. modet.TextStrokeTransparency = 1
  389. end
  390. naeeym2:Destroy()
  391. end)
  392. chat()
  393. end
  394.  
  395. function bosschatfunc(text,color,watval)
  396. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  397. coroutine.resume(coroutine.create(function()
  398. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  399. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  400. end
  401. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  402. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  403. scrg.Name = "Dialog"
  404. local txtlb = Instance.new("TextLabel",scrg)
  405. txtlb.Text = ""
  406. txtlb.Font = "Bodoni"
  407. txtlb.TextColor3 = Color3.new(0,0,0)
  408. txtlb.TextStrokeTransparency = 0
  409. txtlb.BackgroundTransparency = 0.75
  410. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  411. txtlb.TextStrokeColor3 = color
  412. txtlb.TextScaled = true
  413. txtlb.Size = UDim2.new(1,0,0.25,0)
  414. txtlb.TextXAlignment = "Left"
  415. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  416. local txtlb2 = Instance.new("TextLabel",scrg)
  417. txtlb2.Text = "???:"
  418. txtlb2.Font = "Arcade"
  419. txtlb2.TextColor3 = Color3.new(0,0,0)
  420. txtlb2.TextStrokeTransparency = 0
  421. txtlb2.BackgroundTransparency = 1
  422. txtlb2.TextStrokeColor3 = color
  423. txtlb2.TextSize = 40
  424. txtlb2.Size = UDim2.new(1,0,0.25,0)
  425. txtlb2.TextXAlignment = "Left"
  426. txtlb2.Position = UDim2.new(0,0,1,0)
  427. local fvalen = 0.55
  428. local fval = -0.49
  429. coroutine.resume(coroutine.create(function()
  430. while true do
  431. swait()
  432. if chaosmode == true then
  433. txtlb.Rotation = math.random(-1,1)
  434. txtlb2.Rotation = math.random(-1,1)
  435. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  436. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  437. txtlb.TextStrokeColor3 = BrickColor.random().Color
  438. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  439. end
  440. end
  441. end))
  442. coroutine.resume(coroutine.create(function()
  443. while true do
  444. swait()
  445. if scrg.Parent ~= nil then
  446. fvalen = fvalen - 0.0001
  447. elseif scrg.Parent == nil then
  448. break
  449. end
  450. end
  451. end))
  452. local flol = 1.75
  453. local flil = 1.6
  454. coroutine.resume(coroutine.create(function()
  455. for i = 0, 9 do
  456. swait()
  457. fval = fval + 0.05
  458. flol = flol - 0.1
  459. flil = flil - 0.1
  460. txtlb.Text = ""
  461. txtlb.Position = UDim2.new(0,0,flol,0)
  462. txtlb2.Position = UDim2.new(0,0,flil,0)
  463. end
  464. txtlb.Text = text
  465. wait(watval)
  466. local valinc = 0
  467. for i = 0, 99 do
  468. swait()
  469. valinc = valinc + 0.0001
  470. flol = flol + valinc
  471. flil = flil + valinc
  472. txtlb.Rotation = txtlb.Rotation + valinc*20
  473. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  474. txtlb.Position = UDim2.new(0,0,flol,0)
  475. txtlb2.Position = UDim2.new(0,0,flil,0)
  476. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  477. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  478. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  479. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  480. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  481. end
  482. scrg:Destroy()
  483. end))
  484. end))
  485. end
  486. end
  487.  
  488.  
  489. local Create = LoadLibrary("RbxUtility").Create
  490.  
  491. CFuncs = {
  492. ["Part"] = {
  493. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  494. local Part = Create("Part"){
  495. Parent = Parent,
  496. Reflectance = Reflectance,
  497. Transparency = Transparency,
  498. CanCollide = false,
  499. Locked = true,
  500. BrickColor = BrickColor.new(tostring(BColor)),
  501. Name = Name,
  502. Size = Size,
  503. Material = Material,
  504. }
  505. RemoveOutlines(Part)
  506. return Part
  507. end;
  508. };
  509.  
  510. ["Mesh"] = {
  511. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  512. local Msh = Create(Mesh){
  513. Parent = Part,
  514. Offset = OffSet,
  515. Scale = Scale,
  516. }
  517. if Mesh == "SpecialMesh" then
  518. Msh.MeshType = MeshType
  519. Msh.MeshId = MeshId
  520. end
  521. return Msh
  522. end;
  523. };
  524.  
  525. ["Mesh"] = {
  526. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  527. local Msh = Create(Mesh){
  528. Parent = Part,
  529. Offset = OffSet,
  530. Scale = Scale,
  531. }
  532. if Mesh == "SpecialMesh" then
  533. Msh.MeshType = MeshType
  534. Msh.MeshId = MeshId
  535. end
  536. return Msh
  537. end;
  538. };
  539.  
  540. ["Weld"] = {
  541. Create = function(Parent, Part0, Part1, C0, C1)
  542. local Weld = Create("Weld"){
  543. Parent = Parent,
  544. Part0 = Part0,
  545. Part1 = Part1,
  546. C0 = C0,
  547. C1 = C1,
  548. }
  549. return Weld
  550. end;
  551. };
  552.  
  553. ["Sound"] = {
  554. Create = function(id, par, vol, pit)
  555. coroutine.resume(coroutine.create(function()
  556. local S = Create("Sound"){
  557. Volume = vol,
  558. Name = "EffectSoundo",
  559. Pitch = pit or 1,
  560. SoundId = id,
  561. Parent = par or workspace,
  562. }
  563. wait()
  564. S:play()
  565. game:GetService("Debris"):AddItem(S, 10)
  566. end))
  567. end;
  568. };
  569.  
  570. ["TimeSound"] = {
  571. Create = function(id, par, vol, pit, timepos)
  572. coroutine.resume(coroutine.create(function()
  573. local S = Create("Sound"){
  574. Volume = vol,
  575. Name = "EffectSoundo",
  576. Pitch = pit or 1,
  577. SoundId = id,
  578. TimePosition = timepos,
  579. Parent = par or workspace,
  580. }
  581. wait()
  582. S:play()
  583. game:GetService("Debris"):AddItem(S, 10)
  584. end))
  585. end;
  586. };
  587. ["EchoSound"] = {
  588. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  589. coroutine.resume(coroutine.create(function()
  590. local Sas = Create("Sound"){
  591. Volume = vol,
  592. Name = "EffectSoundo",
  593. Pitch = pit or 1,
  594. SoundId = id,
  595. TimePosition = timepos,
  596. Parent = par or workspace,
  597. }
  598. local E = Create("EchoSoundEffect"){
  599. Delay = echodelay,
  600. Name = "Echo",
  601. Feedback = fedb,
  602. DryLevel = dryl,
  603. Parent = Sas,
  604. }
  605. wait()
  606. Sas:play()
  607. game:GetService("Debris"):AddItem(Sas, delays)
  608. end))
  609. end;
  610. };
  611.  
  612. ["LongSound"] = {
  613. Create = function(id, par, vol, pit)
  614. coroutine.resume(coroutine.create(function()
  615. local S = Create("Sound"){
  616. Volume = vol,
  617. Pitch = pit or 1,
  618. SoundId = id,
  619. Parent = par or workspace,
  620. }
  621. wait()
  622. S:play()
  623. game:GetService("Debris"):AddItem(S, 60)
  624. end))
  625. end;
  626. };
  627.  
  628. ["ParticleEmitter"] = {
  629. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  630. local fp = Create("ParticleEmitter"){
  631. Parent = Parent,
  632. Color = ColorSequence.new(Color1, Color2),
  633. LightEmission = LightEmission,
  634. Size = Size,
  635. Texture = Texture,
  636. Transparency = Transparency,
  637. ZOffset = ZOffset,
  638. Acceleration = Accel,
  639. Drag = Drag,
  640. LockedToPart = LockedToPart,
  641. VelocityInheritance = VelocityInheritance,
  642. EmissionDirection = EmissionDirection,
  643. Enabled = Enabled,
  644. Lifetime = LifeTime,
  645. Rate = Rate,
  646. Rotation = Rotation,
  647. RotSpeed = RotSpeed,
  648. Speed = Speed,
  649. VelocitySpread = VelocitySpread,
  650. }
  651. return fp
  652. end;
  653. };
  654.  
  655. CreateTemplate = {
  656.  
  657. };
  658. }
  659.  
  660.  
  661.  
  662. New = function(Object, Parent, Name, Data)
  663. local Object = Instance.new(Object)
  664. for Index, Value in pairs(Data or {}) do
  665. Object[Index] = Value
  666. end
  667. Object.Parent = Parent
  668. Object.Name = Name
  669. return Object
  670. end
  671. local halocolor = BrickColor.new("Pastel light blue")
  672. local halocolor2 = BrickColor.new("Cool yellow")
  673. local starcolor = BrickColor.new("Bright yellow")
  674. local lunacolor = BrickColor.new("Navy blue")
  675. local lunacolor2 = BrickColor.new("Bright blue")
  676. local wepcolor = BrickColor.new("Really black")
  677. local maincolor = BrickColor.new("Really black")
  678. local m = Instance.new("Model",char)
  679. local m2 = Instance.new("Model",char)
  680. local m3 = Instance.new("Model",char)
  681. local mw1 = Instance.new("Model",char)
  682. local mw2 = Instance.new("Model",char)
  683.  
  684.  
  685. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  686. local gui = it(GuiType)
  687. gui.Parent = parent
  688. gui.Text = text
  689. gui.BackgroundTransparency = backtrans
  690. gui.BackgroundColor3 = backcol
  691. gui.SizeConstraint = "RelativeXY"
  692. gui.TextXAlignment = "Center"
  693. gui.TextYAlignment = "Center"
  694. gui.Position = pos
  695. gui.Size = size
  696. gui.Font = "SourceSans"
  697. gui.FontSize = "Size14"
  698. gui.TextWrapped = false
  699. gui.TextStrokeTransparency = 0
  700. gui.TextColor = BrickColor.new("White")
  701. return gui
  702. end
  703. --------------------------- GUI STUFF
  704. local basgui = it("GuiMain")
  705. basgui.Parent = plr.PlayerGui
  706. basgui.Name = "VISgui"
  707. local fullscreenz = it("Frame")
  708. fullscreenz.Parent = basgui
  709. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  710. fullscreenz.BackgroundTransparency = 1
  711. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  712. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  713. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  714. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  715. imgl2.BackgroundTransparency = 1
  716. imgl2.BorderSizePixel = 0
  717. imgl2.ImageTransparency = 0.5
  718. imgl2.ImageColor3 = Color3.new(1,0,0)
  719. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  720. imgl2.Size = UDim2.new(0,1000,0,1000)
  721. imgl2.Image = "rbxassetid://2325939897"
  722. local techc = imgl2:Clone()
  723. techc.Parent = fullscreenz
  724. techc.ImageTransparency = 0
  725. techc.Size = UDim2.new(0,900,0,900)
  726. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  727. techc.ImageColor3 = Color3.new(1,0,0)
  728. techc.Image = "rbxassetid://2273224484"
  729. local circl = imgl2:Clone()
  730. circl.Parent = fullscreenz
  731. circl.ImageTransparency = 0
  732. circl.Size = UDim2.new(0,550,0,550)
  733. circl.Position = UDim2.new(0.75,25,0.55,25)
  734. circl.ImageColor3 = Color3.new(0,0,0)
  735. circl.Image = "rbxassetid://2312119891"
  736. local circl2 = imgl2:Clone()
  737. circl2.Parent = fullscreenz
  738. circl2.ImageTransparency = 0
  739. circl2.Size = UDim2.new(0,700,0,700)
  740. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  741. circl2.ImageColor3 = Color3.new(1,0,0)
  742. circl2.Image = "rbxassetid://2312119891"
  743. local imgl2b = imgl2:Clone()
  744. imgl2b.Parent = fullscreenz
  745. imgl2b.ImageTransparency = 0
  746. imgl2b.Size = UDim2.new(0,800,0,800)
  747. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  748. imgl2b.ImageColor3 = Color3.new(0,0,0)
  749. local ned = Instance.new("TextLabel",fullscreenz)
  750. ned.ZIndex = 2
  751. ned.Font = "Arcade"
  752. ned.BackgroundTransparency = 1
  753. ned.BorderSizePixel = 0.65
  754. ned.Size = UDim2.new(0.3,0,0.2,0)
  755. ned.Position = UDim2.new(0.7,0,0.8,0)
  756. ned.TextColor3 = BrickColor.new("Really red").Color
  757. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  758. ned.TextScaled = true
  759. ned.TextStrokeTransparency = 0
  760. ned.Text = "STRESS HYPERION"
  761. ned.TextSize = 24
  762. ned.Rotation = 1
  763. ned.TextXAlignment = "Right"
  764. ned.TextYAlignment = "Bottom"
  765.  
  766. local extrawingmod1 = Instance.new("Model",char)
  767. local extrawingmod2 = Instance.new("Model",char)
  768.  
  769. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  770. local p = Instance.new("Part")
  771. p.TopSurface = 0
  772. p.BottomSurface = 0
  773. p.Parent = parent
  774. p.Size = Vector3.new(0.1,0.1,0.1)
  775. p.Transparency = transparency
  776. p.Reflectance = reflectance
  777. p.CanCollide = false
  778. p.Locked = true
  779. p.BrickColor = brickcolor
  780. p.Material = material
  781. return p
  782. end
  783.  
  784. function CreateMesh(parent,meshtype,x1,y1,z1)
  785. local mesh = Instance.new("SpecialMesh",parent)
  786. mesh.MeshType = meshtype
  787. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  788. return mesh
  789. end
  790.  
  791. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  792. local mesh = Instance.new("SpecialMesh",parent)
  793. mesh.MeshType = "FileMesh"
  794. mesh.MeshId = meshid
  795. mesh.Scale = Vector3.new(x1,y1,z1)
  796. return mesh
  797. end
  798.  
  799.  
  800. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  801. local mesh = Instance.new("SpecialMesh",parent)
  802. mesh.MeshType = "FileMesh"
  803. mesh.MeshId = meshid
  804. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  805. mesh.Scale = Vector3.new(x1,y1,z1)
  806. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  807. return mesh
  808. end
  809.  
  810. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  811. local weld = Instance.new("Weld")
  812. weld.Parent = parent
  813. weld.Part0 = part0
  814. weld.Part1 = part1
  815. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  816. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  817. return weld
  818. end
  819.  
  820.  
  821. --------------
  822. --------------
  823. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  824. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  825. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  826. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  827.  
  828. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  829. CreateMesh(handle,"Brick",0,0,0)
  830. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  831. local valuaring = 10
  832. for i = 0, 49 do
  833. valuaring = valuaring + 10
  834. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  835. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  836. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  837. end
  838.  
  839. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0,0,0)
  841. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. local valuaring = 10
  843. for i = 0, 49 do
  844. valuaring = valuaring + 10
  845. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  846. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  847. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  848. end
  849.  
  850.  
  851. local handle = CreateParta(m,1,1,"Neon",maincolor)
  852. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  853. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  854.  
  855. --- Left wing.
  856.  
  857. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  860.  
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. A0 = Instance.new('Attachment',wed)
  868. A0.Position = vt(0,0.25,0.25)
  869. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,3)
  871. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  872. A1 = Instance.new('Attachment',wed)
  873. A1.Position = vt(0,-0.25,-2)
  874. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,3,0.5)
  876. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  877.  
  878. tl1 = Instance.new('Trail',wed)
  879. tl1.Attachment0 = A1
  880. tl1.Attachment1 = A0
  881. tl1.Texture = "rbxassetid://2108945559"
  882. tl1.LightEmission = 1
  883. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  884. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  885. tl1.Lifetime = 0.6
  886.  
  887.  
  888. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  889. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  890. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891.  
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  897. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  898. A0 = Instance.new('Attachment',wed)
  899. A0.Position = vt(0,0.25,0.25)
  900. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,3)
  902. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  903. A1 = Instance.new('Attachment',wed)
  904. A1.Position = vt(0,-0.25,-2)
  905. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,3,0.5)
  907. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  908.  
  909. tl2 = Instance.new('Trail',wed)
  910. tl2.Attachment0 = A1
  911. tl2.Attachment1 = A0
  912. tl2.Texture = "rbxassetid://2108945559"
  913. tl2.LightEmission = 1
  914. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  915. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  916. tl2.Lifetime = 0.6
  917.  
  918. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  919. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  920. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  921.  
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  927. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  928. A0 = Instance.new('Attachment',wed)
  929. A0.Position = vt(0,0.25,0.25)
  930. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,3)
  932. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  933. A1 = Instance.new('Attachment',wed)
  934. A1.Position = vt(0,-0.25,-2)
  935. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,3,0.5)
  937. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  938.  
  939. tl3 = Instance.new('Trail',wed)
  940. tl3.Attachment0 = A1
  941. tl3.Attachment1 = A0
  942. tl3.Texture = "rbxassetid://2108945559"
  943. tl3.LightEmission = 1
  944. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  945. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  946. tl3.Lifetime = 0.6
  947.  
  948. tl1.Enabled = false
  949. tl2.Enabled = false
  950. tl3.Enabled = false
  951. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  952. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  953. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  954.  
  955. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  958. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  960. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  961. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  963. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  964. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,3,0.5)
  966. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967.  
  968. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  969. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  970. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971.  
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  975. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  976. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  977. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,0.5,3)
  980. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  981. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,3,0.5)
  983. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984.  
  985. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  986. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  987. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988.  
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  992. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  993. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  994. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  995. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  996. CreateMesh(wed,"Wedge",0.05,0.5,3)
  997. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  998. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  999. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1000. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1001.  
  1002. -- Right wing.
  1003.  
  1004. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1005. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1006. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1007.  
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1010. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1011. A0 = Instance.new('Attachment',wed)
  1012. A0.Position = vt(0,0.25,0.25)
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1015. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1016. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1018. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1019. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1021. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1022. A1 = Instance.new('Attachment',wed)
  1023. A1.Position = vt(0,2,0.25)
  1024.  
  1025. tr1 = Instance.new('Trail',wed)
  1026. tr1.Attachment0 = A1
  1027. tr1.Attachment1 = A0
  1028. tr1.Texture = "rbxassetid://2108945559"
  1029. tr1.LightEmission = 1
  1030. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1031. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1032. tr1.Lifetime = 0.6
  1033.  
  1034. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1035. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1036. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1037.  
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1040. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1041. A0 = Instance.new('Attachment',wed)
  1042. A0.Position = vt(0,0.25,0.25)
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1048. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1049. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1051. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1052. A1 = Instance.new('Attachment',wed)
  1053. A1.Position = vt(0,2,0.25)
  1054.  
  1055. tr2 = Instance.new('Trail',wed)
  1056. tr2.Attachment0 = A1
  1057. tr2.Attachment1 = A0
  1058. tr2.Texture = "rbxassetid://2108945559"
  1059. tr2.LightEmission = 1
  1060. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1061. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1062. tr2.Lifetime = 0.6
  1063.  
  1064. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1065. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1066. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067.  
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1070. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1071. A0 = Instance.new('Attachment',wed)
  1072. A0.Position = vt(0,0.25,0.25)
  1073. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1075. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1076. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1078. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1079. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1080. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1081. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1082. A1 = Instance.new('Attachment',wed)
  1083. A1.Position = vt(0,2,0.25)
  1084.  
  1085. tr3 = Instance.new('Trail',wed)
  1086. tr3.Attachment0 = A1
  1087. tr3.Attachment1 = A0
  1088. tr3.Texture = "rbxassetid://2108945559"
  1089. tr3.LightEmission = 1
  1090. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1091. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1092. tr3.Lifetime = 0.6
  1093.  
  1094.  
  1095. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1096. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1097. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1098.  
  1099. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1102. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1104. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1105. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1107. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1108. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1110. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111.  
  1112. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1113. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1114. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1115.  
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1118. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1119. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1120. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1121. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1122. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1123. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1124. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1125. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1126. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1127. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1128.  
  1129. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1130. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1131. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1132.  
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1135. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1136. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1137. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1138. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1139. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1140. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1141. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1142. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1143. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1144. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1145.  
  1146. ---- HERES THE RING
  1147.  
  1148.  
  1149. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1150. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1151. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1152. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1154. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1155. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1156. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1157. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1158.  
  1159.  
  1160. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1161. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1162. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163.  
  1164. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1165. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1166. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1167.  
  1168.  
  1169.  
  1170. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1171. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1172. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1173.  
  1174. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1175. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1176. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177.  
  1178. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1179. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1180. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1181.  
  1182. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1183. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1184. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1185. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1186. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1187. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1188.  
  1189. --- second ring
  1190.  
  1191. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1192. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1193. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1194. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1195. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1196. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1197. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1198. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1199. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1200.  
  1201. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1202. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1203. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204.  
  1205. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1206. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1207. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1208.  
  1209.  
  1210.  
  1211. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1212. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1213. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1214.  
  1215. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1216. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1217. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1218.  
  1219. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1220. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1221. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1222.  
  1223. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1224. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1225. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1226. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1227. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1228. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1229.  
  1230.  
  1231.  
  1232. for i, v in pairs(m:GetChildren()) do
  1233. if v:IsA("Part") then
  1234. v.BrickColor = BrickColor.new("Really black")
  1235. v.Material = "Glass"
  1236. end
  1237. end
  1238. for i, v in pairs(m2:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.BrickColor = BrickColor.new("Crimson")
  1241. v.Material = "Granite"
  1242. end
  1243. end
  1244. for i, v in pairs(m3:GetChildren()) do
  1245. if v:IsA("Part") then
  1246. v.BrickColor = BrickColor.new("Really red")
  1247. v.Material = "Neon"
  1248. end
  1249. end
  1250. for i, v in pairs(mw2:GetChildren()) do
  1251. if v:IsA("Part") then
  1252. v.BrickColor = BrickColor.new("Really red")
  1253. v.Material = "Neon"
  1254. end
  1255. end
  1256. for i, v in pairs(mw1:GetChildren()) do
  1257. if v:IsA("Part") then
  1258. v.Transparency = 1
  1259. v.BrickColor = BrickColor.new("Really red")
  1260. v.Material = "Neon"
  1261. end
  1262. end
  1263. for i, v in pairs(extrawingmod1:GetChildren()) do
  1264. if v:IsA("Part") then
  1265. v.Transparency = 1
  1266. v.BrickColor = BrickColor.new("White")
  1267. v.Material = "Neon"
  1268. end
  1269. end
  1270. for i, v in pairs(extrawingmod2:GetChildren()) do
  1271. if v:IsA("Part") then
  1272. v.Transparency = 1
  1273. v.BrickColor = BrickColor.new("White")
  1274. v.Material = "Neon"
  1275. end
  1276. end
  1277. local MAINRUINCOLOR = BrickColor.new("Really red")
  1278. ------
  1279.  
  1280.  
  1281. function RemoveOutlines(part)
  1282. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1283. end
  1284. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1285. local Part = Create("Part")({
  1286. Parent = Parent,
  1287. Reflectance = Reflectance,
  1288. Transparency = Transparency,
  1289. CanCollide = false,
  1290. Locked = true,
  1291. BrickColor = BrickColor.new(tostring(BColor)),
  1292. Name = Name,
  1293. Size = Size,
  1294. Material = Material
  1295. })
  1296. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1297. RemoveOutlines(Part)
  1298. return Part
  1299. end
  1300. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1301. local Msh = Create(Mesh)({
  1302. Parent = Part,
  1303. Offset = OffSet,
  1304. Scale = Scale
  1305. })
  1306. if Mesh == "SpecialMesh" then
  1307. Msh.MeshType = MeshType
  1308. Msh.MeshId = MeshId
  1309. end
  1310. return Msh
  1311. end
  1312. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1313. local Weld = Create("Weld")({
  1314. Parent = Parent,
  1315. Part0 = Part0,
  1316. Part1 = Part1,
  1317. C0 = C0,
  1318. C1 = C1
  1319. })
  1320. return Weld
  1321. end
  1322.  
  1323. Character=Player.Character
  1324. PlayerGui=Player.PlayerGui
  1325. Backpack=Player.Backpack
  1326. Torso=Character.Torso
  1327. Head=Character.Head
  1328. Humanoid=Character.Humanoid
  1329. m=Instance.new('Model',Character)
  1330. LeftArm=Character["Left Arm"]
  1331. LeftLeg=Character["Left Leg"]
  1332. RightArm=Character["Right Arm"]
  1333. RightLeg=Character["Right Leg"]
  1334. LS=Torso["Left Shoulder"]
  1335. LH=Torso["Left Hip"]
  1336. RS=Torso["Right Shoulder"]
  1337. RH=Torso["Right Hip"]
  1338. Face = Head.face
  1339. Neck=Torso.Neck
  1340. it=Instance.new
  1341. attacktype=1
  1342. vt=Vector3.new
  1343. cf=CFrame.new
  1344. euler=CFrame.fromEulerAnglesXYZ
  1345. angles=CFrame.Angles
  1346. cloaked=false
  1347. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1348. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1349. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1350. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1351. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1352. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1353. RootPart=Character.HumanoidRootPart
  1354. RootJoint=RootPart.RootJoint
  1355. RootCF=euler(-1.57,0,3.14)
  1356. attack = false
  1357. attackdebounce = false
  1358. deb=false
  1359. equipped=true
  1360. hand=false
  1361. combo=0
  1362. mana=0
  1363. trispeed=.2
  1364. attackmode='none'
  1365. local idle=0
  1366. local Anim="Idle"
  1367. local Effects={}
  1368. local gun=false
  1369. local shoot=false
  1370. local sine = 0
  1371. local change = 1
  1372.  
  1373. function RecolorTextAndRename(name,col1,col2,font)
  1374. modet.TextStrokeColor3 = col2
  1375. modet.TextColor3 = col1
  1376. modet.Font = font
  1377. modet.Text = name
  1378. techc.ImageColor3 = col2
  1379. circl.ImageColor3 = col2
  1380. circl2.ImageColor3 = col1
  1381. imgl2.ImageColor3 = col1
  1382. imgl2b.ImageColor3 = col2
  1383. ned.Text = name
  1384. ned.TextColor3 = col1
  1385. ned.TextStrokeColor3 = col2
  1386. end
  1387. --save shoulders
  1388. RSH, LSH=nil, nil
  1389. --welds
  1390. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1391. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1392. LH=Torso["Left Hip"]
  1393. RH=Torso["Right Hip"]
  1394. TorsoColor=Torso.BrickColor
  1395. function NoOutline(Part)
  1396. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1397. end
  1398. ch=Character
  1399. RSH=ch.Torso["Right Shoulder"]
  1400. LSH=ch.Torso["Left Shoulder"]
  1401. --
  1402. RSH.Parent=nil
  1403. LSH.Parent=nil
  1404. --
  1405. RW.Name="Right Shoulder"
  1406. RW.Part0=ch.Torso
  1407. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1408. RW.C1=cf(0, 0.5, 0)
  1409. RW.Part1=ch["Right Arm"]
  1410. RW.Parent=ch.Torso
  1411. --
  1412. LW.Name="Left Shoulder"
  1413. LW.Part0=ch.Torso
  1414. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1415. LW.C1=cf(0, 0.5, 0)
  1416. LW.Part1=ch["Left Arm"]
  1417. LW.Parent=ch.Torso
  1418.  
  1419. local Stats=Instance.new("BoolValue")
  1420. Stats.Name="Stats"
  1421. Stats.Parent=Character
  1422. local Atk=Instance.new("NumberValue")
  1423. Atk.Name="Damage"
  1424. Atk.Parent=Stats
  1425. Atk.Value=1
  1426. local Def=Instance.new("NumberValue")
  1427. Def.Name="Defense"
  1428. Def.Parent=Stats
  1429. Def.Value=1
  1430. local Speed=Instance.new("NumberValue")
  1431. Speed.Name="Speed"
  1432. Speed.Parent=Stats
  1433. Speed.Value=1
  1434. local Mvmt=Instance.new("NumberValue")
  1435. Mvmt.Name="Movement"
  1436. Mvmt.Parent=Stats
  1437. Mvmt.Value=1
  1438.  
  1439. local donum=0
  1440.  
  1441.  
  1442. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1443. local fp=it("Part")
  1444. fp.formFactor=formfactor
  1445. fp.Parent=parent
  1446. fp.Reflectance=reflectance
  1447. fp.Transparency=transparency
  1448. fp.CanCollide=false
  1449. fp.Locked=true
  1450. fp.BrickColor=brickcolor
  1451. fp.Name=name
  1452. fp.Size=size
  1453. fp.Position=Torso.Position
  1454. NoOutline(fp)
  1455. fp.Material="SmoothPlastic"
  1456. fp:BreakJoints()
  1457. return fp
  1458. end
  1459.  
  1460. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1461. local mesh=it(Mesh)
  1462. mesh.Parent=part
  1463. if Mesh=="SpecialMesh" then
  1464. mesh.MeshType=meshtype
  1465. if meshid~="nil" then
  1466. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1467. end
  1468. end
  1469. mesh.Offset=offset
  1470. mesh.Scale=scale
  1471. return mesh
  1472. end
  1473.  
  1474. function weld(parent,part0,part1,c0)
  1475. local weld=it("Weld")
  1476. weld.Parent=parent
  1477. weld.Part0=part0
  1478. weld.Part1=part1
  1479. weld.C0=c0
  1480. return weld
  1481. end
  1482.  
  1483. local Color1=Torso.BrickColor
  1484.  
  1485. local bodvel=Instance.new("BodyVelocity")
  1486. local bg=Instance.new("BodyGyro")
  1487.  
  1488. --------- SazEreno's Artificial HB --------------
  1489. ArtificialHB = Instance.new("BindableEvent", script)
  1490. ArtificialHB.Name = "ArtificialHB"
  1491.  
  1492. script:WaitForChild("ArtificialHB")
  1493. Frame_Speed = 1 / 60
  1494. frame = Frame_Speed
  1495. tf = 0
  1496. allowframeloss = false
  1497. tossremainder = false
  1498. lastframe = tick()
  1499. script.ArtificialHB:Fire()
  1500.  
  1501. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1502. tf = tf + s
  1503. if tf >= frame then
  1504. if allowframeloss then
  1505. script.ArtificialHB:Fire()
  1506. lastframe = tick()
  1507. else
  1508. for i = 1, math.floor(tf / frame) do
  1509. script.ArtificialHB:Fire()
  1510. end
  1511. lastframe = tick()
  1512. end
  1513. if tossremainder then
  1514. tf = 0
  1515. else
  1516. tf = tf - frame * math.floor(tf / frame)
  1517. end
  1518. end
  1519. end)
  1520.  
  1521. ------------------
  1522. function swait(num)
  1523. function swait(num)
  1524. if num==0 or num==nil then
  1525. game:service'RunService'.Stepped:wait(0)
  1526. else
  1527. for i=0,num do
  1528. game:service'RunService'.Stepped:wait(0)
  1529. end
  1530. end
  1531. end
  1532. end
  1533.  
  1534. -------- RAINBOW LEAVE IT TO ME
  1535. local r = 255
  1536. local g = 0
  1537. local b = 0
  1538. coroutine.resume(coroutine.create(function()
  1539. while wait() do
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. g = g + 5
  1543. end
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. r = r - 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. b = b + 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. g = g - 5
  1555. end
  1556. for i = 0, 254/5 do
  1557. swait()
  1558. r = r + 5
  1559. end
  1560. for i = 0, 254/5 do
  1561. swait()
  1562. b = b - 5
  1563. end
  1564. end
  1565. end))
  1566.  
  1567.  
  1568. so = function(id,par,vol,pit)
  1569. coroutine.resume(coroutine.create(function()
  1570. local sou = Instance.new("Sound",par or workspace)
  1571. sou.Volume=vol
  1572. sou.Pitch=pit or 1
  1573. sou.SoundId=id
  1574. swait()
  1575. sou:play()
  1576. game:GetService("Debris"):AddItem(sou,6)
  1577. end))
  1578. end
  1579.  
  1580. function clerp(a,b,t)
  1581. local qa = {QuaternionFromCFrame(a)}
  1582. local qb = {QuaternionFromCFrame(b)}
  1583. local ax, ay, az = a.x, a.y, a.z
  1584. local bx, by, bz = b.x, b.y, b.z
  1585. local _t = 1-t
  1586. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1587. end
  1588.  
  1589. function QuaternionFromCFrame(cf)
  1590. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1591. local trace = m00 + m11 + m22
  1592. if trace > 0 then
  1593. local s = math.sqrt(1 + trace)
  1594. local recip = 0.5/s
  1595. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1596. else
  1597. local i = 0
  1598. if m11 > m00 then
  1599. i = 1
  1600. end
  1601. if m22 > (i == 0 and m00 or m11) then
  1602. i = 2
  1603. end
  1604. if i == 0 then
  1605. local s = math.sqrt(m00-m11-m22+1)
  1606. local recip = 0.5/s
  1607. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1608. elseif i == 1 then
  1609. local s = math.sqrt(m11-m22-m00+1)
  1610. local recip = 0.5/s
  1611. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1612. elseif i == 2 then
  1613. local s = math.sqrt(m22-m00-m11+1)
  1614. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1615. end
  1616. end
  1617. end
  1618.  
  1619. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1620. local xs, ys, zs = x + x, y + y, z + z
  1621. local wx, wy, wz = w*xs, w*ys, w*zs
  1622. local xx = x*xs
  1623. local xy = x*ys
  1624. local xz = x*zs
  1625. local yy = y*ys
  1626. local yz = y*zs
  1627. local zz = z*zs
  1628. 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))
  1629. end
  1630.  
  1631. function QuaternionSlerp(a, b, t)
  1632. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1633. local startInterp, finishInterp;
  1634. if cosTheta >= 0.0001 then
  1635. if (1 - cosTheta) > 0.0001 then
  1636. local theta = math.acos(cosTheta)
  1637. local invSinTheta = 1/math.sin(theta)
  1638. startInterp = math.sin((1-t)*theta)*invSinTheta
  1639. finishInterp = math.sin(t*theta)*invSinTheta
  1640. else
  1641. startInterp = 1-t
  1642. finishInterp = t
  1643. end
  1644. else
  1645. if (1+cosTheta) > 0.0001 then
  1646. local theta = math.acos(-cosTheta)
  1647. local invSinTheta = 1/math.sin(theta)
  1648. startInterp = math.sin((t-1)*theta)*invSinTheta
  1649. finishInterp = math.sin(t*theta)*invSinTheta
  1650. else
  1651. startInterp = t-1
  1652. finishInterp = t
  1653. end
  1654. end
  1655. 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
  1656. end
  1657.  
  1658. local function CFrameFromTopBack(at, top, back)
  1659. local right = top:Cross(back)
  1660. return CFrame.new(at.x, at.y, at.z,
  1661. right.x, top.x, back.x,
  1662. right.y, top.y, back.y,
  1663. right.z, top.z, back.z)
  1664. end
  1665.  
  1666. function Triangle(a, b, c)
  1667. local edg1 = (c-a):Dot((b-a).unit)
  1668. local edg2 = (a-b):Dot((c-b).unit)
  1669. local edg3 = (b-c):Dot((a-c).unit)
  1670. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1671. a, b, c = a, b, c
  1672. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1673. a, b, c = b, c, a
  1674. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1675. a, b, c = c, a, b
  1676. else
  1677. assert(false, "unreachable")
  1678. end
  1679.  
  1680. local len1 = (c-a):Dot((b-a).unit)
  1681. local len2 = (b-a).magnitude - len1
  1682. local width = (a + (b-a).unit*len1 - c).magnitude
  1683.  
  1684. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1685.  
  1686. local list = {}
  1687.  
  1688. if len1 > 0.01 then
  1689. local w1 = Instance.new('WedgePart', m)
  1690. game:GetService("Debris"):AddItem(w1,5)
  1691. w1.Material = "SmoothPlastic"
  1692. w1.FormFactor = 'Custom'
  1693. w1.BrickColor = BrickColor.new("Really red")
  1694. w1.Transparency = 0
  1695. w1.Reflectance = 0
  1696. w1.Material = "SmoothPlastic"
  1697. w1.CanCollide = false
  1698. local l1 = Instance.new("PointLight",w1)
  1699. l1.Color = Color3.new(170,0,0)
  1700. NoOutline(w1)
  1701. local sz = Vector3.new(0.2, width, len1)
  1702. w1.Size = sz
  1703. local sp = Instance.new("SpecialMesh",w1)
  1704. sp.MeshType = "Wedge"
  1705. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1706. w1:BreakJoints()
  1707. w1.Anchored = true
  1708. w1.Parent = workspace
  1709. w1.Transparency = 0.7
  1710. table.insert(Effects,{w1,"Disappear",.01})
  1711. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1712. table.insert(list,w1)
  1713. end
  1714.  
  1715. if len2 > 0.01 then
  1716. local w2 = Instance.new('WedgePart', m)
  1717. game:GetService("Debris"):AddItem(w2,5)
  1718. w2.Material = "SmoothPlastic"
  1719. w2.FormFactor = 'Custom'
  1720. w2.BrickColor = BrickColor.new("Really red")
  1721. w2.Transparency = 0
  1722. w2.Reflectance = 0
  1723. w2.Material = "SmoothPlastic"
  1724. w2.CanCollide = false
  1725. local l2 = Instance.new("PointLight",w2)
  1726. l2.Color = Color3.new(170,0,0)
  1727. NoOutline(w2)
  1728. local sz = Vector3.new(0.2, width, len2)
  1729. w2.Size = sz
  1730. local sp = Instance.new("SpecialMesh",w2)
  1731. sp.MeshType = "Wedge"
  1732. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1733. w2:BreakJoints()
  1734. w2.Anchored = true
  1735. w2.Parent = workspace
  1736. w2.Transparency = 0.7
  1737. table.insert(Effects,{w2,"Disappear",.01})
  1738. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1739. table.insert(list,w2)
  1740. end
  1741. return unpack(list)
  1742. end
  1743.  
  1744.  
  1745. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1746. if hit.Parent == nil then
  1747. return
  1748. end
  1749. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1750. for _, v in pairs(hit.Parent:children()) do
  1751. if v:IsA("Humanoid") then
  1752. h = v
  1753. end
  1754. end
  1755. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1756. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1757. return
  1758. end
  1759. local c = Create("ObjectValue")({
  1760. Name = "creator",
  1761. Value = game:GetService("Players").LocalPlayer,
  1762. Parent = h
  1763. })
  1764. game:GetService("Debris"):AddItem(c, 0.5)
  1765. if HitSound ~= nil and HitPitch ~= nil then
  1766. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1767. end
  1768. local Damage = math.random(minim, maxim)
  1769. local blocked = false
  1770. local block = hit.Parent:findFirstChild("Block")
  1771. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1772. blocked = true
  1773. block.Value = block.Value - 1
  1774. print(block.Value)
  1775. end
  1776. if blocked == false then
  1777. HitHealth = h.Health
  1778. h.MaxHealth = 100
  1779. h.Health = h.Health - Damage
  1780. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1781. print("gained kill")
  1782. dmg(h.Parent)
  1783. end
  1784. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1785. else
  1786. h.Health = h.Health - Damage / 2
  1787. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1788. end
  1789. if Type == "Knockdown" then
  1790. local hum = hit.Parent.Humanoid
  1791. hum.PlatformStand = true
  1792. coroutine.resume(coroutine.create(function(HHumanoid)
  1793. swait(1)
  1794. HHumanoid.PlatformStand = false
  1795. end), hum)
  1796. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1797. local bodvol = Create("BodyVelocity")({
  1798. velocity = angle * knockback,
  1799. P = 5000,
  1800. maxForce = Vector3.new(8000, 8000, 8000),
  1801. Parent = hit
  1802. })
  1803. local rl = Create("BodyAngularVelocity")({
  1804. P = 3000,
  1805. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1806. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1807. Parent = hit
  1808. })
  1809. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1810. game:GetService("Debris"):AddItem(rl, 0.5)
  1811. elseif Type == "Normal" then
  1812. local vp = Create("BodyVelocity")({
  1813. P = 500,
  1814. maxForce = Vector3.new(math.huge, 0, math.huge),
  1815. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1816. })
  1817. if knockback > 0 then
  1818. vp.Parent = hit.Parent.Head
  1819. end
  1820. game:GetService("Debris"):AddItem(vp, 0.5)
  1821. elseif Type == "Up" then
  1822. local bodyVelocity = Create("BodyVelocity")({
  1823. velocity = Vector3.new(0, 20, 0),
  1824. P = 5000,
  1825. maxForce = Vector3.new(8000, 8000, 8000),
  1826. Parent = hit
  1827. })
  1828. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1829. local bodyVelocity = Create("BodyVelocity")({
  1830. velocity = Vector3.new(0, 20, 0),
  1831. P = 5000,
  1832. maxForce = Vector3.new(8000, 8000, 8000),
  1833. Parent = hit
  1834. })
  1835. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1836. elseif Type == "Leech" then
  1837. local hum = hit.Parent.Humanoid
  1838. if hum ~= nil then
  1839. for i = 0, 2 do
  1840. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1841. end
  1842. Humanoid.Health = Humanoid.Health + 10
  1843. end
  1844. elseif Type == "UpKnock" then
  1845. local hum = hit.Parent.Humanoid
  1846. hum.PlatformStand = true
  1847. if hum ~= nil then
  1848. hitr = true
  1849. end
  1850. coroutine.resume(coroutine.create(function(HHumanoid)
  1851. swait(5)
  1852. HHumanoid.PlatformStand = false
  1853. hitr = false
  1854. end), hum)
  1855. local bodyVelocity = Create("BodyVelocity")({
  1856. velocity = Vector3.new(0, 20, 0),
  1857. P = 5000,
  1858. maxForce = Vector3.new(8000, 8000, 8000),
  1859. Parent = hit
  1860. })
  1861. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1862. local bodyVelocity = Create("BodyVelocity")({
  1863. velocity = Vector3.new(0, 20, 0),
  1864. P = 5000,
  1865. maxForce = Vector3.new(8000, 8000, 8000),
  1866. Parent = hit
  1867. })
  1868. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1869. elseif Type == "Snare" then
  1870. local bp = Create("BodyPosition")({
  1871. P = 2000,
  1872. D = 100,
  1873. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1874. position = hit.Parent.Torso.Position,
  1875. Parent = hit.Parent.Torso
  1876. })
  1877. game:GetService("Debris"):AddItem(bp, 1)
  1878. elseif Type == "Slashnare" then
  1879. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1880. for i = 1, math.random(4, 5) do
  1881. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1882. end
  1883. local bp = Create("BodyPosition")({
  1884. P = 2000,
  1885. D = 100,
  1886. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1887. position = hit.Parent.Torso.Position,
  1888. Parent = hit.Parent.Torso
  1889. })
  1890. game:GetService("Debris"):AddItem(bp, 1)
  1891. elseif Type == "Spike" then
  1892. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1893. local bp = Create("BodyPosition")({
  1894. P = 2000,
  1895. D = 100,
  1896. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1897. position = hit.Parent.Torso.Position,
  1898. Parent = hit.Parent.Torso
  1899. })
  1900. game:GetService("Debris"):AddItem(bp, 1)
  1901. elseif Type == "Freeze" then
  1902. local BodPos = Create("BodyPosition")({
  1903. P = 50000,
  1904. D = 1000,
  1905. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1906. position = hit.Parent.Torso.Position,
  1907. Parent = hit.Parent.Torso
  1908. })
  1909. local BodGy = Create("BodyGyro")({
  1910. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1911. P = 20000,
  1912. Parent = hit.Parent.Torso,
  1913. cframe = hit.Parent.Torso.CFrame
  1914. })
  1915. hit.Parent.Torso.Anchored = true
  1916. coroutine.resume(coroutine.create(function(Part)
  1917. swait(1.5)
  1918. Part.Anchored = false
  1919. end), hit.Parent.Torso)
  1920. game:GetService("Debris"):AddItem(BodPos, 3)
  1921. game:GetService("Debris"):AddItem(BodGy, 3)
  1922. end
  1923. local debounce = Create("BoolValue")({
  1924. Name = "DebounceHit",
  1925. Parent = hit.Parent,
  1926. Value = true
  1927. })
  1928. game:GetService("Debris"):AddItem(debounce, Delay)
  1929. c = Instance.new("ObjectValue")
  1930. c.Name = "creator"
  1931. c.Value = Player
  1932. c.Parent = h
  1933. game:GetService("Debris"):AddItem(c, 0.5)
  1934. end
  1935. end
  1936. function ShowDamage(Pos, Text, Time, Color)
  1937. local Rate = 0.03333333333333333
  1938. local Pos = Pos or Vector3.new(0, 0, 0)
  1939. local Text = Text or ""
  1940. local Time = Time or 2
  1941. local Color = Color or Color3.new(1, 0, 1)
  1942. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1943. EffectPart.Anchored = true
  1944. local BillboardGui = Create("BillboardGui")({
  1945. Size = UDim2.new(3, 0, 3, 0),
  1946. Adornee = EffectPart,
  1947. Parent = EffectPart
  1948. })
  1949. local TextLabel = Create("TextLabel")({
  1950. BackgroundTransparency = 1,
  1951. Size = UDim2.new(1, 0, 1, 0),
  1952. Text = Text,
  1953. TextColor3 = Color,
  1954. TextScaled = true,
  1955. Font = Enum.Font.ArialBold,
  1956. Parent = BillboardGui
  1957. })
  1958. game.Debris:AddItem(EffectPart, Time + 0.1)
  1959. EffectPart.Parent = game:GetService("Workspace")
  1960. delay(0, function()
  1961. local Frames = Time / Rate
  1962. for Frame = 1, Frames do
  1963. wait(Rate)
  1964. local Percent = Frame / Frames
  1965. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1966. TextLabel.TextTransparency = Percent
  1967. end
  1968. if EffectPart and EffectPart.Parent then
  1969. EffectPart:Destroy()
  1970. end
  1971. end)
  1972. end
  1973. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1974. for _, c in pairs(workspace:children()) do
  1975. local hum = c:findFirstChildOfClass("Humanoid")
  1976. if hum ~= nil then
  1977. local head = c:findFirstChild("Head")
  1978. if head ~= nil then
  1979. local targ = head.Position - Part.Position
  1980. local mag = targ.magnitude
  1981. if magni >= mag and c.Name ~= Player.Name then
  1982. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988.  
  1989. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1990. for _, c in pairs(workspace:children()) do
  1991. local hum = c:findFirstChild("Humanoid")
  1992. if hum ~= nil then
  1993. local head = c:findFirstChild("Torso")
  1994. if head ~= nil then
  1995. local targ = head.Position - Part.Position
  1996. local mag = targ.magnitude
  1997. if magni >= mag and c.Name ~= Player.Name then
  1998. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1999. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2000. end
  2001. end
  2002. end
  2003. end
  2004. end
  2005.  
  2006. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2007. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2008. end
  2009.  
  2010. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2011. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2012. prt.Anchored=true
  2013. prt.CFrame=cframe
  2014. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2015. --http://www.roblox.com/asset/?id=4770560
  2016. game:GetService("Debris"):AddItem(prt,2)
  2017. CF=prt.CFrame
  2018. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2019. for i=0,1,0.2 do
  2020. wait()
  2021. Part.CFrame=CF*cf(0,0,-0.4)
  2022. end
  2023. for i=0,1,delay do
  2024. wait()
  2025. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2026. Mesh.Scale=Mesh.Scale
  2027. end
  2028. for i=0,1,0.1 do
  2029. wait()
  2030. Part.Transparency=i
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh,CF)
  2034. end
  2035.  
  2036. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=true
  2039. prt.Material = "Neon"
  2040. prt.CFrame=cframe
  2041. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2042. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2043. game:GetService("Debris"):AddItem(prt,5)
  2044. coroutine.resume(coroutine.create(function(Part,Mesh)
  2045. for i=0,1,delay do
  2046. swait()
  2047. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2048. Part.Transparency=i
  2049. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2050. end
  2051. Part.Parent=nil
  2052. end),prt,msh)
  2053. end
  2054.  
  2055. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2056. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2057. prt.Anchored=true
  2058. prt.Material = "Neon"
  2059. prt.CFrame=cframe
  2060. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2061. game:GetService("Debris"):AddItem(prt,5)
  2062. coroutine.resume(coroutine.create(function(Part,Mesh)
  2063. local rtype = rottype
  2064. for i=0,1,delay do
  2065. swait()
  2066. if rtype == 1 then
  2067. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2068. elseif rtype == 2 then
  2069. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2070. end
  2071. Part.Transparency=i
  2072. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2073. end
  2074. Part.Parent=nil
  2075. end),prt,msh)
  2076. end
  2077.  
  2078. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2079. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2080. prt.Anchored=true
  2081. prt.CFrame=cframe
  2082. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2083. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2084. game:GetService("Debris"):AddItem(prt,5)
  2085. coroutine.resume(coroutine.create(function(Part,Mesh)
  2086. for i=0,1,delay do
  2087. wait()
  2088. Part.Transparency=i
  2089. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2090. end
  2091. Part.Parent=nil
  2092. end),prt,msh)
  2093. end
  2094.  
  2095. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2096. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2097. prt.Anchored=true
  2098. prt.Material = "Neon"
  2099. prt.CFrame=cframe
  2100. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2101. game:GetService("Debris"):AddItem(prt,5)
  2102. coroutine.resume(coroutine.create(function(Part,Mesh)
  2103. local rtype = rottype
  2104. for i=0,1,delay do
  2105. swait()
  2106. if rtype == 1 then
  2107. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2108. elseif rtype == 2 then
  2109. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2110. end
  2111. Part.Transparency=i
  2112. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2113. end
  2114. Part.Parent=nil
  2115. end),prt,msh)
  2116. end
  2117.  
  2118. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2119. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt.Anchored=true
  2121. prt.Material = "Neon"
  2122. prt.CFrame=cframe
  2123. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2124. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2125. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2126. game:GetService("Debris"):AddItem(prt,5)
  2127. coroutine.resume(coroutine.create(function(Part,Mesh)
  2128. local rtype = rottype
  2129. for i=0,1,delay do
  2130. swait()
  2131. if rtype == 1 then
  2132. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2133. elseif rtype == 2 then
  2134. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2135. end
  2136. dec.Transparency=i
  2137. dec2.Transparency=i
  2138. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2139. end
  2140. Part.Parent=nil
  2141. end),prt,msh)
  2142. end
  2143.  
  2144. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2145. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2146. prt.Anchored=true
  2147. prt.Material = "Neon"
  2148. prt.CFrame=cframe
  2149. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2150. game:GetService("Debris"):AddItem(prt,5)
  2151. coroutine.resume(coroutine.create(function(Part,Mesh)
  2152. local rtype = rottype
  2153. for i=0,1,delay do
  2154. swait()
  2155. if rtype == 1 then
  2156. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2157. elseif rtype == 2 then
  2158. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2159. end
  2160. prt.Transparency=i
  2161. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2162. end
  2163. Part.Parent=nil
  2164. end),prt,msh)
  2165. end
  2166.  
  2167. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2168. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2169. prt.Anchored=true
  2170. prt.Material = "Neon"
  2171. prt.CFrame=cframe
  2172. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2173. game:GetService("Debris"):AddItem(prt,5)
  2174. coroutine.resume(coroutine.create(function(Part,Mesh)
  2175. local rtype = rottype
  2176. for i=0,1,delay do
  2177. swait()
  2178. if rtype == 1 then
  2179. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2180. elseif rtype == 2 then
  2181. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2182. end
  2183. prt.Transparency=i
  2184. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2185. end
  2186. Part.Parent=nil
  2187. end),prt,msh)
  2188. end
  2189.  
  2190. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2191. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2192. prt.Anchored=true
  2193. prt.Material = "Neon"
  2194. prt.CFrame=cframe
  2195. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2196. game:GetService("Debris"):AddItem(prt,5)
  2197. coroutine.resume(coroutine.create(function(Part,Mesh)
  2198. local rtype = rottype
  2199. for i=0,1,delay do
  2200. swait()
  2201. if rtype == 1 then
  2202. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2203. elseif rtype == 2 then
  2204. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2205. end
  2206. prt.Transparency=i
  2207. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2208. end
  2209. Part.Parent=nil
  2210. end),prt,msh)
  2211. end
  2212.  
  2213. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2214. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2215. prt.Anchored=true
  2216. prt.Material = "Neon"
  2217. prt.CFrame=cframe
  2218. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2219. game:GetService("Debris"):AddItem(prt,5)
  2220. coroutine.resume(coroutine.create(function(Part,Mesh)
  2221. local rtype = rottype
  2222. for i=0,1,delay do
  2223. swait()
  2224. if rtype == 1 then
  2225. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2226. elseif rtype == 2 then
  2227. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2228. end
  2229. prt.Transparency=i
  2230. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh)
  2234. end
  2235.  
  2236. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2237. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2238. prt.Anchored=false
  2239. prt.CFrame=cframe
  2240. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2241. local wld=weld(prt,prt,Parent,cframe)
  2242. game:GetService("Debris"):AddItem(prt,5)
  2243. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2244. for i=0,1,delay do
  2245. wait()
  2246. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2247. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2248. Part.Transparency=i
  2249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2250. end
  2251. Part.Parent=nil
  2252. end),prt,msh,wld)
  2253. end
  2254.  
  2255. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2256. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2257. prt.Anchored=false
  2258. prt.CFrame=cframe
  2259. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2260. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2261. game:GetService("Debris"):AddItem(prt,5)
  2262. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2263. for i=0,1,delay do
  2264. wait()
  2265. Weld.C0=euler(i*20,0,0)
  2266. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2267. Part.Transparency=i
  2268. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2269. end
  2270. Part.Parent=nil
  2271. end),prt,msh,wld)
  2272. end
  2273.  
  2274. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2275. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2276. prt.Anchored=true
  2277. prt.CFrame=cframe
  2278. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2279. game:GetService("Debris"):AddItem(prt,2)
  2280. coroutine.resume(coroutine.create(function(Part,Mesh)
  2281. for i=0,1,delay do
  2282. wait()
  2283. Part.CFrame=Part.CFrame
  2284. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2285. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2286. prt2.Anchored=true
  2287. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2288. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2289. game:GetService("Debris"):AddItem(prt2,2)
  2290. coroutine.resume(coroutine.create(function(Part,Mesh)
  2291. for i=0,1,0.1 do
  2292. wait()
  2293. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2294. end
  2295. Part.Parent=nil
  2296. end),prt2,msh2)
  2297. end
  2298. for i=0,1,delay*2 do
  2299. wait()
  2300. Part.CFrame=Part.CFrame
  2301. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2302. end
  2303. Part.Parent=nil
  2304. end),prt,msh)
  2305. end
  2306.  
  2307. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2308. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2309. prt.Anchored=true
  2310. prt.CFrame=cframe
  2311. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2312. game:GetService("Debris"):AddItem(prt,2)
  2313. coroutine.resume(coroutine.create(function(Part,Mesh)
  2314. for i=0,1,delay do
  2315. wait()
  2316. Part.CFrame=Part.CFrame
  2317. Part.Transparency=i
  2318. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2319. end
  2320. Part.Parent=nil
  2321. end),prt,msh)
  2322. end
  2323.  
  2324. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2325. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2326. prt.Anchored=true
  2327. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2328. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2329. game:GetService("Debris"):AddItem(prt,2)
  2330. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2331. CF=Part.CFrame
  2332. Numbb=0
  2333. randnumb=math.random()/10
  2334. rand1=math.random()/10
  2335. for i=0,1,rand1 do
  2336. wait()
  2337. CF=CF*cf(0,math.random()/2,0)
  2338. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2339. Part.CFrame=CF*euler(Numbb,0,0)
  2340. Part.Transparency=i
  2341. Numbb=Numbb+randnumb
  2342. end
  2343. Part.Parent=nil
  2344. end),prt,CF,Numbb,randnumb)
  2345. end
  2346.  
  2347. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2348. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2349. prt.Anchored=true
  2350. prt.CFrame=cframe
  2351. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2352. game:GetService("Debris"):AddItem(prt,5)
  2353. coroutine.resume(coroutine.create(function(Part,Mesh)
  2354. for i=0,1,delay do
  2355. wait()
  2356. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2357. Part.Transparency=i
  2358. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2359. end
  2360. Part.Parent=nil
  2361. end),prt,msh)
  2362. end
  2363.  
  2364. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2365. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2366. prt.Anchored=true
  2367. prt.CFrame=cframe
  2368. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2369. game:GetService("Debris"):AddItem(prt,2)
  2370. coroutine.resume(coroutine.create(function(Part,Mesh)
  2371. for i=0,1,delay do
  2372. wait()
  2373. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2374. Part.Transparency=i
  2375. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2376. end
  2377. Part.Parent=nil
  2378. end),prt,msh)
  2379. end
  2380.  
  2381. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2382. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2383. prt.Anchored=true
  2384. prt.CFrame=cframe*cf(x,y,z)
  2385. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2386. game:GetService("Debris"):AddItem(prt,5)
  2387. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2388. local num=math.random()
  2389. local num2=math.random(-3,2)+math.random()
  2390. local numm=0
  2391. for i=0,1,delay*2 do
  2392. swait()
  2393. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2394. Part.Transparency=i
  2395. numm=numm+0.01
  2396. end
  2397. Part.Parent=nil
  2398. Mesh.Parent=nil
  2399. end),prt,msh,x,y,z)
  2400. end
  2401.  
  2402. function dmgstart(dmg,what)
  2403. hitcon = what.Touched:connect(function(hit)
  2404. local hum = hit.Parent:FindFirstChild("Humanoid")
  2405. if hum and not hum:IsDescendantOf(Character) then
  2406. hum:TakeDamage(dmg)
  2407. end
  2408. end)
  2409. end
  2410.  
  2411. function dmgstop()
  2412. hitcon:disconnect()
  2413. end
  2414.  
  2415. function Cloak()
  2416. Face.Parent=nil
  2417. cloaked=true
  2418. for _,v in pairs(Torso.Parent:children()) do
  2419. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2420. coroutine.resume(coroutine.create(function()
  2421. for i=0,1,0.2 do
  2422. wait()
  2423. v.Transparency=i
  2424. end
  2425. v.Transparency=1
  2426. end))
  2427. end
  2428. if v.className=="Hat" then
  2429. hatp=v.Handle
  2430. coroutine.resume(coroutine.create(function(derp)
  2431. for i=0,1,0.2 do
  2432. wait()
  2433. derp.Transparency=i
  2434. end
  2435. derp.Transparency=1
  2436. end),hatp)
  2437. end
  2438. end
  2439. for _,v in pairs(m:children()) do
  2440. if v.className=="Part" then
  2441. coroutine.resume(coroutine.create(function()
  2442. for i=0,1,0.2 do
  2443. wait()
  2444. v.Transparency=i
  2445. end
  2446. v.Transparency=1
  2447. end))
  2448. end
  2449. end
  2450. end
  2451.  
  2452. function UnCloak()
  2453. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2454. Face.Parent=Head
  2455. cloaked=false
  2456. for _,v in pairs(Torso.Parent:children()) do
  2457. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2458. coroutine.resume(coroutine.create(function()
  2459. for i=0,1,0.1 do
  2460. wait()
  2461. v.Transparency=v.Transparency-0.1
  2462. end
  2463. v.Transparency=0
  2464. end))
  2465. end
  2466. if v.className=="Hat" then
  2467. hatp=v.Handle
  2468. coroutine.resume(coroutine.create(function(derp)
  2469. for i=0,1,0.1 do
  2470. wait()
  2471. derp.Transparency=derp.Transparency-0.1
  2472. end
  2473. derp.Transparency=0
  2474. end),hatp)
  2475. end
  2476. end
  2477. for _,v in pairs(m:children()) do
  2478. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2479. coroutine.resume(coroutine.create(function()
  2480. for i=0,1,0.1 do
  2481. wait()
  2482. v.Transparency=v.Transparency-0.1
  2483. end
  2484. v.Transparency=0
  2485. end))
  2486. v.Transparency=0
  2487. end
  2488. end
  2489. end
  2490.  
  2491. local origcolor = BrickColor.new("Pastel light blue")
  2492. ---- This section of explosions.
  2493.  
  2494. ----
  2495.  
  2496.  
  2497. function ring(type,pos,scale,value)
  2498. local type = type
  2499. local rng = Instance.new("Part", char)
  2500. rng.Anchored = true
  2501. rng.BrickColor = origcolor
  2502. rng.CanCollide = false
  2503. rng.FormFactor = 3
  2504. rng.Name = "Ring"
  2505. rng.Size = Vector3.new(1, 1, 1)
  2506. rng.Transparency = 0
  2507. rng.TopSurface = 0
  2508. rng.BottomSurface = 0
  2509. rng.CFrame = pos
  2510. local rngm = Instance.new("SpecialMesh", rng)
  2511. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2512. rngm.Scale = scale
  2513. local scaler2 = 1
  2514. if type == "Add" then
  2515. scaler2 = 1*value
  2516. elseif type == "Divide" then
  2517. scaler2 = 1/value
  2518. end
  2519. coroutine.resume(coroutine.create(function()
  2520. for i = 0,10,0.1 do
  2521. swait()
  2522. if type == "Add" then
  2523. scaler2 = scaler2 - 0.01*value
  2524. elseif type == "Divide" then
  2525. scaler2 = scaler2 - 0.01/value
  2526. end
  2527. rng.Transparency = rng.Transparency + 0.01
  2528. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2529. end
  2530. rng:Destroy()
  2531. end))
  2532. end
  2533.  
  2534.  
  2535. function wave(type,pos,scale,value)
  2536. local type = type
  2537. local rng = Instance.new("Part", char)
  2538. rng.Anchored = true
  2539. rng.BrickColor = origcolor
  2540. rng.CanCollide = false
  2541. rng.FormFactor = 3
  2542. rng.Name = "Ring"
  2543. rng.Size = Vector3.new(1, 1, 1)
  2544. rng.Transparency = 0
  2545. rng.TopSurface = 0
  2546. rng.BottomSurface = 0
  2547. rng.CFrame = pos
  2548. local rngm = Instance.new("SpecialMesh", rng)
  2549. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2550. rngm.Scale = scale
  2551. local scaler2 = 1
  2552. if type == "Add" then
  2553. scaler2 = 1*value
  2554. elseif type == "Divide" then
  2555. scaler2 = 1/value
  2556. end
  2557. coroutine.resume(coroutine.create(function()
  2558. for i = 0,10,0.1 do
  2559. swait()
  2560. if type == "Add" then
  2561. scaler2 = scaler2 - 0.01*value
  2562. elseif type == "Divide" then
  2563. scaler2 = scaler2 - 0.01/value
  2564. end
  2565. rng.Transparency = rng.Transparency + 0.01
  2566. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2567. end
  2568. rng:Destroy()
  2569. end))
  2570. end
  2571.  
  2572. function wind(type,pos,scale,value,speed)
  2573. local type = type
  2574. local rng = Instance.new("Part", char)
  2575. rng.Anchored = true
  2576. rng.BrickColor = origcolor
  2577. rng.CanCollide = false
  2578. rng.FormFactor = 3
  2579. rng.Name = "Ring"
  2580. rng.Size = Vector3.new(1, 1, 1)
  2581. rng.Transparency = 0
  2582. rng.TopSurface = 0
  2583. rng.BottomSurface = 0
  2584. rng.CFrame = pos
  2585. local rngm = Instance.new("SpecialMesh", rng)
  2586. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2587. rngm.Scale = scale
  2588. local scaler2 = 1
  2589. if type == "Add" then
  2590. scaler2 = 1*value
  2591. elseif type == "Divide" then
  2592. scaler2 = 1/value
  2593. end
  2594. coroutine.resume(coroutine.create(function()
  2595. for i = 0,10,0.1 do
  2596. swait()
  2597. if type == "Add" then
  2598. scaler2 = scaler2 - 0.01*value
  2599. elseif type == "Divide" then
  2600. scaler2 = scaler2 - 0.01/value
  2601. end
  2602. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2603. rng.Transparency = rng.Transparency + 0.01
  2604. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2605. end
  2606. rng:Destroy()
  2607. end))
  2608. end
  2609.  
  2610. function groundwind(type,pos,scale,value,speed)
  2611. local type = type
  2612. local rng = Instance.new("Part", char)
  2613. rng.Anchored = true
  2614. rng.BrickColor = origcolor
  2615. rng.CanCollide = false
  2616. rng.FormFactor = 3
  2617. rng.Name = "Ring"
  2618. rng.Size = Vector3.new(1, 1, 1)
  2619. rng.Transparency = 0
  2620. rng.TopSurface = 0
  2621. rng.BottomSurface = 0
  2622. rng.CFrame = pos
  2623. local rngm = Instance.new("SpecialMesh", rng)
  2624. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2625. rngm.Scale = scale
  2626. local scaler2 = 1
  2627. if type == "Add" then
  2628. scaler2 = 1*value
  2629. elseif type == "Divide" then
  2630. scaler2 = 1/value
  2631. end
  2632. coroutine.resume(coroutine.create(function()
  2633. for i = 0,10,0.1 do
  2634. swait()
  2635. if type == "Add" then
  2636. scaler2 = scaler2 - 0.01*value
  2637. elseif type == "Divide" then
  2638. scaler2 = scaler2 - 0.01/value
  2639. end
  2640. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2641. rng.Transparency = rng.Transparency + 0.01
  2642. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2643. end
  2644. rng:Destroy()
  2645. end))
  2646. end
  2647.  
  2648. function CameraManager()
  2649. if TwoD and not CamInterrupt then
  2650. if Humanoid.Health > 0 then
  2651. Camera.CameraSubject = Humanoid
  2652. Camera.CameraType = "Scriptable"
  2653. Humanoid.AutoRotate = false
  2654. if Booleans.GyroUse then
  2655. Directer.MaxTorque = Vec3(0, huge, 0)
  2656. else
  2657. Directer.MaxTorque = Vec3(0, 0, 0)
  2658. end
  2659. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2660. if Booleans.CamFollow then
  2661. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2662. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2663. else
  2664. CPart.Position = RootPart.Position
  2665. end
  2666. else
  2667. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2668. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2669. end
  2670. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2671. else
  2672. Camera.CameraSubject = Humanoid
  2673. Camera.CameraType = "Custom"
  2674. Controller.Disabled = false
  2675. end
  2676. end
  2677. end
  2678.  
  2679. function ring(type,pos,scale,value)
  2680. local type = type
  2681. local rng = Instance.new("Part", char)
  2682. rng.Anchored = true
  2683. rng.BrickColor = origcolor
  2684. rng.CanCollide = false
  2685. rng.FormFactor = 3
  2686. rng.Name = "Ring"
  2687. rng.Size = Vector3.new(1, 1, 1)
  2688. rng.Transparency = 0
  2689. rng.TopSurface = 0
  2690. rng.BottomSurface = 0
  2691. rng.CFrame = pos
  2692. local rngm = Instance.new("SpecialMesh", rng)
  2693. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2694. rngm.Scale = scale
  2695. local scaler2 = 1
  2696. if type == "Add" then
  2697. scaler2 = 1*value
  2698. elseif type == "Divide" then
  2699. scaler2 = 1/value
  2700. end
  2701. coroutine.resume(coroutine.create(function()
  2702. for i = 0,10,0.1 do
  2703. swait()
  2704. if type == "Add" then
  2705. scaler2 = scaler2 - 0.01*value
  2706. elseif type == "Divide" then
  2707. scaler2 = scaler2 - 0.01/value
  2708. end
  2709. rng.Transparency = rng.Transparency + 0.01
  2710. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2711. end
  2712. rng:Destroy()
  2713. end))
  2714. end
  2715.  
  2716.  
  2717. function wave(type,pos,scale,value)
  2718. local type = type
  2719. local rng = Instance.new("Part", char)
  2720. rng.Anchored = true
  2721. rng.BrickColor = origcolor
  2722. rng.CanCollide = false
  2723. rng.FormFactor = 3
  2724. rng.Name = "Ring"
  2725. rng.Size = Vector3.new(1, 1, 1)
  2726. rng.Transparency = 0
  2727. rng.TopSurface = 0
  2728. rng.BottomSurface = 0
  2729. rng.CFrame = pos
  2730. local rngm = Instance.new("SpecialMesh", rng)
  2731. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2732. rngm.Scale = scale
  2733. local scaler2 = 1
  2734. if type == "Add" then
  2735. scaler2 = 1*value
  2736. elseif type == "Divide" then
  2737. scaler2 = 1/value
  2738. end
  2739. coroutine.resume(coroutine.create(function()
  2740. for i = 0,10,0.1 do
  2741. swait()
  2742. if type == "Add" then
  2743. scaler2 = scaler2 - 0.01*value
  2744. elseif type == "Divide" then
  2745. scaler2 = scaler2 - 0.01/value
  2746. end
  2747. rng.Transparency = rng.Transparency + 0.01
  2748. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2749. end
  2750. rng:Destroy()
  2751. end))
  2752. end
  2753.  
  2754. function sphere(bonuspeed,type,pos,scale,value,color)
  2755. local type = type
  2756. local rng = Instance.new("Part", char)
  2757. rng.Anchored = true
  2758. if ModeOfGlitch ~= 9 then
  2759. rng.BrickColor = color
  2760. elseif ModeOfGlitch == 9 then
  2761. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2762. end
  2763. rng.CanCollide = false
  2764. rng.FormFactor = 3
  2765. rng.Name = "Ring"
  2766. rng.Material = "Neon"
  2767. rng.Size = Vector3.new(1, 1, 1)
  2768. rng.Transparency = 0
  2769. rng.TopSurface = 0
  2770. rng.BottomSurface = 0
  2771. rng.CFrame = pos
  2772. local rngm = Instance.new("SpecialMesh", rng)
  2773. rngm.MeshType = "Sphere"
  2774. rngm.Scale = scale
  2775. if rainbowmode == true then
  2776. rng.Color = Color3.new(r/255,g/255,b/255)
  2777. end
  2778. if ModeOfGlitch == 9 then
  2779. coroutine.resume(coroutine.create(function()
  2780. while true do
  2781. swait()
  2782. if rng.Parent ~= nil then
  2783. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2784. else
  2785. break
  2786. end
  2787. end
  2788. end))
  2789. end
  2790. local scaler2 = 1
  2791. if type == "Add" then
  2792. scaler2 = 1*value
  2793. elseif type == "Divide" then
  2794. scaler2 = 1/value
  2795. end
  2796. coroutine.resume(coroutine.create(function()
  2797. for i = 0,10/bonuspeed,0.1 do
  2798. swait()
  2799. if rainbowmode == true then
  2800. rng.Color = Color3.new(r/255,g/255,b/255)
  2801. end
  2802. if type == "Add" then
  2803. scaler2 = scaler2 - 0.01*value/bonuspeed
  2804. elseif type == "Divide" then
  2805. scaler2 = scaler2 - 0.01/value*bonuspeed
  2806. end
  2807. if chaosmode == true then
  2808. rng.BrickColor = BrickColor.random()
  2809. end
  2810. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2811. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2812. end
  2813. rng:Destroy()
  2814. end))
  2815. end
  2816.  
  2817. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2818. local type = type
  2819. local rng = Instance.new("Part", char)
  2820. rng.Anchored = true
  2821. if ModeOfGlitch ~= 9 then
  2822. rng.BrickColor = color
  2823. elseif ModeOfGlitch == 9 then
  2824. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2825. end
  2826. rng.CanCollide = false
  2827. rng.FormFactor = 3
  2828. rng.Name = "Ring"
  2829. rng.Material = "Neon"
  2830. rng.Size = Vector3.new(1, 1, 1)
  2831. rng.Transparency = 0
  2832. rng.TopSurface = 0
  2833. rng.BottomSurface = 0
  2834. rng.CFrame = pos
  2835. local rngm = Instance.new("SpecialMesh", rng)
  2836. rngm.MeshType = "Sphere"
  2837. rngm.Scale = scale
  2838. local scaler2 = 1
  2839. local scaler2b = 1
  2840. local scaler2c = 1
  2841. if type == "Add" then
  2842. scaler2 = 1*value
  2843. scaler2b = 1*value2
  2844. scaler2c = 1*value3
  2845. elseif type == "Divide" then
  2846. scaler2 = 1/value
  2847. scaler2b = 1/value2
  2848. scaler2c = 1/value3
  2849. end
  2850. if ModeOfGlitch == 9 then
  2851. coroutine.resume(coroutine.create(function()
  2852. while true do
  2853. swait()
  2854. if rng.Parent ~= nil then
  2855. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2856. else
  2857. break
  2858. end
  2859. end
  2860. end))
  2861. end
  2862. coroutine.resume(coroutine.create(function()
  2863. for i = 0,10/bonuspeed,0.1 do
  2864. swait()
  2865. if type == "Add" then
  2866. scaler2 = scaler2 - 0.01*value/bonuspeed
  2867. scaler2b = scaler2b - 0.01*value/bonuspeed
  2868. scaler2c = scaler2c - 0.01*value/bonuspeed
  2869. elseif type == "Divide" then
  2870. scaler2 = scaler2 - 0.01/value*bonuspeed
  2871. scaler2b = scaler2b - 0.01/value*bonuspeed
  2872. scaler2c = scaler2c - 0.01/value*bonuspeed
  2873. end
  2874. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2875. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2876. end
  2877. rng:Destroy()
  2878. end))
  2879. end
  2880.  
  2881. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2882. local type = type
  2883. local rotenable = rotatingop
  2884. local rng = Instance.new("Part", char)
  2885. rng.Anchored = true
  2886. rng.BrickColor = color
  2887. rng.CanCollide = false
  2888. rng.FormFactor = 3
  2889. rng.Name = "Ring"
  2890. rng.Material = "Neon"
  2891. rng.Size = Vector3.new(1, 1, 1)
  2892. rng.Transparency = 0
  2893. if typeoftrans == "In" then
  2894. rng.Transparency = 1
  2895. end
  2896. rng.TopSurface = 0
  2897. rng.BottomSurface = 0
  2898. rng.CFrame = pos
  2899. local rngm = Instance.new("SpecialMesh", rng)
  2900. rngm.MeshType = "FileMesh"
  2901. if typeofshape == "Normal" then
  2902. rngm.MeshId = "rbxassetid://662586858"
  2903. elseif typeofshape == "Round" then
  2904. rngm.MeshId = "rbxassetid://662585058"
  2905. end
  2906. rngm.Scale = scale
  2907. local scaler2 = 1/10
  2908. if type == "Add" then
  2909. scaler2 = 1*value/10
  2910. elseif type == "Divide" then
  2911. scaler2 = 1/value/10
  2912. end
  2913. local randomrot = math.random(1,2)
  2914. coroutine.resume(coroutine.create(function()
  2915. for i = 0,10/bonuspeed,0.1 do
  2916. swait()
  2917. if type == "Add" then
  2918. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2919. elseif type == "Divide" then
  2920. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2921. end
  2922. if rotenable == true then
  2923. if randomrot == 1 then
  2924. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2925. elseif randomrot == 2 then
  2926. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2927. end
  2928. end
  2929. if typeoftrans == "Out" then
  2930. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2931. elseif typeoftrans == "In" then
  2932. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2933. end
  2934. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2935. end
  2936. rng:Destroy()
  2937. end))
  2938. end
  2939.  
  2940. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2941. local type = type
  2942. local rng = Instance.new("Part", char)
  2943. rng.Anchored = true
  2944. rng.BrickColor = color
  2945. rng.CanCollide = false
  2946. rng.FormFactor = 3
  2947. rng.Name = "Ring"
  2948. rng.Material = "Neon"
  2949. rng.Size = Vector3.new(1, 1, 1)
  2950. rng.Transparency = 0
  2951. rng.TopSurface = 0
  2952. rng.BottomSurface = 0
  2953. rng.CFrame = pos
  2954. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2955. local rngm = Instance.new("SpecialMesh", rng)
  2956. rngm.MeshType = "Brick"
  2957. rngm.Scale = vt(x1,y1,z1)
  2958. if rainbowmode == true then
  2959. rng.Color = Color3.new(r/255,g/255,b/255)
  2960. end
  2961. local scaler2 = 1
  2962. local speeder = FastSpeed/10
  2963. if type == "Add" then
  2964. scaler2 = 1*value
  2965. elseif type == "Divide" then
  2966. scaler2 = 1/value
  2967. end
  2968. coroutine.resume(coroutine.create(function()
  2969. for i = 0,10/bonuspeed,0.1 do
  2970. swait()
  2971. if rainbowmode == true then
  2972. rng.Color = Color3.new(r/255,g/255,b/255)
  2973. end
  2974. if type == "Add" then
  2975. scaler2 = scaler2 - 0.01*value/bonuspeed
  2976. elseif type == "Divide" then
  2977. scaler2 = scaler2 - 0.01/value*bonuspeed
  2978. end
  2979. if chaosmode == true then
  2980. rng.BrickColor = BrickColor.random()
  2981. end
  2982. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2983. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2984. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2985. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2986. end
  2987. rng:Destroy()
  2988. end))
  2989. end
  2990.  
  2991. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2992. local type = type
  2993. local rng = Instance.new("Part", char)
  2994. rng.Anchored = true
  2995. rng.BrickColor = color
  2996. rng.CanCollide = false
  2997. rng.FormFactor = 3
  2998. rng.Name = "Ring"
  2999. rng.Material = "Neon"
  3000. rng.Size = Vector3.new(1, 1, 1)
  3001. rng.Transparency = 0
  3002. rng.TopSurface = 0
  3003. rng.BottomSurface = 0
  3004. rng.CFrame = pos
  3005. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3006. local rngm = Instance.new("SpecialMesh", rng)
  3007. rngm.MeshType = "Brick"
  3008. rngm.Scale = vt(x1,y1,z1)
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. local scaler2 = 1
  3013. local speeder = FastSpeed/10
  3014. if type == "Add" then
  3015. scaler2 = 1*value
  3016. elseif type == "Divide" then
  3017. scaler2 = 1/value
  3018. end
  3019. coroutine.resume(coroutine.create(function()
  3020. for i = 0,10/bonuspeed,0.1 do
  3021. swait()
  3022. if rainbowmode == true then
  3023. rng.Color = Color3.new(r/255,g/255,b/255)
  3024. end
  3025. if type == "Add" then
  3026. scaler2 = scaler2 - 0.01*value/bonuspeed
  3027. elseif type == "Divide" then
  3028. scaler2 = scaler2 - 0.01/value*bonuspeed
  3029. end
  3030. if chaosmode == true then
  3031. rng.BrickColor = BrickColor.random()
  3032. end
  3033. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3034. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3035. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3036. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3037. end
  3038. rng:Destroy()
  3039. end))
  3040. end
  3041.  
  3042. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3043. local type = type
  3044. local rng = Instance.new("Part", char)
  3045. rng.Anchored = true
  3046. rng.BrickColor = color
  3047. rng.CanCollide = false
  3048. rng.FormFactor = 3
  3049. rng.Name = "Ring"
  3050. rng.Material = "Neon"
  3051. rng.Size = Vector3.new(1, 1, 1)
  3052. rng.Transparency = 0
  3053. rng.TopSurface = 0
  3054. rng.BottomSurface = 0
  3055. rng.CFrame = pos
  3056. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3057. local rngm = Instance.new("SpecialMesh", rng)
  3058. rngm.MeshType = "Brick"
  3059. rngm.Scale = vt(x1,y1,z1)
  3060. if rainbowmode == true then
  3061. rng.Color = Color3.new(r/255,g/255,b/255)
  3062. end
  3063. local scaler2 = 0
  3064. local speeder = FastSpeed/10
  3065. if type == "Add" then
  3066. scaler2 = 1*value
  3067. elseif type == "Divide" then
  3068. scaler2 = 1/value
  3069. end
  3070. coroutine.resume(coroutine.create(function()
  3071. for i = 0,10/bonuspeed,0.1 do
  3072. swait()
  3073. if rainbowmode == true then
  3074. rng.Color = Color3.new(r/255,g/255,b/255)
  3075. end
  3076. if type == "Add" then
  3077. scaler2 = scaler2 - 0.01*value/bonuspeed
  3078. elseif type == "Divide" then
  3079. scaler2 = scaler2 - 0.01/value*bonuspeed
  3080. end
  3081. if chaosmode == true then
  3082. rng.BrickColor = BrickColor.random()
  3083. end
  3084. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3085. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3086. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3087. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3088. end
  3089. rng:Destroy()
  3090. end))
  3091. end
  3092.  
  3093. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3094. local type = type
  3095. local rng = Instance.new("Part", char)
  3096. rng.Anchored = true
  3097. rng.BrickColor = color
  3098. rng.Color = color3
  3099. rng.CanCollide = false
  3100. rng.FormFactor = 3
  3101. rng.Name = "Ring"
  3102. rng.Material = "Neon"
  3103. rng.Size = Vector3.new(1, 1, 1)
  3104. rng.Transparency = 0
  3105. rng.TopSurface = 0
  3106. rng.BottomSurface = 0
  3107. rng.CFrame = pos
  3108. local rngm = Instance.new("SpecialMesh", rng)
  3109. rngm.MeshType = "Brick"
  3110. rngm.Scale = scale
  3111. local scaler2 = 1
  3112. local scaler2b = 1
  3113. local scaler2c = 1
  3114. if type == "Add" then
  3115. scaler2 = 1*value
  3116. scaler2b = 1*value2
  3117. scaler2c = 1*value3
  3118. elseif type == "Divide" then
  3119. scaler2 = 1/value
  3120. scaler2b = 1/value2
  3121. scaler2c = 1/value3
  3122. end
  3123. coroutine.resume(coroutine.create(function()
  3124. for i = 0,10/bonuspeed,0.1 do
  3125. swait()
  3126. if type == "Add" then
  3127. scaler2 = scaler2 - 0.01*value/bonuspeed
  3128. scaler2b = scaler2b - 0.01*value/bonuspeed
  3129. scaler2c = scaler2c - 0.01*value/bonuspeed
  3130. elseif type == "Divide" then
  3131. scaler2 = scaler2 - 0.01/value*bonuspeed
  3132. scaler2b = scaler2b - 0.01/value*bonuspeed
  3133. scaler2c = scaler2c - 0.01/value*bonuspeed
  3134. end
  3135. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3136. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3137. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3138. end
  3139. rng:Destroy()
  3140. end))
  3141. end
  3142.  
  3143. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3144. local type = type
  3145. local rng = Instance.new("Part", char)
  3146. rng.Anchored = true
  3147. if ModeOfGlitch ~= 9 then
  3148. rng.BrickColor = color
  3149. elseif ModeOfGlitch == 9 then
  3150. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3151. end
  3152. rng.CanCollide = false
  3153. rng.FormFactor = 3
  3154. rng.Name = "Ring"
  3155. rng.Material = "Neon"
  3156. rng.Size = Vector3.new(1, 1, 1)
  3157. rng.Transparency = 0
  3158. rng.TopSurface = 0
  3159. rng.BottomSurface = 0
  3160. rng.CFrame = pos
  3161. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3162. local rngm = Instance.new("SpecialMesh", rng)
  3163. rngm.MeshType = "Sphere"
  3164. rngm.Scale = vt(x1,y1,z1)
  3165. if rainbowmode == true then
  3166. rng.Color = Color3.new(r/255,g/255,b/255)
  3167. end
  3168. if ModeOfGlitch == 9 then
  3169. coroutine.resume(coroutine.create(function()
  3170. while true do
  3171. swait()
  3172. if rng.Parent ~= nil then
  3173. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3174. else
  3175. break
  3176. end
  3177. end
  3178. end))
  3179. end
  3180. local scaler2 = 1
  3181. local speeder = FastSpeed
  3182. if type == "Add" then
  3183. scaler2 = 1*value
  3184. elseif type == "Divide" then
  3185. scaler2 = 1/value
  3186. end
  3187. coroutine.resume(coroutine.create(function()
  3188. for i = 0,10/bonuspeed,0.1 do
  3189. swait()
  3190. if rainbowmode == true then
  3191. rng.Color = Color3.new(r/255,g/255,b/255)
  3192. end
  3193. if type == "Add" then
  3194. scaler2 = scaler2 - 0.01*value/bonuspeed
  3195. elseif type == "Divide" then
  3196. scaler2 = scaler2 - 0.01/value*bonuspeed
  3197. end
  3198. if chaosmode == true then
  3199. rng.BrickColor = BrickColor.random()
  3200. end
  3201. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3202. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3203. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3204. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3205. end
  3206. rng:Destroy()
  3207. end))
  3208. end
  3209.  
  3210.  
  3211. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3212. local type = type
  3213. local rng = Instance.new("Part", char)
  3214. rng.Anchored = true
  3215. if ModeOfGlitch ~= 9 then
  3216. rng.BrickColor = color
  3217. elseif ModeOfGlitch == 9 then
  3218. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3219. end
  3220. rng.CanCollide = false
  3221. rng.FormFactor = 3
  3222. rng.Name = "Ring"
  3223. rng.Material = "Neon"
  3224. rng.Size = Vector3.new(1, 1, 1)
  3225. rng.Transparency = 1
  3226. rng.TopSurface = 0
  3227. rng.BottomSurface = 0
  3228. rng.CFrame = pos
  3229. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3230. local rngm = Instance.new("SpecialMesh", rng)
  3231. rngm.MeshType = "Sphere"
  3232. rngm.Scale = vt(x1,y1,z1)
  3233. if rainbowmode == true then
  3234. rng.Color = Color3.new(r/255,g/255,b/255)
  3235. end
  3236. if ModeOfGlitch == 9 then
  3237. coroutine.resume(coroutine.create(function()
  3238. while true do
  3239. swait()
  3240. if rng.Parent ~= nil then
  3241. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3242. else
  3243. break
  3244. end
  3245. end
  3246. end))
  3247. end
  3248. local scaler2 = 1
  3249. local speeder = FastSpeed
  3250. if type == "Add" then
  3251. scaler2 = 1*value
  3252. elseif type == "Divide" then
  3253. scaler2 = 1/value
  3254. end
  3255. coroutine.resume(coroutine.create(function()
  3256. for i = 0,10/bonuspeed,0.1 do
  3257. swait()
  3258. if rainbowmode == true then
  3259. rng.Color = Color3.new(r/255,g/255,b/255)
  3260. end
  3261. if type == "Add" then
  3262. scaler2 = scaler2 - 0.01*value/bonuspeed
  3263. elseif type == "Divide" then
  3264. scaler2 = scaler2 - 0.01/value*bonuspeed
  3265. end
  3266. if chaosmode == true then
  3267. rng.BrickColor = BrickColor.random()
  3268. end
  3269. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3270. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3271. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3272. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3273. end
  3274. rng:Destroy()
  3275. end))
  3276. end
  3277.  
  3278. function dmg(dude)
  3279. if dude.Name ~= Character then
  3280. local keptcolor = MAINRUINCOLOR
  3281. local bgf = Instance.new("BodyGyro",dude.Head)
  3282. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3283. --[[local val = Instance.new("BoolValue",dude)
  3284. val.Name = "IsHit"]]--
  3285. local ds = coroutine.wrap(function()
  3286. dude:WaitForChild("Head"):BreakJoints()
  3287. for i, v in pairs(dude:GetChildren()) do
  3288. if v:IsA("Part") or v:IsA("MeshPart") then
  3289. v.Name = "DEMINISHED"
  3290. end
  3291. end
  3292. wait(0.5)
  3293. targetted = nil
  3294. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3295. coroutine.resume(coroutine.create(function()
  3296. for i, v in pairs(dude:GetChildren()) do
  3297. if v:IsA("Accessory") then
  3298. v:Destroy()
  3299. end
  3300. if v:IsA("Humanoid") then
  3301. v:Destroy()
  3302. end
  3303. if v:IsA("CharacterMesh") then
  3304. v:Destroy()
  3305. end
  3306. if v:IsA("Model") then
  3307. v:Destroy()
  3308. end
  3309. if v:IsA("Part") or v:IsA("MeshPart") then
  3310. for x, o in pairs(v:GetChildren()) do
  3311. if o:IsA("Decal") then
  3312. o:Destroy()
  3313. end
  3314. end
  3315. coroutine.resume(coroutine.create(function()
  3316. v.Material = "Neon"
  3317. v.CanCollide = false
  3318. v.Anchored = false
  3319. local bld = Instance.new("ParticleEmitter",v)
  3320. bld.LightEmission = 0.75
  3321. bld.Texture = "rbxassetid://363275192" ---284205403
  3322. bld.Color = ColorSequence.new(keptcolor.Color)
  3323. bld.Rate = 500
  3324. bld.Lifetime = NumberRange.new(1)
  3325. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3326. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3327. bld.Speed = NumberRange.new(2,5)
  3328. bld.VelocitySpread = 50000
  3329. bld.Rotation = NumberRange.new(-500,500)
  3330. bld.RotSpeed = NumberRange.new(-500,500)
  3331. local sbs = Instance.new("BodyPosition", v)
  3332. sbs.P = 3000
  3333. sbs.D = 1000
  3334. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3335. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3336. v.Color = keptcolor.Color
  3337. coroutine.resume(coroutine.create(function()
  3338. for i = 0, 49 do
  3339. swait(1)
  3340. v:BreakJoints()
  3341. v.Transparency = v.Transparency + 0.02
  3342. end
  3343. v:BreakJoints()
  3344. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3345. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3346. bld.Speed = NumberRange.new(10,25)
  3347. bld.Drag = 5
  3348. bld.Acceleration = vt(0,2,0)
  3349. wait(0.5)
  3350. bld.Enabled = false
  3351. wait(8)
  3352. v:Destroy()
  3353. dude:Destroy()
  3354. end))
  3355. end))
  3356. end
  3357. end
  3358. end))
  3359. end)
  3360. ds()
  3361. end
  3362. end
  3363.  
  3364.  
  3365. function FindNearestHead(Position, Distance, SinglePlayer)
  3366. if SinglePlayer then
  3367. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3368. end
  3369. local List = {}
  3370. for i, v in pairs(workspace:GetChildren()) do
  3371. if v:IsA("Model") then
  3372. if v:findFirstChild("Head") then
  3373. if v ~= Character then
  3374. if (v.Head.Position - Position).magnitude <= Distance then
  3375. table.insert(List, v)
  3376. end
  3377. end
  3378. end
  3379. end
  3380. end
  3381. return List
  3382. end
  3383.  
  3384. function FaceMouse()
  3385. Cam = workspace.CurrentCamera
  3386. return {
  3387. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3388. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3389. }
  3390. end
  3391.  
  3392. function FaceMouse2()
  3393. Cam = workspace.CurrentCamera
  3394. return {
  3395. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3396. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3397. }
  3398. end
  3399.  
  3400. local ModeOfGlitch = 1
  3401. -- Functions are ready.
  3402. local storehumanoidWS = 16
  3403.  
  3404. function CorruptBlink()
  3405. for i = 0, 14 do
  3406. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3407. end
  3408. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3409. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3410. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3411. CameraEnshaking(2,10)
  3412. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3413. if v:FindFirstChild('Head') then
  3414. dmg(v)
  3415. end
  3416. end
  3417. for i = 0, 14 do
  3418. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3419. end
  3420. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3421. end
  3422. function PureBomb()
  3423. attack = true
  3424. hum.WalkSpeed = 0
  3425. local orb = Instance.new("Part", char)
  3426. orb.Anchored = true
  3427. orb.BrickColor = BrickColor.new("Toothpaste")
  3428. orb.CanCollide = false
  3429. orb.FormFactor = 3
  3430. orb.Name = "Ring"
  3431. orb.Material = "Neon"
  3432. orb.Size = Vector3.new(1, 1, 1)
  3433. orb.Transparency = 0
  3434. orb.TopSurface = 0
  3435. orb.BottomSurface = 0
  3436. local orbm = Instance.new("SpecialMesh", orb)
  3437. orbm.MeshType = "Sphere"
  3438. orbm.Name = "SizeMesh"
  3439. orbm.Scale = vt(0,0,0)
  3440. local scaled = 0.1
  3441. local posid = 0
  3442. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3443. for i = 0, 5, 0.1 do
  3444. swait()
  3445. scaled = scaled - 0.001
  3446. posid = posid - scaled
  3447. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3448. local scaled = 0.1
  3449. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3450. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3451. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3452. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3453. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3454. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3457. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3458. end
  3459. for i = 0, 2, 0.1 do
  3460. swait()
  3461. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3462. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3463. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3464. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3467. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3468. end
  3469. coroutine.resume(coroutine.create(function()
  3470. orb.Anchored = false
  3471. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3472. local a = Instance.new("Part",workspace)
  3473. a.Name = "Direction"
  3474. a.Anchored = true
  3475. a.BrickColor = bc("Bright red")
  3476. a.Material = "Neon"
  3477. a.Transparency = 1
  3478. a.CanCollide = false
  3479. local ray = Ray.new(
  3480. orb.CFrame.p, -- origin
  3481. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3482. )
  3483. local ignore = orb
  3484. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3485. a.BottomSurface = 10
  3486. a.TopSurface = 10
  3487. local distance = (orb.CFrame.p - position).magnitude
  3488. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3489. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3490. orb.CFrame = a.CFrame
  3491. a:Destroy()
  3492. local bv = Instance.new("BodyVelocity")
  3493. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3494. bv.velocity = orb.CFrame.lookVector*125
  3495. bv.Parent = orb
  3496. local hitted = false
  3497. game:GetService("Debris"):AddItem(orb, 15)
  3498. wait()
  3499. local hit =orb.Touched:connect(function(hit)
  3500. if hitted == false then
  3501. hitted = true
  3502. CameraEnshaking(10,2.5)
  3503. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3504. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3505. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3506. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3507. for i = 0, 49 do
  3508. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3509. end
  3510. for i = 0, 9 do
  3511. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3512. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3513. end
  3514. orb.Anchored = true
  3515. orb.Transparency = 1
  3516. wait(8)
  3517. orb:Destroy()
  3518. end
  3519. end)
  3520. end))
  3521. for i = 0, 1, 0.1 do
  3522. swait()
  3523. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3524. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3525. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3527. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3528. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3529. end
  3530. hum.WalkSpeed = storehumanoidWS
  3531. attack = false
  3532. end
  3533.  
  3534. function BanishingOrb()
  3535. attack = true
  3536. hum.WalkSpeed = 0
  3537. local orb = Instance.new("Part", char)
  3538. orb.Anchored = true
  3539. orb.BrickColor = BrickColor.new("Black")
  3540. orb.CanCollide = false
  3541. orb.FormFactor = 3
  3542. orb.Name = "Ring"
  3543. orb.Material = "Neon"
  3544. orb.Size = Vector3.new(1, 1, 1)
  3545. orb.Transparency = 0
  3546. orb.TopSurface = 0
  3547. orb.BottomSurface = 0
  3548. local orbm = Instance.new("SpecialMesh", orb)
  3549. orbm.MeshType = "Sphere"
  3550. orbm.Name = "SizeMesh"
  3551. orbm.Scale = vt(0,0,0)
  3552. local scaled = 0.1
  3553. local posid = 0
  3554. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3555. for i = 0, 5, 0.1 do
  3556. swait()
  3557. scaled = scaled - 0.001
  3558. posid = posid - scaled
  3559. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3560. local scaled = 0.1
  3561. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3562. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
  3563. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3564. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3568. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3569. end
  3570. for i = 0, 2, 0.1 do
  3571. swait()
  3572. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3573. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3574. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3575. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3577. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3578. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3579. end
  3580. coroutine.resume(coroutine.create(function()
  3581. orb.Anchored = false
  3582. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3583. local a = Instance.new("Part",workspace)
  3584. a.Name = "Direction"
  3585. a.Anchored = true
  3586. a.BrickColor = bc("Bright red")
  3587. a.Material = "Neon"
  3588. a.Transparency = 1
  3589. a.CanCollide = false
  3590. local ray = Ray.new(
  3591. orb.CFrame.p, -- origin
  3592. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3593. )
  3594. local ignore = orb
  3595. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3596. a.BottomSurface = 10
  3597. a.TopSurface = 10
  3598. local distance = (orb.CFrame.p - position).magnitude
  3599. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3600. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3601. orb.CFrame = a.CFrame
  3602. a:Destroy()
  3603. local bv = Instance.new("BodyVelocity")
  3604. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3605. bv.velocity = orb.CFrame.lookVector*0
  3606. bv.Parent = orb
  3607. local hitted = false
  3608. local rate = 0
  3609. coroutine.resume(coroutine.create(function()
  3610. for i = 0, 24 do
  3611. wait(0.1)
  3612. rate = rate + 0.25
  3613. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3614. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3615. if v:FindFirstChild('Head') then
  3616. dmg(v)
  3617. end
  3618. end
  3619. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3620. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3621. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3622. end
  3623. orb.Anchored = true
  3624. orb.Transparency = 1
  3625. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3626. if v:FindFirstChild('Head') then
  3627. dmg(v)
  3628. end
  3629. end
  3630. local eff = Instance.new("ParticleEmitter",orb)
  3631. eff.Texture = "rbxassetid://296874871"
  3632. eff.LightEmission = 0.95
  3633. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3634. eff.Rate = 1000000000
  3635. eff.Lifetime = NumberRange.new(3)
  3636. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3637. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3638. eff.Speed = NumberRange.new(30)
  3639. eff.Acceleration = vt(0,-15,0)
  3640. eff.Rotation = NumberRange.new(-500,500)
  3641. eff.VelocitySpread = 100000
  3642. eff.RotSpeed = NumberRange.new(-500,500)
  3643. coroutine.resume(coroutine.create(function()
  3644. wait(0.6)
  3645. eff.Enabled = false
  3646. end))
  3647. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3648. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3649. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3650. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3651. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3652. game:GetService("Debris"):AddItem(orb, 15)
  3653. end))
  3654. end))
  3655. for i = 0, 1, 0.1 do
  3656. swait()
  3657. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3658. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3659. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3660. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3661. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3662. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3663. end
  3664. hum.WalkSpeed = storehumanoidWS
  3665. attack = false
  3666. end
  3667.  
  3668.  
  3669. function ChaosGroundStrike()
  3670. attack = true
  3671. for i = 0, 2, 0.1 do
  3672. swait()
  3673. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3674. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3675. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3676. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3677. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3678. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3679. end
  3680. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3681. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3682. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 1.5, 1,0,10,0.15,0.5,1)
  3683. CFuncs["EchoSound"].Create("rbxassetid://357202073", root, 10, 1,0,10,0.15,0.5,1)
  3684. bosschatfunc("TASTE MY POWER!",MAINRUINCOLOR.Color,1)
  3685. CameraEnshaking(4,12)
  3686. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3687. if v:FindFirstChild('Head') then
  3688. dmg(v)
  3689. end
  3690. end
  3691. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3692. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3693. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3694. for i = 0, 2, 0.1 do
  3695. swait()
  3696. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3697. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3698. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3699. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3700. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3702. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3703. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3704. end
  3705. attack = false
  3706. end
  3707.  
  3708.  
  3709.  
  3710. function Starfall()
  3711. attack = true
  3712. hum.WalkSpeed = 0
  3713. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3714. for i = 0, 5, 0.1 do
  3715. swait()
  3716. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3717. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3718. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3719. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3720. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3721. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3722. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3723. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3724. end
  3725. local Overed = false
  3726. CameraEnshaking(2,20)
  3727. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3728. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3729. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3730. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3731. local orb = Instance.new("Part", char)
  3732. orb.Anchored = true
  3733. orb.BrickColor = BrickColor.new("Toothpaste")
  3734. orb.CanCollide = false
  3735. orb.FormFactor = 3
  3736. orb.Name = "Remenant"
  3737. orb.Material = "Neon"
  3738. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3739. orb.Size = Vector3.new(1, 1, 1)
  3740. orb.Transparency = 1
  3741. orb.TopSurface = 0
  3742. orb.BottomSurface = 0
  3743. hum.WalkSpeed = storehumanoidWS
  3744. coroutine.resume(coroutine.create(function()
  3745. for i = 0, 9 do
  3746. swait(10)
  3747. local lb = Instance.new("Part")
  3748. lb.Color = MAINRUINCOLOR.Color
  3749. lb.CanCollide = false
  3750. lb.Material = "Neon"
  3751. lb.Anchored = true
  3752. lb.TopSurface = 0
  3753. lb.BottomSurface = 0
  3754. lb.Transparency = 0
  3755. lb.Size = vt(1,1,1)
  3756. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3757. lb.Anchored = false
  3758. lb.Parent = char
  3759. local thingery = Instance.new("SpecialMesh",lb)
  3760. thingery.MeshType = "Sphere"
  3761. thingery.Scale = vt(20,20,20)
  3762. game:GetService("Debris"):AddItem(lb, 10)
  3763. local bv = Instance.new("BodyVelocity")
  3764. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3765. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3766. bv.Parent = lb
  3767. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3768. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3769. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3770. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3771. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3772. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3773. local hitted = false
  3774. coroutine.resume(coroutine.create(function()
  3775. while true do
  3776. swait(1)
  3777. if lb.Parent ~= nil and hitted == false then
  3778. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3779. elseif lb.Parent == nil then
  3780. break
  3781. end
  3782. end
  3783. end))
  3784.  
  3785. game:GetService("Debris"):AddItem(a, 0.1)
  3786.  
  3787. coroutine.resume(coroutine.create(function()
  3788. swait(1)
  3789. lb.Touched:connect(function(hit)
  3790. if hitted == false then
  3791. hitted = true
  3792. lb.Transparency = 1
  3793. lb.Anchored = true
  3794. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3795. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3796. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3797. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3798. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3799. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3800. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3801. CameraEnshaking(1,5)
  3802. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3803. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3804. for i = 0, 9 do
  3805. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3806. end
  3807. for i = 0, 49 do
  3808. swait()
  3809. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3810. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3811. end
  3812. end
  3813. end)
  3814. end))
  3815. end
  3816. Overed = true
  3817. orb:Destroy()
  3818. end))
  3819.  
  3820. attack = false
  3821. end
  3822.  
  3823. function StarfallEX()
  3824. attack = true
  3825. hum.WalkSpeed = 0
  3826. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3827. for i = 0, 10, 0.1 do
  3828. swait()
  3829. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3830. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3831. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3832. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3833. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3835. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3836. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3837. end
  3838. local Overed = false
  3839. CameraEnshaking(2,20)
  3840. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3841. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3842. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3843. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3844. local orb = Instance.new("Part", char)
  3845. orb.Anchored = true
  3846. orb.BrickColor = BrickColor.new("Toothpaste")
  3847. orb.CanCollide = false
  3848. orb.FormFactor = 3
  3849. orb.Name = "Remenant"
  3850. orb.Material = "Neon"
  3851. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3852. orb.Size = Vector3.new(1, 1, 1)
  3853. orb.Transparency = 1
  3854. orb.TopSurface = 0
  3855. orb.BottomSurface = 0
  3856. hum.WalkSpeed = storehumanoidWS
  3857. coroutine.resume(coroutine.create(function()
  3858. for i = 0, 4 do
  3859. swait(15)
  3860. local lb = Instance.new("Part")
  3861. lb.Color = MAINRUINCOLOR.Color
  3862. lb.CanCollide = false
  3863. lb.Material = "Neon"
  3864. lb.Anchored = true
  3865. lb.TopSurface = 0
  3866. lb.BottomSurface = 0
  3867. lb.Transparency = 0
  3868. lb.Size = vt(1,1,1)
  3869. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3870. lb.Anchored = false
  3871. lb.Parent = char
  3872. local thingery = Instance.new("SpecialMesh",lb)
  3873. thingery.MeshType = "Sphere"
  3874. thingery.Scale = vt(50,50,50)
  3875. game:GetService("Debris"):AddItem(lb, 10)
  3876. local bv = Instance.new("BodyVelocity")
  3877. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3878. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3879. bv.Parent = lb
  3880. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3881. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3882. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3883. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3884. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3885. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3886. local hitted = false
  3887. coroutine.resume(coroutine.create(function()
  3888. while true do
  3889. swait(1)
  3890. if lb.Parent ~= nil and hitted == false then
  3891. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3892. elseif lb.Parent == nil then
  3893. break
  3894. end
  3895. end
  3896. end))
  3897.  
  3898. game:GetService("Debris"):AddItem(a, 0.1)
  3899.  
  3900. coroutine.resume(coroutine.create(function()
  3901. swait(1)
  3902. lb.Touched:connect(function(hit)
  3903. if hitted == false then
  3904. hitted = true
  3905. lb.Transparency = 1
  3906. lb.Anchored = true
  3907. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3908. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3909. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3910. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3911. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3912. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3913. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3914. CameraEnshaking(1,5)
  3915. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3916. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3917. for i = 0, 9 do
  3918. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  3919. end
  3920. for i = 0, 99 do
  3921. swait()
  3922. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3923. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  3924. end
  3925. end
  3926. end)
  3927. end))
  3928. end
  3929. Overed = true
  3930. orb:Destroy()
  3931. end))
  3932.  
  3933. attack = false
  3934. end
  3935.  
  3936. function DivineBlast()
  3937. attack = true
  3938. hum.WalkSpeed = 0
  3939. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3940. elocacenter.Anchored = true
  3941. elocacenter.CFrame = sorb.CFrame
  3942. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3943. eloca1.Anchored = true
  3944. eloca1.CFrame = elocacenter.CFrame
  3945. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3946. eloca2.Anchored = true
  3947. eloca2.CFrame = elocacenter.CFrame
  3948. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3949. eloca3.Anchored = true
  3950. eloca3.CFrame = elocacenter.CFrame
  3951. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3952. eloca4.Anchored = true
  3953. eloca4.CFrame = elocacenter.CFrame
  3954. local lookavec = 0
  3955. local speeds = 0
  3956. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3957. for i = 0, 3, 0.1 do
  3958. swait()
  3959. ---
  3960. lookavec = lookavec + 0.1
  3961. speeds = speeds + 10
  3962. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3963. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3964. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3965.  
  3966. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3967. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3968.  
  3969. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3970. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3971.  
  3972. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3973. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3974. ---
  3975. root.CFrame = FaceMouse()[1]
  3976. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3977. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3981. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3982. end
  3983. for i = 0, 3, 0.1 do
  3984. swait()
  3985. ---
  3986. speeds = speeds + 10
  3987. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3988. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3989. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3990.  
  3991. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3992. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3993.  
  3994. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3995. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3996.  
  3997. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3998. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3999. ---
  4000. root.CFrame = FaceMouse()[1]
  4001. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4002. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4006. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4007. end
  4008. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4009. for i = 0, 3, 0.1 do
  4010. swait()
  4011. ---
  4012. speeds = speeds + 10
  4013. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4014. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4015. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4016.  
  4017. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4018. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4019.  
  4020. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4021. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4022.  
  4023. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4024. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4025. ---
  4026. root.CFrame = FaceMouse()[1]
  4027. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4028. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4029. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4032. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4033. end
  4034. coroutine.resume(coroutine.create(function()
  4035. local a = Instance.new("Part",Character)
  4036. a.Name = "Direction"
  4037. a.Anchored = true
  4038. a.BrickColor = bc("White")
  4039. a.Material = "Neon"
  4040. a.Transparency = 0
  4041. a.Shape = "Cylinder"
  4042. a.CanCollide = false
  4043. local a2 = Instance.new("Part",Character)
  4044. a2.Name = "Direction"
  4045. a2.Anchored = true
  4046. a2.BrickColor = bc("Bright yellow")
  4047. a2.Material = "Neon"
  4048. a2.Transparency = 0
  4049. a2.Shape = "Cylinder"
  4050. a2.CanCollide = false
  4051. local b = Instance.new("Part",Character)
  4052. b.Name = "HitDirect"
  4053. b.Anchored = true
  4054. b.BrickColor = bc("Cool yellow")
  4055. b.Material = "Neon"
  4056. b.Transparency = 1
  4057. b.CanCollide = false
  4058. local ray = Ray.new(
  4059. elocacenter.CFrame.p, -- origin
  4060. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4061. )
  4062. local ignore = Character
  4063. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4064. a.BottomSurface = 10
  4065. a.TopSurface = 10
  4066. a2.BottomSurface = 10
  4067. a2.TopSurface = 10
  4068. local distance = (elocacenter.CFrame.p - position).magnitude
  4069. a.Size = Vector3.new(distance, 1, 1)
  4070. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4071. a2.Size = Vector3.new(distance, 1, 1)
  4072. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4073. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4074. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4075. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4076. game:GetService("Debris"):AddItem(a, 10)
  4077. game:GetService("Debris"):AddItem(a2, 10)
  4078. game:GetService("Debris"):AddItem(b, 10)
  4079. local msh = Instance.new("SpecialMesh",a)
  4080. msh.MeshType = "Cylinder"
  4081. msh.Scale = vt(1,2,2)
  4082. local msh2 = Instance.new("SpecialMesh",a2)
  4083. msh2.MeshType = "Cylinder"
  4084. msh2.Scale = vt(1,2.5,2.5)
  4085. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4086. coroutine.resume(coroutine.create(function()
  4087. for i = 0,10,0.1 do
  4088. swait()
  4089. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4090. a.Transparency = a.Transparency + 0.025
  4091. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4092. a2.Transparency = a2.Transparency + 0.05
  4093. end
  4094. a:Destroy()
  4095. a2:Destroy()
  4096. end))
  4097. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4098. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4099. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4100. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4101. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4102. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4103. MagniDamage(b, 25, 40,65, 0, "Normal")
  4104. for i = 0, 49 do
  4105. PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
  4106. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  4107. end
  4108. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4109. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4110. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4111. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4112. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4113. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4114. end))
  4115. game:GetService("Debris"):AddItem(elocacenter, 5)
  4116. hum.WalkSpeed = storehumanoidWS
  4117. attack = false
  4118. end
  4119.  
  4120. function StarDivision()
  4121. attack = true
  4122. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4123. for i = 0, 2, 0.1 do
  4124. swait()
  4125. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4126. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4127. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4128. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4129. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4130. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4131. end
  4132. local orb = Instance.new("Part", char)
  4133. orb.BrickColor = MAINRUINCOLOR
  4134. orb.CanCollide = false
  4135. orb.FormFactor = 3
  4136. orb.Name = "Ring"
  4137. orb.Material = "Neon"
  4138. orb.Size = Vector3.new(1, 1, 1)
  4139. orb.Transparency = 0
  4140. orb.TopSurface = 0
  4141. orb.BottomSurface = 0
  4142. local orbm = Instance.new("SpecialMesh", orb)
  4143. orbm.MeshType = "Sphere"
  4144. orbm.Name = "SizeMesh"
  4145. orbm.Scale = vt(2,2,2)
  4146. local a = Instance.new("Part",workspace)
  4147. a.Name = "Direction"
  4148. a.Anchored = true
  4149. a.BrickColor = bc("Bright red")
  4150. a.Material = "Neon"
  4151. a.Transparency = 1
  4152. a.CanCollide = false
  4153. local ray = Ray.new(
  4154. sorb.CFrame.p, -- origin
  4155. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4156. )
  4157. local ignore = sorb
  4158. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4159. a.BottomSurface = 10
  4160. a.TopSurface = 10
  4161. local distance = (sorb.CFrame.p - position).magnitude
  4162. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4163. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4164. orb.CFrame = a.CFrame
  4165. a:Destroy()
  4166. local bv = Instance.new("BodyVelocity")
  4167. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4168. bv.velocity = orb.CFrame.lookVector*100
  4169. bv.Parent = orb
  4170. local hitted = false
  4171. game:GetService("Debris"):AddItem(orb, 10)
  4172. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4173. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4174. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4175. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4176. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4177. coroutine.resume(coroutine.create(function()
  4178. while true do
  4179. swait(1)
  4180. if orb.Parent ~= nil and hitted == false then
  4181. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4182. elseif orb.Parent == nil then
  4183. break
  4184. end
  4185. end
  4186. end))
  4187. coroutine.resume(coroutine.create(function()
  4188. swait(1)
  4189. orb.Touched:connect(function(hit)
  4190. if hitted == false then
  4191. hitted = true
  4192. game:GetService("Debris"):AddItem(orb, 5)
  4193. orb.Transparency = 1
  4194. orb.Anchored = true
  4195. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4196. elocacenter.Anchored = true
  4197. elocacenter.CFrame = orb.CFrame
  4198. elocacenter.Orientation = vt(0,0,0)
  4199. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4200. eloca1.Anchored = true
  4201. eloca1.CFrame = elocacenter.CFrame
  4202. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4203. eloca2.Anchored = true
  4204. eloca2.CFrame = elocacenter.CFrame
  4205. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4206. eloca3.Anchored = true
  4207. eloca3.CFrame = elocacenter.CFrame
  4208. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4209. eloca4.Anchored = true
  4210. eloca4.CFrame = elocacenter.CFrame
  4211. local lookavec = 0
  4212. local speeds = 0
  4213. CameraEnshaking(1,1)
  4214. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4215. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4216. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4217. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4218. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4219. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4220. for i = 0, 99 do
  4221. swait()
  4222. lookavec = lookavec + 1
  4223. speeds = speeds + 0.1
  4224. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4225. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4226. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4227.  
  4228. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4229. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4230.  
  4231. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4232. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4233.  
  4234. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4235. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4236. end
  4237.  
  4238. for i = 0, 149 do
  4239. swait()
  4240. speeds = speeds + 0.1
  4241. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4242. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4243. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4244.  
  4245. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4246. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4247.  
  4248. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4249. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4250.  
  4251. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4252. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4253. end
  4254. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4255. if v:FindFirstChild('Head') then
  4256. dmg(v)
  4257. end
  4258. end
  4259. CameraEnshaking(7,30)
  4260. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4261. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4262. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4263. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4264. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4265. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4266. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4267. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4268. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4269. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4270. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4271. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4272. for i = 0, 24 do
  4273. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4274. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4275. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4276. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4277. end
  4278. coroutine.resume(coroutine.create(function()
  4279. for i = 0, 499 do
  4280. swait(1)
  4281. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4282. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4283. end
  4284. elocacenter:Destroy()
  4285. eloca1:Destroy()
  4286. eloca2:Destroy()
  4287. eloca3:Destroy()
  4288. eloca4:Destroy()
  4289. end))
  4290. end
  4291. end)
  4292. end))
  4293. attack = false
  4294. end
  4295.  
  4296.  
  4297. function THE_TRUE_POWER_OF_VIOLENCE()
  4298. attack = true
  4299. hum.WalkSpeed = 0
  4300. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4301. for i = 0, 10, 0.1 do
  4302. swait()
  4303. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4304. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4305. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4)
  4306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4309. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4310. end
  4311. local orb = Instance.new("Part", char)
  4312. orb.BrickColor = MAINRUINCOLOR
  4313. orb.CanCollide = false
  4314. orb.FormFactor = 3
  4315. orb.Name = "Ring"
  4316. orb.Material = "Neon"
  4317. orb.Size = Vector3.new(1, 1, 1)
  4318. orb.Transparency = 0
  4319. orb.TopSurface = 0
  4320. orb.BottomSurface = 0
  4321. orb.CFrame = sorb.CFrame
  4322. local orbm = Instance.new("SpecialMesh", orb)
  4323. orbm.MeshType = "Sphere"
  4324. orbm.Name = "SizeMesh"
  4325. orbm.Scale = vt(0,0,0)
  4326. local sbs = Instance.new("BodyPosition", orb)
  4327. sbs.P = 3000
  4328. sbs.D = 1000
  4329. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4330. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4331. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4332. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4333. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4334. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4335. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4336. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4337. for i = 0, 10, 0.1 do
  4338. swait()
  4339. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4340. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4341. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4342. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4343. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4344. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4345. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4346. end
  4347. orb.Anchored = true
  4348. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4349. elocacenter.Anchored = true
  4350. elocacenter.CFrame = orb.CFrame
  4351. elocacenter.Orientation = vt(0,0,0)
  4352. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4353. eloca1.Anchored = true
  4354. eloca1.CFrame = elocacenter.CFrame
  4355. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4356. eloca2.Anchored = true
  4357. eloca2.CFrame = elocacenter.CFrame
  4358. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4359. eloca3.Anchored = true
  4360. eloca3.CFrame = elocacenter.CFrame
  4361. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4362. eloca4.Anchored = true
  4363. eloca4.CFrame = elocacenter.CFrame
  4364. local lookavec = 0
  4365. local speeds = 0
  4366. CameraEnshaking(1,1)
  4367. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4368. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4369. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4370. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4371. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4372. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4373. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4374. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4375. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4376. for i = 0, 99 do
  4377. swait()
  4378. lookavec = lookavec + 2.5
  4379. speeds = speeds + 0.25
  4380. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4381. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4382. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4383.  
  4384. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4385. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4386.  
  4387. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4388. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4389.  
  4390. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4391. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4392. end
  4393.  
  4394. for i = 0, 149 do
  4395. swait()
  4396. speeds = speeds + 0.25
  4397. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4398. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4399. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4400.  
  4401. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4402. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4403.  
  4404. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4405. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4406.  
  4407. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4408. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4409. end
  4410. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4411. for i = 0, 99 do
  4412. swait()
  4413. lookavec = lookavec - 2.5
  4414. speeds = speeds + 0.25
  4415. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4416. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4417. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4418.  
  4419. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4420. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4421.  
  4422. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4423. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4424.  
  4425. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4426. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4427. end
  4428. local scaled = 0.1*75
  4429. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4430. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4431. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4432. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4433. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4434. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4435. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4436. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4437. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4438. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4439. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4440. for i = 0, 10, 0.1 do
  4441. swait()
  4442. scaled = scaled - 0.001*75
  4443. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4444. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4445. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4446. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4447. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4449. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4450. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4451. end
  4452. for x = 0, 4 do
  4453. for i = 0, 9 do
  4454. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4455. end
  4456. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4457. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4458. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4459. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4460. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4461. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4462. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4463. for i = 0, 5, 0.1 do
  4464. swait()
  4465. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4466. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4467. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  4468. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4469. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4471. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4472. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4473. end
  4474. end
  4475. local speedearn = 0
  4476. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4477. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4478. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4479. for i = 0, 30, 0.1 do
  4480. swait()
  4481. scaled = scaled - 0.001*75/10
  4482. speedearn = speedearn + 0.5
  4483. for i = 0, 4 do
  4484. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4485. end
  4486. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4487. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4488. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4489. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4490. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4491. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4496. end
  4497. orb.Transparency = 1
  4498. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4499. if v:FindFirstChild('Head') then
  4500. dmg(v)
  4501. end
  4502. end
  4503. CameraEnshaking(7,30)
  4504. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4505. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4506. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4507. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4508. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4509. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4510. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4511. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4512. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4513. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4514. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4515. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4516. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4517. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4518. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4519. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4520. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4521. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4522. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4523. for i = 0, 99 do
  4524. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4525. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4526. end
  4527. for i = 0, 24 do
  4528. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4529. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4530. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4531. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4532. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4533. end
  4534. game:GetService("Debris"):AddItem(orb, 10)
  4535. hum.WalkSpeed = storehumanoidWS
  4536. attack = false
  4537. end
  4538.  
  4539.  
  4540. function ViolentRing()
  4541. attack = true
  4542. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4543. for i = 0, 2, 0.1 do
  4544. swait()
  4545. local snap = math.random(1,10)
  4546. if snap == 1 then
  4547. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4548. end
  4549. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4550. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4551. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4552. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4553. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4554. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  4555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4557. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4558. RootPart.CFrame = FaceMouse()[1]
  4559. end
  4560. local orb = Instance.new("Part", char)
  4561. orb.BrickColor = MAINRUINCOLOR
  4562. orb.CanCollide = false
  4563. orb.FormFactor = 3
  4564. orb.Name = "Ring"
  4565. orb.Material = "Neon"
  4566. orb.Size = Vector3.new(1, 1, 1)
  4567. orb.Transparency = 0
  4568. orb.TopSurface = 0
  4569. orb.BottomSurface = 0
  4570. local orbm = Instance.new("SpecialMesh", orb)
  4571. orbm.MeshType = "Sphere"
  4572. orbm.Name = "SizeMesh"
  4573. orbm.Scale = vt(2,2,2)
  4574. orb.CFrame = mouse.Hit
  4575. local bv = Instance.new("BodyVelocity")
  4576. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4577. bv.velocity = orb.CFrame.lookVector*100
  4578. bv.Parent = orb
  4579. local hitted = false
  4580. coroutine.resume(coroutine.create(function()
  4581. game:GetService("Debris"):AddItem(orb, 5)
  4582. orb.Transparency = 1
  4583. orb.Anchored = true
  4584. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4585. elocacenter.Anchored = true
  4586. elocacenter.CFrame = orb.CFrame
  4587. elocacenter.Orientation = vt(0,0,0)
  4588. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4589. eloca1.Anchored = true
  4590. eloca1.CFrame = elocacenter.CFrame
  4591. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4592. eloca2.Anchored = true
  4593. eloca2.CFrame = elocacenter.CFrame
  4594. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4595. eloca3.Anchored = true
  4596. eloca3.CFrame = elocacenter.CFrame
  4597. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4598. eloca4.Anchored = true
  4599. eloca4.CFrame = elocacenter.CFrame
  4600. local lookavec = 0
  4601. local speeds = 0
  4602. CameraEnshaking(1,1)
  4603. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4604. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4605. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4606. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4607. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4608. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4609. for i = 0, 24 do
  4610. swait()
  4611. lookavec = lookavec + 3.5
  4612. speeds = speeds + 1
  4613. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4614. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4615. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4616.  
  4617. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4618. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4619.  
  4620. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4621. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4622.  
  4623. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4624. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4625. end
  4626.  
  4627. local risen = 0
  4628. for i = 0, 49 do
  4629. swait()
  4630. risen = risen + 0.05
  4631. speeds = speeds + 0.1
  4632. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4633. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4634. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4635.  
  4636. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4637. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4638.  
  4639. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4640. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4641.  
  4642. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4643. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4644. end
  4645. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4646. if v:FindFirstChild('Head') then
  4647. dmg(v)
  4648. end
  4649. end
  4650. CameraEnshaking(4,10)
  4651. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4652. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4653. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4654. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4655. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4656. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4657. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4658. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4659. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4660. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4661. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4662. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4663. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4664. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4665. for i = 0, 24 do
  4666. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  4667. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4668. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4669. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4670. end
  4671. coroutine.resume(coroutine.create(function()
  4672. wait(10)
  4673. elocacenter:Destroy()
  4674. eloca1:Destroy()
  4675. eloca2:Destroy()
  4676. eloca3:Destroy()
  4677. eloca4:Destroy()
  4678. end))
  4679. end))
  4680. attack = false
  4681. end
  4682.  
  4683. function UniversalCollapse()
  4684. attack = true
  4685. local speedearn = 0
  4686. hum.WalkSpeed = 0
  4687. local sbs = Instance.new("BodyPosition", root)
  4688. sbs.P = 3000
  4689. sbs.D = 1000
  4690. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4691. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4692. bosschatfunc("*Roars*",MAINRUINCOLOR.Color,1)
  4693. CFuncs["EchoSound"].Create("rbxassetid://1286168545", char, 1.5, 1,0,10,0.15,0.5,1)
  4694. CFuncs["EchoSound"].Create("rbxassetid://1286168545", root, 10, 1,0,10,0.15,0.5,1)
  4695. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4696. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4697. for i = 0, 110, 0.1 do
  4698. swait()
  4699. speedearn = speedearn + 0.1
  4700. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4701. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4702. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4703. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4704. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4705. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4706. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4707. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4709. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4710. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4711. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4712. end
  4713. CameraEnshaking(5,50)
  4714. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4715. for i = 0, 2 do
  4716. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4717. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4718. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4719. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4720. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4721. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4722. end
  4723. for i = 0, 49 do
  4724. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4725. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4726. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4727. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4728. end
  4729. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4730. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4731. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4732. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4733. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4734. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4735. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4736. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4737. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4738. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4739. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4740. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4741. for i = 0, 99 do
  4742. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4743. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4744. end
  4745. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4746. if v:FindFirstChild('Head') then
  4747. dmg(v)
  4748. end
  4749. end
  4750. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4751. sbs:Destroy()
  4752. hum.WalkSpeed = storehumanoidWS
  4753. attack = false
  4754. end
  4755.  
  4756.  
  4757. function ChaosEND()
  4758. attack = true
  4759. local speedearn = 0
  4760. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,1)
  4761. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4762. for i = 0, 15, 0.1 do
  4763. swait()
  4764. speedearn = speedearn + 0.25
  4765. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4766. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4767. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4768. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4769. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4770. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4771. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4772. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4773. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4774. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4775. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4776. end
  4777. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,1)
  4778. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4779. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4780. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4781. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4782. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4783. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4784. CameraEnshaking(5,25)
  4785. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4786. if v:FindFirstChild('Head') then
  4787. dmg(v)
  4788. end
  4789. end
  4790. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4791. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4792. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4793. for i = 0, 3, 0.1 do
  4794. swait()
  4795. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4796. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4797. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4798. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4799. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4800. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4801. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4803. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4804. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4805. end
  4806. attack = false
  4807. end
  4808.  
  4809. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4810. local orb = Instance.new("Part", char)
  4811. orb.Anchored = true
  4812. orb.BrickColor = color
  4813. orb.CanCollide = false
  4814. orb.FormFactor = 3
  4815. orb.Name = "Ring"
  4816. orb.Material = "Neon"
  4817. orb.Size = Vector3.new(1, 1, 1)
  4818. orb.Transparency = 0
  4819. orb.TopSurface = 0
  4820. orb.BottomSurface = 0
  4821. local orbm = Instance.new("SpecialMesh", orb)
  4822. orbm.MeshType = "Sphere"
  4823. orb.CFrame = positted
  4824. orbm.Name = "SizeMesh"
  4825. orbm.Scale = vt(1,1,1)
  4826. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4827. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4828. --[[for i = 0, 2 do
  4829. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4830. end]]--
  4831. coroutine.resume(coroutine.create(function()
  4832. wait(timer)
  4833. CameraEnshaking(3,ShakePower)
  4834. orb.Transparency = 1
  4835. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4836. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4837. --[[for i = 0, 4 do
  4838. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4839. end]]--
  4840. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4841. wait(3)
  4842. orb:Destroy()
  4843. end))
  4844. end
  4845.  
  4846. function orb_spawn(positted,timer)
  4847. local randomcol = math.random(1,2)
  4848. local orb = Instance.new("Part", char)
  4849. orb.Anchored = true
  4850. if randomcol == 1 then
  4851. orb.BrickColor = BrickColor.new("White")
  4852. elseif randomcol == 2 then
  4853. orb.BrickColor = BrickColor.new("Really black")
  4854. end
  4855. orb.CanCollide = false
  4856. orb.FormFactor = 3
  4857. orb.Name = "Ring"
  4858. orb.Material = "Neon"
  4859. orb.Size = Vector3.new(1, 1, 1)
  4860. orb.Transparency = 0
  4861. orb.TopSurface = 0
  4862. orb.BottomSurface = 0
  4863. local orbm = Instance.new("SpecialMesh", orb)
  4864. orbm.MeshType = "Sphere"
  4865. orb.CFrame = positted
  4866. orbm.Name = "SizeMesh"
  4867. orbm.Scale = vt(1,1,1)
  4868. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4869. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4870. for i = 0, 2 do
  4871. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4872. end
  4873. coroutine.resume(coroutine.create(function()
  4874. wait(timer)
  4875. CameraEnshaking(3,2)
  4876. orb.Transparency = 1
  4877. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4878. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4879. for i = 0, 4 do
  4880. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4881. end
  4882. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4883. wait(3)
  4884. orb:Destroy()
  4885. end))
  4886. end
  4887.  
  4888. function scattercorrupt()
  4889. attack = true
  4890. local rot = 0
  4891. local randomrotations = math.random(1,2)
  4892. local lookv = 2.5
  4893. local power = 5
  4894. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4895. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4896. for i = 0, 9 do
  4897. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4898. end
  4899. bosschatfunc("*Laughs*",MAINRUINCOLOR.Color,1)
  4900. CFuncs["EchoSound"].Create("rbxassetid://357202240", char, 1.5, 1,0,10,0.15,0.5,1)
  4901. CFuncs["EchoSound"].Create("rbxassetid://357202240", root, 10, 1,0,10,0.15,0.5,1)
  4902. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.75)
  4903. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.5)
  4904. local hite = Instance.new("Part", char)
  4905. hite.Anchored = true
  4906. hite.CanCollide = false
  4907. hite.FormFactor = 3
  4908. hite.Name = "Ring"
  4909. hite.Material = "Neon"
  4910. hite.Size = Vector3.new(1, 1, 1)
  4911. hite.Transparency = 1
  4912. hite.TopSurface = 0
  4913. hite.BottomSurface = 0
  4914. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4915. local rem = Instance.new("Part", char)
  4916. rem.Anchored = true
  4917. rem.CanCollide = false
  4918. rem.FormFactor = 3
  4919. rem.Name = "Ring"
  4920. rem.Material = "Neon"
  4921. rem.Size = Vector3.new(1, 1, 1)
  4922. rem.Transparency = 1
  4923. rem.TopSurface = 0
  4924. rem.BottomSurface = 0
  4925. rem.CFrame = hite.CFrame
  4926. local rem2 = rem:Clone()
  4927. rem2.Parent = char
  4928. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4929. local rem3 = rem:Clone()
  4930. rem3.Parent = char
  4931. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4932. local rem4 = rem:Clone()
  4933. rem4.Parent = char
  4934. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4935. hite:Destroy()
  4936. coroutine.resume(coroutine.create(function()
  4937. for i = 0, 24 do
  4938. swait(1)
  4939. if randomrotations == 1 then
  4940. rot = rot + 1
  4941. elseif randomrotations == 2 then
  4942. rot = rot - 1
  4943. end
  4944. power = power + 0.5
  4945. lookv = lookv + 7.5
  4946. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4947. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4948. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4949. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4950. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4951. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4952. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4953. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4954. end
  4955. end))
  4956. attack = false
  4957. end
  4958. function yinyangi()
  4959. attack = true
  4960. for i = 0, 2, 0.1 do
  4961. swait()
  4962. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4963. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4964. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4967. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4968. end
  4969. local bv = Instance.new("BodyVelocity")
  4970. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4971. bv.velocity = root.CFrame.lookVector*175
  4972. bv.Parent = root
  4973. for Rotations = 0, 9 do
  4974. for i = 0, 1, 0.5 do
  4975. swait()
  4976. bv.velocity = root.CFrame.lookVector*175
  4977. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4978. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4980. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4982. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4983. end
  4984. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4985. for i = 0, 1, 0.5 do
  4986. swait()
  4987. bv.velocity = root.CFrame.lookVector*175
  4988. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4989. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4994. end
  4995. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4996. for i = 0, 1, 0.5 do
  4997. swait()
  4998. bv.velocity = root.CFrame.lookVector*175
  4999. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5000. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5002. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5003. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5004. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5005. end
  5006. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5007. for i = 0, 1, 0.5 do
  5008. swait()
  5009. bv.velocity = root.CFrame.lookVector*175
  5010. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5011. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5012. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5013. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5014. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5015. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5016. end
  5017. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5018. end
  5019. bv:Destroy()
  5020. attack = false
  5021. end
  5022.  
  5023. function createBGCircle(size,parent,color)
  5024. local bgui = Instance.new("BillboardGui",parent)
  5025. bgui.Size = UDim2.new(size, 0, size, 0)
  5026. local imgc = Instance.new("ImageLabel",bgui)
  5027. imgc.BackgroundTransparency = 1
  5028. imgc.ImageTransparency = 0
  5029. imgc.Size = UDim2.new(1,0,1,0)
  5030. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5031. imgc.ImageColor3 = color
  5032. return bgui,imgc
  5033. end
  5034.  
  5035. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5036. local bgui,imgc = createBGCircle(size,guipar,color)
  5037. bgui.AlwaysOnTop = true
  5038. imgc.Image = "rbxassetid://" ..img
  5039. local rrot = math.random(1,2)
  5040. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5041. coroutine.resume(coroutine.create(function()
  5042. for i = 0, 24*delay do
  5043. swait()
  5044. if rotationenabled == true then
  5045. if rrot == 1 then
  5046. imgc.Rotation = imgc.Rotation + rotsp
  5047. elseif rrot == 2 then
  5048. imgc.Rotation = imgc.Rotation - rotsp
  5049. end
  5050. end
  5051. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5052. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5053. end
  5054. bgui:Destroy()
  5055. end))
  5056. end
  5057. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5058. for i, v in pairs(mw2:GetChildren()) do
  5059. if v:IsA("Part") then
  5060. v.BrickColor = one
  5061. v.Material = "Neon"
  5062. end
  5063. end
  5064. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5065. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5066. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5067. tr1.Color = ColorSequence.new(one.Color)
  5068. tr2.Color = ColorSequence.new(one.Color)
  5069. tr3.Color = ColorSequence.new(one.Color)
  5070. for i, v in pairs(mw1:GetChildren()) do
  5071. if v:IsA("Part") then
  5072. if secondaryenabled == false then
  5073. v.Transparency = 1
  5074. elseif secondaryenabled == true then
  5075. v.Transparency = 0
  5076. end
  5077. v.BrickColor = two
  5078. v.Material = "Neon"
  5079. end
  5080. end
  5081. if secondaryenabled == false then
  5082. tl1.Enabled = false
  5083. tl2.Enabled = false
  5084. tl3.Enabled = false
  5085. elseif secondaryenabled == true then
  5086. tl1.Enabled = true
  5087. tl2.Enabled = true
  5088. tl3.Enabled = true
  5089. end
  5090. tl1.Color = ColorSequence.new(two.Color)
  5091. tl2.Color = ColorSequence.new(two.Color)
  5092. tl3.Color = ColorSequence.new(two.Color)
  5093. for i, v in pairs(m:GetChildren()) do
  5094. if v:IsA("Part") then
  5095. v.BrickColor = three
  5096. v.Material = "Ice"
  5097. end
  5098. end
  5099. for i, v in pairs(m2:GetChildren()) do
  5100. if v:IsA("Part") then
  5101. v.BrickColor = four
  5102. v.Material = "Ice"
  5103. end
  5104. end
  5105. for i, v in pairs(m3:GetChildren()) do
  5106. if v:IsA("Part") then
  5107. v.BrickColor = five
  5108. v.Material = "Neon"
  5109. end
  5110. end
  5111. for i, v in pairs(extrawingmod1:GetChildren()) do
  5112. if v:IsA("Part") then
  5113. v.Transparency = exonetran
  5114. v.BrickColor = exone
  5115. v.Material = "Neon"
  5116. end
  5117. end
  5118. for i, v in pairs(extrawingmod2:GetChildren()) do
  5119. if v:IsA("Part") then
  5120. v.Transparency = extwotran
  5121. v.BrickColor = extwo
  5122. v.Material = "Neon"
  5123. end
  5124. end
  5125. end
  5126.  
  5127.  
  5128. function normalmog()
  5129. attack = true
  5130. hum.WalkSpeed = 0
  5131. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5132. for i = 0,6,0.1 do
  5133. swait()
  5134. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5135. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5136. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  5137. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  5138. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5140. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5141. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5142. end
  5143. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5144. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5145. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5146. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5147. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5148. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5149. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5150. rainbowmode = false
  5151. chaosmode = false
  5152. ModeOfGlitch = 1
  5153. storehumanoidWS = 16
  5154. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5155. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5156. CameraEnshaking(5,2.5)
  5157. MAINRUINCOLOR = BrickColor.new("Really red")
  5158. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5159. for i = 0, 49 do
  5160. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5161. end
  5162. for i = 0, 24 do
  5163. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  5164. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  5165. end
  5166. for i = 0,3,0.1 do
  5167. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5168. end
  5169. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5170. for i = 0,2,0.1 do
  5171. swait()
  5172. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5173. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5176. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5177. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5178. end
  5179. hum.WalkSpeed = storehumanoidWS
  5180. attack = false
  5181. end
  5182.  
  5183. function attackone()
  5184. attack = true
  5185. local keptcolor = MAINRUINCOLOR
  5186. for i = 0,1,0.1 do
  5187. swait()
  5188. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5189. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5190. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5191. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5192. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5193. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5194. end
  5195. local distlook = 5
  5196. coroutine.resume(coroutine.create(function()
  5197. for i = 0, 4 do
  5198. swait(2)
  5199. CameraEnshaking(2,3)
  5200. local hite = Instance.new("Part", char)
  5201. hite.Anchored = true
  5202. hite.CanCollide = false
  5203. hite.FormFactor = 3
  5204. hite.Name = "Ring"
  5205. hite.Material = "Neon"
  5206. hite.Size = Vector3.new(1, 1, 1)
  5207. hite.Transparency = 1
  5208. hite.TopSurface = 0
  5209. hite.BottomSurface = 0
  5210. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5211. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5212. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5213. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5214. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5215. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5216. for i = 0, 14 do
  5217. local rsiz = math.random(5,20)
  5218. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5219. end
  5220. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5221. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5222. game:GetService("Debris"):AddItem(hite, 5)
  5223. distlook = distlook + 10
  5224. end
  5225. end))
  5226. for i = 0,1,0.1 do
  5227. swait()
  5228. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5229. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5230. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5231. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5232. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5233. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5234. end
  5235. attack = false
  5236. end
  5237.  
  5238. function attacktwo()
  5239. attack = true
  5240. hum.WalkSpeed = 2
  5241. local keptcolor = MAINRUINCOLOR
  5242. bosschatfunc("DIE, DIE, DIE!",MAINRUINCOLOR.Color,1)
  5243. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5244. CFuncs["EchoSound"].Create("rbxassetid://506001681", char, 1.5, 1,0,10,0.15,0.5,1)
  5245. CFuncs["EchoSound"].Create("rbxassetid://506001681", root, 10, 1,0,10,0.15,0.5,1)
  5246. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5247. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5248. for i = 0, 14 do
  5249. end
  5250. for i = 0,1,0.1 do
  5251. swait()
  5252. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5253. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5254. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5257. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5258. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5259. end
  5260. for i = 0, 1 do
  5261. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5262. for i = 0,1,0.6 do
  5263. swait()
  5264. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5265. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5269. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5270. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5271. end
  5272. for i = 0,1,0.6 do
  5273. swait()
  5274. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5275. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5276. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5277. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5279. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5280. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5281. end
  5282. for i = 0,1,0.6 do
  5283. swait()
  5284. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5285. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5286. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5289. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5290. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5291. end
  5292. for i = 0,1,0.6 do
  5293. swait()
  5294. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5295. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5296. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5299. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5300. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5301. end
  5302. local rot = 0
  5303. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5304. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5305. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5306. CreateMesh(dis,"Sphere",10,1,10)
  5307. local at1 = Instance.new("Attachment",dis)
  5308. at1.Position = vt(-5,0,0)
  5309. local at2 = Instance.new("Attachment",dis)
  5310. at2.Position = vt(5,0,0)
  5311. local trl = Instance.new('Trail',wed)
  5312. trl.Attachment0 = at1
  5313. trl.Attachment1 = at2
  5314. trl.Texture = "rbxassetid://1049219073"
  5315. trl.LightEmission = 1
  5316. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5317. trl.Color = ColorSequence.new(dis.Color)
  5318. trl.Lifetime = 0.6
  5319. local a = Instance.new("Part",workspace)
  5320. a.Name = "Direction"
  5321. a.Anchored = true
  5322. a.BrickColor = bc("Bright red")
  5323. a.Material = "Neon"
  5324. a.Transparency = 1
  5325. a.CanCollide = false
  5326. local ray = Ray.new(
  5327. dis.CFrame.p, -- origin
  5328. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5329. )
  5330. local ignore = dis
  5331. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5332. a.BottomSurface = 10
  5333. a.TopSurface = 10
  5334. local distance = (dis.CFrame.p - position).magnitude
  5335. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5336. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5337. dis.CFrame = a.CFrame
  5338. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5339. a:Destroy()
  5340. local bv = Instance.new("BodyVelocity")
  5341. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5342. bv.velocity = dis.CFrame.lookVector*250
  5343. bv.Parent = dis
  5344. game:GetService("Debris"):AddItem(dis, 5)
  5345. local hitted = false
  5346. coroutine.resume(coroutine.create(function()
  5347. dis.Touched:connect(function(hit)
  5348. if hitted == false and hit.Parent ~= char then
  5349. hitted = true
  5350. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5351. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5352. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5353. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5354. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5355. coroutine.resume(coroutine.create(function()
  5356. for i = 0, 9 do
  5357. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5358. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5359. local at1 = Instance.new("Attachment",disr)
  5360. at1.Position = vt(-5,0,0)
  5361. local at2 = Instance.new("Attachment",disr)
  5362. at2.Position = vt(5,0,0)
  5363. local trl = Instance.new('Trail',disr)
  5364. trl.Attachment0 = at1
  5365. trl.FaceCamera = true
  5366. trl.Attachment1 = at2
  5367. trl.Texture = "rbxassetid://2342682798"
  5368. trl.LightEmission = 1
  5369. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5370. trl.Color = ColorSequence.new(keptcolor.Color)
  5371. trl.Lifetime = 0.5
  5372. local bv = Instance.new("BodyVelocity")
  5373. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5374. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5375. bv.Parent = disr
  5376. local val = 0
  5377. coroutine.resume(coroutine.create(function()
  5378. swait(30)
  5379. for i = 0, 9 do
  5380. swait()
  5381. val = val + 0.1
  5382. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5383. end
  5384. game:GetService("Debris"):AddItem(disr, 3)
  5385. end))
  5386. end
  5387. local eff = Instance.new("ParticleEmitter",dis)
  5388. eff.Texture = "rbxassetid://2273224484"
  5389. eff.LightEmission = 1
  5390. eff.Color = ColorSequence.new(keptcolor.Color)
  5391. eff.Rate = 50
  5392. eff.Lifetime = NumberRange.new(0.5,2)
  5393. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5394. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5395. eff.Speed = NumberRange.new(20,250)
  5396. eff.Drag = 5
  5397. eff.Rotation = NumberRange.new(-500,500)
  5398. eff.VelocitySpread = 9000
  5399. eff.RotSpeed = NumberRange.new(-50,50)
  5400. wait(0.25)
  5401. eff.Enabled = false
  5402. end))
  5403. for i = 0, 9 do
  5404. end
  5405. for i = 0, 19 do
  5406. end
  5407. coroutine.resume(coroutine.create(function()
  5408. for i = 0, 19 do
  5409. swait()
  5410. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5411. end
  5412. hum.CameraOffset = vt(0,0,0)
  5413. end))
  5414. dis.Anchored = true
  5415. dis.Transparency = 1
  5416. wait(8)
  5417. dis:Destroy()
  5418. end
  5419. end)
  5420. end))
  5421. rot = rot - 15
  5422. end
  5423. for i = 0,2,0.1 do
  5424. swait()
  5425. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5426. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5430. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5431. end
  5432. attack = false
  5433. hum.WalkSpeed = storehumanoidWS
  5434. end
  5435.  
  5436. function attackthree()
  5437. attack = true
  5438. local keptcolor = MAINRUINCOLOR
  5439. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5440. bosschatfunc("LIGHTNING FLAME DRAGON MODE!",MAINRUINCOLOR.Color,1)
  5441. CFuncs["EchoSound"].Create("rbxassetid://905829513", char, 1.5, 1,0,10,0.15,0.5,1)
  5442. CFuncs["EchoSound"].Create("rbxassetid://905829513", root, 10, 1,0,10,0.15,0.5,1)
  5443. for i = 0,2,0.1 do
  5444. swait()
  5445. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5446. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5447. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5448. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5449. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5450. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5451. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5452. end
  5453. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5454. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5455. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5456. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5457. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5458. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5459. for i = 0, 24 do
  5460. end
  5461. for i = 0,4,0.1 do
  5462. swait()
  5463. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5464. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5465. CreateMesh(dis,"Sphere",1,1,1)
  5466. dis.Anchored = true
  5467. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5468. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5469. coroutine.resume(coroutine.create(function()
  5470. swait(30)
  5471. dis.Transparency = 1
  5472. coroutine.resume(coroutine.create(function()
  5473. for i = 0, 19 do
  5474. swait()
  5475. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5476. end
  5477. hum.CameraOffset = vt(0,0,0)
  5478. end))
  5479. coroutine.resume(coroutine.create(function()
  5480. local eff = Instance.new("ParticleEmitter",dis)
  5481. eff.Texture = "rbxassetid://2273224484"
  5482. eff.LightEmission = 1
  5483. eff.Color = ColorSequence.new(dis.Color)
  5484. eff.Rate = 500000
  5485. eff.Lifetime = NumberRange.new(0.5,2)
  5486. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5487. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5488. eff.Speed = NumberRange.new(50,450)
  5489. eff.Drag = 5
  5490. eff.Rotation = NumberRange.new(-500,500)
  5491. eff.VelocitySpread = 9000
  5492. eff.RotSpeed = NumberRange.new(-50,50)
  5493. wait(0.125)
  5494. eff.Enabled = false
  5495. end))
  5496. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5497. for i = 0, 2 do
  5498. --slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5499. end
  5500. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5501. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5502. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5503. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5504. end))
  5505. game:GetService("Debris"):AddItem(dis, 5)
  5506. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5507. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5508. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5509. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5510. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5511. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5512. end
  5513. attack = false
  5514. end
  5515. ----------------------------------- Abilities
  5516.  
  5517. function ExtinctiveHeartbreak()
  5518. local targetted = nil
  5519. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5520. targetted = mouse.Target.Parent
  5521. end
  5522. if targetted ~= nil then
  5523. attack = true
  5524. bosschatfunc("I AM THE MIGHTIEST!!",MAINRUINCOLOR.Color,1)
  5525. CFuncs["EchoSound"].Create("rbxassetid://357202141", char, 1.5, 1,0,10,0.15,0.5,1)
  5526. CFuncs["EchoSound"].Create("rbxassetid://357202141", root, 10, 1,0,10,0.15,0.5,1)
  5527. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5528. for i = 0, 9 do
  5529. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5530. end
  5531. for i = 0, 24 do
  5532. --
  5533. end
  5534. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5535. local originalpos = root.CFrame
  5536. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5537. for i = 0, 9 do
  5538. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5539. end
  5540. for i = 0, 24 do
  5541. end
  5542. hum.WalkSpeed = 0
  5543. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5544. local radm = math.random(1,3)
  5545. if radm == 1 then
  5546. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5547. elseif radm == 2 then
  5548. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5549. elseif radm == 3 then
  5550. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5551. end
  5552. for i = 0,2,0.1 do
  5553. swait()
  5554. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  5555. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  5556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  5557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5558. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5559. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  5560. end
  5561. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5562. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5563. for i = 0,2,0.1 do
  5564. swait()
  5565. coroutine.resume(coroutine.create(function()
  5566. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5567. for i,v in pairs(targetted:GetChildren()) do
  5568. if v:IsA("Part") or v:IsA("MeshPart") then
  5569. v.Velocity = vt(0,0,0)
  5570. end
  5571. end
  5572. end))
  5573. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5574. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5575. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5577. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5578. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  5579. end
  5580. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5581. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5582. for i = 0, 1 do
  5583. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5584. end
  5585. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5586. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5587. for i = 0,4,0.1 do
  5588. swait()
  5589. coroutine.resume(coroutine.create(function()
  5590. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5591. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5592. local at1 = Instance.new("Attachment",dis)
  5593. at1.Position = vt(-25000,0,0)
  5594. local at2 = Instance.new("Attachment",dis)
  5595. at2.Position = vt(25000,0,0)
  5596. local trl = Instance.new('Trail',dis)
  5597. trl.Attachment0 = at1
  5598. trl.FaceCamera = true
  5599. trl.Attachment1 = at2
  5600. trl.Texture = "rbxassetid://1049219073"
  5601. trl.LightEmission = 1
  5602. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5603. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5604. trl.Lifetime = 5
  5605. local bv = Instance.new("BodyVelocity")
  5606. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5607. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5608. bv.Parent = dis
  5609. game:GetService("Debris"):AddItem(dis, 5)
  5610. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5611. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5612. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5613. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5614. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5615. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5616. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5617. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5618. for i = 0, 2 do
  5619. --slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  5620. end
  5621. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5622. for i,v in pairs(targetted:GetChildren()) do
  5623. if v:IsA("Part") or v:IsA("MeshPart") then
  5624. v.Velocity = vt(0,0,0)
  5625. end
  5626. end
  5627. end))
  5628. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5629. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5630. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5631. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5632. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5633. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  5634. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5635. end
  5636. hum.CameraOffset = vt(0,0,0)
  5637. for i = 0, 49 do
  5638. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5639. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5640. local at1 = Instance.new("Attachment",dis)
  5641. at1.Position = vt(-50000,0,0)
  5642. local at2 = Instance.new("Attachment",dis)
  5643. at2.Position = vt(50000,0,0)
  5644. local trl = Instance.new('Trail',dis)
  5645. trl.Attachment0 = at1
  5646. trl.FaceCamera = true
  5647. trl.Attachment1 = at2
  5648. trl.Texture = "rbxassetid://1049219073"
  5649. trl.LightEmission = 1
  5650. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5651. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5652. trl.Lifetime = 5
  5653. local bv = Instance.new("BodyVelocity")
  5654. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5655. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5656. bv.Parent = dis
  5657. game:GetService("Debris"):AddItem(dis, 5)
  5658. end
  5659. for i = 0, 49 do
  5660. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5661. --slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  5662. end
  5663. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5664. for i = 0, 1 do
  5665. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5666. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5667. end
  5668. for i = 0, 4 do
  5669. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5670. end
  5671. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5672. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5673. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5674. dmg(targetted)
  5675. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5676. for i = 0, 9 do
  5677. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5678. end
  5679. for i = 0, 24 do
  5680. end
  5681. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5682. root.CFrame = originalpos
  5683. for i = 0, 9 do
  5684. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5685. end
  5686. for i = 0, 24 do
  5687. end
  5688. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5689. attack = false
  5690. hum.WalkSpeed = storehumanoidWS
  5691. end
  5692. end
  5693.  
  5694. function CorruptionEvent()
  5695. attack = true
  5696. hum.WalkSpeed = 0
  5697. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  5698. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  5699. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  5700. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5701. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5702. local keptcolor = MAINRUINCOLOR
  5703. for i = 0,4,0.1 do
  5704. swait()
  5705. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5706. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5707. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5708. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5709. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5711. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5712. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5713. end
  5714. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5715. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5716. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5717. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5718. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5719. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5720. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5721. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5722. hum.CameraOffset = vt(0,0,0)
  5723. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5724. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5725. for i = 0, 24 do
  5726. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5727. end
  5728. local rrot = 0
  5729. coroutine.resume(coroutine.create(function()
  5730. for i = 0, 4 do
  5731. rrot = rrot + 45
  5732. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5733. xa.Anchored = true
  5734. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5735. xb.Anchored = true
  5736. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5737. xc.Anchored = true
  5738. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5739. xd.Anchored = true
  5740. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5741. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5742. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5743. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5744. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5745. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5746. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5747. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5748. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5749. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5750. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5751. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5752. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5753. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5754. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5755. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5756. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5757. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5758. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5759. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5760. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5761. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5762. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5763. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5764. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5765. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5766. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5767. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5768. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5769. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5770. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5771. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5772. game:GetService("Debris"):AddItem(xa, 5)
  5773. game:GetService("Debris"):AddItem(xb, 5)
  5774. game:GetService("Debris"):AddItem(xc, 5)
  5775. game:GetService("Debris"):AddItem(xd, 5)
  5776. coroutine.resume(coroutine.create(function()
  5777. for i = 0, 19 do
  5778. swait()
  5779. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5780. end
  5781. hum.CameraOffset = vt(0,0,0)
  5782. end))
  5783. swait(9)
  5784. end
  5785. end))
  5786. for i = 0,2,0.1 do
  5787. swait()
  5788. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5789. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  5790. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5791. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5792. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5793. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5794. end
  5795. attack = false
  5796. hum.WalkSpeed = storehumanoidWS
  5797. end
  5798.  
  5799. function EndGROUND()
  5800. attack = true
  5801. hum.WalkSpeed = 0
  5802. bosschatfunc("IS THAT YOUR BEST!",MAINRUINCOLOR.Color,1)
  5803. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5804. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5805. CFuncs["EchoSound"].Create("rbxassetid://357202032", char, 1.5, 1,0,10,0.15,0.5,1)
  5806. CFuncs["EchoSound"].Create("rbxassetid://357202032", root, 10, 1,0,10,0.15,0.5,1)
  5807. local keptcolor = MAINRUINCOLOR
  5808. for i = 0,4,0.1 do
  5809. swait()
  5810. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5811. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5812. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5813. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5814. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5815. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5817. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5818. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5819. end
  5820. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5821. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5822. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5823. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5824. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5825. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5826. coroutine.resume(coroutine.create(function()
  5827. local shval = 10
  5828. for i = 0, 99 do
  5829. swait()
  5830. shval = shval - 0.1
  5831. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5832. end
  5833. hum.CameraOffset = vt(0,0,0)
  5834. end))
  5835. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5836. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5837. for i = 0, 24 do
  5838. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5839. end
  5840. local rrot = 0
  5841. local xam = 1
  5842. coroutine.resume(coroutine.create(function()
  5843. for i = 0, 14 do
  5844. --swait()
  5845. rrot = rrot + 40*xam
  5846. xam = xam + 0.25
  5847. local bonus = xam
  5848. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5849. xa.Anchored = true
  5850. xa.Color = Color3.new(0,0,0)
  5851. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5852. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5853. local xc = 0
  5854. coroutine.resume(coroutine.create(function()
  5855. for i = 0, 99 do
  5856. swait()
  5857. xc = xc + 0.01
  5858. xa.Color = Color3.new(xc,0,0)
  5859. end
  5860. xa.Transparency = 1
  5861. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5862. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5863. for i = 0, 9 do
  5864. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5865. end
  5866. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5867. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  5868. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5869. game:GetService("Debris"):AddItem(xa, 5)
  5870. coroutine.resume(coroutine.create(function()
  5871. for i = 0, 19 do
  5872. swait()
  5873. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5874. end
  5875. hum.CameraOffset = vt(0,0,0)
  5876. end))
  5877. end))
  5878. end
  5879. end))
  5880. for i = 0,2,0.1 do
  5881. swait()
  5882. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5883. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
  5884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5886. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5887. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5888. end
  5889. attack = false
  5890. hum.WalkSpeed = storehumanoidWS
  5891. end
  5892.  
  5893. function HeavenlyDisk()
  5894. attack = true
  5895. hum.WalkSpeed = 2
  5896. local keptcolor = MAINRUINCOLOR
  5897. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5898. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5899. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5900. local radm = math.random(1,3)
  5901. if radm == 1 then
  5902. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  5903. elseif radm == 2 then
  5904. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  5905. elseif radm == 3 then
  5906. bosschatfunc("FREAKING DIE ALREADY!",MAINRUINCOLOR.Color,1)
  5907. end
  5908. for i = 0, 14 do
  5909. --
  5910. end
  5911. for i = 0,2,0.1 do
  5912. swait()
  5913. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5914. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5915. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5918. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5919. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5920. end
  5921. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5922. for i = 0,1,0.6 do
  5923. swait()
  5924. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5925. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5926. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5927. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5928. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5929. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5930. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5931. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5932. end
  5933. for i = 0,1,0.6 do
  5934. swait()
  5935. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5936. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5937. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5942. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5943. end
  5944. for i = 0,1,0.6 do
  5945. swait()
  5946. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5947. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5948. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5949. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5950. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5951. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5952. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5953. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5954. end
  5955. for i = 0,1,0.6 do
  5956. swait()
  5957. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5958. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5959. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5963. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5964. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5965. end
  5966. local rot = 15
  5967. for i = 0, 2 do
  5968. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5969. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5970. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5971. CreateMesh(dis,"Sphere",10,1,10)
  5972. local at1 = Instance.new("Attachment",dis)
  5973. at1.Position = vt(-5,0,0)
  5974. local at2 = Instance.new("Attachment",dis)
  5975. at2.Position = vt(5,0,0)
  5976. local trl = Instance.new('Trail',wed)
  5977. trl.Attachment0 = at1
  5978. trl.Attachment1 = at2
  5979. trl.Texture = "rbxassetid://1049219073"
  5980. trl.LightEmission = 1
  5981. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5982. trl.Color = ColorSequence.new(dis.Color)
  5983. trl.Lifetime = 0.6
  5984. local a = Instance.new("Part",workspace)
  5985. a.Name = "Direction"
  5986. a.Anchored = true
  5987. a.BrickColor = bc("Bright red")
  5988. a.Material = "Neon"
  5989. a.Transparency = 1
  5990. a.CanCollide = false
  5991. local ray = Ray.new(
  5992. dis.CFrame.p, -- origin
  5993. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5994. )
  5995. local ignore = dis
  5996. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5997. a.BottomSurface = 10
  5998. a.TopSurface = 10
  5999. local distance = (dis.CFrame.p - position).magnitude
  6000. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6001. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6002. dis.CFrame = a.CFrame
  6003. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6004. a:Destroy()
  6005. local bv = Instance.new("BodyVelocity")
  6006. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6007. bv.velocity = dis.CFrame.lookVector*250
  6008. bv.Parent = dis
  6009. game:GetService("Debris"):AddItem(dis, 5)
  6010. local hitted = false
  6011. coroutine.resume(coroutine.create(function()
  6012. dis.Touched:connect(function(hit)
  6013. if hitted == false and hit.Parent ~= char then
  6014. hitted = true
  6015. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6016. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6017. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6018. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6019. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6020. coroutine.resume(coroutine.create(function()
  6021. for i = 0, 9 do
  6022. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6023. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6024. local at1 = Instance.new("Attachment",disr)
  6025. at1.Position = vt(-2,0,0)
  6026. local at2 = Instance.new("Attachment",disr)
  6027. at2.Position = vt(2,0,0)
  6028. local trl = Instance.new('Trail',disr)
  6029. trl.Attachment0 = at1
  6030. trl.FaceCamera = true
  6031. trl.Attachment1 = at2
  6032. trl.Texture = "rbxassetid://2342682798"
  6033. trl.LightEmission = 1
  6034. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6035. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6036. trl.Lifetime = 0.5
  6037. local bv = Instance.new("BodyVelocity")
  6038. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6039. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6040. bv.Parent = disr
  6041. local val = 0
  6042. coroutine.resume(coroutine.create(function()
  6043. swait(30)
  6044. for i = 0, 9 do
  6045. swait()
  6046. val = val + 0.1
  6047. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6048. end
  6049. game:GetService("Debris"):AddItem(disr, 3)
  6050. end))
  6051. end
  6052. local eff = Instance.new("ParticleEmitter",dis)
  6053. eff.Texture = "rbxassetid://2273224484"
  6054. eff.LightEmission = 1
  6055. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6056. eff.Rate = 500000
  6057. eff.Lifetime = NumberRange.new(0.5,2)
  6058. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6059. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6060. eff.Speed = NumberRange.new(20,250)
  6061. eff.Drag = 5
  6062. eff.Rotation = NumberRange.new(-500,500)
  6063. eff.VelocitySpread = 9000
  6064. eff.RotSpeed = NumberRange.new(-50,50)
  6065. wait(0.25)
  6066. eff.Enabled = false
  6067. end))
  6068. for i = 0, 9 do
  6069. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6070. end
  6071. for i = 0, 19 do
  6072. --
  6073. end
  6074. coroutine.resume(coroutine.create(function()
  6075. for i = 0, 19 do
  6076. swait()
  6077. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6078. end
  6079. hum.CameraOffset = vt(0,0,0)
  6080. end))
  6081. dis.Anchored = true
  6082. dis.Transparency = 1
  6083. wait(8)
  6084. dis:Destroy()
  6085. end
  6086. end)
  6087. end))
  6088. rot = rot - 15
  6089. end
  6090. for i = 0,2,0.1 do
  6091. swait()
  6092. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  6093. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  6094. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6095. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6096. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6097. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6098. end
  6099. attack = false
  6100. hum.WalkSpeed = storehumanoidWS
  6101. end
  6102.  
  6103. function RapidBurst()
  6104. attack = true
  6105. hum.WalkSpeed = 0
  6106. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6107. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6108. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 4, 1,0,10,0.15,0.5,1)
  6109. bosschatfunc("DIE!!",MAINRUINCOLOR.Color,2)
  6110. local keptcolor = MAINRUINCOLOR
  6111. for i = 0,8,0.1 do
  6112. swait()
  6113. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6114. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  6115. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6116. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  6117. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  6118. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6119. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6120. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6121. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6122. end
  6123. for i = 0, 99 do
  6124. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6125. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6126. local at1 = Instance.new("Attachment",dis)
  6127. at1.Position = vt(-25000,0,0)
  6128. local at2 = Instance.new("Attachment",dis)
  6129. at2.Position = vt(25000,0,0)
  6130. local trl = Instance.new('Trail',dis)
  6131. trl.Attachment0 = at1
  6132. trl.FaceCamera = true
  6133. trl.Attachment1 = at2
  6134. trl.Texture = "rbxassetid://1049219073"
  6135. trl.LightEmission = 1
  6136. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6137. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6138. trl.Lifetime = 5
  6139. local bv = Instance.new("BodyVelocity")
  6140. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6141. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6142. bv.Parent = dis
  6143. game:GetService("Debris"):AddItem(dis, 5)
  6144. end
  6145. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6146. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6147. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6148. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6149. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6150. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6151. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6152. CFuncs["Sound"].Create("rbxassetid://2362924591", root, 10,1)
  6153. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6154. CFuncs["Sound"].Create("rbxassetid://1475585844", char, 5,1)
  6155. hum.CameraOffset = vt(0,0,0)
  6156. for i = 0, 24 do
  6157. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  6158. end
  6159. local distam = 0
  6160. coroutine.resume(coroutine.create(function()
  6161. for i = 0, 99 do
  6162. wait()
  6163. distam = distam + 1
  6164. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6165. xa.Anchored = true
  6166. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6167. game:GetService("Debris"):AddItem(xa, 5)
  6168. for i = 0, 4 do
  6169. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  6170. end
  6171. coroutine.resume(coroutine.create(function()
  6172. local eff = Instance.new("ParticleEmitter",xa)
  6173. eff.Texture = "rbxassetid://2273224484"
  6174. eff.LightEmission = 1
  6175. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6176. eff.Rate = 500000
  6177. eff.Lifetime = NumberRange.new(1,3)
  6178. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6179. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6180. eff.Speed = NumberRange.new(50,500)
  6181. eff.Drag = 5
  6182. eff.Rotation = NumberRange.new(-500,500)
  6183. eff.VelocitySpread = 9000
  6184. eff.RotSpeed = NumberRange.new(-50,50)
  6185. wait(0.25)
  6186. eff.Enabled = false
  6187. end))
  6188. coroutine.resume(coroutine.create(function()
  6189. for i = 0, 19 do
  6190. swait()
  6191. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6192. end
  6193. hum.CameraOffset = vt(0,0,0)
  6194. end))
  6195. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6196. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6197. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6198. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6199. end
  6200. end))
  6201. attack = false
  6202. hum.WalkSpeed = storehumanoidWS
  6203. end
  6204.  
  6205.  
  6206. function FallenOrbs()
  6207. attack = true
  6208. hum.WalkSpeed = 2
  6209. local keptcolor = MAINRUINCOLOR
  6210. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6211. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6212. local radm = math.random(1,3)
  6213. if radm == 1 then
  6214. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6215. elseif radm == 2 then
  6216. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  6217. elseif radm == 3 then
  6218. bosschatfunc("FREAKING DIE ALREADY!!",MAINRUINCOLOR.Color,1)
  6219. end
  6220. coroutine.resume(coroutine.create(function()
  6221. for i = 0, 29 do
  6222. swait(2)
  6223. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6224. dis.Anchored = true
  6225. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6226. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6227. CreateMesh(dis,"Sphere",2,2,2)
  6228. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6229. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White"))
  6230. coroutine.resume(coroutine.create(function()
  6231. wait(0.5)
  6232. dis.Anchored = false
  6233. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6234. local at1 = Instance.new("Attachment",dis)
  6235. at1.Position = vt(-1,0,0)
  6236. local at2 = Instance.new("Attachment",dis)
  6237. at2.Position = vt(1,0,0)
  6238. local trl = Instance.new('Trail',dis)
  6239. trl.Attachment0 = at1
  6240. trl.FaceCamera = true
  6241. trl.Attachment1 = at2
  6242. trl.Texture = "rbxassetid://1049219073"
  6243. trl.LightEmission = 1
  6244. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6245. trl.Color = ColorSequence.new(dis.Color)
  6246. trl.Lifetime = 0.6
  6247. local a = Instance.new("Part",workspace)
  6248. a.Name = "Direction"
  6249. a.Anchored = true
  6250. a.BrickColor = bc("Bright red")
  6251. a.Material = "Neon"
  6252. a.Transparency = 1
  6253. a.CanCollide = false
  6254. local ray = Ray.new(
  6255. dis.CFrame.p, -- origin
  6256. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6257. )
  6258. local ignore = dis
  6259. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6260. a.BottomSurface = 10
  6261. a.TopSurface = 10
  6262. local distance = (dis.CFrame.p - position).magnitude
  6263. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6264. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6265. dis.CFrame = a.CFrame
  6266. a:Destroy()
  6267. local bv = Instance.new("BodyVelocity")
  6268. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6269. bv.velocity = dis.CFrame.lookVector*500
  6270. bv.Parent = dis
  6271. game:GetService("Debris"):AddItem(dis, 5)
  6272. local hitted = false
  6273. coroutine.resume(coroutine.create(function()
  6274. dis.Touched:connect(function(hit)
  6275. if hitted == false and hit.Parent ~= char then
  6276. hitted = true
  6277. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6278. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6279. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6280. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6281. coroutine.resume(coroutine.create(function()
  6282. for i = 0, 4 do
  6283. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6284. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6285. local at1 = Instance.new("Attachment",disr)
  6286. at1.Position = vt(-10,0,0)
  6287. local at2 = Instance.new("Attachment",disr)
  6288. at2.Position = vt(10,0,0)
  6289. local trl = Instance.new('Trail',disr)
  6290. trl.Attachment0 = at1
  6291. trl.FaceCamera = true
  6292. trl.Attachment1 = at2
  6293. trl.Texture = "rbxassetid://2342682798"
  6294. trl.LightEmission = 1
  6295. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6296. trl.Color = ColorSequence.new(disr.Color)
  6297. trl.Lifetime = 0.5
  6298. local bv = Instance.new("BodyVelocity")
  6299. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6300. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6301. bv.Parent = disr
  6302. local val = 0
  6303. coroutine.resume(coroutine.create(function()
  6304. swait(30)
  6305. for i = 0, 9 do
  6306. swait()
  6307. val = val + 0.1
  6308. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6309. end
  6310. game:GetService("Debris"):AddItem(disr, 3)
  6311. end))
  6312. end
  6313. local eff = Instance.new("ParticleEmitter",dis)
  6314. eff.Texture = "rbxassetid://2273224484"
  6315. eff.LightEmission = 1
  6316. eff.Color = ColorSequence.new(dis.Color)
  6317. eff.Rate = 500000
  6318. eff.Lifetime = NumberRange.new(0.5,2)
  6319. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6320. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6321. eff.Speed = NumberRange.new(20,250)
  6322. eff.Drag = 5
  6323. eff.Rotation = NumberRange.new(-500,500)
  6324. eff.VelocitySpread = 9000
  6325. eff.RotSpeed = NumberRange.new(-50,50)
  6326. wait(0.5)
  6327. eff.Enabled = false
  6328. end))
  6329. for i = 0, 4 do
  6330. --slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6331. end
  6332. coroutine.resume(coroutine.create(function()
  6333. for i = 0, 19 do
  6334. swait()
  6335. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6336. end
  6337. hum.CameraOffset = vt(0,0,0)
  6338. end))
  6339. dis.Anchored = true
  6340. dis.Transparency = 1
  6341. wait(8)
  6342. dis:Destroy()
  6343. end
  6344. end)
  6345. end))
  6346. end))
  6347. end
  6348. end))
  6349. for i = 0,9,0.1 do
  6350. swait()
  6351. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6352. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
  6353. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
  6354. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  6355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  6356. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  6357. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6358. end
  6359. attack = false
  6360. hum.WalkSpeed = storehumanoidWS
  6361. end
  6362.  
  6363. function Taunt()
  6364. ATTACK = true
  6365. local LAUGH = nil
  6366. coroutine.resume(coroutine.create(function()
  6367. repeat
  6368. Swait()
  6369. 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)
  6370. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6371. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  6372. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6373. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6374. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6375. until LAUGH ~= nil
  6376. repeat
  6377. Swait()
  6378. LAUGH.Parent = Head
  6379. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6380. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6381. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(180), RAD(10), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6382. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6383. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6384. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6385. until LAUGH.Playing == false
  6386. ATTACK = false
  6387. end))
  6388. wait(0.1)
  6389. LAUGH = CreateSound(300208779, Head, 10, 1, false)
  6390. sick:Resume()
  6391. end
  6392.  
  6393. function Shell()
  6394. ATTACK = true
  6395. Rooted = false
  6396. local GYRO = IT("BodyGyro",RootPart)
  6397. GYRO.D = 750
  6398. GYRO.P = 20000
  6399. GYRO.MaxTorque = VT(0,40000000,0)
  6400. for i=0, 1, 0.1 / Animation_Speed do
  6401. Swait()
  6402. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  6403. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6404. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6405. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6406. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6407. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6408. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6409. end
  6410. GYRO:remove()
  6411. CreateSound(696483710, Gun, 5, 1, false)
  6412. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  6413. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  6414. WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  6415. for i=0, 0.3, 0.1 / Animation_Speed do
  6416. Swait()
  6417. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6418. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6419. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6420. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6421. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6422. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6423. end
  6424. ATTACK = false
  6425. Rooted = false
  6426. end
  6427.  
  6428. function EquinoxOrbs()
  6429. hum.WalkSpeed = 0
  6430. attack = true
  6431. for i = 0,1,0.1 do
  6432. swait()
  6433. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  6434. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6435. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6438. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6439. end
  6440. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6441. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6442. for i = 0, 24 do
  6443. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
  6444. end
  6445. bosschatfunc("TASTE MY POWER!!",MAINRUINCOLOR.Color,1)
  6446. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 4, 1,0,10,0.15,0.5,1)
  6447. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6448. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6449. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6450. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6451. for i = 0,4,0.1 do
  6452. swait()
  6453. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6454. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6455. CreateMesh(dis,"Sphere",1,1,1)
  6456. dis.Anchored = true
  6457. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6458. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6459. CreateMesh(dis2,"Sphere",1,1,1)
  6460. dis2.Anchored = true
  6461. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6462. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6463. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6464. coroutine.resume(coroutine.create(function()
  6465. swait(60)
  6466. dis.Transparency = 1
  6467. dis2.Transparency = 1
  6468. coroutine.resume(coroutine.create(function()
  6469. for i = 0, 19 do
  6470. swait()
  6471. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6472. end
  6473. hum.CameraOffset = vt(0,0,0)
  6474. end))
  6475. coroutine.resume(coroutine.create(function()
  6476. local eff = Instance.new("ParticleEmitter",dis)
  6477. eff.Texture = "rbxassetid://2273224484"
  6478. eff.LightEmission = 1
  6479. eff.Color = ColorSequence.new(dis.Color)
  6480. eff.Rate = 500000
  6481. eff.Lifetime = NumberRange.new(0.5,2)
  6482. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6483. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6484. eff.Speed = NumberRange.new(50,450)
  6485. eff.Drag = 5
  6486. eff.Rotation = NumberRange.new(-500,500)
  6487. eff.VelocitySpread = 9000
  6488. eff.RotSpeed = NumberRange.new(-50,50)
  6489. local eff2 = eff:Clone()
  6490. eff2.Parent = dis2
  6491. eff2.LightEmission = 0
  6492. eff2.Color = ColorSequence.new(dis2.Color)
  6493. wait(0.25)
  6494. eff.Enabled = false
  6495. eff2.Enabled = false
  6496. end))
  6497. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6498. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6499. CFuncs["EchoSound"].Create("rbxassetid://165970126", char, 4, 1,0,10,0.15,0.5,1)
  6500. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6501. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6502. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6503. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6504. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6505. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6506. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6507. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6508. end))
  6509. game:GetService("Debris"):AddItem(dis, 5)
  6510. game:GetService("Debris"):AddItem(dis2, 5)
  6511. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  6512. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6515. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6516. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6517. end
  6518. attack = false
  6519. hum.WalkSpeed = storehumanoidWS
  6520. end
  6521. function FallenDEMISE()
  6522. attack = true
  6523. hum.WalkSpeed = 0
  6524. local keptcolor = MAINRUINCOLOR
  6525. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6526. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6527. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6528. for i = 0, 15, 0.1 do
  6529. swait()
  6530. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6531. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6532. local at1 = Instance.new("Attachment",dis)
  6533. at1.Position = vt(-25000,0,0)
  6534. local at2 = Instance.new("Attachment",dis)
  6535. at2.Position = vt(25000,0,0)
  6536. local trl = Instance.new('Trail',dis)
  6537. trl.Attachment0 = at1
  6538. trl.FaceCamera = true
  6539. trl.Attachment1 = at2
  6540. trl.Texture = "rbxassetid://1049219073"
  6541. trl.LightEmission = 1
  6542. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6543. trl.Color = ColorSequence.new(dis.Color)
  6544. trl.Lifetime = 5
  6545. local bv = Instance.new("BodyVelocity")
  6546. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6547. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6548. bv.Parent = dis
  6549. game:GetService("Debris"):AddItem(dis, 1)
  6550. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6551. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6552. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6553. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6554. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6555. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6557. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6558. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6559. end
  6560. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6561. for i = 0, 30, 0.1 do
  6562. swait()
  6563. coroutine.resume(coroutine.create(function()
  6564. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6565. if v:FindFirstChild('Head') then
  6566. dmg(v)
  6567. end
  6568. end
  6569. end))
  6570. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6571. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6572. local at1 = Instance.new("Attachment",dis)
  6573. at1.Position = vt(-50000,0,0)
  6574. local at2 = Instance.new("Attachment",dis)
  6575. at2.Position = vt(50000,0,0)
  6576. local trl = Instance.new('Trail',dis)
  6577. trl.Attachment0 = at1
  6578. trl.FaceCamera = true
  6579. trl.Attachment1 = at2
  6580. trl.Texture = "rbxassetid://1049219073"
  6581. trl.LightEmission = 1
  6582. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6583. trl.Color = ColorSequence.new(dis.Color)
  6584. trl.Lifetime = 10
  6585. local bv = Instance.new("BodyVelocity")
  6586. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6587. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6588. bv.Parent = dis
  6589. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6590. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6591. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6592. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  6593. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  6594. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  6595. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  6596. for i = 0, 2 do
  6597. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  6598. end
  6599. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6600. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6601. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6603. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6604. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6605. end
  6606. attack = false
  6607. hum.WalkSpeed = storehumanoidWS
  6608. end
  6609. function NeptuniaWings()
  6610. local mainpart = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
  6611. local mwingweld = CreateWeld(mainpart,tors,mainpart,0,-0.5,-0.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  6612.  
  6613. local wng1a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6614. CreateMesh(wng1a,"Wedge",0.1,4,4)
  6615. CreateWeld(wng1a,mainpart,wng1a,0,-2,-2.5,math.rad(0),math.rad(70),math.rad(5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  6616. local wng2a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6617. CreateMesh(wng2a,"Wedge",0.1,4,4)
  6618. CreateWeld(wng2a,mainpart,wng2a,0,-2,-2.5,math.rad(0),math.rad(-70),math.rad(-5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  6619. local wng1b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6620. CreateMesh(wng1b,"Wedge",0.1,1.5,3)
  6621. CreateWeld(wng1b,mainpart,wng1b,0,-1,-2.25,math.rad(180),math.rad(-110),math.rad(-5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  6622. local wng2b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6623. CreateMesh(wng2b,"Wedge",0.1,1.5,3)
  6624. CreateWeld(wng2b,mainpart,wng2b,0,-1,-2.25,math.rad(180),math.rad(110),math.rad(5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  6625. end
  6626.  
  6627. function MagicMissiles()
  6628. ATTACK = true
  6629. Rooted = true
  6630. local SELECTING = true
  6631. local SPOTS = {}
  6632. coroutine.resume(coroutine.create(function()
  6633. local LOOP = 0
  6634. repeat
  6635. LOOP = LOOP + 1
  6636. Swait()
  6637. if LOOP >= 10 then
  6638. LOOP = 0
  6639. for i = 1, #SPOTS do
  6640. if SPOTS[i] ~= nil then
  6641. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6642. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6643. end
  6644. end
  6645. end
  6646. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  6647. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6648. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6649. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6650. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6651. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6652. until SELECTING == false
  6653. Rooted = false
  6654. repeat
  6655. LOOP = LOOP + 1
  6656. Swait()
  6657. if LOOP >= 10 then
  6658. LOOP = 0
  6659. for i = 1, #SPOTS do
  6660. if SPOTS[i] ~= nil then
  6661. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6662. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6663. end
  6664. end
  6665. end
  6666. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  6667. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  6668. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6669. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6670. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6671. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6672. until ATTACK == false
  6673. end))
  6674. repeat
  6675. repeat Swait() until HOLD == true
  6676. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  6677. if DIST > 65 then
  6678. DIST = 65
  6679. end
  6680. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  6681. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  6682. if HITFLOOR ~= nil then
  6683. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  6684. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  6685. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6686. end
  6687. repeat Swait() until HOLD == false
  6688. until #SPOTS == 5
  6689. SELECTING = false
  6690. for i = 1, #SPOTS do
  6691. if SPOTS[i] ~= nil then
  6692. local POS = SPOTS[i]
  6693. coroutine.resume(coroutine.create(function()
  6694. local MISSILE = IT("Model",Effects)
  6695. MISSILE.Name = "Missile"
  6696. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  6697. MakeForm(BASEPART,"Cyl")
  6698. MISSILE.PrimaryPart = BASEPART
  6699. BASEPART.CFrame = POS*CF(0,-30*3,0)
  6700. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  6701. MakeForm(HEAD,"Ball")
  6702. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  6703. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  6704. MakeForm(TAIL,"Cyl")
  6705. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  6706. for i = 1, 10 do
  6707. Swait()
  6708. for _, c in pairs(MISSILE:GetChildren()) do
  6709. if c.ClassName == "Part" then
  6710. c.Transparency = c.Transparency - 1/10
  6711. end
  6712. end
  6713. end
  6714. for i = 1, 15*1.5 do
  6715. Swait()
  6716. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  6717. end
  6718. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  6719. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  6720. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  6721. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6722. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6723. MISSILE:remove()
  6724. end))
  6725. end
  6726. end
  6727. wait(0.6)
  6728. ATTACK = false
  6729. Rooted = false
  6730. end
  6731. function ExplosiveLightBall()
  6732. if basiccooldown >= 5 then
  6733. local spart = Instance.new("Part",workspace)
  6734. local msh = Instance.new("SpecialMesh",spart)
  6735. msh.MeshType = "Sphere"
  6736. local sa = Instance.new("Sound",hed)
  6737. sa.SoundId = "rbxassetid://203691467"
  6738. sa.Pitch = 0.775
  6739. sa.Volume = 1
  6740. sa.Looped = false
  6741. local sa1 = Instance.new("Sound",hed)
  6742. sa1.SoundId = "rbxassetid://200633529"
  6743. sa1.Pitch = 0.75
  6744. sa1.Volume = 1
  6745. sa1.Looped = false
  6746. sa1:Play()
  6747. local sans1 = Instance.new("Sound",hed)
  6748. sans1.SoundId = "rbxassetid://200633529"
  6749. sans1.Pitch = 0.725
  6750. sans1.Volume = 1
  6751. sans1.Looped = false
  6752. sans1:Play()
  6753. spart.Size = vt(1,1,1)
  6754. spart.BrickColor = BrickColor.new("Bright violet")
  6755. spart.Material = "Neon"
  6756. spart.Transparency = 1
  6757. spart.Anchored = true
  6758. spart.CanCollide = false
  6759. spart.Position = hed.Position + vt(0,20,0)
  6760. local value = 2.5
  6761. for i = 0, 24 do
  6762. spart.Transparency = spart.Transparency - 0.05
  6763. value = value - 0.05
  6764. msh.Scale = msh.Scale + vt(value,value,value)
  6765. wait()
  6766. end
  6767. sa:Play()
  6768. spart.Anchored = false
  6769. local bv = Instance.new("BodyVelocity")
  6770. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6771. bv.velocity = mouse.Hit.lookVector *125
  6772. bv.Parent = spart
  6773. wait(0.1)
  6774. pewdiepie=spart.Touched:connect(function(hit) Explode(20,spart) end)
  6775. end
  6776.  
  6777. function Chaosbegone()
  6778. attack = true
  6779. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,3)
  6780. for i = 0, 10, 0.1 do
  6781. swait()
  6782. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  6783. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  6784. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6785. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6786. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  6787. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  6788. end
  6789. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,3)
  6790. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6791. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  6792. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  6793. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  6794. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  6795. CameraEnshaking(5, 25)
  6796. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  6797. if v:FindFirstChild("Head") then
  6798. dmg(v)
  6799. end
  6800. end
  6801. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  6802. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  6803. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  6804. for i = 0, 3, 0.1 do
  6805. swait()
  6806. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  6807. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  6808. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  6809. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  6810. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  6811. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  6812. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6813. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6814. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  6815. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  6816. end
  6817. attack = false
  6818. end
  6819. end
  6820. -------------------------------------
  6821.  
  6822. Humanoid.Animator.Parent = nil
  6823.  
  6824. -------------------------------------
  6825.  
  6826. local attacktype = 1
  6827. mouse.Button1Down:connect(function()
  6828. if attack == false and attacktype == 1 then
  6829. attacktype = 2
  6830. attackone()
  6831. elseif attack == false and attacktype == 2 then
  6832. attacktype = 3
  6833. attacktwo()
  6834. elseif attack == false and attacktype == 3 then
  6835. attacktype = 1
  6836. attackthree()
  6837. elseif attack == false and attacktype == 4 then
  6838. attacktype = 1
  6839. --attackfour()
  6840. end
  6841. end)
  6842. mouse.KeyDown:connect(function(k)
  6843. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6844. --normalmog() ---Disabled due to crashing... only in VSB
  6845. ModeOfGlitch = 1
  6846. storehumanoidWS = 16
  6847. hum.WalkSpeed = 16
  6848. rainbowmode = false
  6849. chaosmode = false
  6850. newTheme("rbxassetid://550578451",48.6,1,1.25)
  6851. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6852. MAINRUINCOLOR = BrickColor.new("Really red")
  6853. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6854. end
  6855. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6856. ModeOfGlitch = 2
  6857. storehumanoidWS = 16
  6858. hum.WalkSpeed = 16
  6859. rainbowmode = false
  6860. chaosmode = false
  6861. RecolorTextAndRename("FROST HYPERION",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6862. newTheme("rbxassetid://1579308042",0,1,1.25)
  6863. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6864. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6865. end
  6866. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6867. ModeOfGlitch = 3
  6868. storehumanoidWS = 16
  6869. hum.WalkSpeed = 16
  6870. rainbowmode = false
  6871. chaosmode = false
  6872. RecolorTextAndRename("VIRUS HYPERION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6873. newTheme("rbxassetid://1533368028",58.15,0.98,1.25)
  6874. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6875. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6876. end
  6877. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6878. ModeOfGlitch = 4
  6879. storehumanoidWS = 16
  6880. hum.WalkSpeed = 16
  6881. rainbowmode = false
  6882. chaosmode = true
  6883. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6884. newTheme("rbxassetid://777625426",0,1.01,1.25)
  6885. MAINRUINCOLOR = BrickColor.new("Really black")
  6886. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6887. end
  6888. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6889. ModeOfGlitch = 5
  6890. storehumanoidWS = 16
  6891. hum.WalkSpeed = 16
  6892. rainbowmode = false
  6893. chaosmode = false
  6894. RecolorTextAndRename("ERROR HYPERION",Color3.new(0,0,0),Color3.new(0,4,0),"SciFi")
  6895. newTheme("rbxassetid://870457266",0,1,1)
  6896. MAINRUINCOLOR = BrickColor.new("White")
  6897. RecolorThing(MAINRUINCOLOR,BrickColor.new("Green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6898. end
  6899. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6900. ModeOfGlitch = 6
  6901. storehumanoidWS = 100
  6902. hum.WalkSpeed = 100
  6903. rainbowmode = false
  6904. chaosmode = false
  6905. RecolorTextAndRename("MURDER HYPERION",Color3.new(1,0,0),Color3.new(1,0,0),"Fantasy")
  6906. newTheme("rbxassetid://411780091",0,1.01,1.25)
  6907. MAINRUINCOLOR = BrickColor.new("Crimson")
  6908. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6909. end
  6910. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6911. ModeOfGlitch = 8
  6912. storehumanoidWS = 140
  6913. hum.WalkSpeed = 140
  6914. rainbowmode = false
  6915. chaosmode = false
  6916. RecolorTextAndRename("DESTINY HYPERION",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6917. newTheme("rbxassetid://1585109345",0,1.01,1.25)
  6918. MAINRUINCOLOR = BrickColor.new("Alder")
  6919. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6920. end
  6921. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6922. ModeOfGlitch = 9
  6923. storehumanoidWS = 150
  6924. hum.WalkSpeed = 150
  6925. rainbowmode = false
  6926. chaosmode = false
  6927. RecolorTextAndRename("BRUTAL HYPERION",Color3.new(5,0,0),Color3.new(0,0,0),"Arcade")
  6928. newTheme("rbxassetid://838051647",0,1.01,2)
  6929. MAINRUINCOLOR = BrickColor.new("Alder")
  6930. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6931. end
  6932. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  6933. ModeOfGlitch = 10
  6934. storehumanoidWS = 75
  6935. hum.WalkSpeed = 75
  6936. rainbowmode = false
  6937. chaosmode = false
  6938. RecolorTextAndRename("EVIL HYPERION",Color3.new(0,0,0),Color3.new(5,0,0),"Arcade")
  6939. newTheme("rbxassetid://1296518458",0,1,1)
  6940. MAINRUINCOLOR = BrickColor.new("Crimson")
  6941. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6942. end
  6943. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6944. ModeOfGlitch = 8889
  6945. storehumanoidWS = 180
  6946. hum.WalkSpeed = 180
  6947. rainbowmode = false
  6948. chaosmode = false
  6949. RecolorTextAndRename("CALAMITY HYPERION",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6950. newTheme("rbxassetid://1618176509",0,1,1)
  6951. MAINRUINCOLOR = BrickColor.new("Lilac")
  6952. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6953. end
  6954. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6955. ModeOfGlitch = 55469696922
  6956. storehumanoidWS = 275
  6957. hum.WalkSpeed = 275
  6958. rainbowmode = false
  6959. chaosmode = false
  6960. RecolorTextAndRename("COSMIC HYPERION",Color3.new(0.25,0,0.1),Color3.new(0.25,0,0.1),"Arcade")
  6961. newTheme("rbxassetid://1524504025",0,1.005,1)
  6962. MAINRUINCOLOR = BrickColor.new("Alder")
  6963. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6964. end
  6965. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6966. ModeOfGlitch = 4367677813
  6967. storehumanoidWS = 225
  6968. hum.WalkSpeed = 225
  6969. rainbowmode = false
  6970. chaosmode = false
  6971. RecolorTextAndRename("BRIGHTNESS HYPERION",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6972. newTheme("rbxassetid://1126561168",0,1.01,1.25)
  6973. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6974. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6975. end
  6976. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6977. ModeOfGlitch = 9999999921111
  6978. storehumanoidWS = 300
  6979. hum.WalkSpeed = 300
  6980. rainbowmode = false
  6981. chaosmode = false
  6982. RecolorTextAndRename("OMEGA HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6983. newTheme("rbxassetid://2024346699",0,1.01,1.25)
  6984. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6985. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6986. end
  6987. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6988. ModeOfGlitch = 999999999556
  6989. storehumanoidWS = 500
  6990. hum.WalkSpeed = 500
  6991. rainbowmode = false
  6992. chaosmode = false
  6993. RecolorTextAndRename("INSANE HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6994. newTheme("rbxassetid://601578010",0,1,1)
  6995. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6996. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6997. end
  6998. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6999. ModeOfGlitch = 1264532489
  7000. storehumanoidWS = 250
  7001. hum.WalkSpeed = 250
  7002. rainbowmode = false
  7003. chaosmode = false
  7004. RecolorTextAndRename("FALLEN HYPERION",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7005. newTheme("rbxassetid://919231299",0,1,1)
  7006. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7007. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7008. end
  7009. if k == "l" and mutedtog == false then
  7010. mutedtog = true
  7011. kan.Volume = 0
  7012. elseif k == "l" and mutedtog == true then
  7013. mutedtog = false
  7014. kan.Volume = 1.25
  7015. end
  7016. if k == "p" and toggleTag == false then
  7017. toggleTag = true
  7018. modet.TextTransparency = 0
  7019. modet.TextStrokeTransparency = 0
  7020. elseif k == "p" and toggleTag == true then
  7021. toggleTag = false
  7022. modet.TextTransparency = 1
  7023. modet.TextStrokeTransparency = 1
  7024. end
  7025. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7026. ExtinctiveHeartbreak()
  7027. elseif k == "c" and attack == false and ModeOfGlitch == 1 then
  7028. FallenOrbs()
  7029. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7030. HeavenlyDisk()
  7031. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  7032. PureOrb()
  7033. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7034. CorruptionEvent()
  7035. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  7036. MagicMissiles()
  7037. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  7038. CorruptBlink()
  7039. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7040. ChaosEND()
  7041. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7042. attacktwo()
  7043. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7044. ChaosGroundStrike()
  7045. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  7046. HeavenlyDisk()
  7047. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  7048. FallenOrbs()
  7049. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7050. RapidBurst()
  7051. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  7052. attackone()
  7053. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  7054. Chaosbegone()
  7055. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7056. DivineLights()
  7057. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7058. EquinoxOrbs()
  7059. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7060. yinyangi()
  7061. elseif k == "x" and attack == false and ModeOfGlitch == 10 then
  7062. Taunt()
  7063. elseif k == "c" and attack == false and ModeOfGlitch == 10 then
  7064. Shell()
  7065. elseif k == "v" and attack == false and ModeOfGlitch == 10 then
  7066. ExplosiveLightBall()
  7067. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7068. attackone()
  7069. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  7070. UniversalCollapse()
  7071. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7072. FallenOrbs()
  7073. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  7074. FallenOrbs()
  7075. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7076. EquinoxOrbs()
  7077. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7078. EndGROUND()
  7079. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  7080. StarDivision()
  7081. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7082. FallenOrbs()
  7083. end
  7084. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7085. FallenDEMISE()
  7086. end
  7087. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7088. EndGROUND()
  7089. end
  7090. end)
  7091.  
  7092. --[[coroutine.resume(coroutine.create(function()
  7093. while true do
  7094. swait(2)
  7095. if chaosmode == true then
  7096. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7097. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7098. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7099. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7100. for i, v in pairs(mw1:GetChildren()) do
  7101. if v:IsA("Part") then
  7102. v.Transparency = 0.75
  7103. v.BrickColor = BrickColor.random()
  7104. v.Material = "Neon"
  7105. end
  7106. end
  7107. for i, v in pairs(m2:GetChildren()) do
  7108. if v:IsA("Part") then
  7109. v.BrickColor = BrickColor.random()
  7110. v.Material = "Neon"
  7111. end
  7112. end
  7113. end
  7114. end
  7115. end))]]--
  7116. Humanoid.Name = "STARGLITCHER"
  7117. Humanoid.MaxHealth = math.huge
  7118. Humanoid.Health = math.huge
  7119. Instance.new("ForceField",char).Visible = false
  7120.  
  7121. local bguis = Instance.new("BillboardGui",tors)
  7122. bguis.Size = UDim2.new(25, 0, 25, 0)
  7123. local imgca = Instance.new("ImageLabel",bguis)
  7124. imgca.BackgroundTransparency = 1
  7125. imgca.ImageTransparency = 1
  7126. imgca.Size = UDim2.new(1,0,1,0)
  7127. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7128. imgca.ImageColor3 = Color3.new(0,0,0)
  7129.  
  7130. idleanim=.4
  7131. while true do
  7132. if mutedtog == false then
  7133. kan.Volume = currentVol
  7134. elseif mutedtog == true then
  7135. kan.Volume = 0
  7136. end
  7137. kan.PlaybackSpeed = currentPitch
  7138. kan.Pitch = currentPitch
  7139. kan.SoundId = currentThemePlaying
  7140. kan.Looped = true
  7141. kan.Parent = char
  7142. kan:Resume()
  7143. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7144. imgca.ImageTransparency = 1
  7145. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7146. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7147. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7148. end
  7149. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7150. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7151. coroutine.resume(coroutine.create(function()
  7152. if chaosmode == true then
  7153. for i, v in pairs(mw1:GetChildren()) do
  7154. if v:IsA("Part") then
  7155. v.Transparency = 0
  7156. v.BrickColor = BrickColor.random()
  7157. v.Material = "Neon"
  7158. end
  7159. end
  7160. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7161. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7162. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7163. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7164. end
  7165. end))
  7166. if chaosmode == false then
  7167. modet.Position = UDim2.new(0,0,0,0)
  7168. modet.Rotation = -5 * math.cos(sine / 32)
  7169. techc.Rotation = techc.Rotation + 1
  7170. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7171. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7172. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7173. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7174. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7175. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7176. else
  7177. techc.Rotation = techc.Rotation + 1
  7178. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7179. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7180. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7181. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7182. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7183. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7184. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7185. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7186. end
  7187. CameraManager()
  7188. swait()
  7189. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  7190. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  7191. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  7192. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  7193. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  7194. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  7195. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  7196. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  7197. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  7198. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  7199. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  7200. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  7201. sine = sine + change
  7202. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7203. local velderp=RootPart.Velocity.y
  7204. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7205. if equipped==true or equipped==false then
  7206. if attack==false then
  7207. idle=idle+1
  7208. else
  7209. idle=0
  7210. end
  7211. if idle>=500 then
  7212. if attack==false then
  7213. --Sheath()
  7214. end
  7215. end
  7216. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7217. Anim="Jump"
  7218. if attack==false then
  7219. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  7220. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  7221. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  7222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7223. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  7224. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  7225. end
  7226. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7227. Anim="Fall"
  7228. if attack==false then
  7229. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  7230. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  7231. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  7232. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7233. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  7234. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  7235. end
  7236. elseif torvel<1 and hitfloor~=nil then
  7237. Anim="Idle"
  7238. if attack==false then
  7239. if ModeOfGlitch == 1 then
  7240. local snap = math.random(1,10)
  7241. if snap == 1 then
  7242. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  7243. end
  7244. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  7245. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7246. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  7247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  7248. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  7249. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  7250. elseif ModeOfGlitch == 2 then
  7251. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  7252. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  7254. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  7255. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7256. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7257. elseif ModeOfGlitch == 3 then
  7258. local snap = math.random(1,32)
  7259. if snap == 1 then
  7260. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  7261. end
  7262. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  7263. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7264. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  7265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7266. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  7267. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  7268. elseif ModeOfGlitch == 4 then
  7269. local snap = math.random(1,5)
  7270. if snap == 1 then
  7271. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  7272. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  7273. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  7274. end
  7275. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  7276. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  7277. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7279. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  7280. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  7281. elseif ModeOfGlitch == 5 then
  7282. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  7283. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  7284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  7286. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  7287. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7288. elseif ModeOfGlitch == 6 then
  7289. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  7290. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  7291. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7292. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7293. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  7294. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  7295. elseif ModeOfGlitch == 8 then
  7296. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  7297. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  7298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  7299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  7300. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7301. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7302. elseif ModeOfGlitch == 9 then
  7303. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7304. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  7307. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7308. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7309. elseif ModeOfGlitch == 10 then
  7310. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7311. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7314. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  7315. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  7316. elseif ModeOfGlitch == 8889 then
  7317. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  7318. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  7319. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  7320. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  7321. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  7322. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  7323. elseif ModeOfGlitch == 1264532489 then
  7324. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  7325. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  7326. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7327. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7328. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  7329. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7330. elseif ModeOfGlitch == 9999999921111 then
  7331. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  7332. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  7333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  7334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7335. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  7336. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  7337. elseif ModeOfGlitch == 4367677813 then
  7338. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  7339. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  7340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
  7341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7342. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  7343. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  7344. elseif ModeOfGlitch == 55469696922 then
  7345. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7346. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7347. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7348. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7349. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  7350. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7351. elseif ModeOfGlitch == 999999999556 then
  7352. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  7353. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  7354. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  7355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  7356. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7357. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7358. end
  7359. end
  7360. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7361. Anim="Walk"
  7362. if attack==false then
  7363. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  7364. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  7365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  7366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  7367. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  7368. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  7369. end
  7370. elseif torvel>=22 and hitfloor~=nil then
  7371. Anim="Run"
  7372. if attack==false then
  7373. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  7374. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  7375. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  7376. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  7377. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  7378. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  7379. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  7380. if ModeOfGlitch == 9 then
  7381. --
  7382. end
  7383. elseif ModeOfGlitch == 6 or ModeOfGlitch == 10 or ModeofGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7384. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  7385. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  7386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  7387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  7388. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  7389. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  7390. end
  7391. end
  7392. end
  7393. end
  7394. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement