Advertisement
ZaGodlyNoob

Hyperion Glitcher V2.2.9

Nov 3rd, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 362.40 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. > Error Hyperion: Z
  110. > Neptune: Z
  111. > Purple Heart: Z
  112. > Destiny Hyperion: N/A MOVES
  113. > Calamity Hyperion: Z, X, C, V
  114. > Brutal Hyperion: Z
  115. > Omega Hyperion: Z, X
  116. > Evil Hyperion: Z, X
  117. > The Dark One: N/A MOVES
  118. ]])
  119. warn([[Update Log:
  120. N - ???
  121. Extra modes:
  122. > Stress Hyperion: N for Cosmic Hyperion
  123. > Frost Hyperion: N for Brightness Hyperion
  124. > True Hyperion: N for Insane Hyperion
  125. > Error Hyperion: N for Cyber Hyperion
  126. > Neptune: N for Purple Heart
  127. > Destiny Hyperion: N for Calamity Hyperion
  128. > Evil Hyperion: N for The Dark One
  129. Note:
  130. Lots of hard work on this. I won't be making this again if this gets deleted.
  131. P.S Don't leak.]])
  132. --- its obs smooth af do not touch
  133. ---- Sources and functions might be taken from others
  134. plr = owner
  135. char = plr.Character
  136. hum = char.Humanoid
  137. local cam = game.Workspace.CurrentCamera
  138. Camera = cam
  139. local CamInterrupt = false
  140. local TwoD = false
  141. local TargetInfo = {nil, nil}
  142. cam.CameraType = "Custom"
  143. t = char.Torso
  144. h = char.Head
  145. ra = char["Right Arm"]
  146. la = char["Left Arm"]
  147. rl = char["Right Leg"]
  148. ll = char["Left Leg"]
  149. tors = char.Torso
  150. lleg = char["Left Leg"]
  151. root = char.HumanoidRootPart
  152. hed = char.Head
  153. rleg = char["Right Leg"]
  154. rarm = char["Right Arm"]
  155. larm = char["Left Arm"]
  156. radian = math.rad
  157. random = math.random
  158. Vec3 = Vector3.new
  159. Inst = Instance.new
  160. cFrame = CFrame.new
  161. Euler = CFrame.fromEulerAnglesXYZ
  162. vt = Vector3.new
  163. bc = BrickColor.new
  164. br = BrickColor.random
  165. it = Instance.new
  166. cf = CFrame.new
  167.  
  168. local Booleans = {
  169. CamFollow = true,
  170. GyroUse = true
  171. }
  172.  
  173. function lerp(object, newCFrame, alpha)
  174. return object:lerp(newCFrame, alpha)
  175. end
  176.  
  177. local Directer = Inst("BodyGyro", root)
  178. Directer.MaxTorque = Vec3(0, 0, 0)
  179. Directer.P = 600000
  180. local CPart = Inst("Part")
  181. CPart.Anchored = true
  182. CPart.CanCollide = false
  183. CPart.Locked = true
  184. CPart.Transparency = 1
  185.  
  186. local rainbowmode = false
  187. local chaosmode = false
  188.  
  189. local kan = Instance.new("Sound",char)
  190. kan.Volume = 1.25
  191. kan.TimePosition = 0
  192. kan.PlaybackSpeed = 1
  193. kan.Pitch = 1
  194. kan.SoundId = "rbxassetid://550578451"
  195. kan.Name = "wrecked"
  196. kan.Looped = true
  197. kan:Play()
  198.  
  199. local currentThemePlaying = kan.SoundId
  200. local currentPitch = kan.Pitch
  201. local currentVol = kan.Volume
  202. function newTheme(ID,timepos,pitch,vol)
  203. local kanz = kan
  204. --kanz:Stop()
  205. kanz.Volume = vol
  206. --kanz.TimePosition = timepos
  207. kanz.PlaybackSpeed = pitch
  208. kanz.Pitch = pitch
  209. kanz.SoundId = ID
  210. kanz.Name = "wrecked"
  211. kanz.Looped = true
  212. currentThemePlaying = kanz.SoundId
  213. currentVol = kanz.Volume
  214. currentPitch = kanz.Pitch
  215. --kanz:Play()
  216. --coroutine.resume(coroutine.create(function()
  217. --wait(0.05)
  218. --end))
  219. end
  220.  
  221.  
  222. function newThemeCust(ID,timepos,pitch,vol)
  223. local kanz = kan
  224. kanz:Stop()
  225. kanz.Volume = vol
  226. kanz.TimePosition = timepos
  227. kanz.PlaybackSpeed = pitch
  228. kanz.Pitch = pitch
  229. kanz.SoundId = ID
  230. kanz.Name = "wrecked"
  231. kanz.Looped = true
  232. currentThemePlaying = kanz.SoundId
  233. currentVol = kanz.Volume
  234. currentPitch = kanz.Pitch
  235. kanz:Play()
  236. coroutine.resume(coroutine.create(function()
  237. wait(0.05)
  238. end))
  239. end
  240.  
  241. local mutedtog = false
  242.  
  243. function CameraEnshaking(Length,Intensity)
  244. coroutine.resume(coroutine.create(function()
  245. local intensity = 1*Intensity
  246. local rotM = 0.01*Intensity
  247. for i = 0, Length, 0.1 do
  248. swait()
  249. intensity = intensity - 0.05*Intensity/Length
  250. rotM = rotM - 0.0005*Intensity/Length
  251. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  252. 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)
  253. end
  254. Humanoid.CameraOffset = Vec3(0, 0, 0)
  255. end))
  256. end
  257. CamShake=function(Part,Distan,Power,Times)
  258. local de=Part.Position
  259. for i,v in pairs(workspace:children()) do
  260. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  261. for _,c in pairs(v:children()) do
  262. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  263. local Noob=v.Humanoid
  264. if Noob~=nil then
  265. coroutine.resume(coroutine.create(function()
  266. FV = Instance.new("BoolValue", Noob)
  267. FV.Name = "CameraShake"
  268. for ShakeNum=1,Times do
  269. swait()
  270. local ef=Power
  271. if ef>=1 then
  272. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  273. else
  274. ef=Power*10
  275. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  276. end
  277. end
  278. Humanoid.CameraOffset = Vector3.new(0,0,0)
  279. FV:Destroy()
  280. end))
  281. CameraShake(Times, Power, Noob)
  282. end
  283. end
  284. end
  285. end
  286. end
  287. end
  288.  
  289. local toggleTag = true
  290. local bilguit = Instance.new("BillboardGui", hed)
  291. bilguit.Adornee = nil
  292. bilguit.Name = "ModeName"
  293. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  294. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  295. local modet = Instance.new("TextLabel", bilguit)
  296. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  297. modet.FontSize = "Size8"
  298. modet.TextScaled = true
  299. modet.TextTransparency = 0
  300. modet.BackgroundTransparency = 1
  301. modet.TextTransparency = 0
  302. modet.TextStrokeTransparency = 0
  303. modet.Font = "Antique"
  304. modet.TextStrokeColor3 = Color3.new(1,0,0)
  305. modet.TextColor3 = Color3.new(0.25,0,0)
  306. modet.Text = "STRESS HYPERION"
  307.  
  308.  
  309. function chatfunc(text,color,typet,font,timeex)
  310. local chat = coroutine.wrap(function()
  311. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  312. Character:FindFirstChild("TalkingBillBoard"):destroy()
  313. end
  314. local naeeym2 = Instance.new("BillboardGui",Character)
  315. naeeym2.Size = UDim2.new(0,100,0,40)
  316. naeeym2.StudsOffset = Vector3.new(0,3,0)
  317. naeeym2.Adornee = Character.Head
  318. naeeym2.Name = "TalkingBillBoard"
  319. local tecks2 = Instance.new("TextLabel",naeeym2)
  320. tecks2.BackgroundTransparency = 1
  321. tecks2.BorderSizePixel = 0
  322. tecks2.Text = ""
  323. tecks2.Font = font
  324. tecks2.TextSize = 30
  325. tecks2.TextStrokeTransparency = 0
  326. tecks2.TextColor3 = color
  327. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  328. tecks2.Size = UDim2.new(1,0,0.5,0)
  329. local tecks3 = Instance.new("TextLabel",naeeym2)
  330. tecks3.BackgroundTransparency = 1
  331. tecks3.BorderSizePixel = 0
  332. tecks3.Text = ""
  333. tecks3.Font = font
  334. tecks3.TextSize = 30
  335. tecks3.TextStrokeTransparency = 0
  336. if typet == "Inverted" then
  337. tecks3.TextColor3 = Color3.new(0,0,0)
  338. tecks3.TextStrokeColor3 = color
  339. elseif typet == "Normal" then
  340. tecks3.TextColor3 = color
  341. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  342. end
  343. tecks3.Size = UDim2.new(1,0,0.5,0)
  344. coroutine.resume(coroutine.create(function()
  345. while true do
  346. swait(1)
  347. if chaosmode == true then
  348. tecks2.TextColor3 = BrickColor.random().Color
  349. tecks3.TextStrokeColor3 = BrickColor.random().Color
  350. end
  351. end
  352. end))
  353. modet.TextTransparency = modet.TextTransparency + 1
  354. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  355. for i = 0, 74*timeex do
  356. swait()
  357. modet.TextTransparency = 1
  358. modet.TextStrokeTransparency = 1
  359. tecks2.Text = text
  360. tecks3.Text = text
  361. end
  362. local randomrot = math.random(1,2)
  363. if randomrot == 1 then
  364. for i = 1, 50 do
  365. swait()
  366. tecks2.Text = text
  367. tecks3.Text = text
  368. modet.TextTransparency = modet.TextTransparency - .02
  369. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  370. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks2.TextTransparency = tecks2.TextTransparency + .04
  372. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  373. tecks3.TextTransparency = tecks2.TextTransparency + .04
  374. end
  375. elseif randomrot == 2 then
  376. for i = 1, 50 do
  377. swait()
  378. tecks2.Text = text
  379. tecks3.Text = text
  380. modet.TextTransparency = modet.TextTransparency - .02
  381. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  382. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  383. tecks2.TextTransparency = tecks2.TextTransparency + .04
  384. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  385. tecks3.TextTransparency = tecks2.TextTransparency + .04
  386. end
  387. end
  388. modet.TextTransparency = 0
  389. modet.TextStrokeTransparency = 0
  390. if toggleTag == false then
  391. modet.TextTransparency = 1
  392. modet.TextStrokeTransparency = 1
  393. end
  394. naeeym2:Destroy()
  395. end)
  396. chat()
  397. end
  398.  
  399. function bosschatfunc(text,color,watval)
  400. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  401. coroutine.resume(coroutine.create(function()
  402. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  403. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  404. end
  405. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  406. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  407. scrg.Name = "Dialog"
  408. local txtlb = Instance.new("TextLabel",scrg)
  409. txtlb.Text = ""
  410. txtlb.Font = "Bodoni"
  411. txtlb.TextColor3 = Color3.new(0,0,0)
  412. txtlb.TextStrokeTransparency = 0
  413. txtlb.BackgroundTransparency = 0.75
  414. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  415. txtlb.TextStrokeColor3 = color
  416. txtlb.TextScaled = true
  417. txtlb.Size = UDim2.new(1,0,0.25,0)
  418. txtlb.TextXAlignment = "Left"
  419. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  420. local txtlb2 = Instance.new("TextLabel",scrg)
  421. txtlb2.Text = "???:"
  422. txtlb2.Font = "Arcade"
  423. txtlb2.TextColor3 = Color3.new(0,0,0)
  424. txtlb2.TextStrokeTransparency = 0
  425. txtlb2.BackgroundTransparency = 1
  426. txtlb2.TextStrokeColor3 = color
  427. txtlb2.TextSize = 40
  428. txtlb2.Size = UDim2.new(1,0,0.25,0)
  429. txtlb2.TextXAlignment = "Left"
  430. txtlb2.Position = UDim2.new(0,0,1,0)
  431. local fvalen = 0.55
  432. local fval = -0.49
  433. coroutine.resume(coroutine.create(function()
  434. while true do
  435. swait()
  436. if chaosmode == true then
  437. txtlb.Rotation = math.random(-1,1)
  438. txtlb2.Rotation = math.random(-1,1)
  439. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  440. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  441. txtlb.TextStrokeColor3 = BrickColor.random().Color
  442. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  443. end
  444. end
  445. end))
  446. coroutine.resume(coroutine.create(function()
  447. while true do
  448. swait()
  449. if scrg.Parent ~= nil then
  450. fvalen = fvalen - 0.0001
  451. elseif scrg.Parent == nil then
  452. break
  453. end
  454. end
  455. end))
  456. local flol = 1.75
  457. local flil = 1.6
  458. coroutine.resume(coroutine.create(function()
  459. for i = 0, 9 do
  460. swait()
  461. fval = fval + 0.05
  462. flol = flol - 0.1
  463. flil = flil - 0.1
  464. txtlb.Text = ""
  465. txtlb.Position = UDim2.new(0,0,flol,0)
  466. txtlb2.Position = UDim2.new(0,0,flil,0)
  467. end
  468. txtlb.Text = text
  469. wait(watval)
  470. local valinc = 0
  471. for i = 0, 99 do
  472. swait()
  473. valinc = valinc + 0.0001
  474. flol = flol + valinc
  475. flil = flil + valinc
  476. txtlb.Rotation = txtlb.Rotation + valinc*20
  477. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  478. txtlb.Position = UDim2.new(0,0,flol,0)
  479. txtlb2.Position = UDim2.new(0,0,flil,0)
  480. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  481. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  482. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  483. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  484. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  485. end
  486. scrg:Destroy()
  487. end))
  488. end))
  489. end
  490. end
  491.  
  492.  
  493. local Create = LoadLibrary("RbxUtility").Create
  494.  
  495. CFuncs = {
  496. ["Part"] = {
  497. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  498. local Part = Create("Part"){
  499. Parent = Parent,
  500. Reflectance = Reflectance,
  501. Transparency = Transparency,
  502. CanCollide = false,
  503. Locked = true,
  504. BrickColor = BrickColor.new(tostring(BColor)),
  505. Name = Name,
  506. Size = Size,
  507. Material = Material,
  508. }
  509. RemoveOutlines(Part)
  510. return Part
  511. end;
  512. };
  513.  
  514. ["Mesh"] = {
  515. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  516. local Msh = Create(Mesh){
  517. Parent = Part,
  518. Offset = OffSet,
  519. Scale = Scale,
  520. }
  521. if Mesh == "SpecialMesh" then
  522. Msh.MeshType = MeshType
  523. Msh.MeshId = MeshId
  524. end
  525. return Msh
  526. end;
  527. };
  528.  
  529. ["Mesh"] = {
  530. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  531. local Msh = Create(Mesh){
  532. Parent = Part,
  533. Offset = OffSet,
  534. Scale = Scale,
  535. }
  536. if Mesh == "SpecialMesh" then
  537. Msh.MeshType = MeshType
  538. Msh.MeshId = MeshId
  539. end
  540. return Msh
  541. end;
  542. };
  543.  
  544. ["Weld"] = {
  545. Create = function(Parent, Part0, Part1, C0, C1)
  546. local Weld = Create("Weld"){
  547. Parent = Parent,
  548. Part0 = Part0,
  549. Part1 = Part1,
  550. C0 = C0,
  551. C1 = C1,
  552. }
  553. return Weld
  554. end;
  555. };
  556.  
  557. ["Sound"] = {
  558. Create = function(id, par, vol, pit)
  559. coroutine.resume(coroutine.create(function()
  560. local S = Create("Sound"){
  561. Volume = vol,
  562. Name = "EffectSoundo",
  563. Pitch = pit or 1,
  564. SoundId = id,
  565. Parent = par or workspace,
  566. }
  567. wait()
  568. S:play()
  569. game:GetService("Debris"):AddItem(S, 10)
  570. end))
  571. end;
  572. };
  573.  
  574. ["TimeSound"] = {
  575. Create = function(id, par, vol, pit, timepos)
  576. coroutine.resume(coroutine.create(function()
  577. local S = Create("Sound"){
  578. Volume = vol,
  579. Name = "EffectSoundo",
  580. Pitch = pit or 1,
  581. SoundId = id,
  582. TimePosition = timepos,
  583. Parent = par or workspace,
  584. }
  585. wait()
  586. S:play()
  587. game:GetService("Debris"):AddItem(S, 10)
  588. end))
  589. end;
  590. };
  591. ["EchoSound"] = {
  592. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  593. coroutine.resume(coroutine.create(function()
  594. local Sas = Create("Sound"){
  595. Volume = vol,
  596. Name = "EffectSoundo",
  597. Pitch = pit or 1,
  598. SoundId = id,
  599. TimePosition = timepos,
  600. Parent = par or workspace,
  601. }
  602. local E = Create("EchoSoundEffect"){
  603. Delay = echodelay,
  604. Name = "Echo",
  605. Feedback = fedb,
  606. DryLevel = dryl,
  607. Parent = Sas,
  608. }
  609. wait()
  610. Sas:play()
  611. game:GetService("Debris"):AddItem(Sas, delays)
  612. end))
  613. end;
  614. };
  615.  
  616. ["LongSound"] = {
  617. Create = function(id, par, vol, pit)
  618. coroutine.resume(coroutine.create(function()
  619. local S = Create("Sound"){
  620. Volume = vol,
  621. Pitch = pit or 1,
  622. SoundId = id,
  623. Parent = par or workspace,
  624. }
  625. wait()
  626. S:play()
  627. game:GetService("Debris"):AddItem(S, 60)
  628. end))
  629. end;
  630. };
  631.  
  632. ["ParticleEmitter"] = {
  633. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  634. local fp = Create("ParticleEmitter"){
  635. Parent = Parent,
  636. Color = ColorSequence.new(Color1, Color2),
  637. LightEmission = LightEmission,
  638. Size = Size,
  639. Texture = Texture,
  640. Transparency = Transparency,
  641. ZOffset = ZOffset,
  642. Acceleration = Accel,
  643. Drag = Drag,
  644. LockedToPart = LockedToPart,
  645. VelocityInheritance = VelocityInheritance,
  646. EmissionDirection = EmissionDirection,
  647. Enabled = Enabled,
  648. Lifetime = LifeTime,
  649. Rate = Rate,
  650. Rotation = Rotation,
  651. RotSpeed = RotSpeed,
  652. Speed = Speed,
  653. VelocitySpread = VelocitySpread,
  654. }
  655. return fp
  656. end;
  657. };
  658.  
  659. CreateTemplate = {
  660.  
  661. };
  662. }
  663.  
  664.  
  665.  
  666. New = function(Object, Parent, Name, Data)
  667. local Object = Instance.new(Object)
  668. for Index, Value in pairs(Data or {}) do
  669. Object[Index] = Value
  670. end
  671. Object.Parent = Parent
  672. Object.Name = Name
  673. return Object
  674. end
  675. local halocolor = BrickColor.new("Pastel light blue")
  676. local halocolor2 = BrickColor.new("Cool yellow")
  677. local starcolor = BrickColor.new("Bright yellow")
  678. local lunacolor = BrickColor.new("Navy blue")
  679. local lunacolor2 = BrickColor.new("Bright blue")
  680. local wepcolor = BrickColor.new("Really black")
  681. local maincolor = BrickColor.new("Really black")
  682. local m = Instance.new("Model",char)
  683. local m2 = Instance.new("Model",char)
  684. local m3 = Instance.new("Model",char)
  685. local mw1 = Instance.new("Model",char)
  686. local mw2 = Instance.new("Model",char)
  687.  
  688.  
  689. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  690. local gui = it(GuiType)
  691. gui.Parent = parent
  692. gui.Text = text
  693. gui.BackgroundTransparency = backtrans
  694. gui.BackgroundColor3 = backcol
  695. gui.SizeConstraint = "RelativeXY"
  696. gui.TextXAlignment = "Center"
  697. gui.TextYAlignment = "Center"
  698. gui.Position = pos
  699. gui.Size = size
  700. gui.Font = "SourceSans"
  701. gui.FontSize = "Size14"
  702. gui.TextWrapped = false
  703. gui.TextStrokeTransparency = 0
  704. gui.TextColor = BrickColor.new("White")
  705. return gui
  706. end
  707. --------------------------- GUI STUFF
  708. local basgui = it("GuiMain")
  709. basgui.Parent = plr.PlayerGui
  710. basgui.Name = "VISgui"
  711. local fullscreenz = it("Frame")
  712. fullscreenz.Parent = basgui
  713. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  714. fullscreenz.BackgroundTransparency = 1
  715. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  716. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  717. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  718. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  719. imgl2.BackgroundTransparency = 1
  720. imgl2.BorderSizePixel = 0
  721. imgl2.ImageTransparency = 0.5
  722. imgl2.ImageColor3 = Color3.new(1,0,0)
  723. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  724. imgl2.Size = UDim2.new(0,1000,0,1000)
  725. imgl2.Image = "rbxassetid://2325939897"
  726. local techc = imgl2:Clone()
  727. techc.Parent = fullscreenz
  728. techc.ImageTransparency = 0
  729. techc.Size = UDim2.new(0,900,0,900)
  730. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  731. techc.ImageColor3 = Color3.new(1,0,0)
  732. techc.Image = "rbxassetid://2273224484"
  733. local circl = imgl2:Clone()
  734. circl.Parent = fullscreenz
  735. circl.ImageTransparency = 0
  736. circl.Size = UDim2.new(0,550,0,550)
  737. circl.Position = UDim2.new(0.75,25,0.55,25)
  738. circl.ImageColor3 = Color3.new(0,0,0)
  739. circl.Image = "rbxassetid://2312119891"
  740. local circl2 = imgl2:Clone()
  741. circl2.Parent = fullscreenz
  742. circl2.ImageTransparency = 0
  743. circl2.Size = UDim2.new(0,700,0,700)
  744. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  745. circl2.ImageColor3 = Color3.new(1,0,0)
  746. circl2.Image = "rbxassetid://2312119891"
  747. local imgl2b = imgl2:Clone()
  748. imgl2b.Parent = fullscreenz
  749. imgl2b.ImageTransparency = 0
  750. imgl2b.Size = UDim2.new(0,800,0,800)
  751. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  752. imgl2b.ImageColor3 = Color3.new(0,0,0)
  753. local ned = Instance.new("TextLabel",fullscreenz)
  754. ned.ZIndex = 2
  755. ned.Font = "Arcade"
  756. ned.BackgroundTransparency = 1
  757. ned.BorderSizePixel = 0.65
  758. ned.Size = UDim2.new(0.3,0,0.2,0)
  759. ned.Position = UDim2.new(0.7,0,0.8,0)
  760. ned.TextColor3 = BrickColor.new("Really red").Color
  761. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  762. ned.TextScaled = true
  763. ned.TextStrokeTransparency = 0
  764. ned.Text = "STRESS HYPERION"
  765. ned.TextSize = 24
  766. ned.Rotation = 1
  767. ned.TextXAlignment = "Right"
  768. ned.TextYAlignment = "Bottom"
  769.  
  770. local extrawingmod1 = Instance.new("Model",char)
  771. local extrawingmod2 = Instance.new("Model",char)
  772.  
  773. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  774. local p = Instance.new("Part")
  775. p.TopSurface = 0
  776. p.BottomSurface = 0
  777. p.Parent = parent
  778. p.Size = Vector3.new(0.1,0.1,0.1)
  779. p.Transparency = transparency
  780. p.Reflectance = reflectance
  781. p.CanCollide = false
  782. p.Locked = true
  783. p.BrickColor = brickcolor
  784. p.Material = material
  785. return p
  786. end
  787.  
  788. function CreateMesh(parent,meshtype,x1,y1,z1)
  789. local mesh = Instance.new("SpecialMesh",parent)
  790. mesh.MeshType = meshtype
  791. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  792. return mesh
  793. end
  794.  
  795. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  796. local mesh = Instance.new("SpecialMesh",parent)
  797. mesh.MeshType = "FileMesh"
  798. mesh.MeshId = meshid
  799. mesh.Scale = Vector3.new(x1,y1,z1)
  800. return mesh
  801. end
  802.  
  803.  
  804. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  805. local mesh = Instance.new("SpecialMesh",parent)
  806. mesh.MeshType = "FileMesh"
  807. mesh.MeshId = meshid
  808. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  809. mesh.Scale = Vector3.new(x1,y1,z1)
  810. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  811. return mesh
  812. end
  813.  
  814. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  815. local weld = Instance.new("Weld")
  816. weld.Parent = parent
  817. weld.Part0 = part0
  818. weld.Part1 = part1
  819. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  820. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  821. return weld
  822. end
  823.  
  824.  
  825. --------------
  826. --------------
  827. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  828. 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))
  829. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  830. 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))
  831.  
  832. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  833. CreateMesh(handle,"Brick",0,0,0)
  834. 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))
  835. local valuaring = 10
  836. for i = 0, 49 do
  837. valuaring = valuaring + 10
  838. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  839. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  840. 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))
  841. end
  842.  
  843. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0,0,0)
  845. 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))
  846. local valuaring = 10
  847. for i = 0, 49 do
  848. valuaring = valuaring + 10
  849. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  850. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  851. 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))
  852. end
  853.  
  854.  
  855. local handle = CreateParta(m,1,1,"Neon",maincolor)
  856. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  857. 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))
  858.  
  859. --- Left wing.
  860.  
  861. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  862. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  863. 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))
  864.  
  865. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  867. 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))
  868. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  869. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  870. 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))
  871. A0 = Instance.new('Attachment',wed)
  872. A0.Position = vt(0,0.25,0.25)
  873. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,0.5,3)
  875. 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))
  876. A1 = Instance.new('Attachment',wed)
  877. A1.Position = vt(0,-0.25,-2)
  878. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  879. CreateMesh(wed,"Wedge",0.05,3,0.5)
  880. 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))
  881.  
  882. tl1 = Instance.new('Trail',wed)
  883. tl1.Attachment0 = A1
  884. tl1.Attachment1 = A0
  885. tl1.Texture = "rbxassetid://2108945559"
  886. tl1.LightEmission = 1
  887. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  888. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  889. tl1.Lifetime = 0.6
  890.  
  891.  
  892. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  893. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  894. 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))
  895.  
  896. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. 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))
  899. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. 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))
  902. A0 = Instance.new('Attachment',wed)
  903. A0.Position = vt(0,0.25,0.25)
  904. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  905. CreateMesh(wed,"Wedge",0.05,0.5,3)
  906. 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))
  907. A1 = Instance.new('Attachment',wed)
  908. A1.Position = vt(0,-0.25,-2)
  909. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,3,0.5)
  911. 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))
  912.  
  913. tl2 = Instance.new('Trail',wed)
  914. tl2.Attachment0 = A1
  915. tl2.Attachment1 = A0
  916. tl2.Texture = "rbxassetid://2108945559"
  917. tl2.LightEmission = 1
  918. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  919. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  920. tl2.Lifetime = 0.6
  921.  
  922. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  923. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  924. 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))
  925.  
  926. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  928. 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))
  929. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  931. 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))
  932. A0 = Instance.new('Attachment',wed)
  933. A0.Position = vt(0,0.25,0.25)
  934. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  935. CreateMesh(wed,"Wedge",0.05,0.5,3)
  936. 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))
  937. A1 = Instance.new('Attachment',wed)
  938. A1.Position = vt(0,-0.25,-2)
  939. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,3,0.5)
  941. 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))
  942.  
  943. tl3 = Instance.new('Trail',wed)
  944. tl3.Attachment0 = A1
  945. tl3.Attachment1 = A0
  946. tl3.Texture = "rbxassetid://2108945559"
  947. tl3.LightEmission = 1
  948. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  949. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  950. tl3.Lifetime = 0.6
  951.  
  952. tl1.Enabled = false
  953. tl2.Enabled = false
  954. tl3.Enabled = false
  955. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  956. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  957. 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))
  958.  
  959. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  961. 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))
  962. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  964. 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))
  965. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,0.5,3)
  967. 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))
  968. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,3,0.5)
  970. 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))
  971.  
  972. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  973. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  974. 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))
  975.  
  976. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  981. 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))
  982. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,0.5,3)
  984. 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))
  985. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,3,0.5)
  987. 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))
  988.  
  989. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  990. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  991. 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))
  992.  
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  998. 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))
  999. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1001. 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))
  1002. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1003. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1004. 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))
  1005.  
  1006. -- Right wing.
  1007.  
  1008. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1009. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1010. 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))
  1011.  
  1012. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1013. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1014. 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))
  1015. A0 = Instance.new('Attachment',wed)
  1016. A0.Position = vt(0,0.25,0.25)
  1017. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1018. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1019. 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))
  1020. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1021. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1022. 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))
  1023. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1024. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1025. 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))
  1026. A1 = Instance.new('Attachment',wed)
  1027. A1.Position = vt(0,2,0.25)
  1028.  
  1029. tr1 = Instance.new('Trail',wed)
  1030. tr1.Attachment0 = A1
  1031. tr1.Attachment1 = A0
  1032. tr1.Texture = "rbxassetid://2108945559"
  1033. tr1.LightEmission = 1
  1034. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1035. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1036. tr1.Lifetime = 0.6
  1037.  
  1038. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1039. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1040. 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))
  1041.  
  1042. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1044. 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))
  1045. A0 = Instance.new('Attachment',wed)
  1046. A0.Position = vt(0,0.25,0.25)
  1047. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1049. 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))
  1050. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1052. 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))
  1053. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1055. 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))
  1056. A1 = Instance.new('Attachment',wed)
  1057. A1.Position = vt(0,2,0.25)
  1058.  
  1059. tr2 = Instance.new('Trail',wed)
  1060. tr2.Attachment0 = A1
  1061. tr2.Attachment1 = A0
  1062. tr2.Texture = "rbxassetid://2108945559"
  1063. tr2.LightEmission = 1
  1064. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1065. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1066. tr2.Lifetime = 0.6
  1067.  
  1068. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1069. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1070. 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))
  1071.  
  1072. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1074. 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))
  1075. A0 = Instance.new('Attachment',wed)
  1076. A0.Position = vt(0,0.25,0.25)
  1077. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1079. 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))
  1080. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1081. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1082. 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))
  1083. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1084. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1085. 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))
  1086. A1 = Instance.new('Attachment',wed)
  1087. A1.Position = vt(0,2,0.25)
  1088.  
  1089. tr3 = Instance.new('Trail',wed)
  1090. tr3.Attachment0 = A1
  1091. tr3.Attachment1 = A0
  1092. tr3.Texture = "rbxassetid://2108945559"
  1093. tr3.LightEmission = 1
  1094. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1095. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1096. tr3.Lifetime = 0.6
  1097.  
  1098.  
  1099. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1100. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1101. 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))
  1102.  
  1103. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1104. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1105. 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))
  1106. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1107. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1108. 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))
  1109. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1110. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1111. 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))
  1112. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1113. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1114. 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))
  1115.  
  1116. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1117. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1118. 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))
  1119.  
  1120. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1121. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1125. 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))
  1126. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1127. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1128. 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))
  1129. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1130. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1131. 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))
  1132.  
  1133. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1134. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1135. 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))
  1136.  
  1137. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1139. 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))
  1140. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1142. 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))
  1143. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1144. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1145. 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))
  1146. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1147. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1148. 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))
  1149.  
  1150. ---- HERES THE RING
  1151.  
  1152.  
  1153. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1154. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1155. 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))
  1156. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1157. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1158. 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))
  1159. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1160. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1161. 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))
  1162.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1167.  
  1168. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1169. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1170. 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))
  1171.  
  1172.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177.  
  1178. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1179. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1180. 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))
  1181.  
  1182. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1183. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1184. 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))
  1185.  
  1186. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1187. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1188. 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))
  1189. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1190. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1191. 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))
  1192.  
  1193. --- second ring
  1194.  
  1195. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1196. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1197. 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))
  1198. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1199. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1200. 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))
  1201. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1202. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1203. 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))
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1208.  
  1209. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1210. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1211. 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))
  1212.  
  1213.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1218.  
  1219. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1220. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1221. 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))
  1222.  
  1223. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1224. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1225. 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))
  1226.  
  1227. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1228. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1229. 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))
  1230. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1231. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1232. 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))]]--
  1233.  
  1234.  
  1235.  
  1236. for i, v in pairs(m:GetChildren()) do
  1237. if v:IsA("Part") then
  1238. v.BrickColor = BrickColor.new("Really black")
  1239. v.Material = "Glass"
  1240. end
  1241. end
  1242. for i, v in pairs(m2:GetChildren()) do
  1243. if v:IsA("Part") then
  1244. v.BrickColor = BrickColor.new("Crimson")
  1245. v.Material = "Granite"
  1246. end
  1247. end
  1248. for i, v in pairs(m3:GetChildren()) do
  1249. if v:IsA("Part") then
  1250. v.BrickColor = BrickColor.new("Really red")
  1251. v.Material = "Neon"
  1252. end
  1253. end
  1254. for i, v in pairs(mw2:GetChildren()) do
  1255. if v:IsA("Part") then
  1256. v.BrickColor = BrickColor.new("Really red")
  1257. v.Material = "Neon"
  1258. end
  1259. end
  1260. for i, v in pairs(mw1:GetChildren()) do
  1261. if v:IsA("Part") then
  1262. v.Transparency = 1
  1263. v.BrickColor = BrickColor.new("Really red")
  1264. v.Material = "Neon"
  1265. end
  1266. end
  1267. for i, v in pairs(extrawingmod1:GetChildren()) do
  1268. if v:IsA("Part") then
  1269. v.Transparency = 1
  1270. v.BrickColor = BrickColor.new("White")
  1271. v.Material = "Neon"
  1272. end
  1273. end
  1274. for i, v in pairs(extrawingmod2:GetChildren()) do
  1275. if v:IsA("Part") then
  1276. v.Transparency = 1
  1277. v.BrickColor = BrickColor.new("White")
  1278. v.Material = "Neon"
  1279. end
  1280. end
  1281. local MAINRUINCOLOR = BrickColor.new("Really red")
  1282. ------
  1283.  
  1284.  
  1285. function RemoveOutlines(part)
  1286. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1287. end
  1288. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1289. local Part = Create("Part")({
  1290. Parent = Parent,
  1291. Reflectance = Reflectance,
  1292. Transparency = Transparency,
  1293. CanCollide = false,
  1294. Locked = true,
  1295. BrickColor = BrickColor.new(tostring(BColor)),
  1296. Name = Name,
  1297. Size = Size,
  1298. Material = Material
  1299. })
  1300. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1301. RemoveOutlines(Part)
  1302. return Part
  1303. end
  1304. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1305. local Msh = Create(Mesh)({
  1306. Parent = Part,
  1307. Offset = OffSet,
  1308. Scale = Scale
  1309. })
  1310. if Mesh == "SpecialMesh" then
  1311. Msh.MeshType = MeshType
  1312. Msh.MeshId = MeshId
  1313. end
  1314. return Msh
  1315. end
  1316. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1317. local Weld = Create("Weld")({
  1318. Parent = Parent,
  1319. Part0 = Part0,
  1320. Part1 = Part1,
  1321. C0 = C0,
  1322. C1 = C1
  1323. })
  1324. return Weld
  1325. end
  1326.  
  1327. Character=Player.Character
  1328. PlayerGui=Player.PlayerGui
  1329. Backpack=Player.Backpack
  1330. Torso=Character.Torso
  1331. Head=Character.Head
  1332. Humanoid=Character.Humanoid
  1333. m=Instance.new('Model',Character)
  1334. LeftArm=Character["Left Arm"]
  1335. LeftLeg=Character["Left Leg"]
  1336. RightArm=Character["Right Arm"]
  1337. RightLeg=Character["Right Leg"]
  1338. LS=Torso["Left Shoulder"]
  1339. LH=Torso["Left Hip"]
  1340. RS=Torso["Right Shoulder"]
  1341. RH=Torso["Right Hip"]
  1342. Face = Head.face
  1343. Neck=Torso.Neck
  1344. it=Instance.new
  1345. attacktype=1
  1346. vt=Vector3.new
  1347. cf=CFrame.new
  1348. euler=CFrame.fromEulerAnglesXYZ
  1349. angles=CFrame.Angles
  1350. cloaked=false
  1351. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1352. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1353. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1354. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1355. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1356. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1357. RootPart=Character.HumanoidRootPart
  1358. RootJoint=RootPart.RootJoint
  1359. RootCF=euler(-1.57,0,3.14)
  1360. attack = false
  1361. attackdebounce = false
  1362. deb=false
  1363. equipped=true
  1364. hand=false
  1365. combo=0
  1366. mana=0
  1367. trispeed=.2
  1368. attackmode='none'
  1369. local idle=0
  1370. local Anim="Idle"
  1371. local Effects={}
  1372. local gun=false
  1373. local shoot=false
  1374. local sine = 0
  1375. local change = 1
  1376.  
  1377. function RecolorTextAndRename(name,col1,col2,font)
  1378. modet.TextStrokeColor3 = col2
  1379. modet.TextColor3 = col1
  1380. modet.Font = font
  1381. modet.Text = name
  1382. techc.ImageColor3 = col2
  1383. circl.ImageColor3 = col2
  1384. circl2.ImageColor3 = col1
  1385. imgl2.ImageColor3 = col1
  1386. imgl2b.ImageColor3 = col2
  1387. ned.Text = name
  1388. ned.TextColor3 = col1
  1389. ned.TextStrokeColor3 = col2
  1390. end
  1391. --save shoulders
  1392. RSH, LSH=nil, nil
  1393. --welds
  1394. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1395. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1396. LH=Torso["Left Hip"]
  1397. RH=Torso["Right Hip"]
  1398. TorsoColor=Torso.BrickColor
  1399. function NoOutline(Part)
  1400. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1401. end
  1402. ch=Character
  1403. RSH=ch.Torso["Right Shoulder"]
  1404. LSH=ch.Torso["Left Shoulder"]
  1405. --
  1406. RSH.Parent=nil
  1407. LSH.Parent=nil
  1408. --
  1409. RW.Name="Right Shoulder"
  1410. RW.Part0=ch.Torso
  1411. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1412. RW.C1=cf(0, 0.5, 0)
  1413. RW.Part1=ch["Right Arm"]
  1414. RW.Parent=ch.Torso
  1415. --
  1416. LW.Name="Left Shoulder"
  1417. LW.Part0=ch.Torso
  1418. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1419. LW.C1=cf(0, 0.5, 0)
  1420. LW.Part1=ch["Left Arm"]
  1421. LW.Parent=ch.Torso
  1422.  
  1423. local Stats=Instance.new("BoolValue")
  1424. Stats.Name="Stats"
  1425. Stats.Parent=Character
  1426. local Atk=Instance.new("NumberValue")
  1427. Atk.Name="Damage"
  1428. Atk.Parent=Stats
  1429. Atk.Value=1
  1430. local Def=Instance.new("NumberValue")
  1431. Def.Name="Defense"
  1432. Def.Parent=Stats
  1433. Def.Value=1
  1434. local Speed=Instance.new("NumberValue")
  1435. Speed.Name="Speed"
  1436. Speed.Parent=Stats
  1437. Speed.Value=1
  1438. local Mvmt=Instance.new("NumberValue")
  1439. Mvmt.Name="Movement"
  1440. Mvmt.Parent=Stats
  1441. Mvmt.Value=1
  1442.  
  1443. local donum=0
  1444.  
  1445.  
  1446. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1447. local fp=it("Part")
  1448. fp.formFactor=formfactor
  1449. fp.Parent=parent
  1450. fp.Reflectance=reflectance
  1451. fp.Transparency=transparency
  1452. fp.CanCollide=false
  1453. fp.Locked=true
  1454. fp.BrickColor=brickcolor
  1455. fp.Name=name
  1456. fp.Size=size
  1457. fp.Position=Torso.Position
  1458. NoOutline(fp)
  1459. fp.Material="SmoothPlastic"
  1460. fp:BreakJoints()
  1461. return fp
  1462. end
  1463.  
  1464. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1465. local mesh=it(Mesh)
  1466. mesh.Parent=part
  1467. if Mesh=="SpecialMesh" then
  1468. mesh.MeshType=meshtype
  1469. if meshid~="nil" then
  1470. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1471. end
  1472. end
  1473. mesh.Offset=offset
  1474. mesh.Scale=scale
  1475. return mesh
  1476. end
  1477.  
  1478. function weld(parent,part0,part1,c0)
  1479. local weld=it("Weld")
  1480. weld.Parent=parent
  1481. weld.Part0=part0
  1482. weld.Part1=part1
  1483. weld.C0=c0
  1484. return weld
  1485. end
  1486.  
  1487. local Color1=Torso.BrickColor
  1488.  
  1489. local bodvel=Instance.new("BodyVelocity")
  1490. local bg=Instance.new("BodyGyro")
  1491.  
  1492. --------- SazEreno's Artificial HB --------------
  1493. ArtificialHB = Instance.new("BindableEvent", script)
  1494. ArtificialHB.Name = "ArtificialHB"
  1495.  
  1496. script:WaitForChild("ArtificialHB")
  1497. Frame_Speed = 1 / 60
  1498. frame = Frame_Speed
  1499. tf = 0
  1500. allowframeloss = false
  1501. tossremainder = false
  1502. lastframe = tick()
  1503. script.ArtificialHB:Fire()
  1504.  
  1505. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1506. tf = tf + s
  1507. if tf >= frame then
  1508. if allowframeloss then
  1509. script.ArtificialHB:Fire()
  1510. lastframe = tick()
  1511. else
  1512. for i = 1, math.floor(tf / frame) do
  1513. script.ArtificialHB:Fire()
  1514. end
  1515. lastframe = tick()
  1516. end
  1517. if tossremainder then
  1518. tf = 0
  1519. else
  1520. tf = tf - frame * math.floor(tf / frame)
  1521. end
  1522. end
  1523. end)
  1524.  
  1525. ------------------
  1526. function swait(num)
  1527. function swait(num)
  1528. if num==0 or num==nil then
  1529. game:service'RunService'.Stepped:wait(0)
  1530. else
  1531. for i=0,num do
  1532. game:service'RunService'.Stepped:wait(0)
  1533. end
  1534. end
  1535. end
  1536. end
  1537.  
  1538. -------- RAINBOW LEAVE IT TO ME
  1539. local r = 255
  1540. local g = 0
  1541. local b = 0
  1542. coroutine.resume(coroutine.create(function()
  1543. while wait() do
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. g = g + 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. r = r - 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. b = b + 5
  1555. end
  1556. for i = 0, 254/5 do
  1557. swait()
  1558. g = g - 5
  1559. end
  1560. for i = 0, 254/5 do
  1561. swait()
  1562. r = r + 5
  1563. end
  1564. for i = 0, 254/5 do
  1565. swait()
  1566. b = b - 5
  1567. end
  1568. end
  1569. end))
  1570.  
  1571.  
  1572. so = function(id,par,vol,pit)
  1573. coroutine.resume(coroutine.create(function()
  1574. local sou = Instance.new("Sound",par or workspace)
  1575. sou.Volume=vol
  1576. sou.Pitch=pit or 1
  1577. sou.SoundId=id
  1578. swait()
  1579. sou:play()
  1580. game:GetService("Debris"):AddItem(sou,6)
  1581. end))
  1582. end
  1583.  
  1584. function clerp(a,b,t)
  1585. local qa = {QuaternionFromCFrame(a)}
  1586. local qb = {QuaternionFromCFrame(b)}
  1587. local ax, ay, az = a.x, a.y, a.z
  1588. local bx, by, bz = b.x, b.y, b.z
  1589. local _t = 1-t
  1590. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1591. end
  1592.  
  1593. function QuaternionFromCFrame(cf)
  1594. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1595. local trace = m00 + m11 + m22
  1596. if trace > 0 then
  1597. local s = math.sqrt(1 + trace)
  1598. local recip = 0.5/s
  1599. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1600. else
  1601. local i = 0
  1602. if m11 > m00 then
  1603. i = 1
  1604. end
  1605. if m22 > (i == 0 and m00 or m11) then
  1606. i = 2
  1607. end
  1608. if i == 0 then
  1609. local s = math.sqrt(m00-m11-m22+1)
  1610. local recip = 0.5/s
  1611. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1612. elseif i == 1 then
  1613. local s = math.sqrt(m11-m22-m00+1)
  1614. local recip = 0.5/s
  1615. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1616. elseif i == 2 then
  1617. local s = math.sqrt(m22-m00-m11+1)
  1618. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1619. end
  1620. end
  1621. end
  1622.  
  1623. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1624. local xs, ys, zs = x + x, y + y, z + z
  1625. local wx, wy, wz = w*xs, w*ys, w*zs
  1626. local xx = x*xs
  1627. local xy = x*ys
  1628. local xz = x*zs
  1629. local yy = y*ys
  1630. local yz = y*zs
  1631. local zz = z*zs
  1632. 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))
  1633. end
  1634.  
  1635. function QuaternionSlerp(a, b, t)
  1636. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1637. local startInterp, finishInterp;
  1638. if cosTheta >= 0.0001 then
  1639. if (1 - cosTheta) > 0.0001 then
  1640. local theta = math.acos(cosTheta)
  1641. local invSinTheta = 1/math.sin(theta)
  1642. startInterp = math.sin((1-t)*theta)*invSinTheta
  1643. finishInterp = math.sin(t*theta)*invSinTheta
  1644. else
  1645. startInterp = 1-t
  1646. finishInterp = t
  1647. end
  1648. else
  1649. if (1+cosTheta) > 0.0001 then
  1650. local theta = math.acos(-cosTheta)
  1651. local invSinTheta = 1/math.sin(theta)
  1652. startInterp = math.sin((t-1)*theta)*invSinTheta
  1653. finishInterp = math.sin(t*theta)*invSinTheta
  1654. else
  1655. startInterp = t-1
  1656. finishInterp = t
  1657. end
  1658. end
  1659. 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
  1660. end
  1661.  
  1662. local function CFrameFromTopBack(at, top, back)
  1663. local right = top:Cross(back)
  1664. return CFrame.new(at.x, at.y, at.z,
  1665. right.x, top.x, back.x,
  1666. right.y, top.y, back.y,
  1667. right.z, top.z, back.z)
  1668. end
  1669.  
  1670. function Triangle(a, b, c)
  1671. local edg1 = (c-a):Dot((b-a).unit)
  1672. local edg2 = (a-b):Dot((c-b).unit)
  1673. local edg3 = (b-c):Dot((a-c).unit)
  1674. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1675. a, b, c = a, b, c
  1676. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1677. a, b, c = b, c, a
  1678. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1679. a, b, c = c, a, b
  1680. else
  1681. assert(false, "unreachable")
  1682. end
  1683.  
  1684. local len1 = (c-a):Dot((b-a).unit)
  1685. local len2 = (b-a).magnitude - len1
  1686. local width = (a + (b-a).unit*len1 - c).magnitude
  1687.  
  1688. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1689.  
  1690. local list = {}
  1691.  
  1692. if len1 > 0.01 then
  1693. local w1 = Instance.new('WedgePart', m)
  1694. game:GetService("Debris"):AddItem(w1,5)
  1695. w1.Material = "SmoothPlastic"
  1696. w1.FormFactor = 'Custom'
  1697. w1.BrickColor = BrickColor.new("Really red")
  1698. w1.Transparency = 0
  1699. w1.Reflectance = 0
  1700. w1.Material = "SmoothPlastic"
  1701. w1.CanCollide = false
  1702. local l1 = Instance.new("PointLight",w1)
  1703. l1.Color = Color3.new(170,0,0)
  1704. NoOutline(w1)
  1705. local sz = Vector3.new(0.2, width, len1)
  1706. w1.Size = sz
  1707. local sp = Instance.new("SpecialMesh",w1)
  1708. sp.MeshType = "Wedge"
  1709. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1710. w1:BreakJoints()
  1711. w1.Anchored = true
  1712. w1.Parent = workspace
  1713. w1.Transparency = 0.7
  1714. table.insert(Effects,{w1,"Disappear",.01})
  1715. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1716. table.insert(list,w1)
  1717. end
  1718.  
  1719. if len2 > 0.01 then
  1720. local w2 = Instance.new('WedgePart', m)
  1721. game:GetService("Debris"):AddItem(w2,5)
  1722. w2.Material = "SmoothPlastic"
  1723. w2.FormFactor = 'Custom'
  1724. w2.BrickColor = BrickColor.new("Really red")
  1725. w2.Transparency = 0
  1726. w2.Reflectance = 0
  1727. w2.Material = "SmoothPlastic"
  1728. w2.CanCollide = false
  1729. local l2 = Instance.new("PointLight",w2)
  1730. l2.Color = Color3.new(170,0,0)
  1731. NoOutline(w2)
  1732. local sz = Vector3.new(0.2, width, len2)
  1733. w2.Size = sz
  1734. local sp = Instance.new("SpecialMesh",w2)
  1735. sp.MeshType = "Wedge"
  1736. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1737. w2:BreakJoints()
  1738. w2.Anchored = true
  1739. w2.Parent = workspace
  1740. w2.Transparency = 0.7
  1741. table.insert(Effects,{w2,"Disappear",.01})
  1742. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1743. table.insert(list,w2)
  1744. end
  1745. return unpack(list)
  1746. end
  1747.  
  1748.  
  1749. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1750. if hit.Parent == nil then
  1751. return
  1752. end
  1753. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1754. for _, v in pairs(hit.Parent:children()) do
  1755. if v:IsA("Humanoid") then
  1756. h = v
  1757. end
  1758. end
  1759. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1760. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1761. return
  1762. end
  1763. local c = Create("ObjectValue")({
  1764. Name = "creator",
  1765. Value = game:GetService("Players").LocalPlayer,
  1766. Parent = h
  1767. })
  1768. game:GetService("Debris"):AddItem(c, 0.5)
  1769. if HitSound ~= nil and HitPitch ~= nil then
  1770. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1771. end
  1772. local Damage = math.random(minim, maxim)
  1773. local blocked = false
  1774. local block = hit.Parent:findFirstChild("Block")
  1775. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1776. blocked = true
  1777. block.Value = block.Value - 1
  1778. print(block.Value)
  1779. end
  1780. if blocked == false then
  1781. HitHealth = h.Health
  1782. h.MaxHealth = 100
  1783. h.Health = h.Health - Damage
  1784. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1785. print("gained kill")
  1786. dmg(h.Parent)
  1787. end
  1788. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1789. else
  1790. h.Health = h.Health - Damage / 2
  1791. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1792. end
  1793. if Type == "Knockdown" then
  1794. local hum = hit.Parent.Humanoid
  1795. hum.PlatformStand = true
  1796. coroutine.resume(coroutine.create(function(HHumanoid)
  1797. swait(1)
  1798. HHumanoid.PlatformStand = false
  1799. end), hum)
  1800. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1801. local bodvol = Create("BodyVelocity")({
  1802. velocity = angle * knockback,
  1803. P = 5000,
  1804. maxForce = Vector3.new(8000, 8000, 8000),
  1805. Parent = hit
  1806. })
  1807. local rl = Create("BodyAngularVelocity")({
  1808. P = 3000,
  1809. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1810. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1811. Parent = hit
  1812. })
  1813. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1814. game:GetService("Debris"):AddItem(rl, 0.5)
  1815. elseif Type == "Normal" then
  1816. local vp = Create("BodyVelocity")({
  1817. P = 500,
  1818. maxForce = Vector3.new(math.huge, 0, math.huge),
  1819. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1820. })
  1821. if knockback > 0 then
  1822. vp.Parent = hit.Parent.Head
  1823. end
  1824. game:GetService("Debris"):AddItem(vp, 0.5)
  1825. elseif Type == "Up" then
  1826. local bodyVelocity = Create("BodyVelocity")({
  1827. velocity = Vector3.new(0, 20, 0),
  1828. P = 5000,
  1829. maxForce = Vector3.new(8000, 8000, 8000),
  1830. Parent = hit
  1831. })
  1832. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1833. local bodyVelocity = Create("BodyVelocity")({
  1834. velocity = Vector3.new(0, 20, 0),
  1835. P = 5000,
  1836. maxForce = Vector3.new(8000, 8000, 8000),
  1837. Parent = hit
  1838. })
  1839. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1840. elseif Type == "Leech" then
  1841. local hum = hit.Parent.Humanoid
  1842. if hum ~= nil then
  1843. for i = 0, 2 do
  1844. 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)
  1845. end
  1846. Humanoid.Health = Humanoid.Health + 10
  1847. end
  1848. elseif Type == "UpKnock" then
  1849. local hum = hit.Parent.Humanoid
  1850. hum.PlatformStand = true
  1851. if hum ~= nil then
  1852. hitr = true
  1853. end
  1854. coroutine.resume(coroutine.create(function(HHumanoid)
  1855. swait(5)
  1856. HHumanoid.PlatformStand = false
  1857. hitr = false
  1858. end), hum)
  1859. local bodyVelocity = Create("BodyVelocity")({
  1860. velocity = Vector3.new(0, 20, 0),
  1861. P = 5000,
  1862. maxForce = Vector3.new(8000, 8000, 8000),
  1863. Parent = hit
  1864. })
  1865. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1866. local bodyVelocity = Create("BodyVelocity")({
  1867. velocity = Vector3.new(0, 20, 0),
  1868. P = 5000,
  1869. maxForce = Vector3.new(8000, 8000, 8000),
  1870. Parent = hit
  1871. })
  1872. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1873. elseif Type == "Snare" then
  1874. local bp = Create("BodyPosition")({
  1875. P = 2000,
  1876. D = 100,
  1877. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1878. position = hit.Parent.Torso.Position,
  1879. Parent = hit.Parent.Torso
  1880. })
  1881. game:GetService("Debris"):AddItem(bp, 1)
  1882. elseif Type == "Slashnare" then
  1883. 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)
  1884. for i = 1, math.random(4, 5) do
  1885. 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)
  1886. end
  1887. local bp = Create("BodyPosition")({
  1888. P = 2000,
  1889. D = 100,
  1890. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1891. position = hit.Parent.Torso.Position,
  1892. Parent = hit.Parent.Torso
  1893. })
  1894. game:GetService("Debris"):AddItem(bp, 1)
  1895. elseif Type == "Spike" then
  1896. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1897. local bp = Create("BodyPosition")({
  1898. P = 2000,
  1899. D = 100,
  1900. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1901. position = hit.Parent.Torso.Position,
  1902. Parent = hit.Parent.Torso
  1903. })
  1904. game:GetService("Debris"):AddItem(bp, 1)
  1905. elseif Type == "Freeze" then
  1906. local BodPos = Create("BodyPosition")({
  1907. P = 50000,
  1908. D = 1000,
  1909. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1910. position = hit.Parent.Torso.Position,
  1911. Parent = hit.Parent.Torso
  1912. })
  1913. local BodGy = Create("BodyGyro")({
  1914. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1915. P = 20000,
  1916. Parent = hit.Parent.Torso,
  1917. cframe = hit.Parent.Torso.CFrame
  1918. })
  1919. hit.Parent.Torso.Anchored = true
  1920. coroutine.resume(coroutine.create(function(Part)
  1921. swait(1.5)
  1922. Part.Anchored = false
  1923. end), hit.Parent.Torso)
  1924. game:GetService("Debris"):AddItem(BodPos, 3)
  1925. game:GetService("Debris"):AddItem(BodGy, 3)
  1926. end
  1927. local debounce = Create("BoolValue")({
  1928. Name = "DebounceHit",
  1929. Parent = hit.Parent,
  1930. Value = true
  1931. })
  1932. game:GetService("Debris"):AddItem(debounce, Delay)
  1933. c = Instance.new("ObjectValue")
  1934. c.Name = "creator"
  1935. c.Value = Player
  1936. c.Parent = h
  1937. game:GetService("Debris"):AddItem(c, 0.5)
  1938. end
  1939. end
  1940. function ShowDamage(Pos, Text, Time, Color)
  1941. local Rate = 0.03333333333333333
  1942. local Pos = Pos or Vector3.new(0, 0, 0)
  1943. local Text = Text or ""
  1944. local Time = Time or 2
  1945. local Color = Color or Color3.new(1, 0, 1)
  1946. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1947. EffectPart.Anchored = true
  1948. local BillboardGui = Create("BillboardGui")({
  1949. Size = UDim2.new(3, 0, 3, 0),
  1950. Adornee = EffectPart,
  1951. Parent = EffectPart
  1952. })
  1953. local TextLabel = Create("TextLabel")({
  1954. BackgroundTransparency = 1,
  1955. Size = UDim2.new(1, 0, 1, 0),
  1956. Text = Text,
  1957. TextColor3 = Color,
  1958. TextScaled = true,
  1959. Font = Enum.Font.ArialBold,
  1960. Parent = BillboardGui
  1961. })
  1962. game.Debris:AddItem(EffectPart, Time + 0.1)
  1963. EffectPart.Parent = game:GetService("Workspace")
  1964. delay(0, function()
  1965. local Frames = Time / Rate
  1966. for Frame = 1, Frames do
  1967. wait(Rate)
  1968. local Percent = Frame / Frames
  1969. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1970. TextLabel.TextTransparency = Percent
  1971. end
  1972. if EffectPart and EffectPart.Parent then
  1973. EffectPart:Destroy()
  1974. end
  1975. end)
  1976. end
  1977. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1978. for _, c in pairs(workspace:children()) do
  1979. local hum = c:findFirstChildOfClass("Humanoid")
  1980. if hum ~= nil then
  1981. local head = c:findFirstChild("Head")
  1982. if head ~= nil then
  1983. local targ = head.Position - Part.Position
  1984. local mag = targ.magnitude
  1985. if magni >= mag and c.Name ~= Player.Name then
  1986. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992.  
  1993. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1994. for _, c in pairs(workspace:children()) do
  1995. local hum = c:findFirstChild("Humanoid")
  1996. if hum ~= nil then
  1997. local head = c:findFirstChild("Torso")
  1998. if head ~= nil then
  1999. local targ = head.Position - Part.Position
  2000. local mag = targ.magnitude
  2001. if magni >= mag and c.Name ~= Player.Name then
  2002. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2003. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2004. end
  2005. end
  2006. end
  2007. end
  2008. end
  2009.  
  2010. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2011. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2012. end
  2013.  
  2014. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2015. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2016. prt.Anchored=true
  2017. prt.CFrame=cframe
  2018. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2019. --http://www.roblox.com/asset/?id=4770560
  2020. game:GetService("Debris"):AddItem(prt,2)
  2021. CF=prt.CFrame
  2022. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2023. for i=0,1,0.2 do
  2024. wait()
  2025. Part.CFrame=CF*cf(0,0,-0.4)
  2026. end
  2027. for i=0,1,delay do
  2028. wait()
  2029. --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)
  2030. Mesh.Scale=Mesh.Scale
  2031. end
  2032. for i=0,1,0.1 do
  2033. wait()
  2034. Part.Transparency=i
  2035. end
  2036. Part.Parent=nil
  2037. end),prt,msh,CF)
  2038. end
  2039.  
  2040. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2041. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2042. prt.Anchored=true
  2043. prt.Material = "Neon"
  2044. prt.CFrame=cframe
  2045. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2046. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,5)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh)
  2049. for i=0,1,delay do
  2050. swait()
  2051. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2052. Part.Transparency=i
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2054. end
  2055. Part.Parent=nil
  2056. end),prt,msh)
  2057. end
  2058.  
  2059. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2060. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt.Anchored=true
  2062. prt.Material = "Neon"
  2063. prt.CFrame=cframe
  2064. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. local rtype = rottype
  2068. for i=0,1,delay do
  2069. swait()
  2070. if rtype == 1 then
  2071. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2072. elseif rtype == 2 then
  2073. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2074. end
  2075. Part.Transparency=i
  2076. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2077. end
  2078. Part.Parent=nil
  2079. end),prt,msh)
  2080. end
  2081.  
  2082. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2083. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=true
  2085. prt.CFrame=cframe
  2086. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2087. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2088. game:GetService("Debris"):AddItem(prt,5)
  2089. coroutine.resume(coroutine.create(function(Part,Mesh)
  2090. for i=0,1,delay do
  2091. wait()
  2092. Part.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2100. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=true
  2102. prt.Material = "Neon"
  2103. prt.CFrame=cframe
  2104. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2105. game:GetService("Debris"):AddItem(prt,5)
  2106. coroutine.resume(coroutine.create(function(Part,Mesh)
  2107. local rtype = rottype
  2108. for i=0,1,delay do
  2109. swait()
  2110. if rtype == 1 then
  2111. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2112. elseif rtype == 2 then
  2113. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2114. end
  2115. Part.Transparency=i
  2116. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2117. end
  2118. Part.Parent=nil
  2119. end),prt,msh)
  2120. end
  2121.  
  2122. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2123. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2124. prt.Anchored=true
  2125. prt.Material = "Neon"
  2126. prt.CFrame=cframe
  2127. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2128. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2129. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2130. game:GetService("Debris"):AddItem(prt,5)
  2131. coroutine.resume(coroutine.create(function(Part,Mesh)
  2132. local rtype = rottype
  2133. for i=0,1,delay do
  2134. swait()
  2135. if rtype == 1 then
  2136. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2137. elseif rtype == 2 then
  2138. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2139. end
  2140. dec.Transparency=i
  2141. dec2.Transparency=i
  2142. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2143. end
  2144. Part.Parent=nil
  2145. end),prt,msh)
  2146. end
  2147.  
  2148. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2149. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2150. prt.Anchored=true
  2151. prt.Material = "Neon"
  2152. prt.CFrame=cframe
  2153. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2154. game:GetService("Debris"):AddItem(prt,5)
  2155. coroutine.resume(coroutine.create(function(Part,Mesh)
  2156. local rtype = rottype
  2157. for i=0,1,delay do
  2158. swait()
  2159. if rtype == 1 then
  2160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2161. elseif rtype == 2 then
  2162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2163. end
  2164. prt.Transparency=i
  2165. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2166. end
  2167. Part.Parent=nil
  2168. end),prt,msh)
  2169. end
  2170.  
  2171. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2172. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2173. prt.Anchored=true
  2174. prt.Material = "Neon"
  2175. prt.CFrame=cframe
  2176. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2177. game:GetService("Debris"):AddItem(prt,5)
  2178. coroutine.resume(coroutine.create(function(Part,Mesh)
  2179. local rtype = rottype
  2180. for i=0,1,delay do
  2181. swait()
  2182. if rtype == 1 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2184. elseif rtype == 2 then
  2185. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2186. end
  2187. prt.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh)
  2192. end
  2193.  
  2194. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202. local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. prt.Transparency=i
  2211. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2212. end
  2213. Part.Parent=nil
  2214. end),prt,msh)
  2215. end
  2216.  
  2217. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2218. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2219. prt.Anchored=true
  2220. prt.Material = "Neon"
  2221. prt.CFrame=cframe
  2222. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2223. game:GetService("Debris"):AddItem(prt,5)
  2224. coroutine.resume(coroutine.create(function(Part,Mesh)
  2225. local rtype = rottype
  2226. for i=0,1,delay do
  2227. swait()
  2228. if rtype == 1 then
  2229. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2230. elseif rtype == 2 then
  2231. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2232. end
  2233. prt.Transparency=i
  2234. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2235. end
  2236. Part.Parent=nil
  2237. end),prt,msh)
  2238. end
  2239.  
  2240. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2241. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2242. prt.Anchored=false
  2243. prt.CFrame=cframe
  2244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2245. local wld=weld(prt,prt,Parent,cframe)
  2246. game:GetService("Debris"):AddItem(prt,5)
  2247. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2248. for i=0,1,delay do
  2249. wait()
  2250. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2251. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2252. Part.Transparency=i
  2253. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2254. end
  2255. Part.Parent=nil
  2256. end),prt,msh,wld)
  2257. end
  2258.  
  2259. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2260. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2261. prt.Anchored=false
  2262. prt.CFrame=cframe
  2263. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2264. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2265. game:GetService("Debris"):AddItem(prt,5)
  2266. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2267. for i=0,1,delay do
  2268. wait()
  2269. Weld.C0=euler(i*20,0,0)
  2270. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2271. Part.Transparency=i
  2272. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2273. end
  2274. Part.Parent=nil
  2275. end),prt,msh,wld)
  2276. end
  2277.  
  2278. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2279. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2280. prt.Anchored=true
  2281. prt.CFrame=cframe
  2282. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2283. game:GetService("Debris"):AddItem(prt,2)
  2284. coroutine.resume(coroutine.create(function(Part,Mesh)
  2285. for i=0,1,delay do
  2286. wait()
  2287. Part.CFrame=Part.CFrame
  2288. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2289. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt2.Anchored=true
  2291. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2292. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2293. game:GetService("Debris"):AddItem(prt2,2)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. for i=0,1,0.1 do
  2296. wait()
  2297. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2298. end
  2299. Part.Parent=nil
  2300. end),prt2,msh2)
  2301. end
  2302. for i=0,1,delay*2 do
  2303. wait()
  2304. Part.CFrame=Part.CFrame
  2305. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2306. end
  2307. Part.Parent=nil
  2308. end),prt,msh)
  2309. end
  2310.  
  2311. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2312. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2313. prt.Anchored=true
  2314. prt.CFrame=cframe
  2315. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2316. game:GetService("Debris"):AddItem(prt,2)
  2317. coroutine.resume(coroutine.create(function(Part,Mesh)
  2318. for i=0,1,delay do
  2319. wait()
  2320. Part.CFrame=Part.CFrame
  2321. Part.Transparency=i
  2322. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2323. end
  2324. Part.Parent=nil
  2325. end),prt,msh)
  2326. end
  2327.  
  2328. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2329. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2330. prt.Anchored=true
  2331. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2332. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2333. game:GetService("Debris"):AddItem(prt,2)
  2334. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2335. CF=Part.CFrame
  2336. Numbb=0
  2337. randnumb=math.random()/10
  2338. rand1=math.random()/10
  2339. for i=0,1,rand1 do
  2340. wait()
  2341. CF=CF*cf(0,math.random()/2,0)
  2342. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2343. Part.CFrame=CF*euler(Numbb,0,0)
  2344. Part.Transparency=i
  2345. Numbb=Numbb+randnumb
  2346. end
  2347. Part.Parent=nil
  2348. end),prt,CF,Numbb,randnumb)
  2349. end
  2350.  
  2351. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2352. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2353. prt.Anchored=true
  2354. prt.CFrame=cframe
  2355. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2356. game:GetService("Debris"):AddItem(prt,5)
  2357. coroutine.resume(coroutine.create(function(Part,Mesh)
  2358. for i=0,1,delay do
  2359. wait()
  2360. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2361. Part.Transparency=i
  2362. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2363. end
  2364. Part.Parent=nil
  2365. end),prt,msh)
  2366. end
  2367.  
  2368. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2369. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2370. prt.Anchored=true
  2371. prt.CFrame=cframe
  2372. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2373. game:GetService("Debris"):AddItem(prt,2)
  2374. coroutine.resume(coroutine.create(function(Part,Mesh)
  2375. for i=0,1,delay do
  2376. wait()
  2377. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2378. Part.Transparency=i
  2379. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2380. end
  2381. Part.Parent=nil
  2382. end),prt,msh)
  2383. end
  2384.  
  2385. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2386. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2387. prt.Anchored=true
  2388. prt.CFrame=cframe*cf(x,y,z)
  2389. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2390. game:GetService("Debris"):AddItem(prt,5)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2392. local num=math.random()
  2393. local num2=math.random(-3,2)+math.random()
  2394. local numm=0
  2395. for i=0,1,delay*2 do
  2396. swait()
  2397. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2398. Part.Transparency=i
  2399. numm=numm+0.01
  2400. end
  2401. Part.Parent=nil
  2402. Mesh.Parent=nil
  2403. end),prt,msh,x,y,z)
  2404. end
  2405.  
  2406. function dmgstart(dmg,what)
  2407. hitcon = what.Touched:connect(function(hit)
  2408. local hum = hit.Parent:FindFirstChild("Humanoid")
  2409. if hum and not hum:IsDescendantOf(Character) then
  2410. hum:TakeDamage(dmg)
  2411. end
  2412. end)
  2413. end
  2414.  
  2415. function dmgstop()
  2416. hitcon:disconnect()
  2417. end
  2418.  
  2419. function Cloak()
  2420. Face.Parent=nil
  2421. cloaked=true
  2422. for _,v in pairs(Torso.Parent:children()) do
  2423. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2424. coroutine.resume(coroutine.create(function()
  2425. for i=0,1,0.2 do
  2426. wait()
  2427. v.Transparency=i
  2428. end
  2429. v.Transparency=1
  2430. end))
  2431. end
  2432. if v.className=="Hat" then
  2433. hatp=v.Handle
  2434. coroutine.resume(coroutine.create(function(derp)
  2435. for i=0,1,0.2 do
  2436. wait()
  2437. derp.Transparency=i
  2438. end
  2439. derp.Transparency=1
  2440. end),hatp)
  2441. end
  2442. end
  2443. for _,v in pairs(m:children()) do
  2444. if v.className=="Part" then
  2445. coroutine.resume(coroutine.create(function()
  2446. for i=0,1,0.2 do
  2447. wait()
  2448. v.Transparency=i
  2449. end
  2450. v.Transparency=1
  2451. end))
  2452. end
  2453. end
  2454. end
  2455.  
  2456. function UnCloak()
  2457. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2458. Face.Parent=Head
  2459. cloaked=false
  2460. for _,v in pairs(Torso.Parent:children()) do
  2461. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2462. coroutine.resume(coroutine.create(function()
  2463. for i=0,1,0.1 do
  2464. wait()
  2465. v.Transparency=v.Transparency-0.1
  2466. end
  2467. v.Transparency=0
  2468. end))
  2469. end
  2470. if v.className=="Hat" then
  2471. hatp=v.Handle
  2472. coroutine.resume(coroutine.create(function(derp)
  2473. for i=0,1,0.1 do
  2474. wait()
  2475. derp.Transparency=derp.Transparency-0.1
  2476. end
  2477. derp.Transparency=0
  2478. end),hatp)
  2479. end
  2480. end
  2481. for _,v in pairs(m:children()) do
  2482. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2483. coroutine.resume(coroutine.create(function()
  2484. for i=0,1,0.1 do
  2485. wait()
  2486. v.Transparency=v.Transparency-0.1
  2487. end
  2488. v.Transparency=0
  2489. end))
  2490. v.Transparency=0
  2491. end
  2492. end
  2493. end
  2494.  
  2495. local origcolor = BrickColor.new("Pastel light blue")
  2496. ---- This section of explosions.
  2497.  
  2498. ----
  2499.  
  2500.  
  2501. function ring(type,pos,scale,value)
  2502. local type = type
  2503. local rng = Instance.new("Part", char)
  2504. rng.Anchored = true
  2505. rng.BrickColor = origcolor
  2506. rng.CanCollide = false
  2507. rng.FormFactor = 3
  2508. rng.Name = "Ring"
  2509. rng.Size = Vector3.new(1, 1, 1)
  2510. rng.Transparency = 0
  2511. rng.TopSurface = 0
  2512. rng.BottomSurface = 0
  2513. rng.CFrame = pos
  2514. local rngm = Instance.new("SpecialMesh", rng)
  2515. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2516. rngm.Scale = scale
  2517. local scaler2 = 1
  2518. if type == "Add" then
  2519. scaler2 = 1*value
  2520. elseif type == "Divide" then
  2521. scaler2 = 1/value
  2522. end
  2523. coroutine.resume(coroutine.create(function()
  2524. for i = 0,10,0.1 do
  2525. swait()
  2526. if type == "Add" then
  2527. scaler2 = scaler2 - 0.01*value
  2528. elseif type == "Divide" then
  2529. scaler2 = scaler2 - 0.01/value
  2530. end
  2531. rng.Transparency = rng.Transparency + 0.01
  2532. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2533. end
  2534. rng:Destroy()
  2535. end))
  2536. end
  2537.  
  2538.  
  2539. function wave(type,pos,scale,value)
  2540. local type = type
  2541. local rng = Instance.new("Part", char)
  2542. rng.Anchored = true
  2543. rng.BrickColor = origcolor
  2544. rng.CanCollide = false
  2545. rng.FormFactor = 3
  2546. rng.Name = "Ring"
  2547. rng.Size = Vector3.new(1, 1, 1)
  2548. rng.Transparency = 0
  2549. rng.TopSurface = 0
  2550. rng.BottomSurface = 0
  2551. rng.CFrame = pos
  2552. local rngm = Instance.new("SpecialMesh", rng)
  2553. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2554. rngm.Scale = scale
  2555. local scaler2 = 1
  2556. if type == "Add" then
  2557. scaler2 = 1*value
  2558. elseif type == "Divide" then
  2559. scaler2 = 1/value
  2560. end
  2561. coroutine.resume(coroutine.create(function()
  2562. for i = 0,10,0.1 do
  2563. swait()
  2564. if type == "Add" then
  2565. scaler2 = scaler2 - 0.01*value
  2566. elseif type == "Divide" then
  2567. scaler2 = scaler2 - 0.01/value
  2568. end
  2569. rng.Transparency = rng.Transparency + 0.01
  2570. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2571. end
  2572. rng:Destroy()
  2573. end))
  2574. end
  2575.  
  2576. function wind(type,pos,scale,value,speed)
  2577. local type = type
  2578. local rng = Instance.new("Part", char)
  2579. rng.Anchored = true
  2580. rng.BrickColor = origcolor
  2581. rng.CanCollide = false
  2582. rng.FormFactor = 3
  2583. rng.Name = "Ring"
  2584. rng.Size = Vector3.new(1, 1, 1)
  2585. rng.Transparency = 0
  2586. rng.TopSurface = 0
  2587. rng.BottomSurface = 0
  2588. rng.CFrame = pos
  2589. local rngm = Instance.new("SpecialMesh", rng)
  2590. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2591. rngm.Scale = scale
  2592. local scaler2 = 1
  2593. if type == "Add" then
  2594. scaler2 = 1*value
  2595. elseif type == "Divide" then
  2596. scaler2 = 1/value
  2597. end
  2598. coroutine.resume(coroutine.create(function()
  2599. for i = 0,10,0.1 do
  2600. swait()
  2601. if type == "Add" then
  2602. scaler2 = scaler2 - 0.01*value
  2603. elseif type == "Divide" then
  2604. scaler2 = scaler2 - 0.01/value
  2605. end
  2606. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2607. rng.Transparency = rng.Transparency + 0.01
  2608. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2609. end
  2610. rng:Destroy()
  2611. end))
  2612. end
  2613.  
  2614. function groundwind(type,pos,scale,value,speed)
  2615. local type = type
  2616. local rng = Instance.new("Part", char)
  2617. rng.Anchored = true
  2618. rng.BrickColor = origcolor
  2619. rng.CanCollide = false
  2620. rng.FormFactor = 3
  2621. rng.Name = "Ring"
  2622. rng.Size = Vector3.new(1, 1, 1)
  2623. rng.Transparency = 0
  2624. rng.TopSurface = 0
  2625. rng.BottomSurface = 0
  2626. rng.CFrame = pos
  2627. local rngm = Instance.new("SpecialMesh", rng)
  2628. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2629. rngm.Scale = scale
  2630. local scaler2 = 1
  2631. if type == "Add" then
  2632. scaler2 = 1*value
  2633. elseif type == "Divide" then
  2634. scaler2 = 1/value
  2635. end
  2636. coroutine.resume(coroutine.create(function()
  2637. for i = 0,10,0.1 do
  2638. swait()
  2639. if type == "Add" then
  2640. scaler2 = scaler2 - 0.01*value
  2641. elseif type == "Divide" then
  2642. scaler2 = scaler2 - 0.01/value
  2643. end
  2644. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2645. rng.Transparency = rng.Transparency + 0.01
  2646. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2647. end
  2648. rng:Destroy()
  2649. end))
  2650. end
  2651.  
  2652. function CameraManager()
  2653. if TwoD and not CamInterrupt then
  2654. if Humanoid.Health > 0 then
  2655. Camera.CameraSubject = Humanoid
  2656. Camera.CameraType = "Scriptable"
  2657. Humanoid.AutoRotate = false
  2658. if Booleans.GyroUse then
  2659. Directer.MaxTorque = Vec3(0, huge, 0)
  2660. else
  2661. Directer.MaxTorque = Vec3(0, 0, 0)
  2662. end
  2663. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2664. if Booleans.CamFollow then
  2665. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2666. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2667. else
  2668. CPart.Position = RootPart.Position
  2669. end
  2670. else
  2671. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2672. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2673. end
  2674. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2675. else
  2676. Camera.CameraSubject = Humanoid
  2677. Camera.CameraType = "Custom"
  2678. Controller.Disabled = false
  2679. end
  2680. end
  2681. end
  2682.  
  2683. function ring(type,pos,scale,value)
  2684. local type = type
  2685. local rng = Instance.new("Part", char)
  2686. rng.Anchored = true
  2687. rng.BrickColor = origcolor
  2688. rng.CanCollide = false
  2689. rng.FormFactor = 3
  2690. rng.Name = "Ring"
  2691. rng.Size = Vector3.new(1, 1, 1)
  2692. rng.Transparency = 0
  2693. rng.TopSurface = 0
  2694. rng.BottomSurface = 0
  2695. rng.CFrame = pos
  2696. local rngm = Instance.new("SpecialMesh", rng)
  2697. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2698. rngm.Scale = scale
  2699. local scaler2 = 1
  2700. if type == "Add" then
  2701. scaler2 = 1*value
  2702. elseif type == "Divide" then
  2703. scaler2 = 1/value
  2704. end
  2705. coroutine.resume(coroutine.create(function()
  2706. for i = 0,10,0.1 do
  2707. swait()
  2708. if type == "Add" then
  2709. scaler2 = scaler2 - 0.01*value
  2710. elseif type == "Divide" then
  2711. scaler2 = scaler2 - 0.01/value
  2712. end
  2713. rng.Transparency = rng.Transparency + 0.01
  2714. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2715. end
  2716. rng:Destroy()
  2717. end))
  2718. end
  2719.  
  2720.  
  2721. function wave(type,pos,scale,value)
  2722. local type = type
  2723. local rng = Instance.new("Part", char)
  2724. rng.Anchored = true
  2725. rng.BrickColor = origcolor
  2726. rng.CanCollide = false
  2727. rng.FormFactor = 3
  2728. rng.Name = "Ring"
  2729. rng.Size = Vector3.new(1, 1, 1)
  2730. rng.Transparency = 0
  2731. rng.TopSurface = 0
  2732. rng.BottomSurface = 0
  2733. rng.CFrame = pos
  2734. local rngm = Instance.new("SpecialMesh", rng)
  2735. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2736. rngm.Scale = scale
  2737. local scaler2 = 1
  2738. if type == "Add" then
  2739. scaler2 = 1*value
  2740. elseif type == "Divide" then
  2741. scaler2 = 1/value
  2742. end
  2743. coroutine.resume(coroutine.create(function()
  2744. for i = 0,10,0.1 do
  2745. swait()
  2746. if type == "Add" then
  2747. scaler2 = scaler2 - 0.01*value
  2748. elseif type == "Divide" then
  2749. scaler2 = scaler2 - 0.01/value
  2750. end
  2751. rng.Transparency = rng.Transparency + 0.01
  2752. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2753. end
  2754. rng:Destroy()
  2755. end))
  2756. end
  2757.  
  2758. function sphere(bonuspeed,type,pos,scale,value,color)
  2759. local type = type
  2760. local rng = Instance.new("Part", char)
  2761. rng.Anchored = true
  2762. if ModeOfGlitch ~= 9 then
  2763. rng.BrickColor = color
  2764. elseif ModeOfGlitch == 9 then
  2765. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2766. end
  2767. rng.CanCollide = false
  2768. rng.FormFactor = 3
  2769. rng.Name = "Ring"
  2770. rng.Material = "Neon"
  2771. rng.Size = Vector3.new(1, 1, 1)
  2772. rng.Transparency = 0
  2773. rng.TopSurface = 0
  2774. rng.BottomSurface = 0
  2775. rng.CFrame = pos
  2776. local rngm = Instance.new("SpecialMesh", rng)
  2777. rngm.MeshType = "Sphere"
  2778. rngm.Scale = scale
  2779. if rainbowmode == true then
  2780. rng.Color = Color3.new(r/255,g/255,b/255)
  2781. end
  2782. if ModeOfGlitch == 9 then
  2783. coroutine.resume(coroutine.create(function()
  2784. while true do
  2785. swait()
  2786. if rng.Parent ~= nil then
  2787. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2788. else
  2789. break
  2790. end
  2791. end
  2792. end))
  2793. end
  2794. local scaler2 = 1
  2795. if type == "Add" then
  2796. scaler2 = 1*value
  2797. elseif type == "Divide" then
  2798. scaler2 = 1/value
  2799. end
  2800. coroutine.resume(coroutine.create(function()
  2801. for i = 0,10/bonuspeed,0.1 do
  2802. swait()
  2803. if rainbowmode == true then
  2804. rng.Color = Color3.new(r/255,g/255,b/255)
  2805. end
  2806. if type == "Add" then
  2807. scaler2 = scaler2 - 0.01*value/bonuspeed
  2808. elseif type == "Divide" then
  2809. scaler2 = scaler2 - 0.01/value*bonuspeed
  2810. end
  2811. if chaosmode == true then
  2812. rng.BrickColor = BrickColor.random()
  2813. end
  2814. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2815. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2816. end
  2817. rng:Destroy()
  2818. end))
  2819. end
  2820.  
  2821. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2822. local type = type
  2823. local rng = Instance.new("Part", char)
  2824. rng.Anchored = true
  2825. if ModeOfGlitch ~= 9 then
  2826. rng.BrickColor = color
  2827. elseif ModeOfGlitch == 9 then
  2828. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2829. end
  2830. rng.CanCollide = false
  2831. rng.FormFactor = 3
  2832. rng.Name = "Ring"
  2833. rng.Material = "Neon"
  2834. rng.Size = Vector3.new(1, 1, 1)
  2835. rng.Transparency = 0
  2836. rng.TopSurface = 0
  2837. rng.BottomSurface = 0
  2838. rng.CFrame = pos
  2839. local rngm = Instance.new("SpecialMesh", rng)
  2840. rngm.MeshType = "Sphere"
  2841. rngm.Scale = scale
  2842. local scaler2 = 1
  2843. local scaler2b = 1
  2844. local scaler2c = 1
  2845. if type == "Add" then
  2846. scaler2 = 1*value
  2847. scaler2b = 1*value2
  2848. scaler2c = 1*value3
  2849. elseif type == "Divide" then
  2850. scaler2 = 1/value
  2851. scaler2b = 1/value2
  2852. scaler2c = 1/value3
  2853. end
  2854. if ModeOfGlitch == 9 then
  2855. coroutine.resume(coroutine.create(function()
  2856. while true do
  2857. swait()
  2858. if rng.Parent ~= nil then
  2859. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2860. else
  2861. break
  2862. end
  2863. end
  2864. end))
  2865. end
  2866. coroutine.resume(coroutine.create(function()
  2867. for i = 0,10/bonuspeed,0.1 do
  2868. swait()
  2869. if type == "Add" then
  2870. scaler2 = scaler2 - 0.01*value/bonuspeed
  2871. scaler2b = scaler2b - 0.01*value/bonuspeed
  2872. scaler2c = scaler2c - 0.01*value/bonuspeed
  2873. elseif type == "Divide" then
  2874. scaler2 = scaler2 - 0.01/value*bonuspeed
  2875. scaler2b = scaler2b - 0.01/value*bonuspeed
  2876. scaler2c = scaler2c - 0.01/value*bonuspeed
  2877. end
  2878. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2879. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2880. end
  2881. rng:Destroy()
  2882. end))
  2883. end
  2884.  
  2885. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2886. local type = type
  2887. local rotenable = rotatingop
  2888. local rng = Instance.new("Part", char)
  2889. rng.Anchored = true
  2890. rng.BrickColor = color
  2891. rng.CanCollide = false
  2892. rng.FormFactor = 3
  2893. rng.Name = "Ring"
  2894. rng.Material = "Neon"
  2895. rng.Size = Vector3.new(1, 1, 1)
  2896. rng.Transparency = 0
  2897. if typeoftrans == "In" then
  2898. rng.Transparency = 1
  2899. end
  2900. rng.TopSurface = 0
  2901. rng.BottomSurface = 0
  2902. rng.CFrame = pos
  2903. local rngm = Instance.new("SpecialMesh", rng)
  2904. rngm.MeshType = "FileMesh"
  2905. if typeofshape == "Normal" then
  2906. rngm.MeshId = "rbxassetid://662586858"
  2907. elseif typeofshape == "Round" then
  2908. rngm.MeshId = "rbxassetid://662585058"
  2909. end
  2910. rngm.Scale = scale
  2911. local scaler2 = 1/10
  2912. if type == "Add" then
  2913. scaler2 = 1*value/10
  2914. elseif type == "Divide" then
  2915. scaler2 = 1/value/10
  2916. end
  2917. local randomrot = math.random(1,2)
  2918. coroutine.resume(coroutine.create(function()
  2919. for i = 0,10/bonuspeed,0.1 do
  2920. swait()
  2921. if type == "Add" then
  2922. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2923. elseif type == "Divide" then
  2924. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2925. end
  2926. if rotenable == true then
  2927. if randomrot == 1 then
  2928. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2929. elseif randomrot == 2 then
  2930. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2931. end
  2932. end
  2933. if typeoftrans == "Out" then
  2934. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2935. elseif typeoftrans == "In" then
  2936. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2937. end
  2938. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2939. end
  2940. rng:Destroy()
  2941. end))
  2942. end
  2943.  
  2944. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2945. local type = type
  2946. local rng = Instance.new("Part", char)
  2947. rng.Anchored = true
  2948. rng.BrickColor = color
  2949. rng.CanCollide = false
  2950. rng.FormFactor = 3
  2951. rng.Name = "Ring"
  2952. rng.Material = "Neon"
  2953. rng.Size = Vector3.new(1, 1, 1)
  2954. rng.Transparency = 0
  2955. rng.TopSurface = 0
  2956. rng.BottomSurface = 0
  2957. rng.CFrame = pos
  2958. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2959. local rngm = Instance.new("SpecialMesh", rng)
  2960. rngm.MeshType = "Brick"
  2961. rngm.Scale = vt(x1,y1,z1)
  2962. if rainbowmode == true then
  2963. rng.Color = Color3.new(r/255,g/255,b/255)
  2964. end
  2965. local scaler2 = 1
  2966. local speeder = FastSpeed/10
  2967. if type == "Add" then
  2968. scaler2 = 1*value
  2969. elseif type == "Divide" then
  2970. scaler2 = 1/value
  2971. end
  2972. coroutine.resume(coroutine.create(function()
  2973. for i = 0,10/bonuspeed,0.1 do
  2974. swait()
  2975. if rainbowmode == true then
  2976. rng.Color = Color3.new(r/255,g/255,b/255)
  2977. end
  2978. if type == "Add" then
  2979. scaler2 = scaler2 - 0.01*value/bonuspeed
  2980. elseif type == "Divide" then
  2981. scaler2 = scaler2 - 0.01/value*bonuspeed
  2982. end
  2983. if chaosmode == true then
  2984. rng.BrickColor = BrickColor.random()
  2985. end
  2986. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2987. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2988. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2989. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2990. end
  2991. rng:Destroy()
  2992. end))
  2993. end
  2994.  
  2995. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2996. local type = type
  2997. local rng = Instance.new("Part", char)
  2998. rng.Anchored = true
  2999. rng.BrickColor = color
  3000. rng.CanCollide = false
  3001. rng.FormFactor = 3
  3002. rng.Name = "Ring"
  3003. rng.Material = "Neon"
  3004. rng.Size = Vector3.new(1, 1, 1)
  3005. rng.Transparency = 0
  3006. rng.TopSurface = 0
  3007. rng.BottomSurface = 0
  3008. rng.CFrame = pos
  3009. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3010. local rngm = Instance.new("SpecialMesh", rng)
  3011. rngm.MeshType = "Brick"
  3012. rngm.Scale = vt(x1,y1,z1)
  3013. if rainbowmode == true then
  3014. rng.Color = Color3.new(r/255,g/255,b/255)
  3015. end
  3016. local scaler2 = 1
  3017. local speeder = FastSpeed/10
  3018. if type == "Add" then
  3019. scaler2 = 1*value
  3020. elseif type == "Divide" then
  3021. scaler2 = 1/value
  3022. end
  3023. coroutine.resume(coroutine.create(function()
  3024. for i = 0,10/bonuspeed,0.1 do
  3025. swait()
  3026. if rainbowmode == true then
  3027. rng.Color = Color3.new(r/255,g/255,b/255)
  3028. end
  3029. if type == "Add" then
  3030. scaler2 = scaler2 - 0.01*value/bonuspeed
  3031. elseif type == "Divide" then
  3032. scaler2 = scaler2 - 0.01/value*bonuspeed
  3033. end
  3034. if chaosmode == true then
  3035. rng.BrickColor = BrickColor.random()
  3036. end
  3037. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3038. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3039. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3040. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3041. end
  3042. rng:Destroy()
  3043. end))
  3044. end
  3045.  
  3046. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3047. local type = type
  3048. local rng = Instance.new("Part", char)
  3049. rng.Anchored = true
  3050. rng.BrickColor = color
  3051. rng.CanCollide = false
  3052. rng.FormFactor = 3
  3053. rng.Name = "Ring"
  3054. rng.Material = "Neon"
  3055. rng.Size = Vector3.new(1, 1, 1)
  3056. rng.Transparency = 0
  3057. rng.TopSurface = 0
  3058. rng.BottomSurface = 0
  3059. rng.CFrame = pos
  3060. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3061. local rngm = Instance.new("SpecialMesh", rng)
  3062. rngm.MeshType = "Brick"
  3063. rngm.Scale = vt(x1,y1,z1)
  3064. if rainbowmode == true then
  3065. rng.Color = Color3.new(r/255,g/255,b/255)
  3066. end
  3067. local scaler2 = 0
  3068. local speeder = FastSpeed/10
  3069. if type == "Add" then
  3070. scaler2 = 1*value
  3071. elseif type == "Divide" then
  3072. scaler2 = 1/value
  3073. end
  3074. coroutine.resume(coroutine.create(function()
  3075. for i = 0,10/bonuspeed,0.1 do
  3076. swait()
  3077. if rainbowmode == true then
  3078. rng.Color = Color3.new(r/255,g/255,b/255)
  3079. end
  3080. if type == "Add" then
  3081. scaler2 = scaler2 - 0.01*value/bonuspeed
  3082. elseif type == "Divide" then
  3083. scaler2 = scaler2 - 0.01/value*bonuspeed
  3084. end
  3085. if chaosmode == true then
  3086. rng.BrickColor = BrickColor.random()
  3087. end
  3088. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3089. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3090. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3091. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3092. end
  3093. rng:Destroy()
  3094. end))
  3095. end
  3096.  
  3097. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3098. local type = type
  3099. local rng = Instance.new("Part", char)
  3100. rng.Anchored = true
  3101. rng.BrickColor = color
  3102. rng.Color = color3
  3103. rng.CanCollide = false
  3104. rng.FormFactor = 3
  3105. rng.Name = "Ring"
  3106. rng.Material = "Neon"
  3107. rng.Size = Vector3.new(1, 1, 1)
  3108. rng.Transparency = 0
  3109. rng.TopSurface = 0
  3110. rng.BottomSurface = 0
  3111. rng.CFrame = pos
  3112. local rngm = Instance.new("SpecialMesh", rng)
  3113. rngm.MeshType = "Brick"
  3114. rngm.Scale = scale
  3115. local scaler2 = 1
  3116. local scaler2b = 1
  3117. local scaler2c = 1
  3118. if type == "Add" then
  3119. scaler2 = 1*value
  3120. scaler2b = 1*value2
  3121. scaler2c = 1*value3
  3122. elseif type == "Divide" then
  3123. scaler2 = 1/value
  3124. scaler2b = 1/value2
  3125. scaler2c = 1/value3
  3126. end
  3127. coroutine.resume(coroutine.create(function()
  3128. for i = 0,10/bonuspeed,0.1 do
  3129. swait()
  3130. if type == "Add" then
  3131. scaler2 = scaler2 - 0.01*value/bonuspeed
  3132. scaler2b = scaler2b - 0.01*value/bonuspeed
  3133. scaler2c = scaler2c - 0.01*value/bonuspeed
  3134. elseif type == "Divide" then
  3135. scaler2 = scaler2 - 0.01/value*bonuspeed
  3136. scaler2b = scaler2b - 0.01/value*bonuspeed
  3137. scaler2c = scaler2c - 0.01/value*bonuspeed
  3138. end
  3139. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3140. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3141. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3142. end
  3143. rng:Destroy()
  3144. end))
  3145. end
  3146.  
  3147. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3148. local type = type
  3149. local rng = Instance.new("Part", char)
  3150. rng.Anchored = true
  3151. if ModeOfGlitch ~= 9 then
  3152. rng.BrickColor = color
  3153. elseif ModeOfGlitch == 9 then
  3154. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3155. end
  3156. rng.CanCollide = false
  3157. rng.FormFactor = 3
  3158. rng.Name = "Ring"
  3159. rng.Material = "Neon"
  3160. rng.Size = Vector3.new(1, 1, 1)
  3161. rng.Transparency = 0
  3162. rng.TopSurface = 0
  3163. rng.BottomSurface = 0
  3164. rng.CFrame = pos
  3165. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3166. local rngm = Instance.new("SpecialMesh", rng)
  3167. rngm.MeshType = "Sphere"
  3168. rngm.Scale = vt(x1,y1,z1)
  3169. if rainbowmode == true then
  3170. rng.Color = Color3.new(r/255,g/255,b/255)
  3171. end
  3172. if ModeOfGlitch == 9 then
  3173. coroutine.resume(coroutine.create(function()
  3174. while true do
  3175. swait()
  3176. if rng.Parent ~= nil then
  3177. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3178. else
  3179. break
  3180. end
  3181. end
  3182. end))
  3183. end
  3184. local scaler2 = 1
  3185. local speeder = FastSpeed
  3186. if type == "Add" then
  3187. scaler2 = 1*value
  3188. elseif type == "Divide" then
  3189. scaler2 = 1/value
  3190. end
  3191. coroutine.resume(coroutine.create(function()
  3192. for i = 0,10/bonuspeed,0.1 do
  3193. swait()
  3194. if rainbowmode == true then
  3195. rng.Color = Color3.new(r/255,g/255,b/255)
  3196. end
  3197. if type == "Add" then
  3198. scaler2 = scaler2 - 0.01*value/bonuspeed
  3199. elseif type == "Divide" then
  3200. scaler2 = scaler2 - 0.01/value*bonuspeed
  3201. end
  3202. if chaosmode == true then
  3203. rng.BrickColor = BrickColor.random()
  3204. end
  3205. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3206. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3207. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3208. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3209. end
  3210. rng:Destroy()
  3211. end))
  3212. end
  3213.  
  3214.  
  3215. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3216. local type = type
  3217. local rng = Instance.new("Part", char)
  3218. rng.Anchored = true
  3219. if ModeOfGlitch ~= 9 then
  3220. rng.BrickColor = color
  3221. elseif ModeOfGlitch == 9 then
  3222. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3223. end
  3224. rng.CanCollide = false
  3225. rng.FormFactor = 3
  3226. rng.Name = "Ring"
  3227. rng.Material = "Neon"
  3228. rng.Size = Vector3.new(1, 1, 1)
  3229. rng.Transparency = 1
  3230. rng.TopSurface = 0
  3231. rng.BottomSurface = 0
  3232. rng.CFrame = pos
  3233. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3234. local rngm = Instance.new("SpecialMesh", rng)
  3235. rngm.MeshType = "Sphere"
  3236. rngm.Scale = vt(x1,y1,z1)
  3237. if rainbowmode == true then
  3238. rng.Color = Color3.new(r/255,g/255,b/255)
  3239. end
  3240. if ModeOfGlitch == 9 then
  3241. coroutine.resume(coroutine.create(function()
  3242. while true do
  3243. swait()
  3244. if rng.Parent ~= nil then
  3245. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3246. else
  3247. break
  3248. end
  3249. end
  3250. end))
  3251. end
  3252. local scaler2 = 1
  3253. local speeder = FastSpeed
  3254. if type == "Add" then
  3255. scaler2 = 1*value
  3256. elseif type == "Divide" then
  3257. scaler2 = 1/value
  3258. end
  3259. coroutine.resume(coroutine.create(function()
  3260. for i = 0,10/bonuspeed,0.1 do
  3261. swait()
  3262. if rainbowmode == true then
  3263. rng.Color = Color3.new(r/255,g/255,b/255)
  3264. end
  3265. if type == "Add" then
  3266. scaler2 = scaler2 - 0.01*value/bonuspeed
  3267. elseif type == "Divide" then
  3268. scaler2 = scaler2 - 0.01/value*bonuspeed
  3269. end
  3270. if chaosmode == true then
  3271. rng.BrickColor = BrickColor.random()
  3272. end
  3273. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3274. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3275. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3276. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3277. end
  3278. rng:Destroy()
  3279. end))
  3280. end
  3281.  
  3282. function dmg(dude)
  3283. if dude.Name ~= Character then
  3284. local keptcolor = MAINRUINCOLOR
  3285. local bgf = Instance.new("BodyGyro",dude.Head)
  3286. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3287. --[[local val = Instance.new("BoolValue",dude)
  3288. val.Name = "IsHit"]]--
  3289. local ds = coroutine.wrap(function()
  3290. dude:WaitForChild("Head"):BreakJoints()
  3291. for i, v in pairs(dude:GetChildren()) do
  3292. if v:IsA("Part") or v:IsA("MeshPart") then
  3293. v.Name = "DEMINISHED"
  3294. end
  3295. end
  3296. wait(0.5)
  3297. targetted = nil
  3298. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3299. coroutine.resume(coroutine.create(function()
  3300. for i, v in pairs(dude:GetChildren()) do
  3301. if v:IsA("Accessory") then
  3302. v:Destroy()
  3303. end
  3304. if v:IsA("Humanoid") then
  3305. v:Destroy()
  3306. end
  3307. if v:IsA("CharacterMesh") then
  3308. v:Destroy()
  3309. end
  3310. if v:IsA("Model") then
  3311. v:Destroy()
  3312. end
  3313. if v:IsA("Part") or v:IsA("MeshPart") then
  3314. for x, o in pairs(v:GetChildren()) do
  3315. if o:IsA("Decal") then
  3316. o:Destroy()
  3317. end
  3318. end
  3319. coroutine.resume(coroutine.create(function()
  3320. v.Material = "Neon"
  3321. v.CanCollide = false
  3322. v.Anchored = false
  3323. local bld = Instance.new("ParticleEmitter",v)
  3324. bld.LightEmission = 0.75
  3325. bld.Texture = "rbxassetid://363275192" ---284205403
  3326. bld.Color = ColorSequence.new(keptcolor.Color)
  3327. bld.Rate = 500
  3328. bld.Lifetime = NumberRange.new(1)
  3329. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3330. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3331. bld.Speed = NumberRange.new(2,5)
  3332. bld.VelocitySpread = 50000
  3333. bld.Rotation = NumberRange.new(-500,500)
  3334. bld.RotSpeed = NumberRange.new(-500,500)
  3335. local sbs = Instance.new("BodyPosition", v)
  3336. sbs.P = 3000
  3337. sbs.D = 1000
  3338. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3339. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3340. v.Color = keptcolor.Color
  3341. coroutine.resume(coroutine.create(function()
  3342. for i = 0, 49 do
  3343. swait(1)
  3344. v:BreakJoints()
  3345. v.Transparency = v.Transparency + 0.02
  3346. end
  3347. v:BreakJoints()
  3348. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3349. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3350. bld.Speed = NumberRange.new(10,25)
  3351. bld.Drag = 5
  3352. bld.Acceleration = vt(0,2,0)
  3353. wait(0.5)
  3354. bld.Enabled = false
  3355. wait(8)
  3356. v:Destroy()
  3357. dude:Destroy()
  3358. end))
  3359. end))
  3360. end
  3361. end
  3362. end))
  3363. end)
  3364. ds()
  3365. end
  3366. end
  3367.  
  3368.  
  3369. function FindNearestHead(Position, Distance, SinglePlayer)
  3370. if SinglePlayer then
  3371. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3372. end
  3373. local List = {}
  3374. for i, v in pairs(workspace:GetChildren()) do
  3375. if v:IsA("Model") then
  3376. if v:findFirstChild("Head") then
  3377. if v ~= Character then
  3378. if (v.Head.Position - Position).magnitude <= Distance then
  3379. table.insert(List, v)
  3380. end
  3381. end
  3382. end
  3383. end
  3384. end
  3385. return List
  3386. end
  3387.  
  3388. function FaceMouse()
  3389. Cam = workspace.CurrentCamera
  3390. return {
  3391. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3392. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3393. }
  3394. end
  3395.  
  3396. function FaceMouse2()
  3397. Cam = workspace.CurrentCamera
  3398. return {
  3399. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3400. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3401. }
  3402. end
  3403.  
  3404. local ModeOfGlitch = 1
  3405. -- Functions are ready.
  3406. local storehumanoidWS = 16
  3407.  
  3408. function CorruptBlink()
  3409. for i = 0, 14 do
  3410. 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)
  3411. end
  3412. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3413. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3414. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3415. CameraEnshaking(2,10)
  3416. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3417. if v:FindFirstChild('Head') then
  3418. dmg(v)
  3419. end
  3420. end
  3421. for i = 0, 14 do
  3422. 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)
  3423. end
  3424. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3425. end
  3426. function PureBomb()
  3427. attack = true
  3428. hum.WalkSpeed = 0
  3429. local orb = Instance.new("Part", char)
  3430. orb.Anchored = true
  3431. orb.BrickColor = BrickColor.new("Toothpaste")
  3432. orb.CanCollide = false
  3433. orb.FormFactor = 3
  3434. orb.Name = "Ring"
  3435. orb.Material = "Neon"
  3436. orb.Size = Vector3.new(1, 1, 1)
  3437. orb.Transparency = 0
  3438. orb.TopSurface = 0
  3439. orb.BottomSurface = 0
  3440. local orbm = Instance.new("SpecialMesh", orb)
  3441. orbm.MeshType = "Sphere"
  3442. orbm.Name = "SizeMesh"
  3443. orbm.Scale = vt(0,0,0)
  3444. local scaled = 0.1
  3445. local posid = 0
  3446. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3447. for i = 0, 5, 0.1 do
  3448. swait()
  3449. scaled = scaled - 0.001
  3450. posid = posid - scaled
  3451. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3452. local scaled = 0.1
  3453. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3454. 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)
  3455. 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)
  3456. 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)
  3457. 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)
  3458. 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)
  3459. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3460. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3461. 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)
  3462. end
  3463. for i = 0, 2, 0.1 do
  3464. swait()
  3465. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3466. 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)
  3467. 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)
  3468. 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)
  3469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3470. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3471. 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)
  3472. end
  3473. coroutine.resume(coroutine.create(function()
  3474. orb.Anchored = false
  3475. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3476. local a = Instance.new("Part",workspace)
  3477. a.Name = "Direction"
  3478. a.Anchored = true
  3479. a.BrickColor = bc("Bright red")
  3480. a.Material = "Neon"
  3481. a.Transparency = 1
  3482. a.CanCollide = false
  3483. local ray = Ray.new(
  3484. orb.CFrame.p, -- origin
  3485. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3486. )
  3487. local ignore = orb
  3488. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3489. a.BottomSurface = 10
  3490. a.TopSurface = 10
  3491. local distance = (orb.CFrame.p - position).magnitude
  3492. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3493. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3494. orb.CFrame = a.CFrame
  3495. a:Destroy()
  3496. local bv = Instance.new("BodyVelocity")
  3497. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3498. bv.velocity = orb.CFrame.lookVector*125
  3499. bv.Parent = orb
  3500. local hitted = false
  3501. game:GetService("Debris"):AddItem(orb, 15)
  3502. wait()
  3503. local hit =orb.Touched:connect(function(hit)
  3504. if hitted == false then
  3505. hitted = true
  3506. CameraEnshaking(10,2.5)
  3507. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3508. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3509. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3510. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3511. for i = 0, 49 do
  3512. 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)
  3513. end
  3514. for i = 0, 9 do
  3515. 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)
  3516. 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)
  3517. end
  3518. orb.Anchored = true
  3519. orb.Transparency = 1
  3520. wait(8)
  3521. orb:Destroy()
  3522. end
  3523. end)
  3524. end))
  3525. for i = 0, 1, 0.1 do
  3526. swait()
  3527. 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)
  3528. 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)
  3529. 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)
  3530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3531. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3532. 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)
  3533. end
  3534. hum.WalkSpeed = storehumanoidWS
  3535. attack = false
  3536. end
  3537.  
  3538. function BanishingOrb()
  3539. attack = true
  3540. hum.WalkSpeed = 0
  3541. local orb = Instance.new("Part", char)
  3542. orb.Anchored = true
  3543. orb.BrickColor = BrickColor.new("Black")
  3544. orb.CanCollide = false
  3545. orb.FormFactor = 3
  3546. orb.Name = "Ring"
  3547. orb.Material = "Neon"
  3548. orb.Size = Vector3.new(1, 1, 1)
  3549. orb.Transparency = 0
  3550. orb.TopSurface = 0
  3551. orb.BottomSurface = 0
  3552. local orbm = Instance.new("SpecialMesh", orb)
  3553. orbm.MeshType = "Sphere"
  3554. orbm.Name = "SizeMesh"
  3555. orbm.Scale = vt(0,0,0)
  3556. local scaled = 0.1
  3557. local posid = 0
  3558. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3559. for i = 0, 5, 0.1 do
  3560. swait()
  3561. scaled = scaled - 0.001
  3562. posid = posid - scaled
  3563. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3564. local scaled = 0.1
  3565. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3566. 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)
  3567. 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)
  3568. 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)
  3569. 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)
  3570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3571. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3572. 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)
  3573. end
  3574. for i = 0, 2, 0.1 do
  3575. swait()
  3576. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3577. 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)
  3578. 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)
  3579. 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)
  3580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3581. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3582. 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)
  3583. end
  3584. coroutine.resume(coroutine.create(function()
  3585. orb.Anchored = false
  3586. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3587. local a = Instance.new("Part",workspace)
  3588. a.Name = "Direction"
  3589. a.Anchored = true
  3590. a.BrickColor = bc("Bright red")
  3591. a.Material = "Neon"
  3592. a.Transparency = 1
  3593. a.CanCollide = false
  3594. local ray = Ray.new(
  3595. orb.CFrame.p, -- origin
  3596. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3597. )
  3598. local ignore = orb
  3599. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3600. a.BottomSurface = 10
  3601. a.TopSurface = 10
  3602. local distance = (orb.CFrame.p - position).magnitude
  3603. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3604. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3605. orb.CFrame = a.CFrame
  3606. a:Destroy()
  3607. local bv = Instance.new("BodyVelocity")
  3608. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3609. bv.velocity = orb.CFrame.lookVector*0
  3610. bv.Parent = orb
  3611. local hitted = false
  3612. local rate = 0
  3613. coroutine.resume(coroutine.create(function()
  3614. for i = 0, 24 do
  3615. wait(0.1)
  3616. rate = rate + 0.25
  3617. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3618. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3619. if v:FindFirstChild('Head') then
  3620. dmg(v)
  3621. end
  3622. end
  3623. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3624. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3625. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3626. end
  3627. orb.Anchored = true
  3628. orb.Transparency = 1
  3629. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3630. if v:FindFirstChild('Head') then
  3631. dmg(v)
  3632. end
  3633. end
  3634. local eff = Instance.new("ParticleEmitter",orb)
  3635. eff.Texture = "rbxassetid://296874871"
  3636. eff.LightEmission = 0.95
  3637. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3638. eff.Rate = 1000000000
  3639. eff.Lifetime = NumberRange.new(3)
  3640. 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)})
  3641. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3642. eff.Speed = NumberRange.new(30)
  3643. eff.Acceleration = vt(0,-15,0)
  3644. eff.Rotation = NumberRange.new(-500,500)
  3645. eff.VelocitySpread = 100000
  3646. eff.RotSpeed = NumberRange.new(-500,500)
  3647. coroutine.resume(coroutine.create(function()
  3648. wait(0.6)
  3649. eff.Enabled = false
  3650. end))
  3651. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3652. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3653. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3654. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3655. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3656. game:GetService("Debris"):AddItem(orb, 15)
  3657. end))
  3658. end))
  3659. for i = 0, 1, 0.1 do
  3660. swait()
  3661. 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)
  3662. 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)
  3663. 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)
  3664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3665. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3666. 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)
  3667. end
  3668. hum.WalkSpeed = storehumanoidWS
  3669. attack = false
  3670. end
  3671.  
  3672.  
  3673. function ChaosGroundStrike()
  3674. attack = true
  3675. for i = 0, 2, 0.1 do
  3676. swait()
  3677. 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)
  3678. 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)
  3679. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3680. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3681. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3682. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3683. end
  3684. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3685. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3686. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 1.5, 1,0,10,0.15,0.5,1)
  3687. CFuncs["EchoSound"].Create("rbxassetid://357202073", root, 10, 1,0,10,0.15,0.5,1)
  3688. bosschatfunc("TASTE MY POWER!",MAINRUINCOLOR.Color,1)
  3689. CameraEnshaking(4,12)
  3690. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3691. if v:FindFirstChild('Head') then
  3692. dmg(v)
  3693. end
  3694. end
  3695. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3696. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3697. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3698. for i = 0, 2, 0.1 do
  3699. swait()
  3700. 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)
  3701. 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)
  3702. 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)
  3703. 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)
  3704. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3705. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3706. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3707. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3708. end
  3709. attack = false
  3710. end
  3711.  
  3712.  
  3713.  
  3714. function Starfall()
  3715. attack = true
  3716. hum.WalkSpeed = 0
  3717. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3718. for i = 0, 5, 0.1 do
  3719. swait()
  3720. 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)
  3721. 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)
  3722. 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)
  3723. 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)
  3724. 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)
  3725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3726. 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)
  3727. 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)
  3728. end
  3729. local Overed = false
  3730. CameraEnshaking(2,20)
  3731. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3732. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3733. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3734. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3735. local orb = Instance.new("Part", char)
  3736. orb.Anchored = true
  3737. orb.BrickColor = BrickColor.new("Toothpaste")
  3738. orb.CanCollide = false
  3739. orb.FormFactor = 3
  3740. orb.Name = "Remenant"
  3741. orb.Material = "Neon"
  3742. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3743. orb.Size = Vector3.new(1, 1, 1)
  3744. orb.Transparency = 1
  3745. orb.TopSurface = 0
  3746. orb.BottomSurface = 0
  3747. hum.WalkSpeed = storehumanoidWS
  3748. coroutine.resume(coroutine.create(function()
  3749. for i = 0, 9 do
  3750. swait(10)
  3751. local lb = Instance.new("Part")
  3752. lb.Color = MAINRUINCOLOR.Color
  3753. lb.CanCollide = false
  3754. lb.Material = "Neon"
  3755. lb.Anchored = true
  3756. lb.TopSurface = 0
  3757. lb.BottomSurface = 0
  3758. lb.Transparency = 0
  3759. lb.Size = vt(1,1,1)
  3760. 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)))
  3761. lb.Anchored = false
  3762. lb.Parent = char
  3763. local thingery = Instance.new("SpecialMesh",lb)
  3764. thingery.MeshType = "Sphere"
  3765. thingery.Scale = vt(20,20,20)
  3766. game:GetService("Debris"):AddItem(lb, 10)
  3767. local bv = Instance.new("BodyVelocity")
  3768. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3769. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3770. bv.Parent = lb
  3771. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3772. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3773. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3774. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3775. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3776. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3777. local hitted = false
  3778. coroutine.resume(coroutine.create(function()
  3779. while true do
  3780. swait(1)
  3781. if lb.Parent ~= nil and hitted == false then
  3782. 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)
  3783. elseif lb.Parent == nil then
  3784. break
  3785. end
  3786. end
  3787. end))
  3788.  
  3789. game:GetService("Debris"):AddItem(a, 0.1)
  3790.  
  3791. coroutine.resume(coroutine.create(function()
  3792. swait(1)
  3793. lb.Touched:connect(function(hit)
  3794. if hitted == false then
  3795. hitted = true
  3796. lb.Transparency = 1
  3797. lb.Anchored = true
  3798. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3799. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3800. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3801. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3802. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3803. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3804. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3805. CameraEnshaking(1,5)
  3806. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3807. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3808. for i = 0, 9 do
  3809. 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)
  3810. end
  3811. for i = 0, 49 do
  3812. swait()
  3813. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3814. 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)
  3815. end
  3816. end
  3817. end)
  3818. end))
  3819. end
  3820. Overed = true
  3821. orb:Destroy()
  3822. end))
  3823.  
  3824. attack = false
  3825. end
  3826.  
  3827. function StarfallEX()
  3828. attack = true
  3829. hum.WalkSpeed = 0
  3830. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3831. for i = 0, 10, 0.1 do
  3832. swait()
  3833. 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)
  3834. 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)
  3835. 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)
  3836. 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)
  3837. 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)
  3838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3839. 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)
  3840. 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)
  3841. end
  3842. local Overed = false
  3843. CameraEnshaking(2,20)
  3844. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3845. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3846. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3847. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3848. local orb = Instance.new("Part", char)
  3849. orb.Anchored = true
  3850. orb.BrickColor = BrickColor.new("Toothpaste")
  3851. orb.CanCollide = false
  3852. orb.FormFactor = 3
  3853. orb.Name = "Remenant"
  3854. orb.Material = "Neon"
  3855. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3856. orb.Size = Vector3.new(1, 1, 1)
  3857. orb.Transparency = 1
  3858. orb.TopSurface = 0
  3859. orb.BottomSurface = 0
  3860. hum.WalkSpeed = storehumanoidWS
  3861. coroutine.resume(coroutine.create(function()
  3862. for i = 0, 4 do
  3863. swait(15)
  3864. local lb = Instance.new("Part")
  3865. lb.Color = MAINRUINCOLOR.Color
  3866. lb.CanCollide = false
  3867. lb.Material = "Neon"
  3868. lb.Anchored = true
  3869. lb.TopSurface = 0
  3870. lb.BottomSurface = 0
  3871. lb.Transparency = 0
  3872. lb.Size = vt(1,1,1)
  3873. 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)))
  3874. lb.Anchored = false
  3875. lb.Parent = char
  3876. local thingery = Instance.new("SpecialMesh",lb)
  3877. thingery.MeshType = "Sphere"
  3878. thingery.Scale = vt(50,50,50)
  3879. game:GetService("Debris"):AddItem(lb, 10)
  3880. local bv = Instance.new("BodyVelocity")
  3881. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3882. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3883. bv.Parent = lb
  3884. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3885. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3886. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3887. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3888. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3889. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3890. local hitted = false
  3891. coroutine.resume(coroutine.create(function()
  3892. while true do
  3893. swait(1)
  3894. if lb.Parent ~= nil and hitted == false then
  3895. 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)
  3896. elseif lb.Parent == nil then
  3897. break
  3898. end
  3899. end
  3900. end))
  3901.  
  3902. game:GetService("Debris"):AddItem(a, 0.1)
  3903.  
  3904. coroutine.resume(coroutine.create(function()
  3905. swait(1)
  3906. lb.Touched:connect(function(hit)
  3907. if hitted == false then
  3908. hitted = true
  3909. lb.Transparency = 1
  3910. lb.Anchored = true
  3911. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3912. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3913. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3914. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3915. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3916. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3917. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3918. CameraEnshaking(1,5)
  3919. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3920. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3921. for i = 0, 9 do
  3922. 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)
  3923. end
  3924. for i = 0, 99 do
  3925. swait()
  3926. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3927. 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)
  3928. end
  3929. end
  3930. end)
  3931. end))
  3932. end
  3933. Overed = true
  3934. orb:Destroy()
  3935. end))
  3936.  
  3937. attack = false
  3938. end
  3939.  
  3940. function DivineBlast()
  3941. attack = true
  3942. hum.WalkSpeed = 0
  3943. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3944. elocacenter.Anchored = true
  3945. elocacenter.CFrame = sorb.CFrame
  3946. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3947. eloca1.Anchored = true
  3948. eloca1.CFrame = elocacenter.CFrame
  3949. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3950. eloca2.Anchored = true
  3951. eloca2.CFrame = elocacenter.CFrame
  3952. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3953. eloca3.Anchored = true
  3954. eloca3.CFrame = elocacenter.CFrame
  3955. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3956. eloca4.Anchored = true
  3957. eloca4.CFrame = elocacenter.CFrame
  3958. local lookavec = 0
  3959. local speeds = 0
  3960. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3961. for i = 0, 3, 0.1 do
  3962. swait()
  3963. ---
  3964. lookavec = lookavec + 0.1
  3965. speeds = speeds + 10
  3966. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3967. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3968. 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)
  3969.  
  3970. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3971. 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)
  3972.  
  3973. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3974. 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)
  3975.  
  3976. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3977. 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)
  3978. ---
  3979. root.CFrame = FaceMouse()[1]
  3980. 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)
  3981. 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)
  3982. 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)
  3983. 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)
  3984. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3985. 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)
  3986. end
  3987. for i = 0, 3, 0.1 do
  3988. swait()
  3989. ---
  3990. speeds = speeds + 10
  3991. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3992. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3993. 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)
  3994.  
  3995. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3996. 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)
  3997.  
  3998. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3999. 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)
  4000.  
  4001. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4002. 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)
  4003. ---
  4004. root.CFrame = FaceMouse()[1]
  4005. 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)
  4006. 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)
  4007. 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)
  4008. 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)
  4009. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4010. 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)
  4011. end
  4012. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4013. for i = 0, 3, 0.1 do
  4014. swait()
  4015. ---
  4016. speeds = speeds + 10
  4017. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4018. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4019. 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)
  4020.  
  4021. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4022. 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)
  4023.  
  4024. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4025. 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)
  4026.  
  4027. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4028. 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)
  4029. ---
  4030. root.CFrame = FaceMouse()[1]
  4031. 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)
  4032. 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)
  4033. 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)
  4034. 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)
  4035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4036. 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)
  4037. end
  4038. coroutine.resume(coroutine.create(function()
  4039. local a = Instance.new("Part",Character)
  4040. a.Name = "Direction"
  4041. a.Anchored = true
  4042. a.BrickColor = bc("White")
  4043. a.Material = "Neon"
  4044. a.Transparency = 0
  4045. a.Shape = "Cylinder"
  4046. a.CanCollide = false
  4047. local a2 = Instance.new("Part",Character)
  4048. a2.Name = "Direction"
  4049. a2.Anchored = true
  4050. a2.BrickColor = bc("Bright yellow")
  4051. a2.Material = "Neon"
  4052. a2.Transparency = 0
  4053. a2.Shape = "Cylinder"
  4054. a2.CanCollide = false
  4055. local b = Instance.new("Part",Character)
  4056. b.Name = "HitDirect"
  4057. b.Anchored = true
  4058. b.BrickColor = bc("Cool yellow")
  4059. b.Material = "Neon"
  4060. b.Transparency = 1
  4061. b.CanCollide = false
  4062. local ray = Ray.new(
  4063. elocacenter.CFrame.p, -- origin
  4064. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4065. )
  4066. local ignore = Character
  4067. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4068. a.BottomSurface = 10
  4069. a.TopSurface = 10
  4070. a2.BottomSurface = 10
  4071. a2.TopSurface = 10
  4072. local distance = (elocacenter.CFrame.p - position).magnitude
  4073. a.Size = Vector3.new(distance, 1, 1)
  4074. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4075. a2.Size = Vector3.new(distance, 1, 1)
  4076. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4077. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4078. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4079. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4080. game:GetService("Debris"):AddItem(a, 10)
  4081. game:GetService("Debris"):AddItem(a2, 10)
  4082. game:GetService("Debris"):AddItem(b, 10)
  4083. local msh = Instance.new("SpecialMesh",a)
  4084. msh.MeshType = "Cylinder"
  4085. msh.Scale = vt(1,2,2)
  4086. local msh2 = Instance.new("SpecialMesh",a2)
  4087. msh2.MeshType = "Cylinder"
  4088. msh2.Scale = vt(1,2.5,2.5)
  4089. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4090. coroutine.resume(coroutine.create(function()
  4091. for i = 0,10,0.1 do
  4092. swait()
  4093. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4094. a.Transparency = a.Transparency + 0.025
  4095. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4096. a2.Transparency = a2.Transparency + 0.05
  4097. end
  4098. a:Destroy()
  4099. a2:Destroy()
  4100. end))
  4101. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4102. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4103. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4104. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4105. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4106. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4107. MagniDamage(b, 25, 40,65, 0, "Normal")
  4108. for i = 0, 49 do
  4109. 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)
  4110. 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)
  4111. end
  4112. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4113. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4114. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4115. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4116. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4117. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4118. end))
  4119. game:GetService("Debris"):AddItem(elocacenter, 5)
  4120. hum.WalkSpeed = storehumanoidWS
  4121. attack = false
  4122. end
  4123.  
  4124. function StarDivision()
  4125. attack = true
  4126. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4127. for i = 0, 2, 0.1 do
  4128. swait()
  4129. 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)
  4130. 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)
  4131. 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)
  4132. 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)
  4133. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4134. 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)
  4135. end
  4136. local orb = Instance.new("Part", char)
  4137. orb.BrickColor = MAINRUINCOLOR
  4138. orb.CanCollide = false
  4139. orb.FormFactor = 3
  4140. orb.Name = "Ring"
  4141. orb.Material = "Neon"
  4142. orb.Size = Vector3.new(1, 1, 1)
  4143. orb.Transparency = 0
  4144. orb.TopSurface = 0
  4145. orb.BottomSurface = 0
  4146. local orbm = Instance.new("SpecialMesh", orb)
  4147. orbm.MeshType = "Sphere"
  4148. orbm.Name = "SizeMesh"
  4149. orbm.Scale = vt(2,2,2)
  4150. local a = Instance.new("Part",workspace)
  4151. a.Name = "Direction"
  4152. a.Anchored = true
  4153. a.BrickColor = bc("Bright red")
  4154. a.Material = "Neon"
  4155. a.Transparency = 1
  4156. a.CanCollide = false
  4157. local ray = Ray.new(
  4158. sorb.CFrame.p, -- origin
  4159. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4160. )
  4161. local ignore = sorb
  4162. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4163. a.BottomSurface = 10
  4164. a.TopSurface = 10
  4165. local distance = (sorb.CFrame.p - position).magnitude
  4166. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4167. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4168. orb.CFrame = a.CFrame
  4169. a:Destroy()
  4170. local bv = Instance.new("BodyVelocity")
  4171. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4172. bv.velocity = orb.CFrame.lookVector*100
  4173. bv.Parent = orb
  4174. local hitted = false
  4175. game:GetService("Debris"):AddItem(orb, 10)
  4176. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4177. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4178. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4179. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4180. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4181. coroutine.resume(coroutine.create(function()
  4182. while true do
  4183. swait(1)
  4184. if orb.Parent ~= nil and hitted == false then
  4185. 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)
  4186. elseif orb.Parent == nil then
  4187. break
  4188. end
  4189. end
  4190. end))
  4191. coroutine.resume(coroutine.create(function()
  4192. swait(1)
  4193. orb.Touched:connect(function(hit)
  4194. if hitted == false then
  4195. hitted = true
  4196. game:GetService("Debris"):AddItem(orb, 5)
  4197. orb.Transparency = 1
  4198. orb.Anchored = true
  4199. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4200. elocacenter.Anchored = true
  4201. elocacenter.CFrame = orb.CFrame
  4202. elocacenter.Orientation = vt(0,0,0)
  4203. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4204. eloca1.Anchored = true
  4205. eloca1.CFrame = elocacenter.CFrame
  4206. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4207. eloca2.Anchored = true
  4208. eloca2.CFrame = elocacenter.CFrame
  4209. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4210. eloca3.Anchored = true
  4211. eloca3.CFrame = elocacenter.CFrame
  4212. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4213. eloca4.Anchored = true
  4214. eloca4.CFrame = elocacenter.CFrame
  4215. local lookavec = 0
  4216. local speeds = 0
  4217. CameraEnshaking(1,1)
  4218. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4219. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4220. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4221. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4222. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4223. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4224. for i = 0, 99 do
  4225. swait()
  4226. lookavec = lookavec + 1
  4227. speeds = speeds + 0.1
  4228. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4229. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4230. 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)
  4231.  
  4232. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4233. 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)
  4234.  
  4235. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4236. 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)
  4237.  
  4238. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4239. 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)
  4240. end
  4241.  
  4242. for i = 0, 149 do
  4243. swait()
  4244. speeds = speeds + 0.1
  4245. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4246. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4247. 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)
  4248.  
  4249. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4250. 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)
  4251.  
  4252. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4253. 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)
  4254.  
  4255. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4256. 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)
  4257. end
  4258. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4259. if v:FindFirstChild('Head') then
  4260. dmg(v)
  4261. end
  4262. end
  4263. CameraEnshaking(7,30)
  4264. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4265. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4266. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4267. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4268. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4269. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4270. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4271. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4272. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4273. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4274. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4275. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4276. for i = 0, 24 do
  4277. 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)
  4278. 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)
  4279. 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)
  4280. 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)
  4281. end
  4282. coroutine.resume(coroutine.create(function()
  4283. for i = 0, 499 do
  4284. swait(1)
  4285. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4286. 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)
  4287. end
  4288. elocacenter:Destroy()
  4289. eloca1:Destroy()
  4290. eloca2:Destroy()
  4291. eloca3:Destroy()
  4292. eloca4:Destroy()
  4293. end))
  4294. end
  4295. end)
  4296. end))
  4297. attack = false
  4298. end
  4299.  
  4300.  
  4301. function THE_TRUE_POWER_OF_VIOLENCE()
  4302. attack = true
  4303. hum.WalkSpeed = 0
  4304. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4305. for i = 0, 10, 0.1 do
  4306. swait()
  4307. 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)
  4308. 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)
  4309. 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)
  4310. 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)
  4311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4312. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4313. 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)
  4314. end
  4315. local orb = Instance.new("Part", char)
  4316. orb.BrickColor = MAINRUINCOLOR
  4317. orb.CanCollide = false
  4318. orb.FormFactor = 3
  4319. orb.Name = "Ring"
  4320. orb.Material = "Neon"
  4321. orb.Size = Vector3.new(1, 1, 1)
  4322. orb.Transparency = 0
  4323. orb.TopSurface = 0
  4324. orb.BottomSurface = 0
  4325. orb.CFrame = sorb.CFrame
  4326. local orbm = Instance.new("SpecialMesh", orb)
  4327. orbm.MeshType = "Sphere"
  4328. orbm.Name = "SizeMesh"
  4329. orbm.Scale = vt(0,0,0)
  4330. local sbs = Instance.new("BodyPosition", orb)
  4331. sbs.P = 3000
  4332. sbs.D = 1000
  4333. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4334. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4335. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4336. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4337. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4338. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4339. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4340. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4341. for i = 0, 10, 0.1 do
  4342. swait()
  4343. 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)
  4344. 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)
  4345. 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)
  4346. 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)
  4347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4349. 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)
  4350. end
  4351. orb.Anchored = true
  4352. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4353. elocacenter.Anchored = true
  4354. elocacenter.CFrame = orb.CFrame
  4355. elocacenter.Orientation = vt(0,0,0)
  4356. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4357. eloca1.Anchored = true
  4358. eloca1.CFrame = elocacenter.CFrame
  4359. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4360. eloca2.Anchored = true
  4361. eloca2.CFrame = elocacenter.CFrame
  4362. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4363. eloca3.Anchored = true
  4364. eloca3.CFrame = elocacenter.CFrame
  4365. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4366. eloca4.Anchored = true
  4367. eloca4.CFrame = elocacenter.CFrame
  4368. local lookavec = 0
  4369. local speeds = 0
  4370. CameraEnshaking(1,1)
  4371. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4372. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4373. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4374. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4375. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4376. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4377. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4378. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4379. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4380. for i = 0, 99 do
  4381. swait()
  4382. lookavec = lookavec + 2.5
  4383. speeds = speeds + 0.25
  4384. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4385. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4386. 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)
  4387.  
  4388. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4389. 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)
  4390.  
  4391. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4392. 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)
  4393.  
  4394. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4395. 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)
  4396. end
  4397.  
  4398. for i = 0, 149 do
  4399. swait()
  4400. speeds = speeds + 0.25
  4401. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4402. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4403. 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)
  4404.  
  4405. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4406. 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)
  4407.  
  4408. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4409. 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)
  4410.  
  4411. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4412. 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)
  4413. end
  4414. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4415. for i = 0, 99 do
  4416. swait()
  4417. lookavec = lookavec - 2.5
  4418. speeds = speeds + 0.25
  4419. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4420. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4421. 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)
  4422.  
  4423. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4424. 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)
  4425.  
  4426. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4427. 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)
  4428.  
  4429. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4430. 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)
  4431. end
  4432. local scaled = 0.1*75
  4433. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4434. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4435. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4436. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4437. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4438. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4439. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4440. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4441. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4442. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4443. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4444. for i = 0, 10, 0.1 do
  4445. swait()
  4446. scaled = scaled - 0.001*75
  4447. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4448. 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)
  4449. 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)
  4450. 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)
  4451. 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)
  4452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4454. 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)
  4455. end
  4456. for x = 0, 4 do
  4457. for i = 0, 9 do
  4458. 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)
  4459. end
  4460. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4461. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4462. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4463. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4464. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4465. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4466. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4467. for i = 0, 5, 0.1 do
  4468. swait()
  4469. 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)
  4470. 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)
  4471. 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)
  4472. 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)
  4473. 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)
  4474. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4475. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4476. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4477. end
  4478. end
  4479. local speedearn = 0
  4480. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4481. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4482. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4483. for i = 0, 30, 0.1 do
  4484. swait()
  4485. scaled = scaled - 0.001*75/10
  4486. speedearn = speedearn + 0.5
  4487. for i = 0, 4 do
  4488. 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)
  4489. end
  4490. 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)
  4491. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4492. 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)
  4493. 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)
  4494. 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)
  4495. 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)
  4496. 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)
  4497. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4499. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4500. end
  4501. orb.Transparency = 1
  4502. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4503. if v:FindFirstChild('Head') then
  4504. dmg(v)
  4505. end
  4506. end
  4507. CameraEnshaking(7,30)
  4508. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4509. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4510. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4511. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4512. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4513. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4514. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4515. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4516. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4517. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4518. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4519. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4520. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4521. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4522. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4523. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4524. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4525. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4526. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4527. for i = 0, 99 do
  4528. 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)
  4529. 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)
  4530. end
  4531. for i = 0, 24 do
  4532. 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)
  4533. 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)
  4534. 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)
  4535. 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)
  4536. 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)
  4537. end
  4538. game:GetService("Debris"):AddItem(orb, 10)
  4539. hum.WalkSpeed = storehumanoidWS
  4540. attack = false
  4541. end
  4542.  
  4543.  
  4544. function ViolentRing()
  4545. attack = true
  4546. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4547. for i = 0, 2, 0.1 do
  4548. swait()
  4549. local snap = math.random(1,10)
  4550. if snap == 1 then
  4551. 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)
  4552. end
  4553. 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)
  4554. 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)
  4555. 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)
  4556. 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)
  4557. 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)
  4558. 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)
  4559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4560. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4561. 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)
  4562. RootPart.CFrame = FaceMouse()[1]
  4563. end
  4564. local orb = Instance.new("Part", char)
  4565. orb.BrickColor = MAINRUINCOLOR
  4566. orb.CanCollide = false
  4567. orb.FormFactor = 3
  4568. orb.Name = "Ring"
  4569. orb.Material = "Neon"
  4570. orb.Size = Vector3.new(1, 1, 1)
  4571. orb.Transparency = 0
  4572. orb.TopSurface = 0
  4573. orb.BottomSurface = 0
  4574. local orbm = Instance.new("SpecialMesh", orb)
  4575. orbm.MeshType = "Sphere"
  4576. orbm.Name = "SizeMesh"
  4577. orbm.Scale = vt(2,2,2)
  4578. orb.CFrame = mouse.Hit
  4579. local bv = Instance.new("BodyVelocity")
  4580. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4581. bv.velocity = orb.CFrame.lookVector*100
  4582. bv.Parent = orb
  4583. local hitted = false
  4584. coroutine.resume(coroutine.create(function()
  4585. game:GetService("Debris"):AddItem(orb, 5)
  4586. orb.Transparency = 1
  4587. orb.Anchored = true
  4588. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4589. elocacenter.Anchored = true
  4590. elocacenter.CFrame = orb.CFrame
  4591. elocacenter.Orientation = vt(0,0,0)
  4592. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4593. eloca1.Anchored = true
  4594. eloca1.CFrame = elocacenter.CFrame
  4595. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4596. eloca2.Anchored = true
  4597. eloca2.CFrame = elocacenter.CFrame
  4598. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4599. eloca3.Anchored = true
  4600. eloca3.CFrame = elocacenter.CFrame
  4601. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4602. eloca4.Anchored = true
  4603. eloca4.CFrame = elocacenter.CFrame
  4604. local lookavec = 0
  4605. local speeds = 0
  4606. CameraEnshaking(1,1)
  4607. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4608. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4609. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4610. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4611. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4612. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4613. for i = 0, 24 do
  4614. swait()
  4615. lookavec = lookavec + 3.5
  4616. speeds = speeds + 1
  4617. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4618. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4619. 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)
  4620.  
  4621. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4622. 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)
  4623.  
  4624. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4625. 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)
  4626.  
  4627. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4628. 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)
  4629. end
  4630.  
  4631. local risen = 0
  4632. for i = 0, 49 do
  4633. swait()
  4634. risen = risen + 0.05
  4635. speeds = speeds + 0.1
  4636. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4637. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4638. 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)
  4639.  
  4640. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4641. 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)
  4642.  
  4643. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4644. 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)
  4645.  
  4646. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4647. 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)
  4648. end
  4649. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4650. if v:FindFirstChild('Head') then
  4651. dmg(v)
  4652. end
  4653. end
  4654. CameraEnshaking(4,10)
  4655. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4656. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4657. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4658. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4659. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4660. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4661. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4662. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4663. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4664. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4665. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4666. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4667. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4668. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4669. for i = 0, 24 do
  4670. 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)
  4671. 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)
  4672. 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)
  4673. 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)
  4674. end
  4675. coroutine.resume(coroutine.create(function()
  4676. wait(10)
  4677. elocacenter:Destroy()
  4678. eloca1:Destroy()
  4679. eloca2:Destroy()
  4680. eloca3:Destroy()
  4681. eloca4:Destroy()
  4682. end))
  4683. end))
  4684. attack = false
  4685. end
  4686.  
  4687. function UniversalCollapse()
  4688. attack = true
  4689. local speedearn = 0
  4690. hum.WalkSpeed = 0
  4691. local sbs = Instance.new("BodyPosition", root)
  4692. sbs.P = 3000
  4693. sbs.D = 1000
  4694. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4695. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4696. bosschatfunc("*Roars*",MAINRUINCOLOR.Color,1)
  4697. CFuncs["EchoSound"].Create("rbxassetid://1286168545", char, 1.5, 1,0,10,0.15,0.5,1)
  4698. CFuncs["EchoSound"].Create("rbxassetid://1286168545", root, 10, 1,0,10,0.15,0.5,1)
  4699. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4700. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4701. for i = 0, 110, 0.1 do
  4702. swait()
  4703. speedearn = speedearn + 0.1
  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. 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)
  4706. 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)
  4707. 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)
  4708. 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)
  4709. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4710. 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)
  4711. 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)
  4712. 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)
  4713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4714. 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)
  4715. 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)
  4716. end
  4717. CameraEnshaking(5,50)
  4718. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4719. for i = 0, 2 do
  4720. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4721. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4722. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4723. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4724. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4725. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4726. end
  4727. for i = 0, 49 do
  4728. 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)
  4729. 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)
  4730. 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)
  4731. 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)
  4732. end
  4733. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4734. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4735. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4736. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4737. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4738. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4739. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4740. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4741. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4742. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4743. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4744. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4745. for i = 0, 99 do
  4746. 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)
  4747. 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)
  4748. end
  4749. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4750. if v:FindFirstChild('Head') then
  4751. dmg(v)
  4752. end
  4753. end
  4754. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4755. sbs:Destroy()
  4756. hum.WalkSpeed = storehumanoidWS
  4757. attack = false
  4758. end
  4759.  
  4760.  
  4761. function ChaosEND()
  4762. attack = true
  4763. local speedearn = 0
  4764. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,1)
  4765. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4766. for i = 0, 15, 0.1 do
  4767. swait()
  4768. speedearn = speedearn + 0.25
  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. 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)
  4771. 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)
  4772. 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)
  4773. 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)
  4774. 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)
  4775. 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)
  4776. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4777. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4778. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4779. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4780. end
  4781. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,1)
  4782. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4783. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4784. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4785. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4786. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4787. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4788. CameraEnshaking(5,25)
  4789. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4790. if v:FindFirstChild('Head') then
  4791. dmg(v)
  4792. end
  4793. end
  4794. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4795. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4796. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4797. for i = 0, 3, 0.1 do
  4798. swait()
  4799. 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)
  4800. 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)
  4801. 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)
  4802. 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)
  4803. 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)
  4804. 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)
  4805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4808. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4809. end
  4810. attack = false
  4811. end
  4812.  
  4813. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4814. local orb = Instance.new("Part", char)
  4815. orb.Anchored = true
  4816. orb.BrickColor = color
  4817. orb.CanCollide = false
  4818. orb.FormFactor = 3
  4819. orb.Name = "Ring"
  4820. orb.Material = "Neon"
  4821. orb.Size = Vector3.new(1, 1, 1)
  4822. orb.Transparency = 0
  4823. orb.TopSurface = 0
  4824. orb.BottomSurface = 0
  4825. local orbm = Instance.new("SpecialMesh", orb)
  4826. orbm.MeshType = "Sphere"
  4827. orb.CFrame = positted
  4828. orbm.Name = "SizeMesh"
  4829. orbm.Scale = vt(1,1,1)
  4830. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4831. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4832. --[[for i = 0, 2 do
  4833. 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)
  4834. end]]--
  4835. coroutine.resume(coroutine.create(function()
  4836. wait(timer)
  4837. CameraEnshaking(3,ShakePower)
  4838. orb.Transparency = 1
  4839. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4840. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4841. --[[for i = 0, 4 do
  4842. 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)
  4843. end]]--
  4844. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4845. wait(3)
  4846. orb:Destroy()
  4847. end))
  4848. end
  4849.  
  4850. function orb_spawn(positted,timer)
  4851. local randomcol = math.random(1,2)
  4852. local orb = Instance.new("Part", char)
  4853. orb.Anchored = true
  4854. if randomcol == 1 then
  4855. orb.BrickColor = BrickColor.new("White")
  4856. elseif randomcol == 2 then
  4857. orb.BrickColor = BrickColor.new("Really black")
  4858. end
  4859. orb.CanCollide = false
  4860. orb.FormFactor = 3
  4861. orb.Name = "Ring"
  4862. orb.Material = "Neon"
  4863. orb.Size = Vector3.new(1, 1, 1)
  4864. orb.Transparency = 0
  4865. orb.TopSurface = 0
  4866. orb.BottomSurface = 0
  4867. local orbm = Instance.new("SpecialMesh", orb)
  4868. orbm.MeshType = "Sphere"
  4869. orb.CFrame = positted
  4870. orbm.Name = "SizeMesh"
  4871. orbm.Scale = vt(1,1,1)
  4872. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4873. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4874. for i = 0, 2 do
  4875. 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)
  4876. end
  4877. coroutine.resume(coroutine.create(function()
  4878. wait(timer)
  4879. CameraEnshaking(3,2)
  4880. orb.Transparency = 1
  4881. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4882. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4883. for i = 0, 4 do
  4884. 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)
  4885. end
  4886. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4887. wait(3)
  4888. orb:Destroy()
  4889. end))
  4890. end
  4891.  
  4892. function scattercorrupt()
  4893. attack = true
  4894. local rot = 0
  4895. local randomrotations = math.random(1,2)
  4896. local lookv = 2.5
  4897. local power = 5
  4898. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4899. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4900. for i = 0, 9 do
  4901. 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)
  4902. end
  4903. bosschatfunc("*Laughs*",MAINRUINCOLOR.Color,1)
  4904. CFuncs["EchoSound"].Create("rbxassetid://357202240", char, 1.5, 1,0,10,0.15,0.5,1)
  4905. CFuncs["EchoSound"].Create("rbxassetid://357202240", root, 10, 1,0,10,0.15,0.5,1)
  4906. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.75)
  4907. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.5)
  4908. local hite = Instance.new("Part", char)
  4909. hite.Anchored = true
  4910. hite.CanCollide = false
  4911. hite.FormFactor = 3
  4912. hite.Name = "Ring"
  4913. hite.Material = "Neon"
  4914. hite.Size = Vector3.new(1, 1, 1)
  4915. hite.Transparency = 1
  4916. hite.TopSurface = 0
  4917. hite.BottomSurface = 0
  4918. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4919. local rem = Instance.new("Part", char)
  4920. rem.Anchored = true
  4921. rem.CanCollide = false
  4922. rem.FormFactor = 3
  4923. rem.Name = "Ring"
  4924. rem.Material = "Neon"
  4925. rem.Size = Vector3.new(1, 1, 1)
  4926. rem.Transparency = 1
  4927. rem.TopSurface = 0
  4928. rem.BottomSurface = 0
  4929. rem.CFrame = hite.CFrame
  4930. local rem2 = rem:Clone()
  4931. rem2.Parent = char
  4932. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4933. local rem3 = rem:Clone()
  4934. rem3.Parent = char
  4935. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4936. local rem4 = rem:Clone()
  4937. rem4.Parent = char
  4938. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4939. hite:Destroy()
  4940. coroutine.resume(coroutine.create(function()
  4941. for i = 0, 24 do
  4942. swait(1)
  4943. if randomrotations == 1 then
  4944. rot = rot + 1
  4945. elseif randomrotations == 2 then
  4946. rot = rot - 1
  4947. end
  4948. power = power + 0.5
  4949. lookv = lookv + 7.5
  4950. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4951. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4952. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4953. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4954. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4955. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4956. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4957. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4958. end
  4959. end))
  4960. attack = false
  4961. end
  4962. function yinyangi()
  4963. attack = true
  4964. for i = 0, 2, 0.1 do
  4965. swait()
  4966. bosschatfunc("YAAAAHHHHHHH!",MAINRUINCOLOR.Color,1)
  4967. CFuncs["EchoSound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  4968. CFuncs["EchoSound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  4969. 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)
  4970. 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)
  4971. 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)
  4972. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4973. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4974. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4975. end
  4976. local bv = Instance.new("BodyVelocity")
  4977. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4978. bv.velocity = root.CFrame.lookVector*175
  4979. bv.Parent = root
  4980. for Rotations = 0, 9 do
  4981. for i = 0, 1, 0.5 do
  4982. swait()
  4983. bv.velocity = root.CFrame.lookVector*175
  4984. 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)
  4985. 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)
  4986. 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)
  4987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4988. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4989. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4990. end
  4991. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4992. for i = 0, 1, 0.5 do
  4993. swait()
  4994. bv.velocity = root.CFrame.lookVector*175
  4995. 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)
  4996. 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)
  4997. 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)
  4998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5000. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5001. end
  5002. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5003. for i = 0, 1, 0.5 do
  5004. swait()
  5005. bv.velocity = root.CFrame.lookVector*175
  5006. 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)
  5007. 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)
  5008. 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)
  5009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5011. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5012. end
  5013. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5014. for i = 0, 1, 0.5 do
  5015. swait()
  5016. bv.velocity = root.CFrame.lookVector*175
  5017. 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)
  5018. 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)
  5019. 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)
  5020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5022. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5023. end
  5024. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5025. end
  5026. bv:Destroy()
  5027. attack = false
  5028. end
  5029.  
  5030. function createBGCircle(size,parent,color)
  5031. local bgui = Instance.new("BillboardGui",parent)
  5032. bgui.Size = UDim2.new(size, 0, size, 0)
  5033. local imgc = Instance.new("ImageLabel",bgui)
  5034. imgc.BackgroundTransparency = 1
  5035. imgc.ImageTransparency = 0
  5036. imgc.Size = UDim2.new(1,0,1,0)
  5037. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5038. imgc.ImageColor3 = color
  5039. return bgui,imgc
  5040. end
  5041.  
  5042. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5043. local bgui,imgc = createBGCircle(size,guipar,color)
  5044. bgui.AlwaysOnTop = true
  5045. imgc.Image = "rbxassetid://" ..img
  5046. local rrot = math.random(1,2)
  5047. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5048. coroutine.resume(coroutine.create(function()
  5049. for i = 0, 24*delay do
  5050. swait()
  5051. if rotationenabled == true then
  5052. if rrot == 1 then
  5053. imgc.Rotation = imgc.Rotation + rotsp
  5054. elseif rrot == 2 then
  5055. imgc.Rotation = imgc.Rotation - rotsp
  5056. end
  5057. end
  5058. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5059. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5060. end
  5061. bgui:Destroy()
  5062. end))
  5063. end
  5064. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5065. for i, v in pairs(mw2:GetChildren()) do
  5066. if v:IsA("Part") then
  5067. v.BrickColor = one
  5068. v.Material = "Neon"
  5069. end
  5070. end
  5071. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5072. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5073. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5074. tr1.Color = ColorSequence.new(one.Color)
  5075. tr2.Color = ColorSequence.new(one.Color)
  5076. tr3.Color = ColorSequence.new(one.Color)
  5077. for i, v in pairs(mw1:GetChildren()) do
  5078. if v:IsA("Part") then
  5079. if secondaryenabled == false then
  5080. v.Transparency = 1
  5081. elseif secondaryenabled == true then
  5082. v.Transparency = 0
  5083. end
  5084. v.BrickColor = two
  5085. v.Material = "Neon"
  5086. end
  5087. end
  5088. if secondaryenabled == false then
  5089. tl1.Enabled = false
  5090. tl2.Enabled = false
  5091. tl3.Enabled = false
  5092. elseif secondaryenabled == true then
  5093. tl1.Enabled = true
  5094. tl2.Enabled = true
  5095. tl3.Enabled = true
  5096. end
  5097. tl1.Color = ColorSequence.new(two.Color)
  5098. tl2.Color = ColorSequence.new(two.Color)
  5099. tl3.Color = ColorSequence.new(two.Color)
  5100. for i, v in pairs(m:GetChildren()) do
  5101. if v:IsA("Part") then
  5102. v.BrickColor = three
  5103. v.Material = "Ice"
  5104. end
  5105. end
  5106. for i, v in pairs(m2:GetChildren()) do
  5107. if v:IsA("Part") then
  5108. v.BrickColor = four
  5109. v.Material = "Ice"
  5110. end
  5111. end
  5112. for i, v in pairs(m3:GetChildren()) do
  5113. if v:IsA("Part") then
  5114. v.BrickColor = five
  5115. v.Material = "Neon"
  5116. end
  5117. end
  5118. for i, v in pairs(extrawingmod1:GetChildren()) do
  5119. if v:IsA("Part") then
  5120. v.Transparency = exonetran
  5121. v.BrickColor = exone
  5122. v.Material = "Neon"
  5123. end
  5124. end
  5125. for i, v in pairs(extrawingmod2:GetChildren()) do
  5126. if v:IsA("Part") then
  5127. v.Transparency = extwotran
  5128. v.BrickColor = extwo
  5129. v.Material = "Neon"
  5130. end
  5131. end
  5132. end
  5133.  
  5134.  
  5135. function normalmog()
  5136. attack = true
  5137. hum.WalkSpeed = 0
  5138. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5139. for i = 0,6,0.1 do
  5140. swait()
  5141. 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)
  5142. 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)
  5143. 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)
  5144. 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)
  5145. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5146. 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)
  5147. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5148. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5149. end
  5150. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5151. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5152. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5153. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5154. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5155. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5156. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5157. rainbowmode = false
  5158. chaosmode = false
  5159. ModeOfGlitch = 1
  5160. storehumanoidWS = 16
  5161. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5162. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5163. CameraEnshaking(5,2.5)
  5164. MAINRUINCOLOR = BrickColor.new("Really red")
  5165. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5166. for i = 0, 49 do
  5167. 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)
  5168. end
  5169. for i = 0, 24 do
  5170. 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)
  5171. 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"))
  5172. end
  5173. for i = 0,3,0.1 do
  5174. 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)
  5175. end
  5176. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5177. for i = 0,2,0.1 do
  5178. swait()
  5179. 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)
  5180. 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)
  5181. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5182. 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)
  5183. 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)
  5184. 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)
  5185. end
  5186. hum.WalkSpeed = storehumanoidWS
  5187. attack = false
  5188. end
  5189.  
  5190. function attackone()
  5191. attack = true
  5192. local keptcolor = MAINRUINCOLOR
  5193. for i = 0,1,0.1 do
  5194. swait()
  5195. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5196. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5197. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5198. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5199. 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)
  5200. 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)
  5201. end
  5202. local distlook = 5
  5203. coroutine.resume(coroutine.create(function()
  5204. for i = 0, 4 do
  5205. swait(2)
  5206. CameraEnshaking(2,3)
  5207. local hite = Instance.new("Part", char)
  5208. hite.Anchored = true
  5209. hite.CanCollide = false
  5210. hite.FormFactor = 3
  5211. hite.Name = "Ring"
  5212. hite.Material = "Neon"
  5213. hite.Size = Vector3.new(1, 1, 1)
  5214. hite.Transparency = 1
  5215. hite.TopSurface = 0
  5216. hite.BottomSurface = 0
  5217. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5218. 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)
  5219. 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)
  5220. 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)
  5221. 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)
  5222. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5223. for i = 0, 14 do
  5224. local rsiz = math.random(5,20)
  5225. 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)
  5226. end
  5227. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5228. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5229. game:GetService("Debris"):AddItem(hite, 5)
  5230. distlook = distlook + 10
  5231. end
  5232. end))
  5233. for i = 0,1,0.1 do
  5234. swait()
  5235. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5236. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5237. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5238. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5239. 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)
  5240. 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)
  5241. end
  5242. attack = false
  5243. end
  5244.  
  5245. function attacktwo()
  5246. attack = true
  5247. hum.WalkSpeed = 2
  5248. local keptcolor = MAINRUINCOLOR
  5249. bosschatfunc("DIE, DIE, DIE!",MAINRUINCOLOR.Color,1)
  5250. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5251. CFuncs["EchoSound"].Create("rbxassetid://506001681", char, 1.5, 1,0,10,0.15,0.5,1)
  5252. CFuncs["EchoSound"].Create("rbxassetid://506001681", root, 10, 1,0,10,0.15,0.5,1)
  5253. 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)
  5254. 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)
  5255. for i = 0, 14 do
  5256. end
  5257. for i = 0,1,0.1 do
  5258. swait()
  5259. 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)
  5260. 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)
  5261. 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)
  5262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5264. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5265. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5266. end
  5267. for i = 0, 1 do
  5268. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5269. for i = 0,1,0.6 do
  5270. swait()
  5271. 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)
  5272. 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)
  5273. 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)
  5274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5276. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5277. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5278. end
  5279. for i = 0,1,0.6 do
  5280. swait()
  5281. 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)
  5282. 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)
  5283. 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)
  5284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5286. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5287. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5288. end
  5289. for i = 0,1,0.6 do
  5290. swait()
  5291. 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)
  5292. 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)
  5293. 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)
  5294. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5296. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5297. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5298. end
  5299. for i = 0,1,0.6 do
  5300. swait()
  5301. 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)
  5302. 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)
  5303. 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)
  5304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5306. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5307. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5308. end
  5309. local rot = 0
  5310. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5311. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5312. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5313. CreateMesh(dis,"Sphere",10,1,10)
  5314. local at1 = Instance.new("Attachment",dis)
  5315. at1.Position = vt(-5,0,0)
  5316. local at2 = Instance.new("Attachment",dis)
  5317. at2.Position = vt(5,0,0)
  5318. local trl = Instance.new('Trail',wed)
  5319. trl.Attachment0 = at1
  5320. trl.Attachment1 = at2
  5321. trl.Texture = "rbxassetid://1049219073"
  5322. trl.LightEmission = 1
  5323. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5324. trl.Color = ColorSequence.new(dis.Color)
  5325. trl.Lifetime = 0.6
  5326. local a = Instance.new("Part",workspace)
  5327. a.Name = "Direction"
  5328. a.Anchored = true
  5329. a.BrickColor = bc("Bright red")
  5330. a.Material = "Neon"
  5331. a.Transparency = 1
  5332. a.CanCollide = false
  5333. local ray = Ray.new(
  5334. dis.CFrame.p, -- origin
  5335. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5336. )
  5337. local ignore = dis
  5338. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5339. a.BottomSurface = 10
  5340. a.TopSurface = 10
  5341. local distance = (dis.CFrame.p - position).magnitude
  5342. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5343. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5344. dis.CFrame = a.CFrame
  5345. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5346. a:Destroy()
  5347. local bv = Instance.new("BodyVelocity")
  5348. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5349. bv.velocity = dis.CFrame.lookVector*250
  5350. bv.Parent = dis
  5351. game:GetService("Debris"):AddItem(dis, 5)
  5352. local hitted = false
  5353. coroutine.resume(coroutine.create(function()
  5354. dis.Touched:connect(function(hit)
  5355. if hitted == false and hit.Parent ~= char then
  5356. hitted = true
  5357. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5358. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5359. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5360. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5361. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5362. coroutine.resume(coroutine.create(function()
  5363. for i = 0, 9 do
  5364. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5365. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5366. local at1 = Instance.new("Attachment",disr)
  5367. at1.Position = vt(-5,0,0)
  5368. local at2 = Instance.new("Attachment",disr)
  5369. at2.Position = vt(5,0,0)
  5370. local trl = Instance.new('Trail',disr)
  5371. trl.Attachment0 = at1
  5372. trl.FaceCamera = true
  5373. trl.Attachment1 = at2
  5374. trl.Texture = "rbxassetid://2342682798"
  5375. trl.LightEmission = 1
  5376. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5377. trl.Color = ColorSequence.new(keptcolor.Color)
  5378. trl.Lifetime = 0.5
  5379. local bv = Instance.new("BodyVelocity")
  5380. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5381. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5382. bv.Parent = disr
  5383. local val = 0
  5384. coroutine.resume(coroutine.create(function()
  5385. swait(30)
  5386. for i = 0, 9 do
  5387. swait()
  5388. val = val + 0.1
  5389. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5390. end
  5391. game:GetService("Debris"):AddItem(disr, 3)
  5392. end))
  5393. end
  5394. local eff = Instance.new("ParticleEmitter",dis)
  5395. eff.Texture = "rbxassetid://2273224484"
  5396. eff.LightEmission = 1
  5397. eff.Color = ColorSequence.new(keptcolor.Color)
  5398. eff.Rate = 50
  5399. eff.Lifetime = NumberRange.new(0.5,2)
  5400. 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)})
  5401. 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)})
  5402. eff.Speed = NumberRange.new(20,250)
  5403. eff.Drag = 5
  5404. eff.Rotation = NumberRange.new(-500,500)
  5405. eff.VelocitySpread = 9000
  5406. eff.RotSpeed = NumberRange.new(-50,50)
  5407. wait(0.25)
  5408. eff.Enabled = false
  5409. end))
  5410. for i = 0, 9 do
  5411. end
  5412. for i = 0, 19 do
  5413. end
  5414. coroutine.resume(coroutine.create(function()
  5415. for i = 0, 19 do
  5416. swait()
  5417. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5418. end
  5419. hum.CameraOffset = vt(0,0,0)
  5420. end))
  5421. dis.Anchored = true
  5422. dis.Transparency = 1
  5423. wait(8)
  5424. dis:Destroy()
  5425. end
  5426. end)
  5427. end))
  5428. rot = rot - 15
  5429. end
  5430. for i = 0,2,0.1 do
  5431. swait()
  5432. 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)
  5433. 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)
  5434. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5437. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5438. end
  5439. attack = false
  5440. hum.WalkSpeed = storehumanoidWS
  5441. end
  5442.  
  5443. function attackthree()
  5444. attack = true
  5445. local keptcolor = MAINRUINCOLOR
  5446. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5447. bosschatfunc("LIGHTNING FLAME DRAGON MODE!",MAINRUINCOLOR.Color,1)
  5448. CFuncs["EchoSound"].Create("rbxassetid://905829513", char, 1.5, 1,0,10,0.15,0.5,1)
  5449. CFuncs["EchoSound"].Create("rbxassetid://905829513", root, 10, 1,0,10,0.15,0.5,1)
  5450. for i = 0,2,0.1 do
  5451. swait()
  5452. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5453. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5454. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5455. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5456. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5457. 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)
  5458. 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)
  5459. end
  5460. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5461. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5462. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5463. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5464. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5465. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5466. for i = 0, 24 do
  5467. end
  5468. for i = 0,4,0.1 do
  5469. swait()
  5470. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5471. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5472. CreateMesh(dis,"Sphere",1,1,1)
  5473. dis.Anchored = true
  5474. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5475. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5476. coroutine.resume(coroutine.create(function()
  5477. swait(30)
  5478. dis.Transparency = 1
  5479. coroutine.resume(coroutine.create(function()
  5480. for i = 0, 19 do
  5481. swait()
  5482. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5483. end
  5484. hum.CameraOffset = vt(0,0,0)
  5485. end))
  5486. coroutine.resume(coroutine.create(function()
  5487. local eff = Instance.new("ParticleEmitter",dis)
  5488. eff.Texture = "rbxassetid://2273224484"
  5489. eff.LightEmission = 1
  5490. eff.Color = ColorSequence.new(dis.Color)
  5491. eff.Rate = 500000
  5492. eff.Lifetime = NumberRange.new(0.5,2)
  5493. 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)})
  5494. 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)})
  5495. eff.Speed = NumberRange.new(50,450)
  5496. eff.Drag = 5
  5497. eff.Rotation = NumberRange.new(-500,500)
  5498. eff.VelocitySpread = 9000
  5499. eff.RotSpeed = NumberRange.new(-50,50)
  5500. wait(0.125)
  5501. eff.Enabled = false
  5502. end))
  5503. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5504. for i = 0, 2 do
  5505. --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)
  5506. end
  5507. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5508. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5509. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5510. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5511. end))
  5512. game:GetService("Debris"):AddItem(dis, 5)
  5513. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5514. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5515. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5516. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5517. 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)
  5518. 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)
  5519. end
  5520. attack = false
  5521. end
  5522. ----------------------------------- Abilities
  5523.  
  5524. function ExtinctiveHeartbreak()
  5525. local targetted = nil
  5526. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5527. targetted = mouse.Target.Parent
  5528. end
  5529. if targetted ~= nil then
  5530. attack = true
  5531. bosschatfunc("I AM THE MIGHTIEST!!",MAINRUINCOLOR.Color,1)
  5532. CFuncs["EchoSound"].Create("rbxassetid://357202141", char, 1.5, 1,0,10,0.15,0.5,1)
  5533. CFuncs["EchoSound"].Create("rbxassetid://357202141", root, 10, 1,0,10,0.15,0.5,1)
  5534. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5535. for i = 0, 9 do
  5536. --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)
  5537. end
  5538. for i = 0, 24 do
  5539. --
  5540. end
  5541. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5542. local originalpos = root.CFrame
  5543. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5544. for i = 0, 9 do
  5545. --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)
  5546. end
  5547. for i = 0, 24 do
  5548. end
  5549. hum.WalkSpeed = 0
  5550. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5551. local radm = math.random(1,3)
  5552. if radm == 1 then
  5553. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5554. elseif radm == 2 then
  5555. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5556. elseif radm == 3 then
  5557. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5558. end
  5559. for i = 0,2,0.1 do
  5560. swait()
  5561. 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)
  5562. 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)
  5563. 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)
  5564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5565. 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)
  5566. 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)
  5567. end
  5568. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5569. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5570. for i = 0,2,0.1 do
  5571. swait()
  5572. coroutine.resume(coroutine.create(function()
  5573. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5574. for i,v in pairs(targetted:GetChildren()) do
  5575. if v:IsA("Part") or v:IsA("MeshPart") then
  5576. v.Velocity = vt(0,0,0)
  5577. end
  5578. end
  5579. end))
  5580. 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)
  5581. 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)
  5582. 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)
  5583. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5584. 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)
  5585. 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)
  5586. end
  5587. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5588. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5589. for i = 0, 1 do
  5590. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5591. end
  5592. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5593. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5594. for i = 0,4,0.1 do
  5595. swait()
  5596. coroutine.resume(coroutine.create(function()
  5597. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5598. 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)))
  5599. local at1 = Instance.new("Attachment",dis)
  5600. at1.Position = vt(-25000,0,0)
  5601. local at2 = Instance.new("Attachment",dis)
  5602. at2.Position = vt(25000,0,0)
  5603. local trl = Instance.new('Trail',dis)
  5604. trl.Attachment0 = at1
  5605. trl.FaceCamera = true
  5606. trl.Attachment1 = at2
  5607. trl.Texture = "rbxassetid://1049219073"
  5608. trl.LightEmission = 1
  5609. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5610. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5611. trl.Lifetime = 5
  5612. local bv = Instance.new("BodyVelocity")
  5613. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5614. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5615. bv.Parent = dis
  5616. game:GetService("Debris"):AddItem(dis, 5)
  5617. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5618. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5619. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5620. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5621. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5622. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5623. 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)
  5624. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5625. for i = 0, 2 do
  5626. --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"))
  5627. end
  5628. 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)
  5629. for i,v in pairs(targetted:GetChildren()) do
  5630. if v:IsA("Part") or v:IsA("MeshPart") then
  5631. v.Velocity = vt(0,0,0)
  5632. end
  5633. end
  5634. end))
  5635. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5636. 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)
  5637. 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)
  5638. 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)
  5639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5640. 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)
  5641. 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)
  5642. end
  5643. hum.CameraOffset = vt(0,0,0)
  5644. for i = 0, 49 do
  5645. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5646. 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)))
  5647. local at1 = Instance.new("Attachment",dis)
  5648. at1.Position = vt(-50000,0,0)
  5649. local at2 = Instance.new("Attachment",dis)
  5650. at2.Position = vt(50000,0,0)
  5651. local trl = Instance.new('Trail',dis)
  5652. trl.Attachment0 = at1
  5653. trl.FaceCamera = true
  5654. trl.Attachment1 = at2
  5655. trl.Texture = "rbxassetid://1049219073"
  5656. trl.LightEmission = 1
  5657. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5658. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5659. trl.Lifetime = 5
  5660. local bv = Instance.new("BodyVelocity")
  5661. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5662. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5663. bv.Parent = dis
  5664. game:GetService("Debris"):AddItem(dis, 5)
  5665. end
  5666. for i = 0, 49 do
  5667. 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)
  5668. --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"))
  5669. end
  5670. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5671. for i = 0, 1 do
  5672. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5673. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5674. end
  5675. for i = 0, 4 do
  5676. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5677. end
  5678. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5679. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5680. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5681. dmg(targetted)
  5682. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  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. root.CFrame = originalpos
  5690. for i = 0, 9 do
  5691. --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)
  5692. end
  5693. for i = 0, 24 do
  5694. end
  5695. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5696. attack = false
  5697. hum.WalkSpeed = storehumanoidWS
  5698. end
  5699. end
  5700.  
  5701. function CorruptionEvent()
  5702. attack = true
  5703. hum.WalkSpeed = 0
  5704. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  5705. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  5706. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  5707. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5708. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5709. local keptcolor = MAINRUINCOLOR
  5710. for i = 0,4,0.1 do
  5711. swait()
  5712. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5713. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5714. 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)
  5715. 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)
  5716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5718. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5719. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5720. end
  5721. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5722. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5723. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5724. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5725. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5726. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5727. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5728. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5729. hum.CameraOffset = vt(0,0,0)
  5730. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5731. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5732. for i = 0, 24 do
  5733. --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"))
  5734. end
  5735. local rrot = 0
  5736. coroutine.resume(coroutine.create(function()
  5737. for i = 0, 4 do
  5738. rrot = rrot + 45
  5739. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5740. xa.Anchored = true
  5741. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5742. xb.Anchored = true
  5743. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5744. xc.Anchored = true
  5745. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5746. xd.Anchored = true
  5747. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5748. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5749. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5750. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5751. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5752. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5753. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5754. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5755. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5756. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5757. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5758. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5759. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5760. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5761. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5762. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5763. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5764. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5765. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5766. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5767. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5768. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5769. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5770. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5771. 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)
  5772. 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)
  5773. 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)
  5774. 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)
  5775. 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))
  5776. 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))
  5777. 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))
  5778. 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))
  5779. game:GetService("Debris"):AddItem(xa, 5)
  5780. game:GetService("Debris"):AddItem(xb, 5)
  5781. game:GetService("Debris"):AddItem(xc, 5)
  5782. game:GetService("Debris"):AddItem(xd, 5)
  5783. coroutine.resume(coroutine.create(function()
  5784. for i = 0, 19 do
  5785. swait()
  5786. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5787. end
  5788. hum.CameraOffset = vt(0,0,0)
  5789. end))
  5790. swait(9)
  5791. end
  5792. end))
  5793. for i = 0,2,0.1 do
  5794. swait()
  5795. 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)
  5796. 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)
  5797. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5798. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5799. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5800. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5801. end
  5802. attack = false
  5803. hum.WalkSpeed = storehumanoidWS
  5804. end
  5805.  
  5806. function EndGROUND()
  5807. attack = true
  5808. hum.WalkSpeed = 0
  5809. bosschatfunc("IS THAT YOUR BEST!",MAINRUINCOLOR.Color,1)
  5810. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5811. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5812. CFuncs["EchoSound"].Create("rbxassetid://357202032", char, 1.5, 1,0,10,0.15,0.5,1)
  5813. CFuncs["EchoSound"].Create("rbxassetid://357202032", root, 10, 1,0,10,0.15,0.5,1)
  5814. local keptcolor = MAINRUINCOLOR
  5815. for i = 0,4,0.1 do
  5816. swait()
  5817. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5818. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5819. --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"))
  5820. 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)
  5821. 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)
  5822. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5823. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5824. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5825. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5826. end
  5827. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5828. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5829. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5830. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5831. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5832. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5833. coroutine.resume(coroutine.create(function()
  5834. local shval = 10
  5835. for i = 0, 99 do
  5836. swait()
  5837. shval = shval - 0.1
  5838. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5839. end
  5840. hum.CameraOffset = vt(0,0,0)
  5841. end))
  5842. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5843. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5844. for i = 0, 24 do
  5845. --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"))
  5846. end
  5847. local rrot = 0
  5848. local xam = 1
  5849. coroutine.resume(coroutine.create(function()
  5850. for i = 0, 14 do
  5851. --swait()
  5852. rrot = rrot + 40*xam
  5853. xam = xam + 0.25
  5854. local bonus = xam
  5855. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5856. xa.Anchored = true
  5857. xa.Color = Color3.new(0,0,0)
  5858. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5859. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5860. local xc = 0
  5861. coroutine.resume(coroutine.create(function()
  5862. for i = 0, 99 do
  5863. swait()
  5864. xc = xc + 0.01
  5865. xa.Color = Color3.new(xc,0,0)
  5866. end
  5867. xa.Transparency = 1
  5868. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5869. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5870. for i = 0, 9 do
  5871. --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"))
  5872. end
  5873. 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)
  5874. 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)
  5875. 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))
  5876. game:GetService("Debris"):AddItem(xa, 5)
  5877. coroutine.resume(coroutine.create(function()
  5878. for i = 0, 19 do
  5879. swait()
  5880. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5881. end
  5882. hum.CameraOffset = vt(0,0,0)
  5883. end))
  5884. end))
  5885. end
  5886. end))
  5887. for i = 0,2,0.1 do
  5888. swait()
  5889. 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)
  5890. 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)
  5891. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5892. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5893. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5894. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5895. end
  5896. attack = false
  5897. hum.WalkSpeed = storehumanoidWS
  5898. end
  5899.  
  5900. function HeavenlyDisk()
  5901. attack = true
  5902. hum.WalkSpeed = 2
  5903. local keptcolor = MAINRUINCOLOR
  5904. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5905. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5906. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5907. local radm = math.random(1,3)
  5908. if radm == 1 then
  5909. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  5910. elseif radm == 2 then
  5911. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  5912. elseif radm == 3 then
  5913. bosschatfunc("FREAKING DIE ALREADY!",MAINRUINCOLOR.Color,1)
  5914. end
  5915. for i = 0, 14 do
  5916. --
  5917. end
  5918. for i = 0,2,0.1 do
  5919. swait()
  5920. 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)
  5921. 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)
  5922. 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)
  5923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5924. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5925. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5926. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5927. end
  5928. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5929. for i = 0,1,0.6 do
  5930. swait()
  5931. 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)
  5932. --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"))
  5933. 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)
  5934. 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)
  5935. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5936. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5937. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5938. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5939. end
  5940. for i = 0,1,0.6 do
  5941. swait()
  5942. 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)
  5943. --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"))
  5944. 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)
  5945. 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)
  5946. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5948. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5949. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5950. end
  5951. for i = 0,1,0.6 do
  5952. swait()
  5953. 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)
  5954. --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"))
  5955. 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)
  5956. 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)
  5957. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5958. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5959. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5960. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5961. end
  5962. for i = 0,1,0.6 do
  5963. swait()
  5964. 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)
  5965. --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"))
  5966. 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)
  5967. 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)
  5968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5971. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5972. end
  5973. local rot = 15
  5974. for i = 0, 2 do
  5975. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5976. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5977. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5978. CreateMesh(dis,"Sphere",10,1,10)
  5979. local at1 = Instance.new("Attachment",dis)
  5980. at1.Position = vt(-5,0,0)
  5981. local at2 = Instance.new("Attachment",dis)
  5982. at2.Position = vt(5,0,0)
  5983. local trl = Instance.new('Trail',wed)
  5984. trl.Attachment0 = at1
  5985. trl.Attachment1 = at2
  5986. trl.Texture = "rbxassetid://1049219073"
  5987. trl.LightEmission = 1
  5988. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5989. trl.Color = ColorSequence.new(dis.Color)
  5990. trl.Lifetime = 0.6
  5991. local a = Instance.new("Part",workspace)
  5992. a.Name = "Direction"
  5993. a.Anchored = true
  5994. a.BrickColor = bc("Bright red")
  5995. a.Material = "Neon"
  5996. a.Transparency = 1
  5997. a.CanCollide = false
  5998. local ray = Ray.new(
  5999. dis.CFrame.p, -- origin
  6000. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6001. )
  6002. local ignore = dis
  6003. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6004. a.BottomSurface = 10
  6005. a.TopSurface = 10
  6006. local distance = (dis.CFrame.p - position).magnitude
  6007. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6008. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6009. dis.CFrame = a.CFrame
  6010. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6011. a:Destroy()
  6012. local bv = Instance.new("BodyVelocity")
  6013. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6014. bv.velocity = dis.CFrame.lookVector*250
  6015. bv.Parent = dis
  6016. game:GetService("Debris"):AddItem(dis, 5)
  6017. local hitted = false
  6018. coroutine.resume(coroutine.create(function()
  6019. dis.Touched:connect(function(hit)
  6020. if hitted == false and hit.Parent ~= char then
  6021. hitted = true
  6022. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6023. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6024. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6025. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6026. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6027. coroutine.resume(coroutine.create(function()
  6028. for i = 0, 9 do
  6029. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6030. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6031. local at1 = Instance.new("Attachment",disr)
  6032. at1.Position = vt(-2,0,0)
  6033. local at2 = Instance.new("Attachment",disr)
  6034. at2.Position = vt(2,0,0)
  6035. local trl = Instance.new('Trail',disr)
  6036. trl.Attachment0 = at1
  6037. trl.FaceCamera = true
  6038. trl.Attachment1 = at2
  6039. trl.Texture = "rbxassetid://2342682798"
  6040. trl.LightEmission = 1
  6041. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6042. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6043. trl.Lifetime = 0.5
  6044. local bv = Instance.new("BodyVelocity")
  6045. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6046. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6047. bv.Parent = disr
  6048. local val = 0
  6049. coroutine.resume(coroutine.create(function()
  6050. swait(30)
  6051. for i = 0, 9 do
  6052. swait()
  6053. val = val + 0.1
  6054. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6055. end
  6056. game:GetService("Debris"):AddItem(disr, 3)
  6057. end))
  6058. end
  6059. local eff = Instance.new("ParticleEmitter",dis)
  6060. eff.Texture = "rbxassetid://2273224484"
  6061. eff.LightEmission = 1
  6062. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6063. eff.Rate = 500000
  6064. eff.Lifetime = NumberRange.new(0.5,2)
  6065. 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)})
  6066. 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)})
  6067. eff.Speed = NumberRange.new(20,250)
  6068. eff.Drag = 5
  6069. eff.Rotation = NumberRange.new(-500,500)
  6070. eff.VelocitySpread = 9000
  6071. eff.RotSpeed = NumberRange.new(-50,50)
  6072. wait(0.25)
  6073. eff.Enabled = false
  6074. end))
  6075. for i = 0, 9 do
  6076. --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"))
  6077. end
  6078. for i = 0, 19 do
  6079. --
  6080. end
  6081. coroutine.resume(coroutine.create(function()
  6082. for i = 0, 19 do
  6083. swait()
  6084. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6085. end
  6086. hum.CameraOffset = vt(0,0,0)
  6087. end))
  6088. dis.Anchored = true
  6089. dis.Transparency = 1
  6090. wait(8)
  6091. dis:Destroy()
  6092. end
  6093. end)
  6094. end))
  6095. rot = rot - 15
  6096. end
  6097. for i = 0,2,0.1 do
  6098. swait()
  6099. 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)
  6100. 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)
  6101. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6104. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6105. end
  6106. attack = false
  6107. hum.WalkSpeed = storehumanoidWS
  6108. end
  6109.  
  6110. function RapidBurst()
  6111. attack = true
  6112. hum.WalkSpeed = 0
  6113. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6114. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6115. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 4, 1,0,10,0.15,0.5,1)
  6116. bosschatfunc("DIE!!",MAINRUINCOLOR.Color,2)
  6117. local keptcolor = MAINRUINCOLOR
  6118. for i = 0,8,0.1 do
  6119. swait()
  6120. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6121. --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())
  6122. 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)
  6123. 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)
  6124. 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)
  6125. 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)
  6126. 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)
  6127. 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)
  6128. 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)
  6129. end
  6130. for i = 0, 99 do
  6131. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6132. 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)))
  6133. local at1 = Instance.new("Attachment",dis)
  6134. at1.Position = vt(-25000,0,0)
  6135. local at2 = Instance.new("Attachment",dis)
  6136. at2.Position = vt(25000,0,0)
  6137. local trl = Instance.new('Trail',dis)
  6138. trl.Attachment0 = at1
  6139. trl.FaceCamera = true
  6140. trl.Attachment1 = at2
  6141. trl.Texture = "rbxassetid://1049219073"
  6142. trl.LightEmission = 1
  6143. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6144. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6145. trl.Lifetime = 5
  6146. local bv = Instance.new("BodyVelocity")
  6147. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6148. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6149. bv.Parent = dis
  6150. game:GetService("Debris"):AddItem(dis, 5)
  6151. end
  6152. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6153. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6154. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6155. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6156. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6157. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6158. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6159. CFuncs["Sound"].Create("rbxassetid://2362924591", root, 10,1)
  6160. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6161. CFuncs["Sound"].Create("rbxassetid://1475585844", char, 5,1)
  6162. hum.CameraOffset = vt(0,0,0)
  6163. for i = 0, 24 do
  6164. --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())
  6165. end
  6166. local distam = 0
  6167. coroutine.resume(coroutine.create(function()
  6168. for i = 0, 99 do
  6169. wait()
  6170. distam = distam + 1
  6171. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6172. xa.Anchored = true
  6173. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6174. game:GetService("Debris"):AddItem(xa, 5)
  6175. for i = 0, 4 do
  6176. --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())
  6177. end
  6178. coroutine.resume(coroutine.create(function()
  6179. local eff = Instance.new("ParticleEmitter",xa)
  6180. eff.Texture = "rbxassetid://2273224484"
  6181. eff.LightEmission = 1
  6182. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6183. eff.Rate = 500000
  6184. eff.Lifetime = NumberRange.new(1,3)
  6185. 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)})
  6186. 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)})
  6187. eff.Speed = NumberRange.new(50,500)
  6188. eff.Drag = 5
  6189. eff.Rotation = NumberRange.new(-500,500)
  6190. eff.VelocitySpread = 9000
  6191. eff.RotSpeed = NumberRange.new(-50,50)
  6192. wait(0.25)
  6193. eff.Enabled = false
  6194. end))
  6195. coroutine.resume(coroutine.create(function()
  6196. for i = 0, 19 do
  6197. swait()
  6198. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6199. end
  6200. hum.CameraOffset = vt(0,0,0)
  6201. end))
  6202. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6203. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6204. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6205. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6206. end
  6207. end))
  6208. attack = false
  6209. hum.WalkSpeed = storehumanoidWS
  6210. end
  6211.  
  6212.  
  6213. function FallenOrbs()
  6214. attack = true
  6215. hum.WalkSpeed = 2
  6216. local keptcolor = MAINRUINCOLOR
  6217. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6218. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6219. local radm = math.random(1,3)
  6220. if radm == 1 then
  6221. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6222. elseif radm == 2 then
  6223. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  6224. elseif radm == 3 then
  6225. bosschatfunc("FREAKING DIE ALREADY!!",MAINRUINCOLOR.Color,1)
  6226. end
  6227. coroutine.resume(coroutine.create(function()
  6228. for i = 0, 29 do
  6229. swait(2)
  6230. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6231. dis.Anchored = true
  6232. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6233. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6234. CreateMesh(dis,"Sphere",2,2,2)
  6235. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6236. --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"))
  6237. coroutine.resume(coroutine.create(function()
  6238. wait(0.5)
  6239. dis.Anchored = false
  6240. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6241. local at1 = Instance.new("Attachment",dis)
  6242. at1.Position = vt(-1,0,0)
  6243. local at2 = Instance.new("Attachment",dis)
  6244. at2.Position = vt(1,0,0)
  6245. local trl = Instance.new('Trail',dis)
  6246. trl.Attachment0 = at1
  6247. trl.FaceCamera = true
  6248. trl.Attachment1 = at2
  6249. trl.Texture = "rbxassetid://1049219073"
  6250. trl.LightEmission = 1
  6251. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6252. trl.Color = ColorSequence.new(dis.Color)
  6253. trl.Lifetime = 0.6
  6254. local a = Instance.new("Part",workspace)
  6255. a.Name = "Direction"
  6256. a.Anchored = true
  6257. a.BrickColor = bc("Bright red")
  6258. a.Material = "Neon"
  6259. a.Transparency = 1
  6260. a.CanCollide = false
  6261. local ray = Ray.new(
  6262. dis.CFrame.p, -- origin
  6263. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6264. )
  6265. local ignore = dis
  6266. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6267. a.BottomSurface = 10
  6268. a.TopSurface = 10
  6269. local distance = (dis.CFrame.p - position).magnitude
  6270. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6271. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6272. dis.CFrame = a.CFrame
  6273. a:Destroy()
  6274. local bv = Instance.new("BodyVelocity")
  6275. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6276. bv.velocity = dis.CFrame.lookVector*500
  6277. bv.Parent = dis
  6278. game:GetService("Debris"):AddItem(dis, 5)
  6279. local hitted = false
  6280. coroutine.resume(coroutine.create(function()
  6281. dis.Touched:connect(function(hit)
  6282. if hitted == false and hit.Parent ~= char then
  6283. hitted = true
  6284. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6285. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6286. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6287. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6288. coroutine.resume(coroutine.create(function()
  6289. for i = 0, 4 do
  6290. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6291. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6292. local at1 = Instance.new("Attachment",disr)
  6293. at1.Position = vt(-10,0,0)
  6294. local at2 = Instance.new("Attachment",disr)
  6295. at2.Position = vt(10,0,0)
  6296. local trl = Instance.new('Trail',disr)
  6297. trl.Attachment0 = at1
  6298. trl.FaceCamera = true
  6299. trl.Attachment1 = at2
  6300. trl.Texture = "rbxassetid://2342682798"
  6301. trl.LightEmission = 1
  6302. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6303. trl.Color = ColorSequence.new(disr.Color)
  6304. trl.Lifetime = 0.5
  6305. local bv = Instance.new("BodyVelocity")
  6306. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6307. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6308. bv.Parent = disr
  6309. local val = 0
  6310. coroutine.resume(coroutine.create(function()
  6311. swait(30)
  6312. for i = 0, 9 do
  6313. swait()
  6314. val = val + 0.1
  6315. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6316. end
  6317. game:GetService("Debris"):AddItem(disr, 3)
  6318. end))
  6319. end
  6320. local eff = Instance.new("ParticleEmitter",dis)
  6321. eff.Texture = "rbxassetid://2273224484"
  6322. eff.LightEmission = 1
  6323. eff.Color = ColorSequence.new(dis.Color)
  6324. eff.Rate = 500000
  6325. eff.Lifetime = NumberRange.new(0.5,2)
  6326. 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)})
  6327. 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)})
  6328. eff.Speed = NumberRange.new(20,250)
  6329. eff.Drag = 5
  6330. eff.Rotation = NumberRange.new(-500,500)
  6331. eff.VelocitySpread = 9000
  6332. eff.RotSpeed = NumberRange.new(-50,50)
  6333. wait(0.5)
  6334. eff.Enabled = false
  6335. end))
  6336. for i = 0, 4 do
  6337. --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"))
  6338. end
  6339. coroutine.resume(coroutine.create(function()
  6340. for i = 0, 19 do
  6341. swait()
  6342. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6343. end
  6344. hum.CameraOffset = vt(0,0,0)
  6345. end))
  6346. dis.Anchored = true
  6347. dis.Transparency = 1
  6348. wait(8)
  6349. dis:Destroy()
  6350. end
  6351. end)
  6352. end))
  6353. end))
  6354. end
  6355. end))
  6356. for i = 0,9,0.1 do
  6357. swait()
  6358. 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)
  6359. 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)
  6360. 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)
  6361. 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)
  6362. 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)
  6363. 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)
  6364. 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)
  6365. end
  6366. attack = false
  6367. hum.WalkSpeed = storehumanoidWS
  6368. end
  6369.  
  6370. function Taunt()
  6371. ATTACK = true
  6372. local LAUGH = nil
  6373. coroutine.resume(coroutine.create(function()
  6374. repeat
  6375. Swait()
  6376. 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)
  6377. 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)
  6378. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  6379. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6380. 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)
  6381. 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)
  6382. until LAUGH ~= nil
  6383. repeat
  6384. Swait()
  6385. LAUGH.Parent = Head
  6386. 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)
  6387. 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)
  6388. 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)
  6389. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6390. 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)
  6391. 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)
  6392. until LAUGH.Playing == false
  6393. ATTACK = false
  6394. end))
  6395. wait(0.1)
  6396. LAUGH = CreateSound(300208779, Head, 10, 1, false)
  6397. sick:Resume()
  6398. end
  6399.  
  6400. function Shell()
  6401. ATTACK = true
  6402. Rooted = false
  6403. local GYRO = IT("BodyGyro",RootPart)
  6404. GYRO.D = 750
  6405. GYRO.P = 20000
  6406. GYRO.MaxTorque = VT(0,40000000,0)
  6407. for i=0, 1, 0.1 / Animation_Speed do
  6408. Swait()
  6409. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  6410. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6411. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6412. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6413. 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)
  6414. 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)
  6415. 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)
  6416. end
  6417. GYRO:remove()
  6418. CreateSound(696483710, Gun, 5, 1, false)
  6419. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  6420. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  6421. 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})
  6422. for i=0, 0.3, 0.1 / Animation_Speed do
  6423. Swait()
  6424. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6425. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6426. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6427. 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)
  6428. 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)
  6429. 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)
  6430. end
  6431. ATTACK = false
  6432. Rooted = false
  6433. end
  6434.  
  6435. function EquinoxOrbs()
  6436. hum.WalkSpeed = 0
  6437. attack = true
  6438. for i = 0,1,0.1 do
  6439. swait()
  6440. 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)
  6441. 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)
  6442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6444. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6445. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6446. end
  6447. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6448. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6449. for i = 0, 24 do
  6450. --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"))
  6451. end
  6452. bosschatfunc("TAKE THIS!",MAINRUINCOLOR.Color,1)
  6453. CFuncs["EchoSound"].Create("rbxassetid://313205954", char, 4, 1,0,10,0.15,0.5,1)
  6454. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6455. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6456. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6457. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6458. for i = 0,4,0.1 do
  6459. swait()
  6460. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6461. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6462. CreateMesh(dis,"Sphere",1,1,1)
  6463. dis.Anchored = true
  6464. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6465. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6466. CreateMesh(dis2,"Sphere",1,1,1)
  6467. dis2.Anchored = true
  6468. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6469. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6470. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6471. coroutine.resume(coroutine.create(function()
  6472. swait(60)
  6473. dis.Transparency = 1
  6474. dis2.Transparency = 1
  6475. coroutine.resume(coroutine.create(function()
  6476. for i = 0, 19 do
  6477. swait()
  6478. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6479. end
  6480. hum.CameraOffset = vt(0,0,0)
  6481. end))
  6482. coroutine.resume(coroutine.create(function()
  6483. local eff = Instance.new("ParticleEmitter",dis)
  6484. eff.Texture = "rbxassetid://2273224484"
  6485. eff.LightEmission = 1
  6486. eff.Color = ColorSequence.new(dis.Color)
  6487. eff.Rate = 500000
  6488. eff.Lifetime = NumberRange.new(0.5,2)
  6489. 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)})
  6490. 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)})
  6491. eff.Speed = NumberRange.new(50,450)
  6492. eff.Drag = 5
  6493. eff.Rotation = NumberRange.new(-500,500)
  6494. eff.VelocitySpread = 9000
  6495. eff.RotSpeed = NumberRange.new(-50,50)
  6496. local eff2 = eff:Clone()
  6497. eff2.Parent = dis2
  6498. eff2.LightEmission = 0
  6499. eff2.Color = ColorSequence.new(dis2.Color)
  6500. wait(0.25)
  6501. eff.Enabled = false
  6502. eff2.Enabled = false
  6503. end))
  6504. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6505. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6506. CFuncs["EchoSound"].Create("rbxassetid://165970126", char, 4, 1,0,10,0.15,0.5,1)
  6507. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6508. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6509. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6510. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6511. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6512. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6513. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6514. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6515. end))
  6516. game:GetService("Debris"):AddItem(dis, 5)
  6517. game:GetService("Debris"):AddItem(dis2, 5)
  6518. 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)
  6519. 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)
  6520. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6521. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6522. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6523. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6524. end
  6525. attack = false
  6526. hum.WalkSpeed = storehumanoidWS
  6527. end
  6528. function FallenDEMISE()
  6529. attack = true
  6530. hum.WalkSpeed = 0
  6531. local keptcolor = MAINRUINCOLOR
  6532. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6533. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6534. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6535. for i = 0, 15, 0.1 do
  6536. swait()
  6537. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6538. 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)))
  6539. local at1 = Instance.new("Attachment",dis)
  6540. at1.Position = vt(-25000,0,0)
  6541. local at2 = Instance.new("Attachment",dis)
  6542. at2.Position = vt(25000,0,0)
  6543. local trl = Instance.new('Trail',dis)
  6544. trl.Attachment0 = at1
  6545. trl.FaceCamera = true
  6546. trl.Attachment1 = at2
  6547. trl.Texture = "rbxassetid://1049219073"
  6548. trl.LightEmission = 1
  6549. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6550. trl.Color = ColorSequence.new(dis.Color)
  6551. trl.Lifetime = 5
  6552. local bv = Instance.new("BodyVelocity")
  6553. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6554. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6555. bv.Parent = dis
  6556. game:GetService("Debris"):AddItem(dis, 1)
  6557. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6558. --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"))
  6559. --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"))
  6560. 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)
  6561. 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)
  6562. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6563. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6564. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6565. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6566. end
  6567. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6568. for i = 0, 30, 0.1 do
  6569. swait()
  6570. coroutine.resume(coroutine.create(function()
  6571. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6572. if v:FindFirstChild('Head') then
  6573. dmg(v)
  6574. end
  6575. end
  6576. end))
  6577. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6578. 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)))
  6579. local at1 = Instance.new("Attachment",dis)
  6580. at1.Position = vt(-50000,0,0)
  6581. local at2 = Instance.new("Attachment",dis)
  6582. at2.Position = vt(50000,0,0)
  6583. local trl = Instance.new('Trail',dis)
  6584. trl.Attachment0 = at1
  6585. trl.FaceCamera = true
  6586. trl.Attachment1 = at2
  6587. trl.Texture = "rbxassetid://1049219073"
  6588. trl.LightEmission = 1
  6589. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6590. trl.Color = ColorSequence.new(dis.Color)
  6591. trl.Lifetime = 10
  6592. local bv = Instance.new("BodyVelocity")
  6593. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6594. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6595. bv.Parent = dis
  6596. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6597. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6598. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6599. --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"))
  6600. --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"))
  6601. --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"))
  6602. --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"))
  6603. for i = 0, 2 do
  6604. --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)
  6605. end
  6606. 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)
  6607. 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)
  6608. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6609. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6610. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6611. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6612. end
  6613. attack = false
  6614. hum.WalkSpeed = storehumanoidWS
  6615. end
  6616. function NeptuniaWings()
  6617. local mainpart = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
  6618. 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))
  6619.  
  6620. local wng1a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6621. CreateMesh(wng1a,"Wedge",0.1,4,4)
  6622. 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))
  6623. local wng2a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6624. CreateMesh(wng2a,"Wedge",0.1,4,4)
  6625. 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))
  6626. local wng1b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6627. CreateMesh(wng1b,"Wedge",0.1,1.5,3)
  6628. 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))
  6629. local wng2b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6630. CreateMesh(wng2b,"Wedge",0.1,1.5,3)
  6631. 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))
  6632. end
  6633.  
  6634. function MagicMissiles()
  6635. ATTACK = true
  6636. Rooted = true
  6637. local SELECTING = true
  6638. local SPOTS = {}
  6639. coroutine.resume(coroutine.create(function()
  6640. local LOOP = 0
  6641. repeat
  6642. LOOP = LOOP + 1
  6643. Swait()
  6644. if LOOP >= 10 then
  6645. LOOP = 0
  6646. for i = 1, #SPOTS do
  6647. if SPOTS[i] ~= nil then
  6648. 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})
  6649. 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})
  6650. end
  6651. end
  6652. end
  6653. 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)
  6654. 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)
  6655. 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)
  6656. 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)
  6657. 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)
  6658. 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)
  6659. until SELECTING == false
  6660. Rooted = false
  6661. repeat
  6662. LOOP = LOOP + 1
  6663. Swait()
  6664. if LOOP >= 10 then
  6665. LOOP = 0
  6666. for i = 1, #SPOTS do
  6667. if SPOTS[i] ~= nil then
  6668. 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})
  6669. 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})
  6670. end
  6671. end
  6672. end
  6673. 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)
  6674. 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)
  6675. 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)
  6676. 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)
  6677. 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)
  6678. 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)
  6679. until ATTACK == false
  6680. end))
  6681. repeat
  6682. repeat Swait() until HOLD == true
  6683. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  6684. if DIST > 65 then
  6685. DIST = 65
  6686. end
  6687. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  6688. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  6689. if HITFLOOR ~= nil then
  6690. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  6691. 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})
  6692. 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})
  6693. end
  6694. repeat Swait() until HOLD == false
  6695. until #SPOTS == 5
  6696. SELECTING = false
  6697. for i = 1, #SPOTS do
  6698. if SPOTS[i] ~= nil then
  6699. local POS = SPOTS[i]
  6700. coroutine.resume(coroutine.create(function()
  6701. local MISSILE = IT("Model",Effects)
  6702. MISSILE.Name = "Missile"
  6703. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  6704. MakeForm(BASEPART,"Cyl")
  6705. MISSILE.PrimaryPart = BASEPART
  6706. BASEPART.CFrame = POS*CF(0,-30*3,0)
  6707. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  6708. MakeForm(HEAD,"Ball")
  6709. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  6710. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  6711. MakeForm(TAIL,"Cyl")
  6712. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  6713. for i = 1, 10 do
  6714. Swait()
  6715. for _, c in pairs(MISSILE:GetChildren()) do
  6716. if c.ClassName == "Part" then
  6717. c.Transparency = c.Transparency - 1/10
  6718. end
  6719. end
  6720. end
  6721. for i = 1, 15*1.5 do
  6722. Swait()
  6723. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  6724. end
  6725. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  6726. 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})
  6727. 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})
  6728. 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})
  6729. 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})
  6730. MISSILE:remove()
  6731. end))
  6732. end
  6733. end
  6734. wait(0.6)
  6735. ATTACK = false
  6736. Rooted = false
  6737. end
  6738. function ExplosiveLightBall()
  6739. if basiccooldown >= 5 then
  6740. local spart = Instance.new("Part",workspace)
  6741. local msh = Instance.new("SpecialMesh",spart)
  6742. msh.MeshType = "Sphere"
  6743. local sa = Instance.new("Sound",hed)
  6744. sa.SoundId = "rbxassetid://203691467"
  6745. sa.Pitch = 0.775
  6746. sa.Volume = 1
  6747. sa.Looped = false
  6748. local sa1 = Instance.new("Sound",hed)
  6749. sa1.SoundId = "rbxassetid://200633529"
  6750. sa1.Pitch = 0.75
  6751. sa1.Volume = 1
  6752. sa1.Looped = false
  6753. sa1:Play()
  6754. local sans1 = Instance.new("Sound",hed)
  6755. sans1.SoundId = "rbxassetid://200633529"
  6756. sans1.Pitch = 0.725
  6757. sans1.Volume = 1
  6758. sans1.Looped = false
  6759. sans1:Play()
  6760. spart.Size = vt(1,1,1)
  6761. spart.BrickColor = BrickColor.new("Bright violet")
  6762. spart.Material = "Neon"
  6763. spart.Transparency = 1
  6764. spart.Anchored = true
  6765. spart.CanCollide = false
  6766. spart.Position = hed.Position + vt(0,20,0)
  6767. local value = 2.5
  6768. for i = 0, 24 do
  6769. spart.Transparency = spart.Transparency - 0.05
  6770. value = value - 0.05
  6771. msh.Scale = msh.Scale + vt(value,value,value)
  6772. wait()
  6773. end
  6774. sa:Play()
  6775. spart.Anchored = false
  6776. local bv = Instance.new("BodyVelocity")
  6777. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6778. bv.velocity = mouse.Hit.lookVector *125
  6779. bv.Parent = spart
  6780. wait(0.1)
  6781. pewdiepie=spart.Touched:connect(function(hit) Explode(20,spart) end)
  6782. end
  6783.  
  6784. function Chaosbegone()
  6785. attack = true
  6786. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,3)
  6787. for i = 0, 10, 0.1 do
  6788. swait()
  6789. 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)
  6790. 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)
  6791. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6792. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  6794. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  6795. end
  6796. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,3)
  6797. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6798. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  6799. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  6800. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  6801. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  6802. CameraEnshaking(5, 25)
  6803. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  6804. if v:FindFirstChild("Head") then
  6805. dmg(v)
  6806. end
  6807. end
  6808. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  6809. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  6810. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  6811. for i = 0, 3, 0.1 do
  6812. swait()
  6813. 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)
  6814. 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)
  6815. 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)
  6816. 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)
  6817. 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)
  6818. 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)
  6819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6820. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6821. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  6822. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  6823. end
  6824. attack = false
  6825. end
  6826.  
  6827. function eightbitmegablade()
  6828. attack = true
  6829. hum.WalkSpeed = 0
  6830. hum.JumpPower = 0
  6831. CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
  6832. local OverCut = false
  6833. cam.CameraSubject = Humanoid
  6834. cam.CameraType = "Scriptable"
  6835. coroutine.resume(coroutine.create(function()
  6836. while true do
  6837. swait()
  6838. if OverCut == false then
  6839. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(1, 1.5, -6) * ceuler(math.rad(10), math.rad(170), math.rad(-20)), 0.1)
  6840. else
  6841. break
  6842. end
  6843. end
  6844. end))
  6845. for i = 0, 10, 0.1 do
  6846. swait()
  6847. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  6848. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,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.1,-0.01,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6849. slash(math.random(20,40)/10,5,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
  6850. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6851. 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(30),math.rad(3)),.3)
  6852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  6853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(50)),.3)
  6854. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  6855. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(170),math.rad(10),math.rad(0)),.3)
  6856. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(130),math.rad(0)),.3)
  6857. end
  6858. OverCut = true
  6859. local orb = Instance.new("Part", char)
  6860. orb.Anchored = true
  6861. orb.BrickColor = BrickColor.new("Toothpaste")
  6862. orb.CanCollide = false
  6863. orb.FormFactor = 3
  6864. orb.Name = "Ring"
  6865. orb.Material = "Neon"
  6866. orb.Size = Vector3.new(1, 1, 1)
  6867. orb.Transparency = 0.5
  6868. orb.TopSurface = 0
  6869. orb.BottomSurface = 0
  6870. local orbm = Instance.new("SpecialMesh", orb)
  6871. orbm.MeshType = "FileMesh"
  6872. orbm.MeshId = "rbxassetid://361629844"
  6873. orbm.Scale = vt(30,60,60)
  6874. orb.CFrame = root.CFrame*CFrame.new(0,50,0)
  6875. for i = 0, 24 do
  6876. slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  6877. end
  6878. sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6879. sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6880. sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6881. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
  6882. local a = Instance.new("Part",workspace)
  6883. a.Name = "Direction"
  6884. a.Anchored = true
  6885. a.Transparency = 1
  6886. a.CanCollide = false
  6887. local ray = Ray.new(
  6888. orb.CFrame.p, -- origin
  6889. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6890. )
  6891. local ignore = orb
  6892. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6893. a.BottomSurface = 10
  6894. a.TopSurface = 10
  6895. local distance = (orb.CFrame.p - position).magnitude
  6896. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6897. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6898. orb.CFrame = a.CFrame
  6899. for i = 0, 8, 0.1 do
  6900. swait()
  6901. sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6902. ray = Ray.new(
  6903. orb.CFrame.p, -- origin
  6904. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6905. )
  6906. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6907. distance = (orb.CFrame.p - position).magnitude
  6908. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6909. orb.CFrame = a.CFrame
  6910. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  6911. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(20, 65, 55) * ceuler(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
  6912. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6913. 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(40),math.rad(3)),.3)
  6914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  6915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  6916. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-20),math.rad(20)),.3)
  6917. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(100),math.rad(0),math.rad(60)),.3)
  6918. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(130),math.rad(0)),.3)
  6919. end
  6920. cam.CameraType = "Custom"
  6921. orb.Anchored = false
  6922. a:Destroy()
  6923. local bv = Instance.new("BodyVelocity")
  6924. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6925. bv.velocity = orb.CFrame.lookVector*250
  6926. bv.Parent = orb
  6927. local hitted = false
  6928. CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
  6929. waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Cyan"))
  6930. waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Royal purple"))
  6931. coroutine.resume(coroutine.create(function()
  6932. while true do
  6933. swait(2)
  6934. if hitted == false and orb.Parent ~= nil then
  6935. slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
  6936. elseif hitted == true and orb.Parent == nil then
  6937. break
  6938. end
  6939. end
  6940. end))
  6941. orb.Touched:connect(function(hit)
  6942. if hitted == false and hit.Parent ~= char then
  6943. hitted = true
  6944. MagniDamage(orb, 30, 72,95, 0, "Normal",153092213)
  6945. CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
  6946. CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
  6947. for i = 0, 24 do
  6948. slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.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.001,0.01),math.random(125,250)/400,BrickColor.new("White"))
  6949. end
  6950. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),1.5,BrickColor.new("White"))
  6951. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),2,BrickColor.new("White"))
  6952. sphere2(1,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6953. sphere2(1.5,"Add",orb.CFrame,vt(10,10,10),1.1,1.1,1.1,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6954. sphere2(2,"Add",orb.CFrame,vt(10,10,10),1.2,1.2,1.2,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6955. orb.Anchored = true
  6956. orb.Transparency = 1
  6957. coroutine.resume(coroutine.create(function()
  6958. for i = 0, 4, 0.1 do
  6959. swait()
  6960. slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Royal purple"))
  6961. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  6962. end
  6963. hum.CameraOffset = vt(0,0,0)
  6964. end))
  6965. wait(10)
  6966. orb:Destroy()
  6967. end
  6968. end)
  6969. game:GetService("Debris"):AddItem(orb, 10)
  6970. for i = 0, 2, 0.1 do
  6971. swait()
  6972. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  6973. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6974. 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(30),math.rad(3)),.3)
  6975. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  6976. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  6977. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  6978. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  6979. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(130),math.rad(0)),.3)
  6980. end
  6981. attack = false
  6982. hum.WalkSpeed = 24
  6983. hum.JumpPower = 50
  6984. end
  6985.  
  6986. function bladespinagain()
  6987. attack = true
  6988. hum.WalkSpeed = 4
  6989. hum.JumpPower = 0
  6990. CFuncs["Sound"].Create("rbxassetid://1368598393", rarmor, 2, 1)
  6991. CFuncs["Sound"].Create("rbxassetid://1368583274", rarmor, 2.5, 1)
  6992. for x = 0, 9 do
  6993. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  6994. CFuncs["Sound"].Create("rbxassetid://200633108", rarmor, 2, 1.05)
  6995. CFuncs["Sound"].Create("rbxassetid://234365573", rarmor, 2.5, 1.025)
  6996. for i = 0, 1, 0.6 do
  6997. swait()
  6998. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  6999. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7000. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7001. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7002. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7003. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7004. 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(30),math.rad(0)),.2)
  7005. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7007. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7008. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7009. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7010. end
  7011. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7012. for i = 0, 1, 0.6 do
  7013. swait()
  7014. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7015. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7016. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7017. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7018. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7019. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7020. 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(30),math.rad(0)),.2)
  7021. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7022. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7023. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7024. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7025. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  7026. end
  7027. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7028. for i = 0, 1, 0.6 do
  7029. swait()
  7030. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7031. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7032. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7033. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7034. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7035. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7036. 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(30),math.rad(0)),.2)
  7037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7039. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7040. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7041. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.3)
  7042. end
  7043. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7044. for i = 0, 1, 0.6 do
  7045. swait()
  7046. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7047. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7048. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7049. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7050. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7051. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7052. 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(30),math.rad(0)),.2)
  7053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7055. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7056. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7057. weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.3)
  7058. end
  7059. end
  7060. local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
  7061. hitb.Anchored = true
  7062. hitb.CFrame = root.CFrame + root.CFrame.lookVector*8
  7063. hitb.CFrame = hitb.CFrame*CFrame.new(0,1,0)
  7064. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7065. sphere2(5,"Add",hitb.CFrame,vt(2.1,2.1,2),-0.02,-0.02,5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7066. sphere2(5,"Add",hitb.CFrame,vt(2,2,2),-0.02,-0.02,4,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7067. for i = 0, 24 do
  7068. slash(math.random(20,100)/10,5,true,"Round","Add","Out",hitb.CFrame*CFrame.new(0,0,math.random(-60,60))*CFrame.Angles(math.rad(90),0,0),vt(0.01,0.01,0.01),math.random(10,100)/1000,BrickColor.new("White"))
  7069. end
  7070. CFuncs["Sound"].Create("rbxassetid://313205954", root, 4,1)
  7071. CFuncs["Sound"].Create("rbxassetid://1368637781", rarmor, 4,1)
  7072. CFuncs["Sound"].Create("rbxassetid://763718160", rarmor, 5, 1.1)
  7073. CFuncs["Sound"].Create("rbxassetid://782353443", rarmor, 6, 1)
  7074. --CFuncs["Sound"].Create("rbxassetid://1548538202", rarmor, 4,1)
  7075. for i = 0, 2, 0.1 do
  7076. swait()
  7077. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7078. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  7079. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-20),math.rad(-10)),.9)
  7080. 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),math.rad(0)),.9)
  7081. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.9)
  7082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-80)),.9)
  7083. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(70)),.9)
  7084. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-60)),.9)
  7085. weaponweld.C1=clerp(weaponweld.C1,cf(2,0,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.9)
  7086. end
  7087. hum.CameraOffset = vt(0,0,0)
  7088. hitb:Destroy()
  7089. attack = false
  7090. hum.WalkSpeed = 24
  7091. hum.JumpPower = 50
  7092. end
  7093.  
  7094. function superjump()
  7095. attack = true
  7096. hum.WalkSpeed = 0
  7097. hum.JumpPower = 0
  7098. wng1a.Transparency = wng1a.Transparency - 1
  7099. wng1b.Transparency = wng1b.Transparency - 1
  7100. wng2a.Transparency = wng2a.Transparency - 1
  7101. wng2b.Transparency = wng2b.Transparency - 1
  7102. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7103. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7104. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  7105. for i = 0, 2, 0.1 do
  7106. swait()
  7107. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7108. root.Velocity = vt(0,0,0)
  7109. slash(math.random(50,100)/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(0.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White"))
  7110. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  7111. 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),math.rad(40)),.4)
  7112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  7113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  7114. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  7115. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  7116. end
  7117. CFuncs["Sound"].Create("rbxassetid://477843807", root, 7, 1.05)
  7118. local lat1 = Instance.new("Attachment",larm)
  7119. lat1.Position = Vector3.new(1,-1,0.5)
  7120. local lat2 = Instance.new("Attachment",larm)
  7121. lat2.Position = Vector3.new(-1,-1,-0.5)
  7122. local rat1 = Instance.new("Attachment",rarm)
  7123. rat1.Position = Vector3.new(1,-1,-0.5)
  7124. local rat2 = Instance.new("Attachment",rarm)
  7125. rat2.Position = Vector3.new(-1,-1,0.5)
  7126. local tl1 = Instance.new('Trail',larm)
  7127. tl1.Attachment0 = lat1
  7128. tl1.Attachment1 = lat2
  7129. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  7130. tl1.LightEmission = 1
  7131. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.05, 0),NumberSequenceKeypoint.new(1, 1)})
  7132. tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color,BrickColor.new('Cyan').Color)
  7133. tl1.Lifetime = 5
  7134. local tl2 = tl1:Clone()
  7135. tl2.Attachment0 = rat1
  7136. tl2.Attachment1 = rat2
  7137. tl2.Parent = rarm
  7138. hum.JumpPower = 50
  7139. hum.Jump = true
  7140. swait()
  7141. hum.JumpPower = 0
  7142. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  7143. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7144. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7145. for i = 0, 49 do
  7146. waveEff(math.random(10,100)/10,"Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(15,0.25,15),math.random(25,250)/250,0.25,BrickColor.new("White"))
  7147. slash(math.random(10,100)/10,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,500)/250,BrickColor.new("White"))
  7148. end
  7149. coroutine.resume(coroutine.create(function()
  7150. for i = 0, 2, 0.1 do
  7151. swait()
  7152. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  7153. end
  7154. hum.CameraOffset = vt(0,0,0)
  7155. wait(3)
  7156. tl1.Enabled = false
  7157. tl2.Enabled = false
  7158. game:GetService("Debris"):AddItem(tl1, 5)
  7159. game:GetService("Debris"):AddItem(tl2, 5)
  7160. game:GetService("Debris"):AddItem(rat1, 5)
  7161. game:GetService("Debris"):AddItem(rat2, 5)
  7162. game:GetService("Debris"):AddItem(lat1, 5)
  7163. game:GetService("Debris"):AddItem(lat2, 5)
  7164. end))
  7165. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  7166. for i = 0, 3, 0.1 do
  7167. swait()
  7168. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  7169. 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),math.rad(30)),.4)
  7170. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  7171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  7172. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  7173. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  7174. end
  7175. coroutine.resume(coroutine.create(function()
  7176. for i = 0, 99 do
  7177. swait()
  7178. wng1a.Transparency = wng1a.Transparency + 0.01
  7179. wng1b.Transparency = wng1b.Transparency + 0.01
  7180. wng2a.Transparency = wng2a.Transparency + 0.01
  7181. wng2b.Transparency = wng2b.Transparency + 0.01
  7182. end
  7183. end))
  7184. attack = false
  7185. if equipped == false then
  7186. hum.WalkSpeed = 16
  7187. else
  7188. hum.WalkSpeed = 24
  7189. end
  7190. hum.JumpPower = 50
  7191. end
  7192. end
  7193. -------------------------------------
  7194.  
  7195. Humanoid.Animator.Parent = nil
  7196.  
  7197. -------------------------------------
  7198.  
  7199. local attacktype = 1
  7200. mouse.Button1Down:connect(function()
  7201. if attack == false and attacktype == 1 then
  7202. attacktype = 2
  7203. attackone()
  7204. elseif attack == false and attacktype == 2 then
  7205. attacktype = 3
  7206. attacktwo()
  7207. elseif attack == false and attacktype == 3 then
  7208. attacktype = 1
  7209. attackthree()
  7210. elseif attack == false and attacktype == 4 then
  7211. attacktype = 1
  7212. --attackfour()
  7213. end
  7214. end)
  7215. mouse.KeyDown:connect(function(k)
  7216. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  7217. --normalmog() ---Disabled due to crashing... only in VSB
  7218. ModeOfGlitch = 1
  7219. storehumanoidWS = 16
  7220. hum.WalkSpeed = 16
  7221. rainbowmode = false
  7222. chaosmode = false
  7223. newTheme("rbxassetid://550578451",48.6,1,1.25)
  7224. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  7225. MAINRUINCOLOR = BrickColor.new("Really red")
  7226. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  7227. end
  7228. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  7229. ModeOfGlitch = 2
  7230. storehumanoidWS = 16
  7231. hum.WalkSpeed = 16
  7232. rainbowmode = false
  7233. chaosmode = false
  7234. RecolorTextAndRename("FROST HYPERION",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  7235. newTheme("rbxassetid://1579308042",0,1,1.25)
  7236. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  7237. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7238. end
  7239. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  7240. ModeOfGlitch = 3
  7241. storehumanoidWS = 16
  7242. hum.WalkSpeed = 16
  7243. rainbowmode = false
  7244. chaosmode = false
  7245. RecolorTextAndRename("VIRUS HYPERION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  7246. newTheme("rbxassetid://1533368028",58.15,0.98,1.25)
  7247. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7248. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7249. end
  7250. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  7251. ModeOfGlitch = 4
  7252. storehumanoidWS = 16
  7253. hum.WalkSpeed = 16
  7254. rainbowmode = false
  7255. chaosmode = true
  7256. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  7257. newTheme("rbxassetid://777625426",0,1.01,1.25)
  7258. MAINRUINCOLOR = BrickColor.new("Really black")
  7259. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7260. end
  7261. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  7262. ModeOfGlitch = 5
  7263. storehumanoidWS = 16
  7264. hum.WalkSpeed = 16
  7265. rainbowmode = false
  7266. chaosmode = false
  7267. RecolorTextAndRename("ERROR HYPERION",Color3.new(0,0,0),Color3.new(0,4,0),"SciFi")
  7268. newTheme("rbxassetid://870457266",0,1,1)
  7269. MAINRUINCOLOR = BrickColor.new("White")
  7270. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7271. end
  7272. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  7273. ModeOfGlitch = 6
  7274. storehumanoidWS = 100
  7275. hum.WalkSpeed = 100
  7276. rainbowmode = false
  7277. chaosmode = false
  7278. RecolorTextAndRename("NEPTUNE",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7279. newTheme("rbxassetid://381991270",0,1,1)
  7280. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  7281. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7282. end
  7283. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  7284. ModeOfGlitch = 8
  7285. storehumanoidWS = 140
  7286. hum.WalkSpeed = 140
  7287. rainbowmode = false
  7288. chaosmode = false
  7289. RecolorTextAndRename("DESTINY HYPERION",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  7290. newTheme("rbxassetid://1585109345",0,1.01,1.25)
  7291. MAINRUINCOLOR = BrickColor.new("Alder")
  7292. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7293. end
  7294. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  7295. ModeOfGlitch = 9
  7296. storehumanoidWS = 150
  7297. hum.WalkSpeed = 150
  7298. rainbowmode = false
  7299. chaosmode = false
  7300. RecolorTextAndRename("BRUTAL HYPERION",Color3.new(5,0,0),Color3.new(0,0,0),"Arcade")
  7301. newTheme("rbxassetid://838051647",0,1.01,2)
  7302. MAINRUINCOLOR = BrickColor.new("Alder")
  7303. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7304. end
  7305. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  7306. ModeOfGlitch = 10
  7307. storehumanoidWS = 75
  7308. hum.WalkSpeed = 75
  7309. rainbowmode = false
  7310. chaosmode = false
  7311. RecolorTextAndRename("EVIL HYPERION",Color3.new(0,0,0),Color3.new(5,0,0),"Arcade")
  7312. newTheme("rbxassetid://1296518458",0,1,1)
  7313. MAINRUINCOLOR = BrickColor.new("Crimson")
  7314. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7315. end
  7316. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  7317. ModeOfGlitch = 8889
  7318. storehumanoidWS = 180
  7319. hum.WalkSpeed = 180
  7320. rainbowmode = false
  7321. chaosmode = false
  7322. RecolorTextAndRename("CALAMITY HYPERION",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  7323. newTheme("rbxassetid://1618176509",0,1,1)
  7324. MAINRUINCOLOR = BrickColor.new("Lilac")
  7325. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7326. end
  7327. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7328. ModeOfGlitch = 55469696922
  7329. storehumanoidWS = 275
  7330. hum.WalkSpeed = 275
  7331. rainbowmode = false
  7332. chaosmode = false
  7333. RecolorTextAndRename("COSMIC HYPERION",Color3.new(0.35,0,1),Color3.new(0.35,0,1),"Arcade")
  7334. newTheme("rbxassetid://1524504025",0,1,1)
  7335. MAINRUINCOLOR = BrickColor.new("Alder")
  7336. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7337. end
  7338. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7339. ModeOfGlitch = 4367677813
  7340. storehumanoidWS = 225
  7341. hum.WalkSpeed = 225
  7342. rainbowmode = false
  7343. chaosmode = false
  7344. RecolorTextAndRename("BRIGHTNESS HYPERION",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7345. newTheme("rbxassetid://1126561168",0,1.01,1.25)
  7346. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7347. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7348. end
  7349. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  7350. ModeOfGlitch = 9999999921111
  7351. storehumanoidWS = 300
  7352. hum.WalkSpeed = 300
  7353. rainbowmode = false
  7354. chaosmode = false
  7355. RecolorTextAndRename("OMEGA HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  7356. newTheme("rbxassetid://2024346699",0,1.01,1.25)
  7357. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  7358. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7359. end
  7360. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7361. ModeOfGlitch = 999999999556
  7362. storehumanoidWS = 500
  7363. hum.WalkSpeed = 500
  7364. rainbowmode = false
  7365. chaosmode = false
  7366. RecolorTextAndRename("INSANE HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  7367. newTheme("rbxassetid://601578010",0,1,1)
  7368. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7369. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7370. end
  7371. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7372. ModeOfGlitch = 1264532489
  7373. storehumanoidWS = 250
  7374. hum.WalkSpeed = 250
  7375. rainbowmode = false
  7376. chaosmode = false
  7377. RecolorTextAndRename("CYBER HYPERION",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7378. newTheme("rbxassetid://943118264",0,1,1)
  7379. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7380. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7381. end
  7382. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 7536 then
  7383. ModeOfGlitch = 7536
  7384. storehumanoidWS = 250
  7385. hum.WalkSpeed = 250
  7386. rainbowmode = false
  7387. chaosmode = false
  7388. RecolorTextAndRename("PURPLE HEART",Color3.new(0,0,0),Color3.new(0.35,0,1),"Arcade")
  7389. newTheme("rbxassetid://1329234543",0,1,1)
  7390. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  7391. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7392. end
  7393. if k == "n" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 666 then
  7394. ModeOfGlitch = 666
  7395. storehumanoidWS = 75
  7396. hum.WalkSpeed = 75
  7397. rainbowmode = false
  7398. chaosmode = false
  7399. RecolorTextAndRename("THE DARK ONE",Color3.new(0,0,0),Color3.new(5,0,0),"Arcade")
  7400. newTheme("rbxassetid://930541401",0,1,1)
  7401. MAINRUINCOLOR = BrickColor.new("Really red")
  7402. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7403. end
  7404. if k == "l" and mutedtog == false then
  7405. mutedtog = true
  7406. kan.Volume = 0
  7407. elseif k == "l" and mutedtog == true then
  7408. mutedtog = false
  7409. kan.Volume = 1.25
  7410. end
  7411. if k == "p" and toggleTag == false then
  7412. toggleTag = true
  7413. modet.TextTransparency = 0
  7414. modet.TextStrokeTransparency = 0
  7415. elseif k == "p" and toggleTag == true then
  7416. toggleTag = false
  7417. modet.TextTransparency = 1
  7418. modet.TextStrokeTransparency = 1
  7419. end
  7420. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7421. ExtinctiveHeartbreak()
  7422. elseif k == "c" and attack == false and ModeOfGlitch == 1 then
  7423. FallenOrbs()
  7424. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7425. HeavenlyDisk()
  7426. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  7427. PureOrb()
  7428. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7429. CorruptionEvent()
  7430. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  7431. MagicMissiles()
  7432. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  7433. CorruptBlink()
  7434. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7435. ChaosEND()
  7436. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7437. attacktwo()
  7438. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7439. ChaosGroundStrike()
  7440. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  7441. HeavenlyDisk()
  7442. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  7443. FallenOrbs()
  7444. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7445. RapidBurst()
  7446. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  7447. attackone()
  7448. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  7449. Chaosbegone()
  7450. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7451. DivineLights()
  7452. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7453. EquinoxOrbs()
  7454. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  7455. yinyangi()
  7456. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7457. Taunt()
  7458. elseif k == "x" and attack == false and ModeOfGlitch == 10 then
  7459. Shell()
  7460. elseif k == "v" and attack == false and ModeOfGlitch == 10 then
  7461. ExplosiveLightBall()
  7462. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  7463. superjump()
  7464. elseif k == "x" and attack == false and ModeOfGlitch == 7536 then
  7465. bladespinagain()
  7466. elseif k == "c" and attack == false and ModeOfGlitch == 7536 then
  7467. eightbitmegablade()
  7468. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7469. attackone()
  7470. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  7471. UniversalCollapse()
  7472. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7473. FallenOrbs()
  7474. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  7475. FallenOrbs()
  7476. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7477. EquinoxOrbs()
  7478. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7479. EndGROUND()
  7480. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  7481. StarDivision()
  7482. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7483. FallenOrbs()
  7484. end
  7485. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7486. FallenDEMISE()
  7487. end
  7488. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7489. EndGROUND()
  7490. end
  7491. end)
  7492.  
  7493. --[[coroutine.resume(coroutine.create(function()
  7494. while true do
  7495. swait(2)
  7496. if chaosmode == true then
  7497. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7498. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7499. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7500. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7501. for i, v in pairs(mw1:GetChildren()) do
  7502. if v:IsA("Part") then
  7503. v.Transparency = 0.75
  7504. v.BrickColor = BrickColor.random()
  7505. v.Material = "Neon"
  7506. end
  7507. end
  7508. for i, v in pairs(m2:GetChildren()) do
  7509. if v:IsA("Part") then
  7510. v.BrickColor = BrickColor.random()
  7511. v.Material = "Neon"
  7512. end
  7513. end
  7514. end
  7515. end
  7516. end))]]--
  7517. Humanoid.Name = "STARGLITCHER"
  7518. Humanoid.MaxHealth = math.huge
  7519. Humanoid.Health = math.huge
  7520. Instance.new("ForceField",char).Visible = false
  7521.  
  7522. local bguis = Instance.new("BillboardGui",tors)
  7523. bguis.Size = UDim2.new(25, 0, 25, 0)
  7524. local imgca = Instance.new("ImageLabel",bguis)
  7525. imgca.BackgroundTransparency = 1
  7526. imgca.ImageTransparency = 1
  7527. imgca.Size = UDim2.new(1,0,1,0)
  7528. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7529. imgca.ImageColor3 = Color3.new(0,0,0)
  7530.  
  7531. idleanim=.4
  7532. while true do
  7533. if mutedtog == false then
  7534. kan.Volume = currentVol
  7535. elseif mutedtog == true then
  7536. kan.Volume = 0
  7537. end
  7538. kan.PlaybackSpeed = currentPitch
  7539. kan.Pitch = currentPitch
  7540. kan.SoundId = currentThemePlaying
  7541. kan.Looped = true
  7542. kan.Parent = char
  7543. kan:Resume()
  7544. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7545. imgca.ImageTransparency = 1
  7546. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7547. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7548. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7549. end
  7550. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7551. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7552. coroutine.resume(coroutine.create(function()
  7553. if chaosmode == true then
  7554. for i, v in pairs(mw1:GetChildren()) do
  7555. if v:IsA("Part") then
  7556. v.Transparency = 0
  7557. v.BrickColor = BrickColor.random()
  7558. v.Material = "Neon"
  7559. end
  7560. end
  7561. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7562. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7563. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7564. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7565. end
  7566. end))
  7567. if chaosmode == false then
  7568. modet.Position = UDim2.new(0,0,0,0)
  7569. modet.Rotation = -5 * math.cos(sine / 32)
  7570. techc.Rotation = techc.Rotation + 1
  7571. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7572. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7573. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7574. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7575. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7576. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7577. else
  7578. techc.Rotation = techc.Rotation + 1
  7579. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7580. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7581. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7582. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7583. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7584. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7585. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7586. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7587. end
  7588. CameraManager()
  7589. swait()
  7590. 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)
  7591. 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)
  7592. 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)
  7593. 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)
  7594. 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)
  7595. 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)
  7596. 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)
  7597. 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)
  7598. 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)
  7599. 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)
  7600. 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)
  7601. 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)
  7602. sine = sine + change
  7603. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7604. local velderp=RootPart.Velocity.y
  7605. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7606. if equipped==true or equipped==false then
  7607. if attack==false then
  7608. idle=idle+1
  7609. else
  7610. idle=0
  7611. end
  7612. if idle>=500 then
  7613. if attack==false then
  7614. --Sheath()
  7615. end
  7616. end
  7617. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7618. Anim="Jump"
  7619. if attack==false then
  7620. 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)
  7621. 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)
  7622. 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)
  7623. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7624. 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)
  7625. 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)
  7626. end
  7627. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7628. Anim="Fall"
  7629. if attack==false then
  7630. 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)
  7631. 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)
  7632. 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)
  7633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7634. 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)
  7635. 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)
  7636. end
  7637. elseif torvel<1 and hitfloor~=nil then
  7638. Anim="Idle"
  7639. if attack==false then
  7640. if ModeOfGlitch == 1 then
  7641. local snap = math.random(1,10)
  7642. if snap == 1 then
  7643. 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)
  7644. end
  7645. 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)
  7646. 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)
  7647. 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)
  7648. 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)
  7649. 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)
  7650. 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)
  7651. elseif ModeOfGlitch == 2 then
  7652. 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)
  7653. 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)
  7654. 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)
  7655. 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)
  7656. 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)
  7657. 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)
  7658. elseif ModeOfGlitch == 3 then
  7659. local snap = math.random(1,32)
  7660. if snap == 1 then
  7661. 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)
  7662. end
  7663. 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)
  7664. 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)
  7665. 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)
  7666. 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)
  7667. 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)
  7668. 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)
  7669. elseif ModeOfGlitch == 4 then
  7670. local snap = math.random(1,5)
  7671. if snap == 1 then
  7672. 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)
  7673. 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)
  7674. 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)
  7675. end
  7676. 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)
  7677. 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)
  7678. 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)
  7679. 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)
  7680. 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)
  7681. 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)
  7682. elseif ModeOfGlitch == 5 then
  7683. 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)
  7684. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  7685. 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(-20)),.1)
  7686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  7687. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1)
  7688. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1)
  7689. elseif ModeOfGlitch == 6 then
  7690. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  7691. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  7692. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  7693. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  7694. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  7695. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  7696. elseif ModeOfGlitch == 8 then
  7697. 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)
  7698. 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)
  7699. 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)
  7700. 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)
  7701. 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)
  7702. 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)
  7703. elseif ModeOfGlitch == 9 then
  7704. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7705. 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)
  7706. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7707. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  7708. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7709. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7710. elseif ModeOfGlitch == 10 then
  7711. 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)
  7712. 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)
  7713. 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)
  7714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7715. 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)
  7716. 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)
  7717. elseif ModeOfGlitch == 666 then
  7718. 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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  7719. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  7720. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  7721. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  7722. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  7723. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  7724. elseif ModeOfGlitch == 7536 then
  7725. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(0 - 6 * math.cos(sine / 40)),math.rad(-6 + 2 * math.cos(sine / 20) - 6 * math.cos(sine / 40))),.1)
  7726. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(10 - 6 * math.cos(sine / 40)),math.rad(3 - 2 * math.cos(sine / 20) - 3 * math.cos(sine / 40))),.1)
  7727. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.06 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(-20 + 6 * math.cos(sine / 40))),.1)
  7728. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6),math.rad(0 - 2 * math.cos(sine / 42)),math.rad(20 - 6 * math.cos(sine / 40))),.1)
  7729. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 + 3 * math.cos(sine / 26)),math.rad(-20 - 3 * math.cos(sine / 24)),math.rad(20 - 5 * math.cos(sine / 34))),.1)
  7730. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 3 * math.cos(sine / 25)),math.rad(10 + 3 * math.cos(sine / 24)),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  7731. elseif ModeOfGlitch == 8889 then
  7732. 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)
  7733. 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)
  7734. 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)
  7735. 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)
  7736. 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)
  7737. 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)
  7738. elseif ModeOfGlitch == 1264532489 then
  7739. 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)
  7740. 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)
  7741. 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(-60)),.1)
  7742. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1)
  7743. 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)
  7744. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7745. elseif ModeOfGlitch == 9999999921111 then
  7746. 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)
  7747. 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)
  7748. 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)
  7749. 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)
  7750. 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)
  7751. 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)
  7752. elseif ModeOfGlitch == 4367677813 then
  7753. 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)
  7754. 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)
  7755. 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)
  7756. 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)
  7757. 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)
  7758. 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)
  7759. elseif ModeOfGlitch == 55469696922 then
  7760. 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)
  7761. 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)
  7762. 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)
  7763. 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)
  7764. 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)
  7765. 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)
  7766. 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)
  7767. elseif ModeOfGlitch == 999999999556 then
  7768. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  7769. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  7770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  7772. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  7773. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  7774. end
  7775. end
  7776. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7777. Anim="Walk"
  7778. if attack==false then
  7779. 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)
  7780. 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)
  7781. 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)
  7782. 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)
  7783. 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)
  7784. 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)
  7785. end
  7786. elseif torvel>=22 and hitfloor~=nil then
  7787. Anim="Run"
  7788. if attack==false then
  7789. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 7536 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  7790. 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)
  7791. 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)
  7792. 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)
  7793. 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)
  7794. 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)
  7795. 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)
  7796. if ModeOfGlitch == 9 then
  7797. --
  7798. end
  7799. 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
  7800. 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)
  7801. 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)
  7802. 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)
  7803. 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)
  7804. 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)
  7805. 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)
  7806. end
  7807. end
  7808. end
  7809. end
  7810. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement