Advertisement
ZaGodlyNoob

Hyperion Glitcher V2.2.4

Nov 3rd, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 335.93 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. ]])
  118. warn([[Update Log:
  119. N - ???
  120. Extra modes:
  121. > Stress Hyperion: N for Cosmic Hyperion
  122. > Frost Hyperion: N for Brightness Hyperion
  123. > True Hyperion: N for Insane Hyperion
  124. > Error Hyperion: N for Cyber Hyperion
  125. > Neptune: N for Purple Heart
  126. > Destiny Hyperion: N for Calamity Hyperion
  127. Note:
  128. Lots of hard work on this. I won't be making this again if this gets deleted.
  129. P.S Don't leak.]])
  130. --- its obs smooth af do not touch
  131. ---- Sources and functions might be taken from others
  132. plr = owner
  133. char = plr.Character
  134. hum = char.Humanoid
  135. local cam = game.Workspace.CurrentCamera
  136. Camera = cam
  137. local CamInterrupt = false
  138. local TwoD = false
  139. local TargetInfo = {nil, nil}
  140. cam.CameraType = "Custom"
  141. t = char.Torso
  142. h = char.Head
  143. ra = char["Right Arm"]
  144. la = char["Left Arm"]
  145. rl = char["Right Leg"]
  146. ll = char["Left Leg"]
  147. tors = char.Torso
  148. lleg = char["Left Leg"]
  149. root = char.HumanoidRootPart
  150. hed = char.Head
  151. rleg = char["Right Leg"]
  152. rarm = char["Right Arm"]
  153. larm = char["Left Arm"]
  154. radian = math.rad
  155. random = math.random
  156. Vec3 = Vector3.new
  157. Inst = Instance.new
  158. cFrame = CFrame.new
  159. Euler = CFrame.fromEulerAnglesXYZ
  160. vt = Vector3.new
  161. bc = BrickColor.new
  162. br = BrickColor.random
  163. it = Instance.new
  164. cf = CFrame.new
  165.  
  166. local Booleans = {
  167. CamFollow = true,
  168. GyroUse = true
  169. }
  170.  
  171. function lerp(object, newCFrame, alpha)
  172. return object:lerp(newCFrame, alpha)
  173. end
  174.  
  175. local Directer = Inst("BodyGyro", root)
  176. Directer.MaxTorque = Vec3(0, 0, 0)
  177. Directer.P = 600000
  178. local CPart = Inst("Part")
  179. CPart.Anchored = true
  180. CPart.CanCollide = false
  181. CPart.Locked = true
  182. CPart.Transparency = 1
  183.  
  184. local rainbowmode = false
  185. local chaosmode = false
  186.  
  187. local kan = Instance.new("Sound",char)
  188. kan.Volume = 1.25
  189. kan.TimePosition = 0
  190. kan.PlaybackSpeed = 1
  191. kan.Pitch = 1
  192. kan.SoundId = "rbxassetid://550578451"
  193. kan.Name = "wrecked"
  194. kan.Looped = true
  195. kan:Play()
  196.  
  197. local currentThemePlaying = kan.SoundId
  198. local currentPitch = kan.Pitch
  199. local currentVol = kan.Volume
  200. function newTheme(ID,timepos,pitch,vol)
  201. local kanz = kan
  202. --kanz:Stop()
  203. kanz.Volume = vol
  204. --kanz.TimePosition = timepos
  205. kanz.PlaybackSpeed = pitch
  206. kanz.Pitch = pitch
  207. kanz.SoundId = ID
  208. kanz.Name = "wrecked"
  209. kanz.Looped = true
  210. currentThemePlaying = kanz.SoundId
  211. currentVol = kanz.Volume
  212. currentPitch = kanz.Pitch
  213. --kanz:Play()
  214. --coroutine.resume(coroutine.create(function()
  215. --wait(0.05)
  216. --end))
  217. end
  218.  
  219.  
  220. function newThemeCust(ID,timepos,pitch,vol)
  221. local kanz = kan
  222. kanz:Stop()
  223. kanz.Volume = vol
  224. kanz.TimePosition = timepos
  225. kanz.PlaybackSpeed = pitch
  226. kanz.Pitch = pitch
  227. kanz.SoundId = ID
  228. kanz.Name = "wrecked"
  229. kanz.Looped = true
  230. currentThemePlaying = kanz.SoundId
  231. currentVol = kanz.Volume
  232. currentPitch = kanz.Pitch
  233. kanz:Play()
  234. coroutine.resume(coroutine.create(function()
  235. wait(0.05)
  236. end))
  237. end
  238.  
  239. local mutedtog = false
  240.  
  241. function CameraEnshaking(Length,Intensity)
  242. coroutine.resume(coroutine.create(function()
  243. local intensity = 1*Intensity
  244. local rotM = 0.01*Intensity
  245. for i = 0, Length, 0.1 do
  246. swait()
  247. intensity = intensity - 0.05*Intensity/Length
  248. rotM = rotM - 0.0005*Intensity/Length
  249. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  250. 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)
  251. end
  252. Humanoid.CameraOffset = Vec3(0, 0, 0)
  253. end))
  254. end
  255. CamShake=function(Part,Distan,Power,Times)
  256. local de=Part.Position
  257. for i,v in pairs(workspace:children()) do
  258. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  259. for _,c in pairs(v:children()) do
  260. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  261. local Noob=v.Humanoid
  262. if Noob~=nil then
  263. coroutine.resume(coroutine.create(function()
  264. FV = Instance.new("BoolValue", Noob)
  265. FV.Name = "CameraShake"
  266. for ShakeNum=1,Times do
  267. swait()
  268. local ef=Power
  269. if ef>=1 then
  270. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  271. else
  272. ef=Power*10
  273. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  274. end
  275. end
  276. Humanoid.CameraOffset = Vector3.new(0,0,0)
  277. FV:Destroy()
  278. end))
  279. CameraShake(Times, Power, Noob)
  280. end
  281. end
  282. end
  283. end
  284. end
  285. end
  286.  
  287. local toggleTag = true
  288. local bilguit = Instance.new("BillboardGui", hed)
  289. bilguit.Adornee = nil
  290. bilguit.Name = "ModeName"
  291. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  292. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  293. local modet = Instance.new("TextLabel", bilguit)
  294. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  295. modet.FontSize = "Size8"
  296. modet.TextScaled = true
  297. modet.TextTransparency = 0
  298. modet.BackgroundTransparency = 1
  299. modet.TextTransparency = 0
  300. modet.TextStrokeTransparency = 0
  301. modet.Font = "Antique"
  302. modet.TextStrokeColor3 = Color3.new(1,0,0)
  303. modet.TextColor3 = Color3.new(0.25,0,0)
  304. modet.Text = "STRESS HYPERION"
  305.  
  306.  
  307. function chatfunc(text,color,typet,font,timeex)
  308. local chat = coroutine.wrap(function()
  309. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  310. Character:FindFirstChild("TalkingBillBoard"):destroy()
  311. end
  312. local naeeym2 = Instance.new("BillboardGui",Character)
  313. naeeym2.Size = UDim2.new(0,100,0,40)
  314. naeeym2.StudsOffset = Vector3.new(0,3,0)
  315. naeeym2.Adornee = Character.Head
  316. naeeym2.Name = "TalkingBillBoard"
  317. local tecks2 = Instance.new("TextLabel",naeeym2)
  318. tecks2.BackgroundTransparency = 1
  319. tecks2.BorderSizePixel = 0
  320. tecks2.Text = ""
  321. tecks2.Font = font
  322. tecks2.TextSize = 30
  323. tecks2.TextStrokeTransparency = 0
  324. tecks2.TextColor3 = color
  325. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  326. tecks2.Size = UDim2.new(1,0,0.5,0)
  327. local tecks3 = Instance.new("TextLabel",naeeym2)
  328. tecks3.BackgroundTransparency = 1
  329. tecks3.BorderSizePixel = 0
  330. tecks3.Text = ""
  331. tecks3.Font = font
  332. tecks3.TextSize = 30
  333. tecks3.TextStrokeTransparency = 0
  334. if typet == "Inverted" then
  335. tecks3.TextColor3 = Color3.new(0,0,0)
  336. tecks3.TextStrokeColor3 = color
  337. elseif typet == "Normal" then
  338. tecks3.TextColor3 = color
  339. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  340. end
  341. tecks3.Size = UDim2.new(1,0,0.5,0)
  342. coroutine.resume(coroutine.create(function()
  343. while true do
  344. swait(1)
  345. if chaosmode == true then
  346. tecks2.TextColor3 = BrickColor.random().Color
  347. tecks3.TextStrokeColor3 = BrickColor.random().Color
  348. end
  349. end
  350. end))
  351. modet.TextTransparency = modet.TextTransparency + 1
  352. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  353. for i = 0, 74*timeex do
  354. swait()
  355. modet.TextTransparency = 1
  356. modet.TextStrokeTransparency = 1
  357. tecks2.Text = text
  358. tecks3.Text = text
  359. end
  360. local randomrot = math.random(1,2)
  361. if randomrot == 1 then
  362. for i = 1, 50 do
  363. swait()
  364. tecks2.Text = text
  365. tecks3.Text = text
  366. modet.TextTransparency = modet.TextTransparency - .02
  367. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  368. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks2.TextTransparency = tecks2.TextTransparency + .04
  370. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks3.TextTransparency = tecks2.TextTransparency + .04
  372. end
  373. elseif randomrot == 2 then
  374. for i = 1, 50 do
  375. swait()
  376. tecks2.Text = text
  377. tecks3.Text = text
  378. modet.TextTransparency = modet.TextTransparency - .02
  379. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  380. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  381. tecks2.TextTransparency = tecks2.TextTransparency + .04
  382. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  383. tecks3.TextTransparency = tecks2.TextTransparency + .04
  384. end
  385. end
  386. modet.TextTransparency = 0
  387. modet.TextStrokeTransparency = 0
  388. if toggleTag == false then
  389. modet.TextTransparency = 1
  390. modet.TextStrokeTransparency = 1
  391. end
  392. naeeym2:Destroy()
  393. end)
  394. chat()
  395. end
  396.  
  397. function bosschatfunc(text,color,watval)
  398. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  399. coroutine.resume(coroutine.create(function()
  400. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  401. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  402. end
  403. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  404. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  405. scrg.Name = "Dialog"
  406. local txtlb = Instance.new("TextLabel",scrg)
  407. txtlb.Text = ""
  408. txtlb.Font = "Bodoni"
  409. txtlb.TextColor3 = Color3.new(0,0,0)
  410. txtlb.TextStrokeTransparency = 0
  411. txtlb.BackgroundTransparency = 0.75
  412. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  413. txtlb.TextStrokeColor3 = color
  414. txtlb.TextScaled = true
  415. txtlb.Size = UDim2.new(1,0,0.25,0)
  416. txtlb.TextXAlignment = "Left"
  417. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  418. local txtlb2 = Instance.new("TextLabel",scrg)
  419. txtlb2.Text = "???:"
  420. txtlb2.Font = "Arcade"
  421. txtlb2.TextColor3 = Color3.new(0,0,0)
  422. txtlb2.TextStrokeTransparency = 0
  423. txtlb2.BackgroundTransparency = 1
  424. txtlb2.TextStrokeColor3 = color
  425. txtlb2.TextSize = 40
  426. txtlb2.Size = UDim2.new(1,0,0.25,0)
  427. txtlb2.TextXAlignment = "Left"
  428. txtlb2.Position = UDim2.new(0,0,1,0)
  429. local fvalen = 0.55
  430. local fval = -0.49
  431. coroutine.resume(coroutine.create(function()
  432. while true do
  433. swait()
  434. if chaosmode == true then
  435. txtlb.Rotation = math.random(-1,1)
  436. txtlb2.Rotation = math.random(-1,1)
  437. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  438. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  439. txtlb.TextStrokeColor3 = BrickColor.random().Color
  440. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  441. end
  442. end
  443. end))
  444. coroutine.resume(coroutine.create(function()
  445. while true do
  446. swait()
  447. if scrg.Parent ~= nil then
  448. fvalen = fvalen - 0.0001
  449. elseif scrg.Parent == nil then
  450. break
  451. end
  452. end
  453. end))
  454. local flol = 1.75
  455. local flil = 1.6
  456. coroutine.resume(coroutine.create(function()
  457. for i = 0, 9 do
  458. swait()
  459. fval = fval + 0.05
  460. flol = flol - 0.1
  461. flil = flil - 0.1
  462. txtlb.Text = ""
  463. txtlb.Position = UDim2.new(0,0,flol,0)
  464. txtlb2.Position = UDim2.new(0,0,flil,0)
  465. end
  466. txtlb.Text = text
  467. wait(watval)
  468. local valinc = 0
  469. for i = 0, 99 do
  470. swait()
  471. valinc = valinc + 0.0001
  472. flol = flol + valinc
  473. flil = flil + valinc
  474. txtlb.Rotation = txtlb.Rotation + valinc*20
  475. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  476. txtlb.Position = UDim2.new(0,0,flol,0)
  477. txtlb2.Position = UDim2.new(0,0,flil,0)
  478. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  479. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  480. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  481. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  482. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  483. end
  484. scrg:Destroy()
  485. end))
  486. end))
  487. end
  488. end
  489.  
  490.  
  491. local Create = LoadLibrary("RbxUtility").Create
  492.  
  493. CFuncs = {
  494. ["Part"] = {
  495. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  496. local Part = Create("Part"){
  497. Parent = Parent,
  498. Reflectance = Reflectance,
  499. Transparency = Transparency,
  500. CanCollide = false,
  501. Locked = true,
  502. BrickColor = BrickColor.new(tostring(BColor)),
  503. Name = Name,
  504. Size = Size,
  505. Material = Material,
  506. }
  507. RemoveOutlines(Part)
  508. return Part
  509. end;
  510. };
  511.  
  512. ["Mesh"] = {
  513. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  514. local Msh = Create(Mesh){
  515. Parent = Part,
  516. Offset = OffSet,
  517. Scale = Scale,
  518. }
  519. if Mesh == "SpecialMesh" then
  520. Msh.MeshType = MeshType
  521. Msh.MeshId = MeshId
  522. end
  523. return Msh
  524. end;
  525. };
  526.  
  527. ["Mesh"] = {
  528. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  529. local Msh = Create(Mesh){
  530. Parent = Part,
  531. Offset = OffSet,
  532. Scale = Scale,
  533. }
  534. if Mesh == "SpecialMesh" then
  535. Msh.MeshType = MeshType
  536. Msh.MeshId = MeshId
  537. end
  538. return Msh
  539. end;
  540. };
  541.  
  542. ["Weld"] = {
  543. Create = function(Parent, Part0, Part1, C0, C1)
  544. local Weld = Create("Weld"){
  545. Parent = Parent,
  546. Part0 = Part0,
  547. Part1 = Part1,
  548. C0 = C0,
  549. C1 = C1,
  550. }
  551. return Weld
  552. end;
  553. };
  554.  
  555. ["Sound"] = {
  556. Create = function(id, par, vol, pit)
  557. coroutine.resume(coroutine.create(function()
  558. local S = Create("Sound"){
  559. Volume = vol,
  560. Name = "EffectSoundo",
  561. Pitch = pit or 1,
  562. SoundId = id,
  563. Parent = par or workspace,
  564. }
  565. wait()
  566. S:play()
  567. game:GetService("Debris"):AddItem(S, 10)
  568. end))
  569. end;
  570. };
  571.  
  572. ["TimeSound"] = {
  573. Create = function(id, par, vol, pit, timepos)
  574. coroutine.resume(coroutine.create(function()
  575. local S = Create("Sound"){
  576. Volume = vol,
  577. Name = "EffectSoundo",
  578. Pitch = pit or 1,
  579. SoundId = id,
  580. TimePosition = timepos,
  581. Parent = par or workspace,
  582. }
  583. wait()
  584. S:play()
  585. game:GetService("Debris"):AddItem(S, 10)
  586. end))
  587. end;
  588. };
  589. ["EchoSound"] = {
  590. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  591. coroutine.resume(coroutine.create(function()
  592. local Sas = Create("Sound"){
  593. Volume = vol,
  594. Name = "EffectSoundo",
  595. Pitch = pit or 1,
  596. SoundId = id,
  597. TimePosition = timepos,
  598. Parent = par or workspace,
  599. }
  600. local E = Create("EchoSoundEffect"){
  601. Delay = echodelay,
  602. Name = "Echo",
  603. Feedback = fedb,
  604. DryLevel = dryl,
  605. Parent = Sas,
  606. }
  607. wait()
  608. Sas:play()
  609. game:GetService("Debris"):AddItem(Sas, delays)
  610. end))
  611. end;
  612. };
  613.  
  614. ["LongSound"] = {
  615. Create = function(id, par, vol, pit)
  616. coroutine.resume(coroutine.create(function()
  617. local S = Create("Sound"){
  618. Volume = vol,
  619. Pitch = pit or 1,
  620. SoundId = id,
  621. Parent = par or workspace,
  622. }
  623. wait()
  624. S:play()
  625. game:GetService("Debris"):AddItem(S, 60)
  626. end))
  627. end;
  628. };
  629.  
  630. ["ParticleEmitter"] = {
  631. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  632. local fp = Create("ParticleEmitter"){
  633. Parent = Parent,
  634. Color = ColorSequence.new(Color1, Color2),
  635. LightEmission = LightEmission,
  636. Size = Size,
  637. Texture = Texture,
  638. Transparency = Transparency,
  639. ZOffset = ZOffset,
  640. Acceleration = Accel,
  641. Drag = Drag,
  642. LockedToPart = LockedToPart,
  643. VelocityInheritance = VelocityInheritance,
  644. EmissionDirection = EmissionDirection,
  645. Enabled = Enabled,
  646. Lifetime = LifeTime,
  647. Rate = Rate,
  648. Rotation = Rotation,
  649. RotSpeed = RotSpeed,
  650. Speed = Speed,
  651. VelocitySpread = VelocitySpread,
  652. }
  653. return fp
  654. end;
  655. };
  656.  
  657. CreateTemplate = {
  658.  
  659. };
  660. }
  661.  
  662.  
  663.  
  664. New = function(Object, Parent, Name, Data)
  665. local Object = Instance.new(Object)
  666. for Index, Value in pairs(Data or {}) do
  667. Object[Index] = Value
  668. end
  669. Object.Parent = Parent
  670. Object.Name = Name
  671. return Object
  672. end
  673. local halocolor = BrickColor.new("Pastel light blue")
  674. local halocolor2 = BrickColor.new("Cool yellow")
  675. local starcolor = BrickColor.new("Bright yellow")
  676. local lunacolor = BrickColor.new("Navy blue")
  677. local lunacolor2 = BrickColor.new("Bright blue")
  678. local wepcolor = BrickColor.new("Really black")
  679. local maincolor = BrickColor.new("Really black")
  680. local m = Instance.new("Model",char)
  681. local m2 = Instance.new("Model",char)
  682. local m3 = Instance.new("Model",char)
  683. local mw1 = Instance.new("Model",char)
  684. local mw2 = Instance.new("Model",char)
  685.  
  686.  
  687. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  688. local gui = it(GuiType)
  689. gui.Parent = parent
  690. gui.Text = text
  691. gui.BackgroundTransparency = backtrans
  692. gui.BackgroundColor3 = backcol
  693. gui.SizeConstraint = "RelativeXY"
  694. gui.TextXAlignment = "Center"
  695. gui.TextYAlignment = "Center"
  696. gui.Position = pos
  697. gui.Size = size
  698. gui.Font = "SourceSans"
  699. gui.FontSize = "Size14"
  700. gui.TextWrapped = false
  701. gui.TextStrokeTransparency = 0
  702. gui.TextColor = BrickColor.new("White")
  703. return gui
  704. end
  705. --------------------------- GUI STUFF
  706. local basgui = it("GuiMain")
  707. basgui.Parent = plr.PlayerGui
  708. basgui.Name = "VISgui"
  709. local fullscreenz = it("Frame")
  710. fullscreenz.Parent = basgui
  711. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  712. fullscreenz.BackgroundTransparency = 1
  713. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  714. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  715. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  716. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  717. imgl2.BackgroundTransparency = 1
  718. imgl2.BorderSizePixel = 0
  719. imgl2.ImageTransparency = 0.5
  720. imgl2.ImageColor3 = Color3.new(1,0,0)
  721. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  722. imgl2.Size = UDim2.new(0,1000,0,1000)
  723. imgl2.Image = "rbxassetid://2325939897"
  724. local techc = imgl2:Clone()
  725. techc.Parent = fullscreenz
  726. techc.ImageTransparency = 0
  727. techc.Size = UDim2.new(0,900,0,900)
  728. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  729. techc.ImageColor3 = Color3.new(1,0,0)
  730. techc.Image = "rbxassetid://2273224484"
  731. local circl = imgl2:Clone()
  732. circl.Parent = fullscreenz
  733. circl.ImageTransparency = 0
  734. circl.Size = UDim2.new(0,550,0,550)
  735. circl.Position = UDim2.new(0.75,25,0.55,25)
  736. circl.ImageColor3 = Color3.new(0,0,0)
  737. circl.Image = "rbxassetid://2312119891"
  738. local circl2 = imgl2:Clone()
  739. circl2.Parent = fullscreenz
  740. circl2.ImageTransparency = 0
  741. circl2.Size = UDim2.new(0,700,0,700)
  742. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  743. circl2.ImageColor3 = Color3.new(1,0,0)
  744. circl2.Image = "rbxassetid://2312119891"
  745. local imgl2b = imgl2:Clone()
  746. imgl2b.Parent = fullscreenz
  747. imgl2b.ImageTransparency = 0
  748. imgl2b.Size = UDim2.new(0,800,0,800)
  749. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  750. imgl2b.ImageColor3 = Color3.new(0,0,0)
  751. local ned = Instance.new("TextLabel",fullscreenz)
  752. ned.ZIndex = 2
  753. ned.Font = "Arcade"
  754. ned.BackgroundTransparency = 1
  755. ned.BorderSizePixel = 0.65
  756. ned.Size = UDim2.new(0.3,0,0.2,0)
  757. ned.Position = UDim2.new(0.7,0,0.8,0)
  758. ned.TextColor3 = BrickColor.new("Really red").Color
  759. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  760. ned.TextScaled = true
  761. ned.TextStrokeTransparency = 0
  762. ned.Text = "STRESS HYPERION"
  763. ned.TextSize = 24
  764. ned.Rotation = 1
  765. ned.TextXAlignment = "Right"
  766. ned.TextYAlignment = "Bottom"
  767.  
  768. local extrawingmod1 = Instance.new("Model",char)
  769. local extrawingmod2 = Instance.new("Model",char)
  770.  
  771. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  772. local p = Instance.new("Part")
  773. p.TopSurface = 0
  774. p.BottomSurface = 0
  775. p.Parent = parent
  776. p.Size = Vector3.new(0.1,0.1,0.1)
  777. p.Transparency = transparency
  778. p.Reflectance = reflectance
  779. p.CanCollide = false
  780. p.Locked = true
  781. p.BrickColor = brickcolor
  782. p.Material = material
  783. return p
  784. end
  785.  
  786. function CreateMesh(parent,meshtype,x1,y1,z1)
  787. local mesh = Instance.new("SpecialMesh",parent)
  788. mesh.MeshType = meshtype
  789. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  790. return mesh
  791. end
  792.  
  793. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  794. local mesh = Instance.new("SpecialMesh",parent)
  795. mesh.MeshType = "FileMesh"
  796. mesh.MeshId = meshid
  797. mesh.Scale = Vector3.new(x1,y1,z1)
  798. return mesh
  799. end
  800.  
  801.  
  802. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  803. local mesh = Instance.new("SpecialMesh",parent)
  804. mesh.MeshType = "FileMesh"
  805. mesh.MeshId = meshid
  806. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  807. mesh.Scale = Vector3.new(x1,y1,z1)
  808. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  809. return mesh
  810. end
  811.  
  812. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  813. local weld = Instance.new("Weld")
  814. weld.Parent = parent
  815. weld.Part0 = part0
  816. weld.Part1 = part1
  817. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  818. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  819. return weld
  820. end
  821.  
  822.  
  823. --------------
  824. --------------
  825. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  826. 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))
  827. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  828. 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))
  829.  
  830. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  831. CreateMesh(handle,"Brick",0,0,0)
  832. 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))
  833. local valuaring = 10
  834. for i = 0, 49 do
  835. valuaring = valuaring + 10
  836. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  837. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  838. 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))
  839. end
  840.  
  841. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  842. CreateMesh(handle,"Brick",0,0,0)
  843. 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))
  844. local valuaring = 10
  845. for i = 0, 49 do
  846. valuaring = valuaring + 10
  847. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  848. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  849. 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))
  850. end
  851.  
  852.  
  853. local handle = CreateParta(m,1,1,"Neon",maincolor)
  854. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  855. 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))
  856.  
  857. --- Left wing.
  858.  
  859. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  860. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  861. 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))
  862.  
  863. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  864. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  865. 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))
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  868. 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))
  869. A0 = Instance.new('Attachment',wed)
  870. A0.Position = vt(0,0.25,0.25)
  871. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,3)
  873. 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))
  874. A1 = Instance.new('Attachment',wed)
  875. A1.Position = vt(0,-0.25,-2)
  876. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,3,0.5)
  878. 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))
  879.  
  880. tl1 = Instance.new('Trail',wed)
  881. tl1.Attachment0 = A1
  882. tl1.Attachment1 = A0
  883. tl1.Texture = "rbxassetid://2108945559"
  884. tl1.LightEmission = 1
  885. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  886. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  887. tl1.Lifetime = 0.6
  888.  
  889.  
  890. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  891. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  892. 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))
  893.  
  894. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. 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))
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  899. 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))
  900. A0 = Instance.new('Attachment',wed)
  901. A0.Position = vt(0,0.25,0.25)
  902. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,0.5,3)
  904. 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))
  905. A1 = Instance.new('Attachment',wed)
  906. A1.Position = vt(0,-0.25,-2)
  907. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,3,0.5)
  909. 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))
  910.  
  911. tl2 = Instance.new('Trail',wed)
  912. tl2.Attachment0 = A1
  913. tl2.Attachment1 = A0
  914. tl2.Texture = "rbxassetid://2108945559"
  915. tl2.LightEmission = 1
  916. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  917. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  918. tl2.Lifetime = 0.6
  919.  
  920. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  921. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  922. 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))
  923.  
  924. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  926. 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))
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  929. 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))
  930. A0 = Instance.new('Attachment',wed)
  931. A0.Position = vt(0,0.25,0.25)
  932. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,0.5,3)
  934. 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))
  935. A1 = Instance.new('Attachment',wed)
  936. A1.Position = vt(0,-0.25,-2)
  937. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,3,0.5)
  939. 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))
  940.  
  941. tl3 = Instance.new('Trail',wed)
  942. tl3.Attachment0 = A1
  943. tl3.Attachment1 = A0
  944. tl3.Texture = "rbxassetid://2108945559"
  945. tl3.LightEmission = 1
  946. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  947. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  948. tl3.Lifetime = 0.6
  949.  
  950. tl1.Enabled = false
  951. tl2.Enabled = false
  952. tl3.Enabled = false
  953. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  954. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  955. 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))
  956.  
  957. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  958. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  959. 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))
  960. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  961. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  962. 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))
  963. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  964. CreateMesh(wed,"Wedge",0.05,0.5,3)
  965. 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))
  966. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  967. CreateMesh(wed,"Wedge",0.05,3,0.5)
  968. 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))
  969.  
  970. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  971. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  972. 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))
  973.  
  974. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  975. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  976. 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))
  977. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. 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))
  980. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,3)
  982. 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))
  983. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,3,0.5)
  985. 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))
  986.  
  987. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  988. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  989. 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))
  990.  
  991. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  992. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  993. 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))
  994. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  996. 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))
  997. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  998. CreateMesh(wed,"Wedge",0.05,0.5,3)
  999. 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))
  1000. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1002. 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))
  1003.  
  1004. -- Right wing.
  1005.  
  1006. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1007. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1008. 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))
  1009.  
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. A0 = Instance.new('Attachment',wed)
  1014. A0.Position = vt(0,0.25,0.25)
  1015. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1016. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1017. 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))
  1018. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1019. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1020. 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))
  1021. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1022. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1023. 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))
  1024. A1 = Instance.new('Attachment',wed)
  1025. A1.Position = vt(0,2,0.25)
  1026.  
  1027. tr1 = Instance.new('Trail',wed)
  1028. tr1.Attachment0 = A1
  1029. tr1.Attachment1 = A0
  1030. tr1.Texture = "rbxassetid://2108945559"
  1031. tr1.LightEmission = 1
  1032. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1033. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1034. tr1.Lifetime = 0.6
  1035.  
  1036. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1037. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1038. 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))
  1039.  
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. 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))
  1043. A0 = Instance.new('Attachment',wed)
  1044. A0.Position = vt(0,0.25,0.25)
  1045. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1046. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1047. 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))
  1048. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1049. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1050. 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))
  1051. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1052. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1053. 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))
  1054. A1 = Instance.new('Attachment',wed)
  1055. A1.Position = vt(0,2,0.25)
  1056.  
  1057. tr2 = Instance.new('Trail',wed)
  1058. tr2.Attachment0 = A1
  1059. tr2.Attachment1 = A0
  1060. tr2.Texture = "rbxassetid://2108945559"
  1061. tr2.LightEmission = 1
  1062. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1063. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1064. tr2.Lifetime = 0.6
  1065.  
  1066. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1067. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1068. 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))
  1069.  
  1070. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1072. 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))
  1073. A0 = Instance.new('Attachment',wed)
  1074. A0.Position = vt(0,0.25,0.25)
  1075. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1076. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1077. 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))
  1078. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1079. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1080. 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))
  1081. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1082. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1083. 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))
  1084. A1 = Instance.new('Attachment',wed)
  1085. A1.Position = vt(0,2,0.25)
  1086.  
  1087. tr3 = Instance.new('Trail',wed)
  1088. tr3.Attachment0 = A1
  1089. tr3.Attachment1 = A0
  1090. tr3.Texture = "rbxassetid://2108945559"
  1091. tr3.LightEmission = 1
  1092. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1093. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1094. tr3.Lifetime = 0.6
  1095.  
  1096.  
  1097. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1098. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1099. 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))
  1100.  
  1101. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1103. 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))
  1104. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1106. 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))
  1107. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1109. 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))
  1110. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1112. 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))
  1113.  
  1114. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1115. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1116. 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))
  1117.  
  1118. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1119. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1120. 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))
  1121. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1122. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1123. 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))
  1124. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1125. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1126. 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))
  1127. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1129. 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))
  1130.  
  1131. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1132. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1133. 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))
  1134.  
  1135. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1136. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1137. 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))
  1138. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1139. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1140. 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))
  1141. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1143. 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))
  1144. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1146. 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))
  1147.  
  1148. ---- HERES THE RING
  1149.  
  1150.  
  1151. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1152. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1153. 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))
  1154. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1155. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1156. 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))
  1157. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1158. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1159. 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))
  1160.  
  1161.  
  1162. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1163. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1164. 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))
  1165.  
  1166. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1167. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1168. 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))
  1169.  
  1170.  
  1171.  
  1172. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1173. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1174. 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))
  1175.  
  1176. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1177. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1178. 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))
  1179.  
  1180. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1181. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1182. 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))
  1183.  
  1184. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1185. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1186. 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))
  1187. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1188. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1189. 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))
  1190.  
  1191. --- second ring
  1192.  
  1193. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1194. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1195. 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))
  1196. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1197. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1198. 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))
  1199. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1200. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1201. 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))
  1202.  
  1203. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1204. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1205. 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))
  1206.  
  1207. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1208. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1209. 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))
  1210.  
  1211.  
  1212.  
  1213. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1214. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1215. 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))
  1216.  
  1217. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1218. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1219. 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))
  1220.  
  1221. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1222. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1223. 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))
  1224.  
  1225. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1226. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1227. 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))
  1228. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1229. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1230. 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))]]--
  1231.  
  1232.  
  1233.  
  1234. for i, v in pairs(m:GetChildren()) do
  1235. if v:IsA("Part") then
  1236. v.BrickColor = BrickColor.new("Really black")
  1237. v.Material = "Glass"
  1238. end
  1239. end
  1240. for i, v in pairs(m2:GetChildren()) do
  1241. if v:IsA("Part") then
  1242. v.BrickColor = BrickColor.new("Crimson")
  1243. v.Material = "Granite"
  1244. end
  1245. end
  1246. for i, v in pairs(m3:GetChildren()) do
  1247. if v:IsA("Part") then
  1248. v.BrickColor = BrickColor.new("Really red")
  1249. v.Material = "Neon"
  1250. end
  1251. end
  1252. for i, v in pairs(mw2:GetChildren()) do
  1253. if v:IsA("Part") then
  1254. v.BrickColor = BrickColor.new("Really red")
  1255. v.Material = "Neon"
  1256. end
  1257. end
  1258. for i, v in pairs(mw1:GetChildren()) do
  1259. if v:IsA("Part") then
  1260. v.Transparency = 1
  1261. v.BrickColor = BrickColor.new("Really red")
  1262. v.Material = "Neon"
  1263. end
  1264. end
  1265. for i, v in pairs(extrawingmod1:GetChildren()) do
  1266. if v:IsA("Part") then
  1267. v.Transparency = 1
  1268. v.BrickColor = BrickColor.new("White")
  1269. v.Material = "Neon"
  1270. end
  1271. end
  1272. for i, v in pairs(extrawingmod2:GetChildren()) do
  1273. if v:IsA("Part") then
  1274. v.Transparency = 1
  1275. v.BrickColor = BrickColor.new("White")
  1276. v.Material = "Neon"
  1277. end
  1278. end
  1279. local MAINRUINCOLOR = BrickColor.new("Really red")
  1280. ------
  1281.  
  1282.  
  1283. function RemoveOutlines(part)
  1284. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1285. end
  1286. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1287. local Part = Create("Part")({
  1288. Parent = Parent,
  1289. Reflectance = Reflectance,
  1290. Transparency = Transparency,
  1291. CanCollide = false,
  1292. Locked = true,
  1293. BrickColor = BrickColor.new(tostring(BColor)),
  1294. Name = Name,
  1295. Size = Size,
  1296. Material = Material
  1297. })
  1298. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1299. RemoveOutlines(Part)
  1300. return Part
  1301. end
  1302. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1303. local Msh = Create(Mesh)({
  1304. Parent = Part,
  1305. Offset = OffSet,
  1306. Scale = Scale
  1307. })
  1308. if Mesh == "SpecialMesh" then
  1309. Msh.MeshType = MeshType
  1310. Msh.MeshId = MeshId
  1311. end
  1312. return Msh
  1313. end
  1314. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1315. local Weld = Create("Weld")({
  1316. Parent = Parent,
  1317. Part0 = Part0,
  1318. Part1 = Part1,
  1319. C0 = C0,
  1320. C1 = C1
  1321. })
  1322. return Weld
  1323. end
  1324.  
  1325. Character=Player.Character
  1326. PlayerGui=Player.PlayerGui
  1327. Backpack=Player.Backpack
  1328. Torso=Character.Torso
  1329. Head=Character.Head
  1330. Humanoid=Character.Humanoid
  1331. m=Instance.new('Model',Character)
  1332. LeftArm=Character["Left Arm"]
  1333. LeftLeg=Character["Left Leg"]
  1334. RightArm=Character["Right Arm"]
  1335. RightLeg=Character["Right Leg"]
  1336. LS=Torso["Left Shoulder"]
  1337. LH=Torso["Left Hip"]
  1338. RS=Torso["Right Shoulder"]
  1339. RH=Torso["Right Hip"]
  1340. Face = Head.face
  1341. Neck=Torso.Neck
  1342. it=Instance.new
  1343. attacktype=1
  1344. vt=Vector3.new
  1345. cf=CFrame.new
  1346. euler=CFrame.fromEulerAnglesXYZ
  1347. angles=CFrame.Angles
  1348. cloaked=false
  1349. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1350. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1351. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1352. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1353. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1354. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1355. RootPart=Character.HumanoidRootPart
  1356. RootJoint=RootPart.RootJoint
  1357. RootCF=euler(-1.57,0,3.14)
  1358. attack = false
  1359. attackdebounce = false
  1360. deb=false
  1361. equipped=true
  1362. hand=false
  1363. combo=0
  1364. mana=0
  1365. trispeed=.2
  1366. attackmode='none'
  1367. local idle=0
  1368. local Anim="Idle"
  1369. local Effects={}
  1370. local gun=false
  1371. local shoot=false
  1372. local sine = 0
  1373. local change = 1
  1374.  
  1375. function RecolorTextAndRename(name,col1,col2,font)
  1376. modet.TextStrokeColor3 = col2
  1377. modet.TextColor3 = col1
  1378. modet.Font = font
  1379. modet.Text = name
  1380. techc.ImageColor3 = col2
  1381. circl.ImageColor3 = col2
  1382. circl2.ImageColor3 = col1
  1383. imgl2.ImageColor3 = col1
  1384. imgl2b.ImageColor3 = col2
  1385. ned.Text = name
  1386. ned.TextColor3 = col1
  1387. ned.TextStrokeColor3 = col2
  1388. end
  1389. --save shoulders
  1390. RSH, LSH=nil, nil
  1391. --welds
  1392. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1393. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1394. LH=Torso["Left Hip"]
  1395. RH=Torso["Right Hip"]
  1396. TorsoColor=Torso.BrickColor
  1397. function NoOutline(Part)
  1398. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1399. end
  1400. ch=Character
  1401. RSH=ch.Torso["Right Shoulder"]
  1402. LSH=ch.Torso["Left Shoulder"]
  1403. --
  1404. RSH.Parent=nil
  1405. LSH.Parent=nil
  1406. --
  1407. RW.Name="Right Shoulder"
  1408. RW.Part0=ch.Torso
  1409. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1410. RW.C1=cf(0, 0.5, 0)
  1411. RW.Part1=ch["Right Arm"]
  1412. RW.Parent=ch.Torso
  1413. --
  1414. LW.Name="Left Shoulder"
  1415. LW.Part0=ch.Torso
  1416. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1417. LW.C1=cf(0, 0.5, 0)
  1418. LW.Part1=ch["Left Arm"]
  1419. LW.Parent=ch.Torso
  1420.  
  1421. local Stats=Instance.new("BoolValue")
  1422. Stats.Name="Stats"
  1423. Stats.Parent=Character
  1424. local Atk=Instance.new("NumberValue")
  1425. Atk.Name="Damage"
  1426. Atk.Parent=Stats
  1427. Atk.Value=1
  1428. local Def=Instance.new("NumberValue")
  1429. Def.Name="Defense"
  1430. Def.Parent=Stats
  1431. Def.Value=1
  1432. local Speed=Instance.new("NumberValue")
  1433. Speed.Name="Speed"
  1434. Speed.Parent=Stats
  1435. Speed.Value=1
  1436. local Mvmt=Instance.new("NumberValue")
  1437. Mvmt.Name="Movement"
  1438. Mvmt.Parent=Stats
  1439. Mvmt.Value=1
  1440.  
  1441. local donum=0
  1442.  
  1443.  
  1444. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1445. local fp=it("Part")
  1446. fp.formFactor=formfactor
  1447. fp.Parent=parent
  1448. fp.Reflectance=reflectance
  1449. fp.Transparency=transparency
  1450. fp.CanCollide=false
  1451. fp.Locked=true
  1452. fp.BrickColor=brickcolor
  1453. fp.Name=name
  1454. fp.Size=size
  1455. fp.Position=Torso.Position
  1456. NoOutline(fp)
  1457. fp.Material="SmoothPlastic"
  1458. fp:BreakJoints()
  1459. return fp
  1460. end
  1461.  
  1462. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1463. local mesh=it(Mesh)
  1464. mesh.Parent=part
  1465. if Mesh=="SpecialMesh" then
  1466. mesh.MeshType=meshtype
  1467. if meshid~="nil" then
  1468. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1469. end
  1470. end
  1471. mesh.Offset=offset
  1472. mesh.Scale=scale
  1473. return mesh
  1474. end
  1475.  
  1476. function weld(parent,part0,part1,c0)
  1477. local weld=it("Weld")
  1478. weld.Parent=parent
  1479. weld.Part0=part0
  1480. weld.Part1=part1
  1481. weld.C0=c0
  1482. return weld
  1483. end
  1484.  
  1485. local Color1=Torso.BrickColor
  1486.  
  1487. local bodvel=Instance.new("BodyVelocity")
  1488. local bg=Instance.new("BodyGyro")
  1489.  
  1490. --------- SazEreno's Artificial HB --------------
  1491. ArtificialHB = Instance.new("BindableEvent", script)
  1492. ArtificialHB.Name = "ArtificialHB"
  1493.  
  1494. script:WaitForChild("ArtificialHB")
  1495. Frame_Speed = 1 / 60
  1496. frame = Frame_Speed
  1497. tf = 0
  1498. allowframeloss = false
  1499. tossremainder = false
  1500. lastframe = tick()
  1501. script.ArtificialHB:Fire()
  1502.  
  1503. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1504. tf = tf + s
  1505. if tf >= frame then
  1506. if allowframeloss then
  1507. script.ArtificialHB:Fire()
  1508. lastframe = tick()
  1509. else
  1510. for i = 1, math.floor(tf / frame) do
  1511. script.ArtificialHB:Fire()
  1512. end
  1513. lastframe = tick()
  1514. end
  1515. if tossremainder then
  1516. tf = 0
  1517. else
  1518. tf = tf - frame * math.floor(tf / frame)
  1519. end
  1520. end
  1521. end)
  1522.  
  1523. ------------------
  1524. function swait(num)
  1525. function swait(num)
  1526. if num==0 or num==nil then
  1527. game:service'RunService'.Stepped:wait(0)
  1528. else
  1529. for i=0,num do
  1530. game:service'RunService'.Stepped:wait(0)
  1531. end
  1532. end
  1533. end
  1534. end
  1535.  
  1536. -------- RAINBOW LEAVE IT TO ME
  1537. local r = 255
  1538. local g = 0
  1539. local b = 0
  1540. coroutine.resume(coroutine.create(function()
  1541. while wait() do
  1542. for i = 0, 254/5 do
  1543. swait()
  1544. g = g + 5
  1545. end
  1546. for i = 0, 254/5 do
  1547. swait()
  1548. r = r - 5
  1549. end
  1550. for i = 0, 254/5 do
  1551. swait()
  1552. b = b + 5
  1553. end
  1554. for i = 0, 254/5 do
  1555. swait()
  1556. g = g - 5
  1557. end
  1558. for i = 0, 254/5 do
  1559. swait()
  1560. r = r + 5
  1561. end
  1562. for i = 0, 254/5 do
  1563. swait()
  1564. b = b - 5
  1565. end
  1566. end
  1567. end))
  1568.  
  1569.  
  1570. so = function(id,par,vol,pit)
  1571. coroutine.resume(coroutine.create(function()
  1572. local sou = Instance.new("Sound",par or workspace)
  1573. sou.Volume=vol
  1574. sou.Pitch=pit or 1
  1575. sou.SoundId=id
  1576. swait()
  1577. sou:play()
  1578. game:GetService("Debris"):AddItem(sou,6)
  1579. end))
  1580. end
  1581.  
  1582. function clerp(a,b,t)
  1583. local qa = {QuaternionFromCFrame(a)}
  1584. local qb = {QuaternionFromCFrame(b)}
  1585. local ax, ay, az = a.x, a.y, a.z
  1586. local bx, by, bz = b.x, b.y, b.z
  1587. local _t = 1-t
  1588. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1589. end
  1590.  
  1591. function QuaternionFromCFrame(cf)
  1592. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1593. local trace = m00 + m11 + m22
  1594. if trace > 0 then
  1595. local s = math.sqrt(1 + trace)
  1596. local recip = 0.5/s
  1597. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1598. else
  1599. local i = 0
  1600. if m11 > m00 then
  1601. i = 1
  1602. end
  1603. if m22 > (i == 0 and m00 or m11) then
  1604. i = 2
  1605. end
  1606. if i == 0 then
  1607. local s = math.sqrt(m00-m11-m22+1)
  1608. local recip = 0.5/s
  1609. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1610. elseif i == 1 then
  1611. local s = math.sqrt(m11-m22-m00+1)
  1612. local recip = 0.5/s
  1613. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1614. elseif i == 2 then
  1615. local s = math.sqrt(m22-m00-m11+1)
  1616. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1617. end
  1618. end
  1619. end
  1620.  
  1621. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1622. local xs, ys, zs = x + x, y + y, z + z
  1623. local wx, wy, wz = w*xs, w*ys, w*zs
  1624. local xx = x*xs
  1625. local xy = x*ys
  1626. local xz = x*zs
  1627. local yy = y*ys
  1628. local yz = y*zs
  1629. local zz = z*zs
  1630. 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))
  1631. end
  1632.  
  1633. function QuaternionSlerp(a, b, t)
  1634. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1635. local startInterp, finishInterp;
  1636. if cosTheta >= 0.0001 then
  1637. if (1 - cosTheta) > 0.0001 then
  1638. local theta = math.acos(cosTheta)
  1639. local invSinTheta = 1/math.sin(theta)
  1640. startInterp = math.sin((1-t)*theta)*invSinTheta
  1641. finishInterp = math.sin(t*theta)*invSinTheta
  1642. else
  1643. startInterp = 1-t
  1644. finishInterp = t
  1645. end
  1646. else
  1647. if (1+cosTheta) > 0.0001 then
  1648. local theta = math.acos(-cosTheta)
  1649. local invSinTheta = 1/math.sin(theta)
  1650. startInterp = math.sin((t-1)*theta)*invSinTheta
  1651. finishInterp = math.sin(t*theta)*invSinTheta
  1652. else
  1653. startInterp = t-1
  1654. finishInterp = t
  1655. end
  1656. end
  1657. 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
  1658. end
  1659.  
  1660. local function CFrameFromTopBack(at, top, back)
  1661. local right = top:Cross(back)
  1662. return CFrame.new(at.x, at.y, at.z,
  1663. right.x, top.x, back.x,
  1664. right.y, top.y, back.y,
  1665. right.z, top.z, back.z)
  1666. end
  1667.  
  1668. function Triangle(a, b, c)
  1669. local edg1 = (c-a):Dot((b-a).unit)
  1670. local edg2 = (a-b):Dot((c-b).unit)
  1671. local edg3 = (b-c):Dot((a-c).unit)
  1672. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1673. a, b, c = a, b, c
  1674. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1675. a, b, c = b, c, a
  1676. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1677. a, b, c = c, a, b
  1678. else
  1679. assert(false, "unreachable")
  1680. end
  1681.  
  1682. local len1 = (c-a):Dot((b-a).unit)
  1683. local len2 = (b-a).magnitude - len1
  1684. local width = (a + (b-a).unit*len1 - c).magnitude
  1685.  
  1686. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1687.  
  1688. local list = {}
  1689.  
  1690. if len1 > 0.01 then
  1691. local w1 = Instance.new('WedgePart', m)
  1692. game:GetService("Debris"):AddItem(w1,5)
  1693. w1.Material = "SmoothPlastic"
  1694. w1.FormFactor = 'Custom'
  1695. w1.BrickColor = BrickColor.new("Really red")
  1696. w1.Transparency = 0
  1697. w1.Reflectance = 0
  1698. w1.Material = "SmoothPlastic"
  1699. w1.CanCollide = false
  1700. local l1 = Instance.new("PointLight",w1)
  1701. l1.Color = Color3.new(170,0,0)
  1702. NoOutline(w1)
  1703. local sz = Vector3.new(0.2, width, len1)
  1704. w1.Size = sz
  1705. local sp = Instance.new("SpecialMesh",w1)
  1706. sp.MeshType = "Wedge"
  1707. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1708. w1:BreakJoints()
  1709. w1.Anchored = true
  1710. w1.Parent = workspace
  1711. w1.Transparency = 0.7
  1712. table.insert(Effects,{w1,"Disappear",.01})
  1713. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1714. table.insert(list,w1)
  1715. end
  1716.  
  1717. if len2 > 0.01 then
  1718. local w2 = Instance.new('WedgePart', m)
  1719. game:GetService("Debris"):AddItem(w2,5)
  1720. w2.Material = "SmoothPlastic"
  1721. w2.FormFactor = 'Custom'
  1722. w2.BrickColor = BrickColor.new("Really red")
  1723. w2.Transparency = 0
  1724. w2.Reflectance = 0
  1725. w2.Material = "SmoothPlastic"
  1726. w2.CanCollide = false
  1727. local l2 = Instance.new("PointLight",w2)
  1728. l2.Color = Color3.new(170,0,0)
  1729. NoOutline(w2)
  1730. local sz = Vector3.new(0.2, width, len2)
  1731. w2.Size = sz
  1732. local sp = Instance.new("SpecialMesh",w2)
  1733. sp.MeshType = "Wedge"
  1734. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1735. w2:BreakJoints()
  1736. w2.Anchored = true
  1737. w2.Parent = workspace
  1738. w2.Transparency = 0.7
  1739. table.insert(Effects,{w2,"Disappear",.01})
  1740. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1741. table.insert(list,w2)
  1742. end
  1743. return unpack(list)
  1744. end
  1745.  
  1746.  
  1747. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1748. if hit.Parent == nil then
  1749. return
  1750. end
  1751. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1752. for _, v in pairs(hit.Parent:children()) do
  1753. if v:IsA("Humanoid") then
  1754. h = v
  1755. end
  1756. end
  1757. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1758. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1759. return
  1760. end
  1761. local c = Create("ObjectValue")({
  1762. Name = "creator",
  1763. Value = game:GetService("Players").LocalPlayer,
  1764. Parent = h
  1765. })
  1766. game:GetService("Debris"):AddItem(c, 0.5)
  1767. if HitSound ~= nil and HitPitch ~= nil then
  1768. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1769. end
  1770. local Damage = math.random(minim, maxim)
  1771. local blocked = false
  1772. local block = hit.Parent:findFirstChild("Block")
  1773. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1774. blocked = true
  1775. block.Value = block.Value - 1
  1776. print(block.Value)
  1777. end
  1778. if blocked == false then
  1779. HitHealth = h.Health
  1780. h.MaxHealth = 100
  1781. h.Health = h.Health - Damage
  1782. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1783. print("gained kill")
  1784. dmg(h.Parent)
  1785. end
  1786. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1787. else
  1788. h.Health = h.Health - Damage / 2
  1789. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1790. end
  1791. if Type == "Knockdown" then
  1792. local hum = hit.Parent.Humanoid
  1793. hum.PlatformStand = true
  1794. coroutine.resume(coroutine.create(function(HHumanoid)
  1795. swait(1)
  1796. HHumanoid.PlatformStand = false
  1797. end), hum)
  1798. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1799. local bodvol = Create("BodyVelocity")({
  1800. velocity = angle * knockback,
  1801. P = 5000,
  1802. maxForce = Vector3.new(8000, 8000, 8000),
  1803. Parent = hit
  1804. })
  1805. local rl = Create("BodyAngularVelocity")({
  1806. P = 3000,
  1807. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1808. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1809. Parent = hit
  1810. })
  1811. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1812. game:GetService("Debris"):AddItem(rl, 0.5)
  1813. elseif Type == "Normal" then
  1814. local vp = Create("BodyVelocity")({
  1815. P = 500,
  1816. maxForce = Vector3.new(math.huge, 0, math.huge),
  1817. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1818. })
  1819. if knockback > 0 then
  1820. vp.Parent = hit.Parent.Head
  1821. end
  1822. game:GetService("Debris"):AddItem(vp, 0.5)
  1823. elseif Type == "Up" then
  1824. local bodyVelocity = Create("BodyVelocity")({
  1825. velocity = Vector3.new(0, 20, 0),
  1826. P = 5000,
  1827. maxForce = Vector3.new(8000, 8000, 8000),
  1828. Parent = hit
  1829. })
  1830. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1831. local bodyVelocity = Create("BodyVelocity")({
  1832. velocity = Vector3.new(0, 20, 0),
  1833. P = 5000,
  1834. maxForce = Vector3.new(8000, 8000, 8000),
  1835. Parent = hit
  1836. })
  1837. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1838. elseif Type == "Leech" then
  1839. local hum = hit.Parent.Humanoid
  1840. if hum ~= nil then
  1841. for i = 0, 2 do
  1842. 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)
  1843. end
  1844. Humanoid.Health = Humanoid.Health + 10
  1845. end
  1846. elseif Type == "UpKnock" then
  1847. local hum = hit.Parent.Humanoid
  1848. hum.PlatformStand = true
  1849. if hum ~= nil then
  1850. hitr = true
  1851. end
  1852. coroutine.resume(coroutine.create(function(HHumanoid)
  1853. swait(5)
  1854. HHumanoid.PlatformStand = false
  1855. hitr = false
  1856. end), hum)
  1857. local bodyVelocity = Create("BodyVelocity")({
  1858. velocity = Vector3.new(0, 20, 0),
  1859. P = 5000,
  1860. maxForce = Vector3.new(8000, 8000, 8000),
  1861. Parent = hit
  1862. })
  1863. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1864. local bodyVelocity = Create("BodyVelocity")({
  1865. velocity = Vector3.new(0, 20, 0),
  1866. P = 5000,
  1867. maxForce = Vector3.new(8000, 8000, 8000),
  1868. Parent = hit
  1869. })
  1870. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1871. elseif Type == "Snare" then
  1872. local bp = Create("BodyPosition")({
  1873. P = 2000,
  1874. D = 100,
  1875. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1876. position = hit.Parent.Torso.Position,
  1877. Parent = hit.Parent.Torso
  1878. })
  1879. game:GetService("Debris"):AddItem(bp, 1)
  1880. elseif Type == "Slashnare" then
  1881. 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)
  1882. for i = 1, math.random(4, 5) do
  1883. 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)
  1884. end
  1885. local bp = Create("BodyPosition")({
  1886. P = 2000,
  1887. D = 100,
  1888. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1889. position = hit.Parent.Torso.Position,
  1890. Parent = hit.Parent.Torso
  1891. })
  1892. game:GetService("Debris"):AddItem(bp, 1)
  1893. elseif Type == "Spike" then
  1894. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1895. local bp = Create("BodyPosition")({
  1896. P = 2000,
  1897. D = 100,
  1898. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1899. position = hit.Parent.Torso.Position,
  1900. Parent = hit.Parent.Torso
  1901. })
  1902. game:GetService("Debris"):AddItem(bp, 1)
  1903. elseif Type == "Freeze" then
  1904. local BodPos = Create("BodyPosition")({
  1905. P = 50000,
  1906. D = 1000,
  1907. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1908. position = hit.Parent.Torso.Position,
  1909. Parent = hit.Parent.Torso
  1910. })
  1911. local BodGy = Create("BodyGyro")({
  1912. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1913. P = 20000,
  1914. Parent = hit.Parent.Torso,
  1915. cframe = hit.Parent.Torso.CFrame
  1916. })
  1917. hit.Parent.Torso.Anchored = true
  1918. coroutine.resume(coroutine.create(function(Part)
  1919. swait(1.5)
  1920. Part.Anchored = false
  1921. end), hit.Parent.Torso)
  1922. game:GetService("Debris"):AddItem(BodPos, 3)
  1923. game:GetService("Debris"):AddItem(BodGy, 3)
  1924. end
  1925. local debounce = Create("BoolValue")({
  1926. Name = "DebounceHit",
  1927. Parent = hit.Parent,
  1928. Value = true
  1929. })
  1930. game:GetService("Debris"):AddItem(debounce, Delay)
  1931. c = Instance.new("ObjectValue")
  1932. c.Name = "creator"
  1933. c.Value = Player
  1934. c.Parent = h
  1935. game:GetService("Debris"):AddItem(c, 0.5)
  1936. end
  1937. end
  1938. function ShowDamage(Pos, Text, Time, Color)
  1939. local Rate = 0.03333333333333333
  1940. local Pos = Pos or Vector3.new(0, 0, 0)
  1941. local Text = Text or ""
  1942. local Time = Time or 2
  1943. local Color = Color or Color3.new(1, 0, 1)
  1944. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1945. EffectPart.Anchored = true
  1946. local BillboardGui = Create("BillboardGui")({
  1947. Size = UDim2.new(3, 0, 3, 0),
  1948. Adornee = EffectPart,
  1949. Parent = EffectPart
  1950. })
  1951. local TextLabel = Create("TextLabel")({
  1952. BackgroundTransparency = 1,
  1953. Size = UDim2.new(1, 0, 1, 0),
  1954. Text = Text,
  1955. TextColor3 = Color,
  1956. TextScaled = true,
  1957. Font = Enum.Font.ArialBold,
  1958. Parent = BillboardGui
  1959. })
  1960. game.Debris:AddItem(EffectPart, Time + 0.1)
  1961. EffectPart.Parent = game:GetService("Workspace")
  1962. delay(0, function()
  1963. local Frames = Time / Rate
  1964. for Frame = 1, Frames do
  1965. wait(Rate)
  1966. local Percent = Frame / Frames
  1967. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1968. TextLabel.TextTransparency = Percent
  1969. end
  1970. if EffectPart and EffectPart.Parent then
  1971. EffectPart:Destroy()
  1972. end
  1973. end)
  1974. end
  1975. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1976. for _, c in pairs(workspace:children()) do
  1977. local hum = c:findFirstChildOfClass("Humanoid")
  1978. if hum ~= nil then
  1979. local head = c:findFirstChild("Head")
  1980. if head ~= nil then
  1981. local targ = head.Position - Part.Position
  1982. local mag = targ.magnitude
  1983. if magni >= mag and c.Name ~= Player.Name then
  1984. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990.  
  1991. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1992. for _, c in pairs(workspace:children()) do
  1993. local hum = c:findFirstChild("Humanoid")
  1994. if hum ~= nil then
  1995. local head = c:findFirstChild("Torso")
  1996. if head ~= nil then
  1997. local targ = head.Position - Part.Position
  1998. local mag = targ.magnitude
  1999. if magni >= mag and c.Name ~= Player.Name then
  2000. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2001. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2002. end
  2003. end
  2004. end
  2005. end
  2006. end
  2007.  
  2008. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2009. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2010. end
  2011.  
  2012. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2013. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2014. prt.Anchored=true
  2015. prt.CFrame=cframe
  2016. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2017. --http://www.roblox.com/asset/?id=4770560
  2018. game:GetService("Debris"):AddItem(prt,2)
  2019. CF=prt.CFrame
  2020. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2021. for i=0,1,0.2 do
  2022. wait()
  2023. Part.CFrame=CF*cf(0,0,-0.4)
  2024. end
  2025. for i=0,1,delay do
  2026. wait()
  2027. --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)
  2028. Mesh.Scale=Mesh.Scale
  2029. end
  2030. for i=0,1,0.1 do
  2031. wait()
  2032. Part.Transparency=i
  2033. end
  2034. Part.Parent=nil
  2035. end),prt,msh,CF)
  2036. end
  2037.  
  2038. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2039. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2040. prt.Anchored=true
  2041. prt.Material = "Neon"
  2042. prt.CFrame=cframe
  2043. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2044. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2045. game:GetService("Debris"):AddItem(prt,5)
  2046. coroutine.resume(coroutine.create(function(Part,Mesh)
  2047. for i=0,1,delay do
  2048. swait()
  2049. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2050. Part.Transparency=i
  2051. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2052. end
  2053. Part.Parent=nil
  2054. end),prt,msh)
  2055. end
  2056.  
  2057. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2058. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2059. prt.Anchored=true
  2060. prt.Material = "Neon"
  2061. prt.CFrame=cframe
  2062. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2063. game:GetService("Debris"):AddItem(prt,5)
  2064. coroutine.resume(coroutine.create(function(Part,Mesh)
  2065. local rtype = rottype
  2066. for i=0,1,delay do
  2067. swait()
  2068. if rtype == 1 then
  2069. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2070. elseif rtype == 2 then
  2071. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2072. end
  2073. Part.Transparency=i
  2074. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2075. end
  2076. Part.Parent=nil
  2077. end),prt,msh)
  2078. end
  2079.  
  2080. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2081. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2082. prt.Anchored=true
  2083. prt.CFrame=cframe
  2084. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2085. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2086. game:GetService("Debris"):AddItem(prt,5)
  2087. coroutine.resume(coroutine.create(function(Part,Mesh)
  2088. for i=0,1,delay do
  2089. wait()
  2090. Part.Transparency=i
  2091. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2092. end
  2093. Part.Parent=nil
  2094. end),prt,msh)
  2095. end
  2096.  
  2097. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2098. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2099. prt.Anchored=true
  2100. prt.Material = "Neon"
  2101. prt.CFrame=cframe
  2102. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2103. game:GetService("Debris"):AddItem(prt,5)
  2104. coroutine.resume(coroutine.create(function(Part,Mesh)
  2105. local rtype = rottype
  2106. for i=0,1,delay do
  2107. swait()
  2108. if rtype == 1 then
  2109. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2110. elseif rtype == 2 then
  2111. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2112. end
  2113. Part.Transparency=i
  2114. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2115. end
  2116. Part.Parent=nil
  2117. end),prt,msh)
  2118. end
  2119.  
  2120. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2121. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2122. prt.Anchored=true
  2123. prt.Material = "Neon"
  2124. prt.CFrame=cframe
  2125. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2126. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2127. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2128. game:GetService("Debris"):AddItem(prt,5)
  2129. coroutine.resume(coroutine.create(function(Part,Mesh)
  2130. local rtype = rottype
  2131. for i=0,1,delay do
  2132. swait()
  2133. if rtype == 1 then
  2134. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2135. elseif rtype == 2 then
  2136. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2137. end
  2138. dec.Transparency=i
  2139. dec2.Transparency=i
  2140. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2141. end
  2142. Part.Parent=nil
  2143. end),prt,msh)
  2144. end
  2145.  
  2146. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2147. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2148. prt.Anchored=true
  2149. prt.Material = "Neon"
  2150. prt.CFrame=cframe
  2151. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2152. game:GetService("Debris"):AddItem(prt,5)
  2153. coroutine.resume(coroutine.create(function(Part,Mesh)
  2154. local rtype = rottype
  2155. for i=0,1,delay do
  2156. swait()
  2157. if rtype == 1 then
  2158. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2159. elseif rtype == 2 then
  2160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2161. end
  2162. prt.Transparency=i
  2163. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2164. end
  2165. Part.Parent=nil
  2166. end),prt,msh)
  2167. end
  2168.  
  2169. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2170. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2171. prt.Anchored=true
  2172. prt.Material = "Neon"
  2173. prt.CFrame=cframe
  2174. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2175. game:GetService("Debris"):AddItem(prt,5)
  2176. coroutine.resume(coroutine.create(function(Part,Mesh)
  2177. local rtype = rottype
  2178. for i=0,1,delay do
  2179. swait()
  2180. if rtype == 1 then
  2181. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2182. elseif rtype == 2 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2184. end
  2185. prt.Transparency=i
  2186. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2187. end
  2188. Part.Parent=nil
  2189. end),prt,msh)
  2190. end
  2191.  
  2192. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2193. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2194. prt.Anchored=true
  2195. prt.Material = "Neon"
  2196. prt.CFrame=cframe
  2197. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2198. game:GetService("Debris"):AddItem(prt,5)
  2199. coroutine.resume(coroutine.create(function(Part,Mesh)
  2200. local rtype = rottype
  2201. for i=0,1,delay do
  2202. swait()
  2203. if rtype == 1 then
  2204. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2205. elseif rtype == 2 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2207. end
  2208. prt.Transparency=i
  2209. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2210. end
  2211. Part.Parent=nil
  2212. end),prt,msh)
  2213. end
  2214.  
  2215. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2216. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2217. prt.Anchored=true
  2218. prt.Material = "Neon"
  2219. prt.CFrame=cframe
  2220. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2221. game:GetService("Debris"):AddItem(prt,5)
  2222. coroutine.resume(coroutine.create(function(Part,Mesh)
  2223. local rtype = rottype
  2224. for i=0,1,delay do
  2225. swait()
  2226. if rtype == 1 then
  2227. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2228. elseif rtype == 2 then
  2229. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2230. end
  2231. prt.Transparency=i
  2232. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2233. end
  2234. Part.Parent=nil
  2235. end),prt,msh)
  2236. end
  2237.  
  2238. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2239. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2240. prt.Anchored=false
  2241. prt.CFrame=cframe
  2242. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2243. local wld=weld(prt,prt,Parent,cframe)
  2244. game:GetService("Debris"):AddItem(prt,5)
  2245. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2246. for i=0,1,delay do
  2247. wait()
  2248. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2249. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2250. Part.Transparency=i
  2251. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2252. end
  2253. Part.Parent=nil
  2254. end),prt,msh,wld)
  2255. end
  2256.  
  2257. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2258. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2259. prt.Anchored=false
  2260. prt.CFrame=cframe
  2261. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2262. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2263. game:GetService("Debris"):AddItem(prt,5)
  2264. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2265. for i=0,1,delay do
  2266. wait()
  2267. Weld.C0=euler(i*20,0,0)
  2268. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2269. Part.Transparency=i
  2270. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2271. end
  2272. Part.Parent=nil
  2273. end),prt,msh,wld)
  2274. end
  2275.  
  2276. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2277. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2278. prt.Anchored=true
  2279. prt.CFrame=cframe
  2280. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2281. game:GetService("Debris"):AddItem(prt,2)
  2282. coroutine.resume(coroutine.create(function(Part,Mesh)
  2283. for i=0,1,delay do
  2284. wait()
  2285. Part.CFrame=Part.CFrame
  2286. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2287. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2288. prt2.Anchored=true
  2289. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2290. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2291. game:GetService("Debris"):AddItem(prt2,2)
  2292. coroutine.resume(coroutine.create(function(Part,Mesh)
  2293. for i=0,1,0.1 do
  2294. wait()
  2295. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2296. end
  2297. Part.Parent=nil
  2298. end),prt2,msh2)
  2299. end
  2300. for i=0,1,delay*2 do
  2301. wait()
  2302. Part.CFrame=Part.CFrame
  2303. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2304. end
  2305. Part.Parent=nil
  2306. end),prt,msh)
  2307. end
  2308.  
  2309. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2310. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2311. prt.Anchored=true
  2312. prt.CFrame=cframe
  2313. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2314. game:GetService("Debris"):AddItem(prt,2)
  2315. coroutine.resume(coroutine.create(function(Part,Mesh)
  2316. for i=0,1,delay do
  2317. wait()
  2318. Part.CFrame=Part.CFrame
  2319. Part.Transparency=i
  2320. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2321. end
  2322. Part.Parent=nil
  2323. end),prt,msh)
  2324. end
  2325.  
  2326. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2327. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2328. prt.Anchored=true
  2329. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2330. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2331. game:GetService("Debris"):AddItem(prt,2)
  2332. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2333. CF=Part.CFrame
  2334. Numbb=0
  2335. randnumb=math.random()/10
  2336. rand1=math.random()/10
  2337. for i=0,1,rand1 do
  2338. wait()
  2339. CF=CF*cf(0,math.random()/2,0)
  2340. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2341. Part.CFrame=CF*euler(Numbb,0,0)
  2342. Part.Transparency=i
  2343. Numbb=Numbb+randnumb
  2344. end
  2345. Part.Parent=nil
  2346. end),prt,CF,Numbb,randnumb)
  2347. end
  2348.  
  2349. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2350. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2351. prt.Anchored=true
  2352. prt.CFrame=cframe
  2353. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2354. game:GetService("Debris"):AddItem(prt,5)
  2355. coroutine.resume(coroutine.create(function(Part,Mesh)
  2356. for i=0,1,delay do
  2357. wait()
  2358. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2359. Part.Transparency=i
  2360. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2361. end
  2362. Part.Parent=nil
  2363. end),prt,msh)
  2364. end
  2365.  
  2366. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2367. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2368. prt.Anchored=true
  2369. prt.CFrame=cframe
  2370. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2371. game:GetService("Debris"):AddItem(prt,2)
  2372. coroutine.resume(coroutine.create(function(Part,Mesh)
  2373. for i=0,1,delay do
  2374. wait()
  2375. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2376. Part.Transparency=i
  2377. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2378. end
  2379. Part.Parent=nil
  2380. end),prt,msh)
  2381. end
  2382.  
  2383. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2384. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2385. prt.Anchored=true
  2386. prt.CFrame=cframe*cf(x,y,z)
  2387. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2388. game:GetService("Debris"):AddItem(prt,5)
  2389. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2390. local num=math.random()
  2391. local num2=math.random(-3,2)+math.random()
  2392. local numm=0
  2393. for i=0,1,delay*2 do
  2394. swait()
  2395. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2396. Part.Transparency=i
  2397. numm=numm+0.01
  2398. end
  2399. Part.Parent=nil
  2400. Mesh.Parent=nil
  2401. end),prt,msh,x,y,z)
  2402. end
  2403.  
  2404. function dmgstart(dmg,what)
  2405. hitcon = what.Touched:connect(function(hit)
  2406. local hum = hit.Parent:FindFirstChild("Humanoid")
  2407. if hum and not hum:IsDescendantOf(Character) then
  2408. hum:TakeDamage(dmg)
  2409. end
  2410. end)
  2411. end
  2412.  
  2413. function dmgstop()
  2414. hitcon:disconnect()
  2415. end
  2416.  
  2417. function Cloak()
  2418. Face.Parent=nil
  2419. cloaked=true
  2420. for _,v in pairs(Torso.Parent:children()) do
  2421. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2422. coroutine.resume(coroutine.create(function()
  2423. for i=0,1,0.2 do
  2424. wait()
  2425. v.Transparency=i
  2426. end
  2427. v.Transparency=1
  2428. end))
  2429. end
  2430. if v.className=="Hat" then
  2431. hatp=v.Handle
  2432. coroutine.resume(coroutine.create(function(derp)
  2433. for i=0,1,0.2 do
  2434. wait()
  2435. derp.Transparency=i
  2436. end
  2437. derp.Transparency=1
  2438. end),hatp)
  2439. end
  2440. end
  2441. for _,v in pairs(m:children()) do
  2442. if v.className=="Part" then
  2443. coroutine.resume(coroutine.create(function()
  2444. for i=0,1,0.2 do
  2445. wait()
  2446. v.Transparency=i
  2447. end
  2448. v.Transparency=1
  2449. end))
  2450. end
  2451. end
  2452. end
  2453.  
  2454. function UnCloak()
  2455. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2456. Face.Parent=Head
  2457. cloaked=false
  2458. for _,v in pairs(Torso.Parent:children()) do
  2459. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2460. coroutine.resume(coroutine.create(function()
  2461. for i=0,1,0.1 do
  2462. wait()
  2463. v.Transparency=v.Transparency-0.1
  2464. end
  2465. v.Transparency=0
  2466. end))
  2467. end
  2468. if v.className=="Hat" then
  2469. hatp=v.Handle
  2470. coroutine.resume(coroutine.create(function(derp)
  2471. for i=0,1,0.1 do
  2472. wait()
  2473. derp.Transparency=derp.Transparency-0.1
  2474. end
  2475. derp.Transparency=0
  2476. end),hatp)
  2477. end
  2478. end
  2479. for _,v in pairs(m:children()) do
  2480. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2481. coroutine.resume(coroutine.create(function()
  2482. for i=0,1,0.1 do
  2483. wait()
  2484. v.Transparency=v.Transparency-0.1
  2485. end
  2486. v.Transparency=0
  2487. end))
  2488. v.Transparency=0
  2489. end
  2490. end
  2491. end
  2492.  
  2493. local origcolor = BrickColor.new("Pastel light blue")
  2494. ---- This section of explosions.
  2495.  
  2496. ----
  2497.  
  2498.  
  2499. function ring(type,pos,scale,value)
  2500. local type = type
  2501. local rng = Instance.new("Part", char)
  2502. rng.Anchored = true
  2503. rng.BrickColor = origcolor
  2504. rng.CanCollide = false
  2505. rng.FormFactor = 3
  2506. rng.Name = "Ring"
  2507. rng.Size = Vector3.new(1, 1, 1)
  2508. rng.Transparency = 0
  2509. rng.TopSurface = 0
  2510. rng.BottomSurface = 0
  2511. rng.CFrame = pos
  2512. local rngm = Instance.new("SpecialMesh", rng)
  2513. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2514. rngm.Scale = scale
  2515. local scaler2 = 1
  2516. if type == "Add" then
  2517. scaler2 = 1*value
  2518. elseif type == "Divide" then
  2519. scaler2 = 1/value
  2520. end
  2521. coroutine.resume(coroutine.create(function()
  2522. for i = 0,10,0.1 do
  2523. swait()
  2524. if type == "Add" then
  2525. scaler2 = scaler2 - 0.01*value
  2526. elseif type == "Divide" then
  2527. scaler2 = scaler2 - 0.01/value
  2528. end
  2529. rng.Transparency = rng.Transparency + 0.01
  2530. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2531. end
  2532. rng:Destroy()
  2533. end))
  2534. end
  2535.  
  2536.  
  2537. function wave(type,pos,scale,value)
  2538. local type = type
  2539. local rng = Instance.new("Part", char)
  2540. rng.Anchored = true
  2541. rng.BrickColor = origcolor
  2542. rng.CanCollide = false
  2543. rng.FormFactor = 3
  2544. rng.Name = "Ring"
  2545. rng.Size = Vector3.new(1, 1, 1)
  2546. rng.Transparency = 0
  2547. rng.TopSurface = 0
  2548. rng.BottomSurface = 0
  2549. rng.CFrame = pos
  2550. local rngm = Instance.new("SpecialMesh", rng)
  2551. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2552. rngm.Scale = scale
  2553. local scaler2 = 1
  2554. if type == "Add" then
  2555. scaler2 = 1*value
  2556. elseif type == "Divide" then
  2557. scaler2 = 1/value
  2558. end
  2559. coroutine.resume(coroutine.create(function()
  2560. for i = 0,10,0.1 do
  2561. swait()
  2562. if type == "Add" then
  2563. scaler2 = scaler2 - 0.01*value
  2564. elseif type == "Divide" then
  2565. scaler2 = scaler2 - 0.01/value
  2566. end
  2567. rng.Transparency = rng.Transparency + 0.01
  2568. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2569. end
  2570. rng:Destroy()
  2571. end))
  2572. end
  2573.  
  2574. function wind(type,pos,scale,value,speed)
  2575. local type = type
  2576. local rng = Instance.new("Part", char)
  2577. rng.Anchored = true
  2578. rng.BrickColor = origcolor
  2579. rng.CanCollide = false
  2580. rng.FormFactor = 3
  2581. rng.Name = "Ring"
  2582. rng.Size = Vector3.new(1, 1, 1)
  2583. rng.Transparency = 0
  2584. rng.TopSurface = 0
  2585. rng.BottomSurface = 0
  2586. rng.CFrame = pos
  2587. local rngm = Instance.new("SpecialMesh", rng)
  2588. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2589. rngm.Scale = scale
  2590. local scaler2 = 1
  2591. if type == "Add" then
  2592. scaler2 = 1*value
  2593. elseif type == "Divide" then
  2594. scaler2 = 1/value
  2595. end
  2596. coroutine.resume(coroutine.create(function()
  2597. for i = 0,10,0.1 do
  2598. swait()
  2599. if type == "Add" then
  2600. scaler2 = scaler2 - 0.01*value
  2601. elseif type == "Divide" then
  2602. scaler2 = scaler2 - 0.01/value
  2603. end
  2604. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2605. rng.Transparency = rng.Transparency + 0.01
  2606. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2607. end
  2608. rng:Destroy()
  2609. end))
  2610. end
  2611.  
  2612. function groundwind(type,pos,scale,value,speed)
  2613. local type = type
  2614. local rng = Instance.new("Part", char)
  2615. rng.Anchored = true
  2616. rng.BrickColor = origcolor
  2617. rng.CanCollide = false
  2618. rng.FormFactor = 3
  2619. rng.Name = "Ring"
  2620. rng.Size = Vector3.new(1, 1, 1)
  2621. rng.Transparency = 0
  2622. rng.TopSurface = 0
  2623. rng.BottomSurface = 0
  2624. rng.CFrame = pos
  2625. local rngm = Instance.new("SpecialMesh", rng)
  2626. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2627. rngm.Scale = scale
  2628. local scaler2 = 1
  2629. if type == "Add" then
  2630. scaler2 = 1*value
  2631. elseif type == "Divide" then
  2632. scaler2 = 1/value
  2633. end
  2634. coroutine.resume(coroutine.create(function()
  2635. for i = 0,10,0.1 do
  2636. swait()
  2637. if type == "Add" then
  2638. scaler2 = scaler2 - 0.01*value
  2639. elseif type == "Divide" then
  2640. scaler2 = scaler2 - 0.01/value
  2641. end
  2642. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2643. rng.Transparency = rng.Transparency + 0.01
  2644. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2645. end
  2646. rng:Destroy()
  2647. end))
  2648. end
  2649.  
  2650. function CameraManager()
  2651. if TwoD and not CamInterrupt then
  2652. if Humanoid.Health > 0 then
  2653. Camera.CameraSubject = Humanoid
  2654. Camera.CameraType = "Scriptable"
  2655. Humanoid.AutoRotate = false
  2656. if Booleans.GyroUse then
  2657. Directer.MaxTorque = Vec3(0, huge, 0)
  2658. else
  2659. Directer.MaxTorque = Vec3(0, 0, 0)
  2660. end
  2661. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2662. if Booleans.CamFollow then
  2663. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2664. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2665. else
  2666. CPart.Position = RootPart.Position
  2667. end
  2668. else
  2669. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2670. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2671. end
  2672. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2673. else
  2674. Camera.CameraSubject = Humanoid
  2675. Camera.CameraType = "Custom"
  2676. Controller.Disabled = false
  2677. end
  2678. end
  2679. end
  2680.  
  2681. function ring(type,pos,scale,value)
  2682. local type = type
  2683. local rng = Instance.new("Part", char)
  2684. rng.Anchored = true
  2685. rng.BrickColor = origcolor
  2686. rng.CanCollide = false
  2687. rng.FormFactor = 3
  2688. rng.Name = "Ring"
  2689. rng.Size = Vector3.new(1, 1, 1)
  2690. rng.Transparency = 0
  2691. rng.TopSurface = 0
  2692. rng.BottomSurface = 0
  2693. rng.CFrame = pos
  2694. local rngm = Instance.new("SpecialMesh", rng)
  2695. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2696. rngm.Scale = scale
  2697. local scaler2 = 1
  2698. if type == "Add" then
  2699. scaler2 = 1*value
  2700. elseif type == "Divide" then
  2701. scaler2 = 1/value
  2702. end
  2703. coroutine.resume(coroutine.create(function()
  2704. for i = 0,10,0.1 do
  2705. swait()
  2706. if type == "Add" then
  2707. scaler2 = scaler2 - 0.01*value
  2708. elseif type == "Divide" then
  2709. scaler2 = scaler2 - 0.01/value
  2710. end
  2711. rng.Transparency = rng.Transparency + 0.01
  2712. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2713. end
  2714. rng:Destroy()
  2715. end))
  2716. end
  2717.  
  2718.  
  2719. function wave(type,pos,scale,value)
  2720. local type = type
  2721. local rng = Instance.new("Part", char)
  2722. rng.Anchored = true
  2723. rng.BrickColor = origcolor
  2724. rng.CanCollide = false
  2725. rng.FormFactor = 3
  2726. rng.Name = "Ring"
  2727. rng.Size = Vector3.new(1, 1, 1)
  2728. rng.Transparency = 0
  2729. rng.TopSurface = 0
  2730. rng.BottomSurface = 0
  2731. rng.CFrame = pos
  2732. local rngm = Instance.new("SpecialMesh", rng)
  2733. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2734. rngm.Scale = scale
  2735. local scaler2 = 1
  2736. if type == "Add" then
  2737. scaler2 = 1*value
  2738. elseif type == "Divide" then
  2739. scaler2 = 1/value
  2740. end
  2741. coroutine.resume(coroutine.create(function()
  2742. for i = 0,10,0.1 do
  2743. swait()
  2744. if type == "Add" then
  2745. scaler2 = scaler2 - 0.01*value
  2746. elseif type == "Divide" then
  2747. scaler2 = scaler2 - 0.01/value
  2748. end
  2749. rng.Transparency = rng.Transparency + 0.01
  2750. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2751. end
  2752. rng:Destroy()
  2753. end))
  2754. end
  2755.  
  2756. function sphere(bonuspeed,type,pos,scale,value,color)
  2757. local type = type
  2758. local rng = Instance.new("Part", char)
  2759. rng.Anchored = true
  2760. if ModeOfGlitch ~= 9 then
  2761. rng.BrickColor = color
  2762. elseif ModeOfGlitch == 9 then
  2763. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2764. end
  2765. rng.CanCollide = false
  2766. rng.FormFactor = 3
  2767. rng.Name = "Ring"
  2768. rng.Material = "Neon"
  2769. rng.Size = Vector3.new(1, 1, 1)
  2770. rng.Transparency = 0
  2771. rng.TopSurface = 0
  2772. rng.BottomSurface = 0
  2773. rng.CFrame = pos
  2774. local rngm = Instance.new("SpecialMesh", rng)
  2775. rngm.MeshType = "Sphere"
  2776. rngm.Scale = scale
  2777. if rainbowmode == true then
  2778. rng.Color = Color3.new(r/255,g/255,b/255)
  2779. end
  2780. if ModeOfGlitch == 9 then
  2781. coroutine.resume(coroutine.create(function()
  2782. while true do
  2783. swait()
  2784. if rng.Parent ~= nil then
  2785. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2786. else
  2787. break
  2788. end
  2789. end
  2790. end))
  2791. end
  2792. local scaler2 = 1
  2793. if type == "Add" then
  2794. scaler2 = 1*value
  2795. elseif type == "Divide" then
  2796. scaler2 = 1/value
  2797. end
  2798. coroutine.resume(coroutine.create(function()
  2799. for i = 0,10/bonuspeed,0.1 do
  2800. swait()
  2801. if rainbowmode == true then
  2802. rng.Color = Color3.new(r/255,g/255,b/255)
  2803. end
  2804. if type == "Add" then
  2805. scaler2 = scaler2 - 0.01*value/bonuspeed
  2806. elseif type == "Divide" then
  2807. scaler2 = scaler2 - 0.01/value*bonuspeed
  2808. end
  2809. if chaosmode == true then
  2810. rng.BrickColor = BrickColor.random()
  2811. end
  2812. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2813. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2814. end
  2815. rng:Destroy()
  2816. end))
  2817. end
  2818.  
  2819. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2820. local type = type
  2821. local rng = Instance.new("Part", char)
  2822. rng.Anchored = true
  2823. if ModeOfGlitch ~= 9 then
  2824. rng.BrickColor = color
  2825. elseif ModeOfGlitch == 9 then
  2826. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2827. end
  2828. rng.CanCollide = false
  2829. rng.FormFactor = 3
  2830. rng.Name = "Ring"
  2831. rng.Material = "Neon"
  2832. rng.Size = Vector3.new(1, 1, 1)
  2833. rng.Transparency = 0
  2834. rng.TopSurface = 0
  2835. rng.BottomSurface = 0
  2836. rng.CFrame = pos
  2837. local rngm = Instance.new("SpecialMesh", rng)
  2838. rngm.MeshType = "Sphere"
  2839. rngm.Scale = scale
  2840. local scaler2 = 1
  2841. local scaler2b = 1
  2842. local scaler2c = 1
  2843. if type == "Add" then
  2844. scaler2 = 1*value
  2845. scaler2b = 1*value2
  2846. scaler2c = 1*value3
  2847. elseif type == "Divide" then
  2848. scaler2 = 1/value
  2849. scaler2b = 1/value2
  2850. scaler2c = 1/value3
  2851. end
  2852. if ModeOfGlitch == 9 then
  2853. coroutine.resume(coroutine.create(function()
  2854. while true do
  2855. swait()
  2856. if rng.Parent ~= nil then
  2857. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2858. else
  2859. break
  2860. end
  2861. end
  2862. end))
  2863. end
  2864. coroutine.resume(coroutine.create(function()
  2865. for i = 0,10/bonuspeed,0.1 do
  2866. swait()
  2867. if type == "Add" then
  2868. scaler2 = scaler2 - 0.01*value/bonuspeed
  2869. scaler2b = scaler2b - 0.01*value/bonuspeed
  2870. scaler2c = scaler2c - 0.01*value/bonuspeed
  2871. elseif type == "Divide" then
  2872. scaler2 = scaler2 - 0.01/value*bonuspeed
  2873. scaler2b = scaler2b - 0.01/value*bonuspeed
  2874. scaler2c = scaler2c - 0.01/value*bonuspeed
  2875. end
  2876. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2877. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2878. end
  2879. rng:Destroy()
  2880. end))
  2881. end
  2882.  
  2883. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2884. local type = type
  2885. local rotenable = rotatingop
  2886. local rng = Instance.new("Part", char)
  2887. rng.Anchored = true
  2888. rng.BrickColor = color
  2889. rng.CanCollide = false
  2890. rng.FormFactor = 3
  2891. rng.Name = "Ring"
  2892. rng.Material = "Neon"
  2893. rng.Size = Vector3.new(1, 1, 1)
  2894. rng.Transparency = 0
  2895. if typeoftrans == "In" then
  2896. rng.Transparency = 1
  2897. end
  2898. rng.TopSurface = 0
  2899. rng.BottomSurface = 0
  2900. rng.CFrame = pos
  2901. local rngm = Instance.new("SpecialMesh", rng)
  2902. rngm.MeshType = "FileMesh"
  2903. if typeofshape == "Normal" then
  2904. rngm.MeshId = "rbxassetid://662586858"
  2905. elseif typeofshape == "Round" then
  2906. rngm.MeshId = "rbxassetid://662585058"
  2907. end
  2908. rngm.Scale = scale
  2909. local scaler2 = 1/10
  2910. if type == "Add" then
  2911. scaler2 = 1*value/10
  2912. elseif type == "Divide" then
  2913. scaler2 = 1/value/10
  2914. end
  2915. local randomrot = math.random(1,2)
  2916. coroutine.resume(coroutine.create(function()
  2917. for i = 0,10/bonuspeed,0.1 do
  2918. swait()
  2919. if type == "Add" then
  2920. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2921. elseif type == "Divide" then
  2922. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2923. end
  2924. if rotenable == true then
  2925. if randomrot == 1 then
  2926. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2927. elseif randomrot == 2 then
  2928. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2929. end
  2930. end
  2931. if typeoftrans == "Out" then
  2932. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2933. elseif typeoftrans == "In" then
  2934. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2935. end
  2936. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2937. end
  2938. rng:Destroy()
  2939. end))
  2940. end
  2941.  
  2942. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2943. local type = type
  2944. local rng = Instance.new("Part", char)
  2945. rng.Anchored = true
  2946. rng.BrickColor = color
  2947. rng.CanCollide = false
  2948. rng.FormFactor = 3
  2949. rng.Name = "Ring"
  2950. rng.Material = "Neon"
  2951. rng.Size = Vector3.new(1, 1, 1)
  2952. rng.Transparency = 0
  2953. rng.TopSurface = 0
  2954. rng.BottomSurface = 0
  2955. rng.CFrame = pos
  2956. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2957. local rngm = Instance.new("SpecialMesh", rng)
  2958. rngm.MeshType = "Brick"
  2959. rngm.Scale = vt(x1,y1,z1)
  2960. if rainbowmode == true then
  2961. rng.Color = Color3.new(r/255,g/255,b/255)
  2962. end
  2963. local scaler2 = 1
  2964. local speeder = FastSpeed/10
  2965. if type == "Add" then
  2966. scaler2 = 1*value
  2967. elseif type == "Divide" then
  2968. scaler2 = 1/value
  2969. end
  2970. coroutine.resume(coroutine.create(function()
  2971. for i = 0,10/bonuspeed,0.1 do
  2972. swait()
  2973. if rainbowmode == true then
  2974. rng.Color = Color3.new(r/255,g/255,b/255)
  2975. end
  2976. if type == "Add" then
  2977. scaler2 = scaler2 - 0.01*value/bonuspeed
  2978. elseif type == "Divide" then
  2979. scaler2 = scaler2 - 0.01/value*bonuspeed
  2980. end
  2981. if chaosmode == true then
  2982. rng.BrickColor = BrickColor.random()
  2983. end
  2984. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2985. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2986. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2987. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2988. end
  2989. rng:Destroy()
  2990. end))
  2991. end
  2992.  
  2993. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2994. local type = type
  2995. local rng = Instance.new("Part", char)
  2996. rng.Anchored = true
  2997. rng.BrickColor = color
  2998. rng.CanCollide = false
  2999. rng.FormFactor = 3
  3000. rng.Name = "Ring"
  3001. rng.Material = "Neon"
  3002. rng.Size = Vector3.new(1, 1, 1)
  3003. rng.Transparency = 0
  3004. rng.TopSurface = 0
  3005. rng.BottomSurface = 0
  3006. rng.CFrame = pos
  3007. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3008. local rngm = Instance.new("SpecialMesh", rng)
  3009. rngm.MeshType = "Brick"
  3010. rngm.Scale = vt(x1,y1,z1)
  3011. if rainbowmode == true then
  3012. rng.Color = Color3.new(r/255,g/255,b/255)
  3013. end
  3014. local scaler2 = 1
  3015. local speeder = FastSpeed/10
  3016. if type == "Add" then
  3017. scaler2 = 1*value
  3018. elseif type == "Divide" then
  3019. scaler2 = 1/value
  3020. end
  3021. coroutine.resume(coroutine.create(function()
  3022. for i = 0,10/bonuspeed,0.1 do
  3023. swait()
  3024. if rainbowmode == true then
  3025. rng.Color = Color3.new(r/255,g/255,b/255)
  3026. end
  3027. if type == "Add" then
  3028. scaler2 = scaler2 - 0.01*value/bonuspeed
  3029. elseif type == "Divide" then
  3030. scaler2 = scaler2 - 0.01/value*bonuspeed
  3031. end
  3032. if chaosmode == true then
  3033. rng.BrickColor = BrickColor.random()
  3034. end
  3035. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3036. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3037. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3038. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3039. end
  3040. rng:Destroy()
  3041. end))
  3042. end
  3043.  
  3044. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3045. local type = type
  3046. local rng = Instance.new("Part", char)
  3047. rng.Anchored = true
  3048. rng.BrickColor = color
  3049. rng.CanCollide = false
  3050. rng.FormFactor = 3
  3051. rng.Name = "Ring"
  3052. rng.Material = "Neon"
  3053. rng.Size = Vector3.new(1, 1, 1)
  3054. rng.Transparency = 0
  3055. rng.TopSurface = 0
  3056. rng.BottomSurface = 0
  3057. rng.CFrame = pos
  3058. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3059. local rngm = Instance.new("SpecialMesh", rng)
  3060. rngm.MeshType = "Brick"
  3061. rngm.Scale = vt(x1,y1,z1)
  3062. if rainbowmode == true then
  3063. rng.Color = Color3.new(r/255,g/255,b/255)
  3064. end
  3065. local scaler2 = 0
  3066. local speeder = FastSpeed/10
  3067. if type == "Add" then
  3068. scaler2 = 1*value
  3069. elseif type == "Divide" then
  3070. scaler2 = 1/value
  3071. end
  3072. coroutine.resume(coroutine.create(function()
  3073. for i = 0,10/bonuspeed,0.1 do
  3074. swait()
  3075. if rainbowmode == true then
  3076. rng.Color = Color3.new(r/255,g/255,b/255)
  3077. end
  3078. if type == "Add" then
  3079. scaler2 = scaler2 - 0.01*value/bonuspeed
  3080. elseif type == "Divide" then
  3081. scaler2 = scaler2 - 0.01/value*bonuspeed
  3082. end
  3083. if chaosmode == true then
  3084. rng.BrickColor = BrickColor.random()
  3085. end
  3086. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3087. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3088. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3089. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3090. end
  3091. rng:Destroy()
  3092. end))
  3093. end
  3094.  
  3095. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3096. local type = type
  3097. local rng = Instance.new("Part", char)
  3098. rng.Anchored = true
  3099. rng.BrickColor = color
  3100. rng.Color = color3
  3101. rng.CanCollide = false
  3102. rng.FormFactor = 3
  3103. rng.Name = "Ring"
  3104. rng.Material = "Neon"
  3105. rng.Size = Vector3.new(1, 1, 1)
  3106. rng.Transparency = 0
  3107. rng.TopSurface = 0
  3108. rng.BottomSurface = 0
  3109. rng.CFrame = pos
  3110. local rngm = Instance.new("SpecialMesh", rng)
  3111. rngm.MeshType = "Brick"
  3112. rngm.Scale = scale
  3113. local scaler2 = 1
  3114. local scaler2b = 1
  3115. local scaler2c = 1
  3116. if type == "Add" then
  3117. scaler2 = 1*value
  3118. scaler2b = 1*value2
  3119. scaler2c = 1*value3
  3120. elseif type == "Divide" then
  3121. scaler2 = 1/value
  3122. scaler2b = 1/value2
  3123. scaler2c = 1/value3
  3124. end
  3125. coroutine.resume(coroutine.create(function()
  3126. for i = 0,10/bonuspeed,0.1 do
  3127. swait()
  3128. if type == "Add" then
  3129. scaler2 = scaler2 - 0.01*value/bonuspeed
  3130. scaler2b = scaler2b - 0.01*value/bonuspeed
  3131. scaler2c = scaler2c - 0.01*value/bonuspeed
  3132. elseif type == "Divide" then
  3133. scaler2 = scaler2 - 0.01/value*bonuspeed
  3134. scaler2b = scaler2b - 0.01/value*bonuspeed
  3135. scaler2c = scaler2c - 0.01/value*bonuspeed
  3136. end
  3137. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3138. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3139. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3140. end
  3141. rng:Destroy()
  3142. end))
  3143. end
  3144.  
  3145. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3146. local type = type
  3147. local rng = Instance.new("Part", char)
  3148. rng.Anchored = true
  3149. if ModeOfGlitch ~= 9 then
  3150. rng.BrickColor = color
  3151. elseif ModeOfGlitch == 9 then
  3152. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3153. end
  3154. rng.CanCollide = false
  3155. rng.FormFactor = 3
  3156. rng.Name = "Ring"
  3157. rng.Material = "Neon"
  3158. rng.Size = Vector3.new(1, 1, 1)
  3159. rng.Transparency = 0
  3160. rng.TopSurface = 0
  3161. rng.BottomSurface = 0
  3162. rng.CFrame = pos
  3163. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3164. local rngm = Instance.new("SpecialMesh", rng)
  3165. rngm.MeshType = "Sphere"
  3166. rngm.Scale = vt(x1,y1,z1)
  3167. if rainbowmode == true then
  3168. rng.Color = Color3.new(r/255,g/255,b/255)
  3169. end
  3170. if ModeOfGlitch == 9 then
  3171. coroutine.resume(coroutine.create(function()
  3172. while true do
  3173. swait()
  3174. if rng.Parent ~= nil then
  3175. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3176. else
  3177. break
  3178. end
  3179. end
  3180. end))
  3181. end
  3182. local scaler2 = 1
  3183. local speeder = FastSpeed
  3184. if type == "Add" then
  3185. scaler2 = 1*value
  3186. elseif type == "Divide" then
  3187. scaler2 = 1/value
  3188. end
  3189. coroutine.resume(coroutine.create(function()
  3190. for i = 0,10/bonuspeed,0.1 do
  3191. swait()
  3192. if rainbowmode == true then
  3193. rng.Color = Color3.new(r/255,g/255,b/255)
  3194. end
  3195. if type == "Add" then
  3196. scaler2 = scaler2 - 0.01*value/bonuspeed
  3197. elseif type == "Divide" then
  3198. scaler2 = scaler2 - 0.01/value*bonuspeed
  3199. end
  3200. if chaosmode == true then
  3201. rng.BrickColor = BrickColor.random()
  3202. end
  3203. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3204. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3205. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3206. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3207. end
  3208. rng:Destroy()
  3209. end))
  3210. end
  3211.  
  3212.  
  3213. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3214. local type = type
  3215. local rng = Instance.new("Part", char)
  3216. rng.Anchored = true
  3217. if ModeOfGlitch ~= 9 then
  3218. rng.BrickColor = color
  3219. elseif ModeOfGlitch == 9 then
  3220. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3221. end
  3222. rng.CanCollide = false
  3223. rng.FormFactor = 3
  3224. rng.Name = "Ring"
  3225. rng.Material = "Neon"
  3226. rng.Size = Vector3.new(1, 1, 1)
  3227. rng.Transparency = 1
  3228. rng.TopSurface = 0
  3229. rng.BottomSurface = 0
  3230. rng.CFrame = pos
  3231. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3232. local rngm = Instance.new("SpecialMesh", rng)
  3233. rngm.MeshType = "Sphere"
  3234. rngm.Scale = vt(x1,y1,z1)
  3235. if rainbowmode == true then
  3236. rng.Color = Color3.new(r/255,g/255,b/255)
  3237. end
  3238. if ModeOfGlitch == 9 then
  3239. coroutine.resume(coroutine.create(function()
  3240. while true do
  3241. swait()
  3242. if rng.Parent ~= nil then
  3243. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3244. else
  3245. break
  3246. end
  3247. end
  3248. end))
  3249. end
  3250. local scaler2 = 1
  3251. local speeder = FastSpeed
  3252. if type == "Add" then
  3253. scaler2 = 1*value
  3254. elseif type == "Divide" then
  3255. scaler2 = 1/value
  3256. end
  3257. coroutine.resume(coroutine.create(function()
  3258. for i = 0,10/bonuspeed,0.1 do
  3259. swait()
  3260. if rainbowmode == true then
  3261. rng.Color = Color3.new(r/255,g/255,b/255)
  3262. end
  3263. if type == "Add" then
  3264. scaler2 = scaler2 - 0.01*value/bonuspeed
  3265. elseif type == "Divide" then
  3266. scaler2 = scaler2 - 0.01/value*bonuspeed
  3267. end
  3268. if chaosmode == true then
  3269. rng.BrickColor = BrickColor.random()
  3270. end
  3271. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3272. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3273. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3274. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3275. end
  3276. rng:Destroy()
  3277. end))
  3278. end
  3279.  
  3280. function dmg(dude)
  3281. if dude.Name ~= Character then
  3282. local keptcolor = MAINRUINCOLOR
  3283. local bgf = Instance.new("BodyGyro",dude.Head)
  3284. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3285. --[[local val = Instance.new("BoolValue",dude)
  3286. val.Name = "IsHit"]]--
  3287. local ds = coroutine.wrap(function()
  3288. dude:WaitForChild("Head"):BreakJoints()
  3289. for i, v in pairs(dude:GetChildren()) do
  3290. if v:IsA("Part") or v:IsA("MeshPart") then
  3291. v.Name = "DEMINISHED"
  3292. end
  3293. end
  3294. wait(0.5)
  3295. targetted = nil
  3296. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3297. coroutine.resume(coroutine.create(function()
  3298. for i, v in pairs(dude:GetChildren()) do
  3299. if v:IsA("Accessory") then
  3300. v:Destroy()
  3301. end
  3302. if v:IsA("Humanoid") then
  3303. v:Destroy()
  3304. end
  3305. if v:IsA("CharacterMesh") then
  3306. v:Destroy()
  3307. end
  3308. if v:IsA("Model") then
  3309. v:Destroy()
  3310. end
  3311. if v:IsA("Part") or v:IsA("MeshPart") then
  3312. for x, o in pairs(v:GetChildren()) do
  3313. if o:IsA("Decal") then
  3314. o:Destroy()
  3315. end
  3316. end
  3317. coroutine.resume(coroutine.create(function()
  3318. v.Material = "Neon"
  3319. v.CanCollide = false
  3320. v.Anchored = false
  3321. local bld = Instance.new("ParticleEmitter",v)
  3322. bld.LightEmission = 0.75
  3323. bld.Texture = "rbxassetid://363275192" ---284205403
  3324. bld.Color = ColorSequence.new(keptcolor.Color)
  3325. bld.Rate = 500
  3326. bld.Lifetime = NumberRange.new(1)
  3327. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3328. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3329. bld.Speed = NumberRange.new(2,5)
  3330. bld.VelocitySpread = 50000
  3331. bld.Rotation = NumberRange.new(-500,500)
  3332. bld.RotSpeed = NumberRange.new(-500,500)
  3333. local sbs = Instance.new("BodyPosition", v)
  3334. sbs.P = 3000
  3335. sbs.D = 1000
  3336. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3337. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3338. v.Color = keptcolor.Color
  3339. coroutine.resume(coroutine.create(function()
  3340. for i = 0, 49 do
  3341. swait(1)
  3342. v:BreakJoints()
  3343. v.Transparency = v.Transparency + 0.02
  3344. end
  3345. v:BreakJoints()
  3346. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3347. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3348. bld.Speed = NumberRange.new(10,25)
  3349. bld.Drag = 5
  3350. bld.Acceleration = vt(0,2,0)
  3351. wait(0.5)
  3352. bld.Enabled = false
  3353. wait(8)
  3354. v:Destroy()
  3355. dude:Destroy()
  3356. end))
  3357. end))
  3358. end
  3359. end
  3360. end))
  3361. end)
  3362. ds()
  3363. end
  3364. end
  3365.  
  3366.  
  3367. function FindNearestHead(Position, Distance, SinglePlayer)
  3368. if SinglePlayer then
  3369. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3370. end
  3371. local List = {}
  3372. for i, v in pairs(workspace:GetChildren()) do
  3373. if v:IsA("Model") then
  3374. if v:findFirstChild("Head") then
  3375. if v ~= Character then
  3376. if (v.Head.Position - Position).magnitude <= Distance then
  3377. table.insert(List, v)
  3378. end
  3379. end
  3380. end
  3381. end
  3382. end
  3383. return List
  3384. end
  3385.  
  3386. function FaceMouse()
  3387. Cam = workspace.CurrentCamera
  3388. return {
  3389. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3390. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3391. }
  3392. end
  3393.  
  3394. function FaceMouse2()
  3395. Cam = workspace.CurrentCamera
  3396. return {
  3397. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3398. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3399. }
  3400. end
  3401.  
  3402. local ModeOfGlitch = 1
  3403. -- Functions are ready.
  3404. local storehumanoidWS = 16
  3405.  
  3406. function CorruptBlink()
  3407. for i = 0, 14 do
  3408. 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)
  3409. end
  3410. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3411. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3412. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3413. CameraEnshaking(2,10)
  3414. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3415. if v:FindFirstChild('Head') then
  3416. dmg(v)
  3417. end
  3418. end
  3419. for i = 0, 14 do
  3420. 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)
  3421. end
  3422. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3423. end
  3424. function PureBomb()
  3425. attack = true
  3426. hum.WalkSpeed = 0
  3427. local orb = Instance.new("Part", char)
  3428. orb.Anchored = true
  3429. orb.BrickColor = BrickColor.new("Toothpaste")
  3430. orb.CanCollide = false
  3431. orb.FormFactor = 3
  3432. orb.Name = "Ring"
  3433. orb.Material = "Neon"
  3434. orb.Size = Vector3.new(1, 1, 1)
  3435. orb.Transparency = 0
  3436. orb.TopSurface = 0
  3437. orb.BottomSurface = 0
  3438. local orbm = Instance.new("SpecialMesh", orb)
  3439. orbm.MeshType = "Sphere"
  3440. orbm.Name = "SizeMesh"
  3441. orbm.Scale = vt(0,0,0)
  3442. local scaled = 0.1
  3443. local posid = 0
  3444. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3445. for i = 0, 5, 0.1 do
  3446. swait()
  3447. scaled = scaled - 0.001
  3448. posid = posid - scaled
  3449. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3450. local scaled = 0.1
  3451. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3452. 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)
  3453. 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)
  3454. 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)
  3455. 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)
  3456. 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)
  3457. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3459. 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)
  3460. end
  3461. for i = 0, 2, 0.1 do
  3462. swait()
  3463. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3464. 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)
  3465. 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)
  3466. 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)
  3467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3469. 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)
  3470. end
  3471. coroutine.resume(coroutine.create(function()
  3472. orb.Anchored = false
  3473. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3474. local a = Instance.new("Part",workspace)
  3475. a.Name = "Direction"
  3476. a.Anchored = true
  3477. a.BrickColor = bc("Bright red")
  3478. a.Material = "Neon"
  3479. a.Transparency = 1
  3480. a.CanCollide = false
  3481. local ray = Ray.new(
  3482. orb.CFrame.p, -- origin
  3483. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3484. )
  3485. local ignore = orb
  3486. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3487. a.BottomSurface = 10
  3488. a.TopSurface = 10
  3489. local distance = (orb.CFrame.p - position).magnitude
  3490. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3491. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3492. orb.CFrame = a.CFrame
  3493. a:Destroy()
  3494. local bv = Instance.new("BodyVelocity")
  3495. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3496. bv.velocity = orb.CFrame.lookVector*125
  3497. bv.Parent = orb
  3498. local hitted = false
  3499. game:GetService("Debris"):AddItem(orb, 15)
  3500. wait()
  3501. local hit =orb.Touched:connect(function(hit)
  3502. if hitted == false then
  3503. hitted = true
  3504. CameraEnshaking(10,2.5)
  3505. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3506. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3507. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3508. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3509. for i = 0, 49 do
  3510. 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)
  3511. end
  3512. for i = 0, 9 do
  3513. 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)
  3514. 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)
  3515. end
  3516. orb.Anchored = true
  3517. orb.Transparency = 1
  3518. wait(8)
  3519. orb:Destroy()
  3520. end
  3521. end)
  3522. end))
  3523. for i = 0, 1, 0.1 do
  3524. swait()
  3525. 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)
  3526. 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)
  3527. 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)
  3528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3530. 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)
  3531. end
  3532. hum.WalkSpeed = storehumanoidWS
  3533. attack = false
  3534. end
  3535.  
  3536. function BanishingOrb()
  3537. attack = true
  3538. hum.WalkSpeed = 0
  3539. local orb = Instance.new("Part", char)
  3540. orb.Anchored = true
  3541. orb.BrickColor = BrickColor.new("Black")
  3542. orb.CanCollide = false
  3543. orb.FormFactor = 3
  3544. orb.Name = "Ring"
  3545. orb.Material = "Neon"
  3546. orb.Size = Vector3.new(1, 1, 1)
  3547. orb.Transparency = 0
  3548. orb.TopSurface = 0
  3549. orb.BottomSurface = 0
  3550. local orbm = Instance.new("SpecialMesh", orb)
  3551. orbm.MeshType = "Sphere"
  3552. orbm.Name = "SizeMesh"
  3553. orbm.Scale = vt(0,0,0)
  3554. local scaled = 0.1
  3555. local posid = 0
  3556. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3557. for i = 0, 5, 0.1 do
  3558. swait()
  3559. scaled = scaled - 0.001
  3560. posid = posid - scaled
  3561. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3562. local scaled = 0.1
  3563. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3564. 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)
  3565. 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)
  3566. 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)
  3567. 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)
  3568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3570. 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)
  3571. end
  3572. for i = 0, 2, 0.1 do
  3573. swait()
  3574. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3575. 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)
  3576. 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)
  3577. 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)
  3578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3579. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3580. 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)
  3581. end
  3582. coroutine.resume(coroutine.create(function()
  3583. orb.Anchored = false
  3584. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3585. local a = Instance.new("Part",workspace)
  3586. a.Name = "Direction"
  3587. a.Anchored = true
  3588. a.BrickColor = bc("Bright red")
  3589. a.Material = "Neon"
  3590. a.Transparency = 1
  3591. a.CanCollide = false
  3592. local ray = Ray.new(
  3593. orb.CFrame.p, -- origin
  3594. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3595. )
  3596. local ignore = orb
  3597. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3598. a.BottomSurface = 10
  3599. a.TopSurface = 10
  3600. local distance = (orb.CFrame.p - position).magnitude
  3601. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3602. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3603. orb.CFrame = a.CFrame
  3604. a:Destroy()
  3605. local bv = Instance.new("BodyVelocity")
  3606. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3607. bv.velocity = orb.CFrame.lookVector*0
  3608. bv.Parent = orb
  3609. local hitted = false
  3610. local rate = 0
  3611. coroutine.resume(coroutine.create(function()
  3612. for i = 0, 24 do
  3613. wait(0.1)
  3614. rate = rate + 0.25
  3615. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3616. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3617. if v:FindFirstChild('Head') then
  3618. dmg(v)
  3619. end
  3620. end
  3621. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3622. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3623. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3624. end
  3625. orb.Anchored = true
  3626. orb.Transparency = 1
  3627. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3628. if v:FindFirstChild('Head') then
  3629. dmg(v)
  3630. end
  3631. end
  3632. local eff = Instance.new("ParticleEmitter",orb)
  3633. eff.Texture = "rbxassetid://296874871"
  3634. eff.LightEmission = 0.95
  3635. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3636. eff.Rate = 1000000000
  3637. eff.Lifetime = NumberRange.new(3)
  3638. 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)})
  3639. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3640. eff.Speed = NumberRange.new(30)
  3641. eff.Acceleration = vt(0,-15,0)
  3642. eff.Rotation = NumberRange.new(-500,500)
  3643. eff.VelocitySpread = 100000
  3644. eff.RotSpeed = NumberRange.new(-500,500)
  3645. coroutine.resume(coroutine.create(function()
  3646. wait(0.6)
  3647. eff.Enabled = false
  3648. end))
  3649. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3650. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3651. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3652. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3653. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3654. game:GetService("Debris"):AddItem(orb, 15)
  3655. end))
  3656. end))
  3657. for i = 0, 1, 0.1 do
  3658. swait()
  3659. 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)
  3660. 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)
  3661. 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)
  3662. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3663. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3664. 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)
  3665. end
  3666. hum.WalkSpeed = storehumanoidWS
  3667. attack = false
  3668. end
  3669.  
  3670.  
  3671. function ChaosGroundStrike()
  3672. attack = true
  3673. for i = 0, 2, 0.1 do
  3674. swait()
  3675. 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)
  3676. 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)
  3677. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3679. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3680. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3681. end
  3682. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3683. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3684. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 1.5, 1,0,10,0.15,0.5,1)
  3685. CFuncs["EchoSound"].Create("rbxassetid://357202073", root, 10, 1,0,10,0.15,0.5,1)
  3686. bosschatfunc("TASTE MY POWER!",MAINRUINCOLOR.Color,1)
  3687. CameraEnshaking(4,12)
  3688. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3689. if v:FindFirstChild('Head') then
  3690. dmg(v)
  3691. end
  3692. end
  3693. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3694. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3695. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3696. for i = 0, 2, 0.1 do
  3697. swait()
  3698. 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)
  3699. 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)
  3700. 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)
  3701. 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)
  3702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3703. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3704. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3705. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3706. end
  3707. attack = false
  3708. end
  3709.  
  3710.  
  3711.  
  3712. function Starfall()
  3713. attack = true
  3714. hum.WalkSpeed = 0
  3715. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3716. for i = 0, 5, 0.1 do
  3717. swait()
  3718. 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)
  3719. 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)
  3720. 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)
  3721. 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)
  3722. 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)
  3723. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3724. 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)
  3725. 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)
  3726. end
  3727. local Overed = false
  3728. CameraEnshaking(2,20)
  3729. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3730. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3731. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3732. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3733. local orb = Instance.new("Part", char)
  3734. orb.Anchored = true
  3735. orb.BrickColor = BrickColor.new("Toothpaste")
  3736. orb.CanCollide = false
  3737. orb.FormFactor = 3
  3738. orb.Name = "Remenant"
  3739. orb.Material = "Neon"
  3740. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3741. orb.Size = Vector3.new(1, 1, 1)
  3742. orb.Transparency = 1
  3743. orb.TopSurface = 0
  3744. orb.BottomSurface = 0
  3745. hum.WalkSpeed = storehumanoidWS
  3746. coroutine.resume(coroutine.create(function()
  3747. for i = 0, 9 do
  3748. swait(10)
  3749. local lb = Instance.new("Part")
  3750. lb.Color = MAINRUINCOLOR.Color
  3751. lb.CanCollide = false
  3752. lb.Material = "Neon"
  3753. lb.Anchored = true
  3754. lb.TopSurface = 0
  3755. lb.BottomSurface = 0
  3756. lb.Transparency = 0
  3757. lb.Size = vt(1,1,1)
  3758. 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)))
  3759. lb.Anchored = false
  3760. lb.Parent = char
  3761. local thingery = Instance.new("SpecialMesh",lb)
  3762. thingery.MeshType = "Sphere"
  3763. thingery.Scale = vt(20,20,20)
  3764. game:GetService("Debris"):AddItem(lb, 10)
  3765. local bv = Instance.new("BodyVelocity")
  3766. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3767. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3768. bv.Parent = lb
  3769. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3770. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3771. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3772. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3773. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3774. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3775. local hitted = false
  3776. coroutine.resume(coroutine.create(function()
  3777. while true do
  3778. swait(1)
  3779. if lb.Parent ~= nil and hitted == false then
  3780. 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)
  3781. elseif lb.Parent == nil then
  3782. break
  3783. end
  3784. end
  3785. end))
  3786.  
  3787. game:GetService("Debris"):AddItem(a, 0.1)
  3788.  
  3789. coroutine.resume(coroutine.create(function()
  3790. swait(1)
  3791. lb.Touched:connect(function(hit)
  3792. if hitted == false then
  3793. hitted = true
  3794. lb.Transparency = 1
  3795. lb.Anchored = true
  3796. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3797. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3798. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3799. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3800. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3801. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3802. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3803. CameraEnshaking(1,5)
  3804. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3805. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3806. for i = 0, 9 do
  3807. 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)
  3808. end
  3809. for i = 0, 49 do
  3810. swait()
  3811. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3812. 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)
  3813. end
  3814. end
  3815. end)
  3816. end))
  3817. end
  3818. Overed = true
  3819. orb:Destroy()
  3820. end))
  3821.  
  3822. attack = false
  3823. end
  3824.  
  3825. function StarfallEX()
  3826. attack = true
  3827. hum.WalkSpeed = 0
  3828. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3829. for i = 0, 10, 0.1 do
  3830. swait()
  3831. 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)
  3832. 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)
  3833. 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)
  3834. 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)
  3835. 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)
  3836. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3837. 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)
  3838. 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)
  3839. end
  3840. local Overed = false
  3841. CameraEnshaking(2,20)
  3842. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3843. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3844. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3845. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3846. local orb = Instance.new("Part", char)
  3847. orb.Anchored = true
  3848. orb.BrickColor = BrickColor.new("Toothpaste")
  3849. orb.CanCollide = false
  3850. orb.FormFactor = 3
  3851. orb.Name = "Remenant"
  3852. orb.Material = "Neon"
  3853. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3854. orb.Size = Vector3.new(1, 1, 1)
  3855. orb.Transparency = 1
  3856. orb.TopSurface = 0
  3857. orb.BottomSurface = 0
  3858. hum.WalkSpeed = storehumanoidWS
  3859. coroutine.resume(coroutine.create(function()
  3860. for i = 0, 4 do
  3861. swait(15)
  3862. local lb = Instance.new("Part")
  3863. lb.Color = MAINRUINCOLOR.Color
  3864. lb.CanCollide = false
  3865. lb.Material = "Neon"
  3866. lb.Anchored = true
  3867. lb.TopSurface = 0
  3868. lb.BottomSurface = 0
  3869. lb.Transparency = 0
  3870. lb.Size = vt(1,1,1)
  3871. 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)))
  3872. lb.Anchored = false
  3873. lb.Parent = char
  3874. local thingery = Instance.new("SpecialMesh",lb)
  3875. thingery.MeshType = "Sphere"
  3876. thingery.Scale = vt(50,50,50)
  3877. game:GetService("Debris"):AddItem(lb, 10)
  3878. local bv = Instance.new("BodyVelocity")
  3879. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3880. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3881. bv.Parent = lb
  3882. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3883. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3884. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3885. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3886. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3887. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3888. local hitted = false
  3889. coroutine.resume(coroutine.create(function()
  3890. while true do
  3891. swait(1)
  3892. if lb.Parent ~= nil and hitted == false then
  3893. 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)
  3894. elseif lb.Parent == nil then
  3895. break
  3896. end
  3897. end
  3898. end))
  3899.  
  3900. game:GetService("Debris"):AddItem(a, 0.1)
  3901.  
  3902. coroutine.resume(coroutine.create(function()
  3903. swait(1)
  3904. lb.Touched:connect(function(hit)
  3905. if hitted == false then
  3906. hitted = true
  3907. lb.Transparency = 1
  3908. lb.Anchored = true
  3909. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3910. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3911. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3912. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3913. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3914. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3915. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3916. CameraEnshaking(1,5)
  3917. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3918. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3919. for i = 0, 9 do
  3920. 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)
  3921. end
  3922. for i = 0, 99 do
  3923. swait()
  3924. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3925. 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)
  3926. end
  3927. end
  3928. end)
  3929. end))
  3930. end
  3931. Overed = true
  3932. orb:Destroy()
  3933. end))
  3934.  
  3935. attack = false
  3936. end
  3937.  
  3938. function DivineBlast()
  3939. attack = true
  3940. hum.WalkSpeed = 0
  3941. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3942. elocacenter.Anchored = true
  3943. elocacenter.CFrame = sorb.CFrame
  3944. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3945. eloca1.Anchored = true
  3946. eloca1.CFrame = elocacenter.CFrame
  3947. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3948. eloca2.Anchored = true
  3949. eloca2.CFrame = elocacenter.CFrame
  3950. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3951. eloca3.Anchored = true
  3952. eloca3.CFrame = elocacenter.CFrame
  3953. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3954. eloca4.Anchored = true
  3955. eloca4.CFrame = elocacenter.CFrame
  3956. local lookavec = 0
  3957. local speeds = 0
  3958. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3959. for i = 0, 3, 0.1 do
  3960. swait()
  3961. ---
  3962. lookavec = lookavec + 0.1
  3963. speeds = speeds + 10
  3964. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3965. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3966. 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)
  3967.  
  3968. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3969. 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)
  3970.  
  3971. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3972. 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)
  3973.  
  3974. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3975. 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)
  3976. ---
  3977. root.CFrame = FaceMouse()[1]
  3978. 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)
  3979. 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)
  3980. 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)
  3981. 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)
  3982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3983. 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)
  3984. end
  3985. for i = 0, 3, 0.1 do
  3986. swait()
  3987. ---
  3988. speeds = speeds + 10
  3989. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3990. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3991. 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)
  3992.  
  3993. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3994. 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)
  3995.  
  3996. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3997. 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)
  3998.  
  3999. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4000. 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)
  4001. ---
  4002. root.CFrame = FaceMouse()[1]
  4003. 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)
  4004. 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)
  4005. 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)
  4006. 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)
  4007. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4008. 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)
  4009. end
  4010. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4011. for i = 0, 3, 0.1 do
  4012. swait()
  4013. ---
  4014. speeds = speeds + 10
  4015. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4016. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4017. 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)
  4018.  
  4019. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4020. 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)
  4021.  
  4022. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4023. 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)
  4024.  
  4025. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4026. 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)
  4027. ---
  4028. root.CFrame = FaceMouse()[1]
  4029. 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)
  4030. 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)
  4031. 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)
  4032. 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)
  4033. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4034. 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)
  4035. end
  4036. coroutine.resume(coroutine.create(function()
  4037. local a = Instance.new("Part",Character)
  4038. a.Name = "Direction"
  4039. a.Anchored = true
  4040. a.BrickColor = bc("White")
  4041. a.Material = "Neon"
  4042. a.Transparency = 0
  4043. a.Shape = "Cylinder"
  4044. a.CanCollide = false
  4045. local a2 = Instance.new("Part",Character)
  4046. a2.Name = "Direction"
  4047. a2.Anchored = true
  4048. a2.BrickColor = bc("Bright yellow")
  4049. a2.Material = "Neon"
  4050. a2.Transparency = 0
  4051. a2.Shape = "Cylinder"
  4052. a2.CanCollide = false
  4053. local b = Instance.new("Part",Character)
  4054. b.Name = "HitDirect"
  4055. b.Anchored = true
  4056. b.BrickColor = bc("Cool yellow")
  4057. b.Material = "Neon"
  4058. b.Transparency = 1
  4059. b.CanCollide = false
  4060. local ray = Ray.new(
  4061. elocacenter.CFrame.p, -- origin
  4062. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4063. )
  4064. local ignore = Character
  4065. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4066. a.BottomSurface = 10
  4067. a.TopSurface = 10
  4068. a2.BottomSurface = 10
  4069. a2.TopSurface = 10
  4070. local distance = (elocacenter.CFrame.p - position).magnitude
  4071. a.Size = Vector3.new(distance, 1, 1)
  4072. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4073. a2.Size = Vector3.new(distance, 1, 1)
  4074. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4075. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4076. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4077. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4078. game:GetService("Debris"):AddItem(a, 10)
  4079. game:GetService("Debris"):AddItem(a2, 10)
  4080. game:GetService("Debris"):AddItem(b, 10)
  4081. local msh = Instance.new("SpecialMesh",a)
  4082. msh.MeshType = "Cylinder"
  4083. msh.Scale = vt(1,2,2)
  4084. local msh2 = Instance.new("SpecialMesh",a2)
  4085. msh2.MeshType = "Cylinder"
  4086. msh2.Scale = vt(1,2.5,2.5)
  4087. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4088. coroutine.resume(coroutine.create(function()
  4089. for i = 0,10,0.1 do
  4090. swait()
  4091. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4092. a.Transparency = a.Transparency + 0.025
  4093. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4094. a2.Transparency = a2.Transparency + 0.05
  4095. end
  4096. a:Destroy()
  4097. a2:Destroy()
  4098. end))
  4099. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4100. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4101. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4102. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4103. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4104. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4105. MagniDamage(b, 25, 40,65, 0, "Normal")
  4106. for i = 0, 49 do
  4107. 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)
  4108. 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)
  4109. end
  4110. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4111. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4112. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4113. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4114. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4115. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4116. end))
  4117. game:GetService("Debris"):AddItem(elocacenter, 5)
  4118. hum.WalkSpeed = storehumanoidWS
  4119. attack = false
  4120. end
  4121.  
  4122. function StarDivision()
  4123. attack = true
  4124. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4125. for i = 0, 2, 0.1 do
  4126. swait()
  4127. 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)
  4128. 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)
  4129. 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)
  4130. 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)
  4131. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4132. 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)
  4133. end
  4134. local orb = Instance.new("Part", char)
  4135. orb.BrickColor = MAINRUINCOLOR
  4136. orb.CanCollide = false
  4137. orb.FormFactor = 3
  4138. orb.Name = "Ring"
  4139. orb.Material = "Neon"
  4140. orb.Size = Vector3.new(1, 1, 1)
  4141. orb.Transparency = 0
  4142. orb.TopSurface = 0
  4143. orb.BottomSurface = 0
  4144. local orbm = Instance.new("SpecialMesh", orb)
  4145. orbm.MeshType = "Sphere"
  4146. orbm.Name = "SizeMesh"
  4147. orbm.Scale = vt(2,2,2)
  4148. local a = Instance.new("Part",workspace)
  4149. a.Name = "Direction"
  4150. a.Anchored = true
  4151. a.BrickColor = bc("Bright red")
  4152. a.Material = "Neon"
  4153. a.Transparency = 1
  4154. a.CanCollide = false
  4155. local ray = Ray.new(
  4156. sorb.CFrame.p, -- origin
  4157. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4158. )
  4159. local ignore = sorb
  4160. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4161. a.BottomSurface = 10
  4162. a.TopSurface = 10
  4163. local distance = (sorb.CFrame.p - position).magnitude
  4164. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4165. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4166. orb.CFrame = a.CFrame
  4167. a:Destroy()
  4168. local bv = Instance.new("BodyVelocity")
  4169. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4170. bv.velocity = orb.CFrame.lookVector*100
  4171. bv.Parent = orb
  4172. local hitted = false
  4173. game:GetService("Debris"):AddItem(orb, 10)
  4174. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4175. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4176. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4177. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4178. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4179. coroutine.resume(coroutine.create(function()
  4180. while true do
  4181. swait(1)
  4182. if orb.Parent ~= nil and hitted == false then
  4183. 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)
  4184. elseif orb.Parent == nil then
  4185. break
  4186. end
  4187. end
  4188. end))
  4189. coroutine.resume(coroutine.create(function()
  4190. swait(1)
  4191. orb.Touched:connect(function(hit)
  4192. if hitted == false then
  4193. hitted = true
  4194. game:GetService("Debris"):AddItem(orb, 5)
  4195. orb.Transparency = 1
  4196. orb.Anchored = true
  4197. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4198. elocacenter.Anchored = true
  4199. elocacenter.CFrame = orb.CFrame
  4200. elocacenter.Orientation = vt(0,0,0)
  4201. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4202. eloca1.Anchored = true
  4203. eloca1.CFrame = elocacenter.CFrame
  4204. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4205. eloca2.Anchored = true
  4206. eloca2.CFrame = elocacenter.CFrame
  4207. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4208. eloca3.Anchored = true
  4209. eloca3.CFrame = elocacenter.CFrame
  4210. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4211. eloca4.Anchored = true
  4212. eloca4.CFrame = elocacenter.CFrame
  4213. local lookavec = 0
  4214. local speeds = 0
  4215. CameraEnshaking(1,1)
  4216. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4217. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4218. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4219. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4220. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4221. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4222. for i = 0, 99 do
  4223. swait()
  4224. lookavec = lookavec + 1
  4225. speeds = speeds + 0.1
  4226. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4227. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4228. 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)
  4229.  
  4230. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4231. 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)
  4232.  
  4233. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4234. 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)
  4235.  
  4236. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4237. 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)
  4238. end
  4239.  
  4240. for i = 0, 149 do
  4241. swait()
  4242. speeds = speeds + 0.1
  4243. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4244. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4245. 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)
  4246.  
  4247. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4248. 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)
  4249.  
  4250. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4251. 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)
  4252.  
  4253. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4254. 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)
  4255. end
  4256. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4257. if v:FindFirstChild('Head') then
  4258. dmg(v)
  4259. end
  4260. end
  4261. CameraEnshaking(7,30)
  4262. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4263. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4264. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4265. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4266. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4267. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4268. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4269. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4270. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4271. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4272. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4273. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4274. for i = 0, 24 do
  4275. 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)
  4276. 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)
  4277. 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)
  4278. 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)
  4279. end
  4280. coroutine.resume(coroutine.create(function()
  4281. for i = 0, 499 do
  4282. swait(1)
  4283. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4284. 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)
  4285. end
  4286. elocacenter:Destroy()
  4287. eloca1:Destroy()
  4288. eloca2:Destroy()
  4289. eloca3:Destroy()
  4290. eloca4:Destroy()
  4291. end))
  4292. end
  4293. end)
  4294. end))
  4295. attack = false
  4296. end
  4297.  
  4298.  
  4299. function THE_TRUE_POWER_OF_VIOLENCE()
  4300. attack = true
  4301. hum.WalkSpeed = 0
  4302. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4303. for i = 0, 10, 0.1 do
  4304. swait()
  4305. 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)
  4306. 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)
  4307. 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)
  4308. 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)
  4309. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4310. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4311. 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)
  4312. end
  4313. local orb = Instance.new("Part", char)
  4314. orb.BrickColor = MAINRUINCOLOR
  4315. orb.CanCollide = false
  4316. orb.FormFactor = 3
  4317. orb.Name = "Ring"
  4318. orb.Material = "Neon"
  4319. orb.Size = Vector3.new(1, 1, 1)
  4320. orb.Transparency = 0
  4321. orb.TopSurface = 0
  4322. orb.BottomSurface = 0
  4323. orb.CFrame = sorb.CFrame
  4324. local orbm = Instance.new("SpecialMesh", orb)
  4325. orbm.MeshType = "Sphere"
  4326. orbm.Name = "SizeMesh"
  4327. orbm.Scale = vt(0,0,0)
  4328. local sbs = Instance.new("BodyPosition", orb)
  4329. sbs.P = 3000
  4330. sbs.D = 1000
  4331. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4332. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4333. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4334. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4335. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4336. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4337. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4338. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4339. for i = 0, 10, 0.1 do
  4340. swait()
  4341. 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)
  4342. 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)
  4343. 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)
  4344. 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)
  4345. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4346. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4347. 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)
  4348. end
  4349. orb.Anchored = true
  4350. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4351. elocacenter.Anchored = true
  4352. elocacenter.CFrame = orb.CFrame
  4353. elocacenter.Orientation = vt(0,0,0)
  4354. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4355. eloca1.Anchored = true
  4356. eloca1.CFrame = elocacenter.CFrame
  4357. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4358. eloca2.Anchored = true
  4359. eloca2.CFrame = elocacenter.CFrame
  4360. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4361. eloca3.Anchored = true
  4362. eloca3.CFrame = elocacenter.CFrame
  4363. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4364. eloca4.Anchored = true
  4365. eloca4.CFrame = elocacenter.CFrame
  4366. local lookavec = 0
  4367. local speeds = 0
  4368. CameraEnshaking(1,1)
  4369. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4370. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4371. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4372. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4373. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4374. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4375. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4376. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4377. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4378. for i = 0, 99 do
  4379. swait()
  4380. lookavec = lookavec + 2.5
  4381. speeds = speeds + 0.25
  4382. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4383. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4384. 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)
  4385.  
  4386. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4387. 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)
  4388.  
  4389. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4390. 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)
  4391.  
  4392. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4393. 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)
  4394. end
  4395.  
  4396. for i = 0, 149 do
  4397. swait()
  4398. speeds = speeds + 0.25
  4399. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4400. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4401. 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)
  4402.  
  4403. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4404. 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)
  4405.  
  4406. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4407. 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)
  4408.  
  4409. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4410. 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)
  4411. end
  4412. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4413. for i = 0, 99 do
  4414. swait()
  4415. lookavec = lookavec - 2.5
  4416. speeds = speeds + 0.25
  4417. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4418. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4419. 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)
  4420.  
  4421. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4422. 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)
  4423.  
  4424. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4425. 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)
  4426.  
  4427. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4428. 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)
  4429. end
  4430. local scaled = 0.1*75
  4431. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4432. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4433. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4434. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4435. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4436. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4437. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4438. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4439. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4440. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4441. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4442. for i = 0, 10, 0.1 do
  4443. swait()
  4444. scaled = scaled - 0.001*75
  4445. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4446. 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)
  4447. 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)
  4448. 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)
  4449. 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)
  4450. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4451. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4452. 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)
  4453. end
  4454. for x = 0, 4 do
  4455. for i = 0, 9 do
  4456. 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)
  4457. end
  4458. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4459. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4460. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4461. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4462. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4463. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4464. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4465. for i = 0, 5, 0.1 do
  4466. swait()
  4467. 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)
  4468. 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)
  4469. 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)
  4470. 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)
  4471. 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)
  4472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4475. end
  4476. end
  4477. local speedearn = 0
  4478. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4479. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4480. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4481. for i = 0, 30, 0.1 do
  4482. swait()
  4483. scaled = scaled - 0.001*75/10
  4484. speedearn = speedearn + 0.5
  4485. for i = 0, 4 do
  4486. 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)
  4487. end
  4488. 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)
  4489. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4490. 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)
  4491. 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)
  4492. 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)
  4493. 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)
  4494. 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)
  4495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4497. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4498. end
  4499. orb.Transparency = 1
  4500. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4501. if v:FindFirstChild('Head') then
  4502. dmg(v)
  4503. end
  4504. end
  4505. CameraEnshaking(7,30)
  4506. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4507. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4508. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4509. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4510. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4511. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4512. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4513. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4514. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4515. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4516. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4517. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4518. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4519. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4520. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4521. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4522. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4523. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4524. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4525. for i = 0, 99 do
  4526. 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)
  4527. 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)
  4528. end
  4529. for i = 0, 24 do
  4530. 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)
  4531. 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)
  4532. 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)
  4533. 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)
  4534. 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)
  4535. end
  4536. game:GetService("Debris"):AddItem(orb, 10)
  4537. hum.WalkSpeed = storehumanoidWS
  4538. attack = false
  4539. end
  4540.  
  4541.  
  4542. function ViolentRing()
  4543. attack = true
  4544. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4545. for i = 0, 2, 0.1 do
  4546. swait()
  4547. local snap = math.random(1,10)
  4548. if snap == 1 then
  4549. 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)
  4550. end
  4551. 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)
  4552. 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)
  4553. 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)
  4554. 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)
  4555. 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)
  4556. 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)
  4557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4559. 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)
  4560. RootPart.CFrame = FaceMouse()[1]
  4561. end
  4562. local orb = Instance.new("Part", char)
  4563. orb.BrickColor = MAINRUINCOLOR
  4564. orb.CanCollide = false
  4565. orb.FormFactor = 3
  4566. orb.Name = "Ring"
  4567. orb.Material = "Neon"
  4568. orb.Size = Vector3.new(1, 1, 1)
  4569. orb.Transparency = 0
  4570. orb.TopSurface = 0
  4571. orb.BottomSurface = 0
  4572. local orbm = Instance.new("SpecialMesh", orb)
  4573. orbm.MeshType = "Sphere"
  4574. orbm.Name = "SizeMesh"
  4575. orbm.Scale = vt(2,2,2)
  4576. orb.CFrame = mouse.Hit
  4577. local bv = Instance.new("BodyVelocity")
  4578. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4579. bv.velocity = orb.CFrame.lookVector*100
  4580. bv.Parent = orb
  4581. local hitted = false
  4582. coroutine.resume(coroutine.create(function()
  4583. game:GetService("Debris"):AddItem(orb, 5)
  4584. orb.Transparency = 1
  4585. orb.Anchored = true
  4586. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4587. elocacenter.Anchored = true
  4588. elocacenter.CFrame = orb.CFrame
  4589. elocacenter.Orientation = vt(0,0,0)
  4590. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4591. eloca1.Anchored = true
  4592. eloca1.CFrame = elocacenter.CFrame
  4593. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4594. eloca2.Anchored = true
  4595. eloca2.CFrame = elocacenter.CFrame
  4596. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4597. eloca3.Anchored = true
  4598. eloca3.CFrame = elocacenter.CFrame
  4599. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4600. eloca4.Anchored = true
  4601. eloca4.CFrame = elocacenter.CFrame
  4602. local lookavec = 0
  4603. local speeds = 0
  4604. CameraEnshaking(1,1)
  4605. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4606. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4607. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4608. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4609. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4610. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4611. for i = 0, 24 do
  4612. swait()
  4613. lookavec = lookavec + 3.5
  4614. speeds = speeds + 1
  4615. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4616. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4617. 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)
  4618.  
  4619. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4620. 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)
  4621.  
  4622. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4623. 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)
  4624.  
  4625. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4626. 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)
  4627. end
  4628.  
  4629. local risen = 0
  4630. for i = 0, 49 do
  4631. swait()
  4632. risen = risen + 0.05
  4633. speeds = speeds + 0.1
  4634. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4635. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4636. 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)
  4637.  
  4638. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4639. 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)
  4640.  
  4641. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4642. 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)
  4643.  
  4644. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4645. 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)
  4646. end
  4647. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4648. if v:FindFirstChild('Head') then
  4649. dmg(v)
  4650. end
  4651. end
  4652. CameraEnshaking(4,10)
  4653. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4654. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4655. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4656. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4657. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4658. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4659. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4660. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4661. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4662. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4663. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4664. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4665. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4666. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4667. for i = 0, 24 do
  4668. 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)
  4669. 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)
  4670. 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)
  4671. 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)
  4672. end
  4673. coroutine.resume(coroutine.create(function()
  4674. wait(10)
  4675. elocacenter:Destroy()
  4676. eloca1:Destroy()
  4677. eloca2:Destroy()
  4678. eloca3:Destroy()
  4679. eloca4:Destroy()
  4680. end))
  4681. end))
  4682. attack = false
  4683. end
  4684.  
  4685. function UniversalCollapse()
  4686. attack = true
  4687. local speedearn = 0
  4688. hum.WalkSpeed = 0
  4689. local sbs = Instance.new("BodyPosition", root)
  4690. sbs.P = 3000
  4691. sbs.D = 1000
  4692. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4693. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4694. bosschatfunc("*Roars*",MAINRUINCOLOR.Color,1)
  4695. CFuncs["EchoSound"].Create("rbxassetid://1286168545", char, 1.5, 1,0,10,0.15,0.5,1)
  4696. CFuncs["EchoSound"].Create("rbxassetid://1286168545", root, 10, 1,0,10,0.15,0.5,1)
  4697. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4698. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4699. for i = 0, 110, 0.1 do
  4700. swait()
  4701. speedearn = speedearn + 0.1
  4702. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4703. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4704. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4705. 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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4708. 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)
  4709. 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)
  4710. 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)
  4711. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4712. 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)
  4713. 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)
  4714. end
  4715. CameraEnshaking(5,50)
  4716. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4717. for i = 0, 2 do
  4718. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4719. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4720. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4721. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4722. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4723. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4724. end
  4725. for i = 0, 49 do
  4726. 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)
  4727. 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)
  4728. 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)
  4729. 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)
  4730. end
  4731. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4732. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4733. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4734. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4735. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4736. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4737. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4738. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4739. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4740. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4741. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4742. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4743. for i = 0, 99 do
  4744. 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)
  4745. 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)
  4746. end
  4747. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4748. if v:FindFirstChild('Head') then
  4749. dmg(v)
  4750. end
  4751. end
  4752. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4753. sbs:Destroy()
  4754. hum.WalkSpeed = storehumanoidWS
  4755. attack = false
  4756. end
  4757.  
  4758.  
  4759. function ChaosEND()
  4760. attack = true
  4761. local speedearn = 0
  4762. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,1)
  4763. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4764. for i = 0, 15, 0.1 do
  4765. swait()
  4766. speedearn = speedearn + 0.25
  4767. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4768. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4769. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4770. 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. 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)
  4773. 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)
  4774. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4775. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4776. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4777. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4778. end
  4779. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,1)
  4780. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4781. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  4782. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4783. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4784. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4785. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4786. CameraEnshaking(5,25)
  4787. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4788. if v:FindFirstChild('Head') then
  4789. dmg(v)
  4790. end
  4791. end
  4792. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4793. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4794. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4795. for i = 0, 3, 0.1 do
  4796. swait()
  4797. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4798. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4799. 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. 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)
  4802. 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)
  4803. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4804. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4805. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4806. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4807. end
  4808. attack = false
  4809. end
  4810.  
  4811. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4812. local orb = Instance.new("Part", char)
  4813. orb.Anchored = true
  4814. orb.BrickColor = color
  4815. orb.CanCollide = false
  4816. orb.FormFactor = 3
  4817. orb.Name = "Ring"
  4818. orb.Material = "Neon"
  4819. orb.Size = Vector3.new(1, 1, 1)
  4820. orb.Transparency = 0
  4821. orb.TopSurface = 0
  4822. orb.BottomSurface = 0
  4823. local orbm = Instance.new("SpecialMesh", orb)
  4824. orbm.MeshType = "Sphere"
  4825. orb.CFrame = positted
  4826. orbm.Name = "SizeMesh"
  4827. orbm.Scale = vt(1,1,1)
  4828. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4829. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4830. --[[for i = 0, 2 do
  4831. 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)
  4832. end]]--
  4833. coroutine.resume(coroutine.create(function()
  4834. wait(timer)
  4835. CameraEnshaking(3,ShakePower)
  4836. orb.Transparency = 1
  4837. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4838. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4839. --[[for i = 0, 4 do
  4840. 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)
  4841. end]]--
  4842. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4843. wait(3)
  4844. orb:Destroy()
  4845. end))
  4846. end
  4847.  
  4848. function orb_spawn(positted,timer)
  4849. local randomcol = math.random(1,2)
  4850. local orb = Instance.new("Part", char)
  4851. orb.Anchored = true
  4852. if randomcol == 1 then
  4853. orb.BrickColor = BrickColor.new("White")
  4854. elseif randomcol == 2 then
  4855. orb.BrickColor = BrickColor.new("Really black")
  4856. end
  4857. orb.CanCollide = false
  4858. orb.FormFactor = 3
  4859. orb.Name = "Ring"
  4860. orb.Material = "Neon"
  4861. orb.Size = Vector3.new(1, 1, 1)
  4862. orb.Transparency = 0
  4863. orb.TopSurface = 0
  4864. orb.BottomSurface = 0
  4865. local orbm = Instance.new("SpecialMesh", orb)
  4866. orbm.MeshType = "Sphere"
  4867. orb.CFrame = positted
  4868. orbm.Name = "SizeMesh"
  4869. orbm.Scale = vt(1,1,1)
  4870. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4871. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4872. for i = 0, 2 do
  4873. 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)
  4874. end
  4875. coroutine.resume(coroutine.create(function()
  4876. wait(timer)
  4877. CameraEnshaking(3,2)
  4878. orb.Transparency = 1
  4879. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4880. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4881. for i = 0, 4 do
  4882. 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)
  4883. end
  4884. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4885. wait(3)
  4886. orb:Destroy()
  4887. end))
  4888. end
  4889.  
  4890. function scattercorrupt()
  4891. attack = true
  4892. local rot = 0
  4893. local randomrotations = math.random(1,2)
  4894. local lookv = 2.5
  4895. local power = 5
  4896. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4897. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4898. for i = 0, 9 do
  4899. 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)
  4900. end
  4901. bosschatfunc("*Laughs*",MAINRUINCOLOR.Color,1)
  4902. CFuncs["EchoSound"].Create("rbxassetid://357202240", char, 1.5, 1,0,10,0.15,0.5,1)
  4903. CFuncs["EchoSound"].Create("rbxassetid://357202240", root, 10, 1,0,10,0.15,0.5,1)
  4904. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.75)
  4905. CFuncs["Sound"].Create("rbxassetid://2508407083", char, 0.5,0.5)
  4906. local hite = Instance.new("Part", char)
  4907. hite.Anchored = true
  4908. hite.CanCollide = false
  4909. hite.FormFactor = 3
  4910. hite.Name = "Ring"
  4911. hite.Material = "Neon"
  4912. hite.Size = Vector3.new(1, 1, 1)
  4913. hite.Transparency = 1
  4914. hite.TopSurface = 0
  4915. hite.BottomSurface = 0
  4916. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4917. local rem = Instance.new("Part", char)
  4918. rem.Anchored = true
  4919. rem.CanCollide = false
  4920. rem.FormFactor = 3
  4921. rem.Name = "Ring"
  4922. rem.Material = "Neon"
  4923. rem.Size = Vector3.new(1, 1, 1)
  4924. rem.Transparency = 1
  4925. rem.TopSurface = 0
  4926. rem.BottomSurface = 0
  4927. rem.CFrame = hite.CFrame
  4928. local rem2 = rem:Clone()
  4929. rem2.Parent = char
  4930. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4931. local rem3 = rem:Clone()
  4932. rem3.Parent = char
  4933. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4934. local rem4 = rem:Clone()
  4935. rem4.Parent = char
  4936. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4937. hite:Destroy()
  4938. coroutine.resume(coroutine.create(function()
  4939. for i = 0, 24 do
  4940. swait(1)
  4941. if randomrotations == 1 then
  4942. rot = rot + 1
  4943. elseif randomrotations == 2 then
  4944. rot = rot - 1
  4945. end
  4946. power = power + 0.5
  4947. lookv = lookv + 7.5
  4948. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4949. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4950. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4951. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4952. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4953. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4954. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4955. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4956. end
  4957. end))
  4958. attack = false
  4959. end
  4960. function yinyangi()
  4961. attack = true
  4962. for i = 0, 2, 0.1 do
  4963. swait()
  4964. bosschatfunc("YAAAAHHHHHHH!",MAINRUINCOLOR.Color,1)
  4965. CFuncs["EchoSound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  4966. CFuncs["EchoSound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  4967. 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)
  4968. 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)
  4969. 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)
  4970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4971. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4972. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4973. end
  4974. local bv = Instance.new("BodyVelocity")
  4975. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4976. bv.velocity = root.CFrame.lookVector*175
  4977. bv.Parent = root
  4978. for Rotations = 0, 9 do
  4979. for i = 0, 1, 0.5 do
  4980. swait()
  4981. bv.velocity = root.CFrame.lookVector*175
  4982. 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)
  4983. 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)
  4984. 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)
  4985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4986. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4987. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4988. end
  4989. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4990. for i = 0, 1, 0.5 do
  4991. swait()
  4992. bv.velocity = root.CFrame.lookVector*175
  4993. 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)
  4994. 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)
  4995. 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)
  4996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4999. end
  5000. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5001. for i = 0, 1, 0.5 do
  5002. swait()
  5003. bv.velocity = root.CFrame.lookVector*175
  5004. 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)
  5005. 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)
  5006. 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)
  5007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5008. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5009. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5010. end
  5011. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5012. for i = 0, 1, 0.5 do
  5013. swait()
  5014. bv.velocity = root.CFrame.lookVector*175
  5015. 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)
  5016. 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)
  5017. 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)
  5018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5020. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5021. end
  5022. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5023. end
  5024. bv:Destroy()
  5025. attack = false
  5026. end
  5027.  
  5028. function createBGCircle(size,parent,color)
  5029. local bgui = Instance.new("BillboardGui",parent)
  5030. bgui.Size = UDim2.new(size, 0, size, 0)
  5031. local imgc = Instance.new("ImageLabel",bgui)
  5032. imgc.BackgroundTransparency = 1
  5033. imgc.ImageTransparency = 0
  5034. imgc.Size = UDim2.new(1,0,1,0)
  5035. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5036. imgc.ImageColor3 = color
  5037. return bgui,imgc
  5038. end
  5039.  
  5040. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5041. local bgui,imgc = createBGCircle(size,guipar,color)
  5042. bgui.AlwaysOnTop = true
  5043. imgc.Image = "rbxassetid://" ..img
  5044. local rrot = math.random(1,2)
  5045. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5046. coroutine.resume(coroutine.create(function()
  5047. for i = 0, 24*delay do
  5048. swait()
  5049. if rotationenabled == true then
  5050. if rrot == 1 then
  5051. imgc.Rotation = imgc.Rotation + rotsp
  5052. elseif rrot == 2 then
  5053. imgc.Rotation = imgc.Rotation - rotsp
  5054. end
  5055. end
  5056. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5057. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5058. end
  5059. bgui:Destroy()
  5060. end))
  5061. end
  5062. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5063. for i, v in pairs(mw2:GetChildren()) do
  5064. if v:IsA("Part") then
  5065. v.BrickColor = one
  5066. v.Material = "Neon"
  5067. end
  5068. end
  5069. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5070. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5071. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5072. tr1.Color = ColorSequence.new(one.Color)
  5073. tr2.Color = ColorSequence.new(one.Color)
  5074. tr3.Color = ColorSequence.new(one.Color)
  5075. for i, v in pairs(mw1:GetChildren()) do
  5076. if v:IsA("Part") then
  5077. if secondaryenabled == false then
  5078. v.Transparency = 1
  5079. elseif secondaryenabled == true then
  5080. v.Transparency = 0
  5081. end
  5082. v.BrickColor = two
  5083. v.Material = "Neon"
  5084. end
  5085. end
  5086. if secondaryenabled == false then
  5087. tl1.Enabled = false
  5088. tl2.Enabled = false
  5089. tl3.Enabled = false
  5090. elseif secondaryenabled == true then
  5091. tl1.Enabled = true
  5092. tl2.Enabled = true
  5093. tl3.Enabled = true
  5094. end
  5095. tl1.Color = ColorSequence.new(two.Color)
  5096. tl2.Color = ColorSequence.new(two.Color)
  5097. tl3.Color = ColorSequence.new(two.Color)
  5098. for i, v in pairs(m:GetChildren()) do
  5099. if v:IsA("Part") then
  5100. v.BrickColor = three
  5101. v.Material = "Ice"
  5102. end
  5103. end
  5104. for i, v in pairs(m2:GetChildren()) do
  5105. if v:IsA("Part") then
  5106. v.BrickColor = four
  5107. v.Material = "Ice"
  5108. end
  5109. end
  5110. for i, v in pairs(m3:GetChildren()) do
  5111. if v:IsA("Part") then
  5112. v.BrickColor = five
  5113. v.Material = "Neon"
  5114. end
  5115. end
  5116. for i, v in pairs(extrawingmod1:GetChildren()) do
  5117. if v:IsA("Part") then
  5118. v.Transparency = exonetran
  5119. v.BrickColor = exone
  5120. v.Material = "Neon"
  5121. end
  5122. end
  5123. for i, v in pairs(extrawingmod2:GetChildren()) do
  5124. if v:IsA("Part") then
  5125. v.Transparency = extwotran
  5126. v.BrickColor = extwo
  5127. v.Material = "Neon"
  5128. end
  5129. end
  5130. end
  5131.  
  5132.  
  5133. function normalmog()
  5134. attack = true
  5135. hum.WalkSpeed = 0
  5136. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5137. for i = 0,6,0.1 do
  5138. swait()
  5139. 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)
  5140. 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)
  5141. 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)
  5142. 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)
  5143. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5144. 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)
  5145. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5146. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5147. end
  5148. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5149. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5150. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5151. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5152. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5153. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5154. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5155. rainbowmode = false
  5156. chaosmode = false
  5157. ModeOfGlitch = 1
  5158. storehumanoidWS = 16
  5159. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5160. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5161. CameraEnshaking(5,2.5)
  5162. MAINRUINCOLOR = BrickColor.new("Really red")
  5163. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5164. for i = 0, 49 do
  5165. 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)
  5166. end
  5167. for i = 0, 24 do
  5168. 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)
  5169. 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"))
  5170. end
  5171. for i = 0,3,0.1 do
  5172. 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)
  5173. end
  5174. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5175. for i = 0,2,0.1 do
  5176. swait()
  5177. 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)
  5178. 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)
  5179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5180. 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)
  5181. 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)
  5182. 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)
  5183. end
  5184. hum.WalkSpeed = storehumanoidWS
  5185. attack = false
  5186. end
  5187.  
  5188. function attackone()
  5189. attack = true
  5190. local keptcolor = MAINRUINCOLOR
  5191. for i = 0,1,0.1 do
  5192. swait()
  5193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5194. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5195. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5196. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5197. 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)
  5198. 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)
  5199. end
  5200. local distlook = 5
  5201. coroutine.resume(coroutine.create(function()
  5202. for i = 0, 4 do
  5203. swait(2)
  5204. CameraEnshaking(2,3)
  5205. local hite = Instance.new("Part", char)
  5206. hite.Anchored = true
  5207. hite.CanCollide = false
  5208. hite.FormFactor = 3
  5209. hite.Name = "Ring"
  5210. hite.Material = "Neon"
  5211. hite.Size = Vector3.new(1, 1, 1)
  5212. hite.Transparency = 1
  5213. hite.TopSurface = 0
  5214. hite.BottomSurface = 0
  5215. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5216. 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)
  5217. 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)
  5218. 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)
  5219. 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)
  5220. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5221. for i = 0, 14 do
  5222. local rsiz = math.random(5,20)
  5223. 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)
  5224. end
  5225. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5226. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5227. game:GetService("Debris"):AddItem(hite, 5)
  5228. distlook = distlook + 10
  5229. end
  5230. end))
  5231. for i = 0,1,0.1 do
  5232. swait()
  5233. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5234. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5235. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5236. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5237. 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)
  5238. 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)
  5239. end
  5240. attack = false
  5241. end
  5242.  
  5243. function attacktwo()
  5244. attack = true
  5245. hum.WalkSpeed = 2
  5246. local keptcolor = MAINRUINCOLOR
  5247. bosschatfunc("DIE, DIE, DIE!",MAINRUINCOLOR.Color,1)
  5248. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5249. CFuncs["EchoSound"].Create("rbxassetid://506001681", char, 1.5, 1,0,10,0.15,0.5,1)
  5250. CFuncs["EchoSound"].Create("rbxassetid://506001681", root, 10, 1,0,10,0.15,0.5,1)
  5251. 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)
  5252. 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)
  5253. for i = 0, 14 do
  5254. end
  5255. for i = 0,1,0.1 do
  5256. swait()
  5257. 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)
  5258. 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)
  5259. 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)
  5260. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5262. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5263. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5264. end
  5265. for i = 0, 1 do
  5266. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5267. for i = 0,1,0.6 do
  5268. swait()
  5269. 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)
  5270. 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)
  5271. 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)
  5272. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5273. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5274. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5275. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5276. end
  5277. for i = 0,1,0.6 do
  5278. swait()
  5279. 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)
  5280. 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)
  5281. 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)
  5282. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5283. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5284. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5285. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5286. end
  5287. for i = 0,1,0.6 do
  5288. swait()
  5289. 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)
  5290. 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)
  5291. 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)
  5292. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5294. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5295. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5296. end
  5297. for i = 0,1,0.6 do
  5298. swait()
  5299. 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)
  5300. 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)
  5301. 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)
  5302. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5303. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5304. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5305. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5306. end
  5307. local rot = 0
  5308. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5309. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5310. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5311. CreateMesh(dis,"Sphere",10,1,10)
  5312. local at1 = Instance.new("Attachment",dis)
  5313. at1.Position = vt(-5,0,0)
  5314. local at2 = Instance.new("Attachment",dis)
  5315. at2.Position = vt(5,0,0)
  5316. local trl = Instance.new('Trail',wed)
  5317. trl.Attachment0 = at1
  5318. trl.Attachment1 = at2
  5319. trl.Texture = "rbxassetid://1049219073"
  5320. trl.LightEmission = 1
  5321. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5322. trl.Color = ColorSequence.new(dis.Color)
  5323. trl.Lifetime = 0.6
  5324. local a = Instance.new("Part",workspace)
  5325. a.Name = "Direction"
  5326. a.Anchored = true
  5327. a.BrickColor = bc("Bright red")
  5328. a.Material = "Neon"
  5329. a.Transparency = 1
  5330. a.CanCollide = false
  5331. local ray = Ray.new(
  5332. dis.CFrame.p, -- origin
  5333. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5334. )
  5335. local ignore = dis
  5336. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5337. a.BottomSurface = 10
  5338. a.TopSurface = 10
  5339. local distance = (dis.CFrame.p - position).magnitude
  5340. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5341. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5342. dis.CFrame = a.CFrame
  5343. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5344. a:Destroy()
  5345. local bv = Instance.new("BodyVelocity")
  5346. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5347. bv.velocity = dis.CFrame.lookVector*250
  5348. bv.Parent = dis
  5349. game:GetService("Debris"):AddItem(dis, 5)
  5350. local hitted = false
  5351. coroutine.resume(coroutine.create(function()
  5352. dis.Touched:connect(function(hit)
  5353. if hitted == false and hit.Parent ~= char then
  5354. hitted = true
  5355. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5356. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5357. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5358. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5359. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5360. coroutine.resume(coroutine.create(function()
  5361. for i = 0, 9 do
  5362. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5363. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5364. local at1 = Instance.new("Attachment",disr)
  5365. at1.Position = vt(-5,0,0)
  5366. local at2 = Instance.new("Attachment",disr)
  5367. at2.Position = vt(5,0,0)
  5368. local trl = Instance.new('Trail',disr)
  5369. trl.Attachment0 = at1
  5370. trl.FaceCamera = true
  5371. trl.Attachment1 = at2
  5372. trl.Texture = "rbxassetid://2342682798"
  5373. trl.LightEmission = 1
  5374. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5375. trl.Color = ColorSequence.new(keptcolor.Color)
  5376. trl.Lifetime = 0.5
  5377. local bv = Instance.new("BodyVelocity")
  5378. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5379. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5380. bv.Parent = disr
  5381. local val = 0
  5382. coroutine.resume(coroutine.create(function()
  5383. swait(30)
  5384. for i = 0, 9 do
  5385. swait()
  5386. val = val + 0.1
  5387. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5388. end
  5389. game:GetService("Debris"):AddItem(disr, 3)
  5390. end))
  5391. end
  5392. local eff = Instance.new("ParticleEmitter",dis)
  5393. eff.Texture = "rbxassetid://2273224484"
  5394. eff.LightEmission = 1
  5395. eff.Color = ColorSequence.new(keptcolor.Color)
  5396. eff.Rate = 50
  5397. eff.Lifetime = NumberRange.new(0.5,2)
  5398. 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)})
  5399. 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)})
  5400. eff.Speed = NumberRange.new(20,250)
  5401. eff.Drag = 5
  5402. eff.Rotation = NumberRange.new(-500,500)
  5403. eff.VelocitySpread = 9000
  5404. eff.RotSpeed = NumberRange.new(-50,50)
  5405. wait(0.25)
  5406. eff.Enabled = false
  5407. end))
  5408. for i = 0, 9 do
  5409. end
  5410. for i = 0, 19 do
  5411. end
  5412. coroutine.resume(coroutine.create(function()
  5413. for i = 0, 19 do
  5414. swait()
  5415. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5416. end
  5417. hum.CameraOffset = vt(0,0,0)
  5418. end))
  5419. dis.Anchored = true
  5420. dis.Transparency = 1
  5421. wait(8)
  5422. dis:Destroy()
  5423. end
  5424. end)
  5425. end))
  5426. rot = rot - 15
  5427. end
  5428. for i = 0,2,0.1 do
  5429. swait()
  5430. 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)
  5431. 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)
  5432. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5435. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5436. end
  5437. attack = false
  5438. hum.WalkSpeed = storehumanoidWS
  5439. end
  5440.  
  5441. function attackthree()
  5442. attack = true
  5443. local keptcolor = MAINRUINCOLOR
  5444. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5445. bosschatfunc("LIGHTNING FLAME DRAGON MODE!",MAINRUINCOLOR.Color,1)
  5446. CFuncs["EchoSound"].Create("rbxassetid://905829513", char, 1.5, 1,0,10,0.15,0.5,1)
  5447. CFuncs["EchoSound"].Create("rbxassetid://905829513", root, 10, 1,0,10,0.15,0.5,1)
  5448. for i = 0,2,0.1 do
  5449. swait()
  5450. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5451. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5452. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5453. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5455. 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)
  5456. 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)
  5457. end
  5458. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5459. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5460. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5461. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5462. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5463. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5464. for i = 0, 24 do
  5465. end
  5466. for i = 0,4,0.1 do
  5467. swait()
  5468. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5469. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5470. CreateMesh(dis,"Sphere",1,1,1)
  5471. dis.Anchored = true
  5472. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5473. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5474. coroutine.resume(coroutine.create(function()
  5475. swait(30)
  5476. dis.Transparency = 1
  5477. coroutine.resume(coroutine.create(function()
  5478. for i = 0, 19 do
  5479. swait()
  5480. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5481. end
  5482. hum.CameraOffset = vt(0,0,0)
  5483. end))
  5484. coroutine.resume(coroutine.create(function()
  5485. local eff = Instance.new("ParticleEmitter",dis)
  5486. eff.Texture = "rbxassetid://2273224484"
  5487. eff.LightEmission = 1
  5488. eff.Color = ColorSequence.new(dis.Color)
  5489. eff.Rate = 500000
  5490. eff.Lifetime = NumberRange.new(0.5,2)
  5491. 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)})
  5492. 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)})
  5493. eff.Speed = NumberRange.new(50,450)
  5494. eff.Drag = 5
  5495. eff.Rotation = NumberRange.new(-500,500)
  5496. eff.VelocitySpread = 9000
  5497. eff.RotSpeed = NumberRange.new(-50,50)
  5498. wait(0.125)
  5499. eff.Enabled = false
  5500. end))
  5501. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5502. for i = 0, 2 do
  5503. --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)
  5504. end
  5505. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5506. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5507. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5508. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5509. end))
  5510. game:GetService("Debris"):AddItem(dis, 5)
  5511. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5512. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5513. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5514. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5515. 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)
  5516. 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)
  5517. end
  5518. attack = false
  5519. end
  5520. ----------------------------------- Abilities
  5521.  
  5522. function ExtinctiveHeartbreak()
  5523. local targetted = nil
  5524. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5525. targetted = mouse.Target.Parent
  5526. end
  5527. if targetted ~= nil then
  5528. attack = true
  5529. bosschatfunc("I AM THE MIGHTIEST!!",MAINRUINCOLOR.Color,1)
  5530. CFuncs["EchoSound"].Create("rbxassetid://357202141", char, 1.5, 1,0,10,0.15,0.5,1)
  5531. CFuncs["EchoSound"].Create("rbxassetid://357202141", root, 10, 1,0,10,0.15,0.5,1)
  5532. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5533. for i = 0, 9 do
  5534. --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)
  5535. end
  5536. for i = 0, 24 do
  5537. --
  5538. end
  5539. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5540. local originalpos = root.CFrame
  5541. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5542. for i = 0, 9 do
  5543. --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)
  5544. end
  5545. for i = 0, 24 do
  5546. end
  5547. hum.WalkSpeed = 0
  5548. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5549. local radm = math.random(1,3)
  5550. if radm == 1 then
  5551. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5552. elseif radm == 2 then
  5553. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5554. elseif radm == 3 then
  5555. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5556. end
  5557. for i = 0,2,0.1 do
  5558. swait()
  5559. 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)
  5560. 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)
  5561. 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)
  5562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5563. 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)
  5564. 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)
  5565. end
  5566. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5567. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5568. for i = 0,2,0.1 do
  5569. swait()
  5570. coroutine.resume(coroutine.create(function()
  5571. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5572. for i,v in pairs(targetted:GetChildren()) do
  5573. if v:IsA("Part") or v:IsA("MeshPart") then
  5574. v.Velocity = vt(0,0,0)
  5575. end
  5576. end
  5577. end))
  5578. 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)
  5579. 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)
  5580. 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)
  5581. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5582. 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)
  5583. 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)
  5584. end
  5585. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5586. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5587. for i = 0, 1 do
  5588. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5589. end
  5590. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5591. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5592. for i = 0,4,0.1 do
  5593. swait()
  5594. coroutine.resume(coroutine.create(function()
  5595. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5596. 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)))
  5597. local at1 = Instance.new("Attachment",dis)
  5598. at1.Position = vt(-25000,0,0)
  5599. local at2 = Instance.new("Attachment",dis)
  5600. at2.Position = vt(25000,0,0)
  5601. local trl = Instance.new('Trail',dis)
  5602. trl.Attachment0 = at1
  5603. trl.FaceCamera = true
  5604. trl.Attachment1 = at2
  5605. trl.Texture = "rbxassetid://1049219073"
  5606. trl.LightEmission = 1
  5607. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5608. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5609. trl.Lifetime = 5
  5610. local bv = Instance.new("BodyVelocity")
  5611. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5612. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5613. bv.Parent = dis
  5614. game:GetService("Debris"):AddItem(dis, 5)
  5615. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5616. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5617. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5618. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5619. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5620. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5621. 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)
  5622. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5623. for i = 0, 2 do
  5624. --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"))
  5625. end
  5626. 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)
  5627. for i,v in pairs(targetted:GetChildren()) do
  5628. if v:IsA("Part") or v:IsA("MeshPart") then
  5629. v.Velocity = vt(0,0,0)
  5630. end
  5631. end
  5632. end))
  5633. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5634. 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)
  5635. 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)
  5636. 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)
  5637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5638. 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)
  5639. 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)
  5640. end
  5641. hum.CameraOffset = vt(0,0,0)
  5642. for i = 0, 49 do
  5643. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5644. 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)))
  5645. local at1 = Instance.new("Attachment",dis)
  5646. at1.Position = vt(-50000,0,0)
  5647. local at2 = Instance.new("Attachment",dis)
  5648. at2.Position = vt(50000,0,0)
  5649. local trl = Instance.new('Trail',dis)
  5650. trl.Attachment0 = at1
  5651. trl.FaceCamera = true
  5652. trl.Attachment1 = at2
  5653. trl.Texture = "rbxassetid://1049219073"
  5654. trl.LightEmission = 1
  5655. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5656. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5657. trl.Lifetime = 5
  5658. local bv = Instance.new("BodyVelocity")
  5659. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5660. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5661. bv.Parent = dis
  5662. game:GetService("Debris"):AddItem(dis, 5)
  5663. end
  5664. for i = 0, 49 do
  5665. 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)
  5666. --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"))
  5667. end
  5668. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5669. for i = 0, 1 do
  5670. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5671. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5672. end
  5673. for i = 0, 4 do
  5674. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5675. end
  5676. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5677. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5678. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5679. dmg(targetted)
  5680. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5681. for i = 0, 9 do
  5682. --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)
  5683. end
  5684. for i = 0, 24 do
  5685. end
  5686. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5687. root.CFrame = originalpos
  5688. for i = 0, 9 do
  5689. --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)
  5690. end
  5691. for i = 0, 24 do
  5692. end
  5693. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5694. attack = false
  5695. hum.WalkSpeed = storehumanoidWS
  5696. end
  5697. end
  5698.  
  5699. function CorruptionEvent()
  5700. attack = true
  5701. hum.WalkSpeed = 0
  5702. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  5703. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  5704. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  5705. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5706. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5707. local keptcolor = MAINRUINCOLOR
  5708. for i = 0,4,0.1 do
  5709. swait()
  5710. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5711. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5712. 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)
  5713. 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)
  5714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5716. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5717. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5718. end
  5719. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5720. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5721. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5722. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5723. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5724. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5725. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5726. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5727. hum.CameraOffset = vt(0,0,0)
  5728. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5729. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5730. for i = 0, 24 do
  5731. --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"))
  5732. end
  5733. local rrot = 0
  5734. coroutine.resume(coroutine.create(function()
  5735. for i = 0, 4 do
  5736. rrot = rrot + 45
  5737. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5738. xa.Anchored = true
  5739. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5740. xb.Anchored = true
  5741. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5742. xc.Anchored = true
  5743. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5744. xd.Anchored = true
  5745. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5746. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5747. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5748. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5749. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5750. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5751. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5752. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5753. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5754. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5755. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5756. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5757. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5758. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5759. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5760. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5761. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5762. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5763. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5764. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5765. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5766. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5767. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5768. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5769. 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)
  5770. 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)
  5771. 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)
  5772. 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)
  5773. 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))
  5774. 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))
  5775. 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))
  5776. 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))
  5777. game:GetService("Debris"):AddItem(xa, 5)
  5778. game:GetService("Debris"):AddItem(xb, 5)
  5779. game:GetService("Debris"):AddItem(xc, 5)
  5780. game:GetService("Debris"):AddItem(xd, 5)
  5781. coroutine.resume(coroutine.create(function()
  5782. for i = 0, 19 do
  5783. swait()
  5784. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5785. end
  5786. hum.CameraOffset = vt(0,0,0)
  5787. end))
  5788. swait(9)
  5789. end
  5790. end))
  5791. for i = 0,2,0.1 do
  5792. swait()
  5793. 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)
  5794. 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)
  5795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5797. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5798. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5799. end
  5800. attack = false
  5801. hum.WalkSpeed = storehumanoidWS
  5802. end
  5803.  
  5804. function EndGROUND()
  5805. attack = true
  5806. hum.WalkSpeed = 0
  5807. bosschatfunc("IS THAT YOUR BEST!",MAINRUINCOLOR.Color,1)
  5808. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5809. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5810. CFuncs["EchoSound"].Create("rbxassetid://357202032", char, 1.5, 1,0,10,0.15,0.5,1)
  5811. CFuncs["EchoSound"].Create("rbxassetid://357202032", root, 10, 1,0,10,0.15,0.5,1)
  5812. local keptcolor = MAINRUINCOLOR
  5813. for i = 0,4,0.1 do
  5814. swait()
  5815. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5816. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5817. --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"))
  5818. 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)
  5819. 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)
  5820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5822. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5823. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5824. end
  5825. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5826. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5827. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5828. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5829. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5830. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5831. coroutine.resume(coroutine.create(function()
  5832. local shval = 10
  5833. for i = 0, 99 do
  5834. swait()
  5835. shval = shval - 0.1
  5836. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5837. end
  5838. hum.CameraOffset = vt(0,0,0)
  5839. end))
  5840. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5841. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5842. for i = 0, 24 do
  5843. --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"))
  5844. end
  5845. local rrot = 0
  5846. local xam = 1
  5847. coroutine.resume(coroutine.create(function()
  5848. for i = 0, 14 do
  5849. --swait()
  5850. rrot = rrot + 40*xam
  5851. xam = xam + 0.25
  5852. local bonus = xam
  5853. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5854. xa.Anchored = true
  5855. xa.Color = Color3.new(0,0,0)
  5856. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5857. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5858. local xc = 0
  5859. coroutine.resume(coroutine.create(function()
  5860. for i = 0, 99 do
  5861. swait()
  5862. xc = xc + 0.01
  5863. xa.Color = Color3.new(xc,0,0)
  5864. end
  5865. xa.Transparency = 1
  5866. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5867. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5868. for i = 0, 9 do
  5869. --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"))
  5870. end
  5871. 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)
  5872. 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)
  5873. 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))
  5874. game:GetService("Debris"):AddItem(xa, 5)
  5875. coroutine.resume(coroutine.create(function()
  5876. for i = 0, 19 do
  5877. swait()
  5878. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5879. end
  5880. hum.CameraOffset = vt(0,0,0)
  5881. end))
  5882. end))
  5883. end
  5884. end))
  5885. for i = 0,2,0.1 do
  5886. swait()
  5887. 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)
  5888. 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)
  5889. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5891. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5892. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5893. end
  5894. attack = false
  5895. hum.WalkSpeed = storehumanoidWS
  5896. end
  5897.  
  5898. function HeavenlyDisk()
  5899. attack = true
  5900. hum.WalkSpeed = 2
  5901. local keptcolor = MAINRUINCOLOR
  5902. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5903. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5904. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 4, 1,0,10,0.15,0.5,1)
  5905. local radm = math.random(1,3)
  5906. if radm == 1 then
  5907. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  5908. elseif radm == 2 then
  5909. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  5910. elseif radm == 3 then
  5911. bosschatfunc("FREAKING DIE ALREADY!",MAINRUINCOLOR.Color,1)
  5912. end
  5913. for i = 0, 14 do
  5914. --
  5915. end
  5916. for i = 0,2,0.1 do
  5917. swait()
  5918. 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)
  5919. 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)
  5920. 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)
  5921. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5923. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5924. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5925. end
  5926. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5927. for i = 0,1,0.6 do
  5928. swait()
  5929. 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)
  5930. --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"))
  5931. 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)
  5932. 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)
  5933. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5935. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5936. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5937. end
  5938. for i = 0,1,0.6 do
  5939. swait()
  5940. 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)
  5941. --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"))
  5942. 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)
  5943. 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)
  5944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5945. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5947. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5948. end
  5949. for i = 0,1,0.6 do
  5950. swait()
  5951. 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)
  5952. --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"))
  5953. 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)
  5954. 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)
  5955. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5956. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5957. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5958. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5959. end
  5960. for i = 0,1,0.6 do
  5961. swait()
  5962. 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)
  5963. --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"))
  5964. 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)
  5965. 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)
  5966. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5967. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5969. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5970. end
  5971. local rot = 15
  5972. for i = 0, 2 do
  5973. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5974. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5975. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5976. CreateMesh(dis,"Sphere",10,1,10)
  5977. local at1 = Instance.new("Attachment",dis)
  5978. at1.Position = vt(-5,0,0)
  5979. local at2 = Instance.new("Attachment",dis)
  5980. at2.Position = vt(5,0,0)
  5981. local trl = Instance.new('Trail',wed)
  5982. trl.Attachment0 = at1
  5983. trl.Attachment1 = at2
  5984. trl.Texture = "rbxassetid://1049219073"
  5985. trl.LightEmission = 1
  5986. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5987. trl.Color = ColorSequence.new(dis.Color)
  5988. trl.Lifetime = 0.6
  5989. local a = Instance.new("Part",workspace)
  5990. a.Name = "Direction"
  5991. a.Anchored = true
  5992. a.BrickColor = bc("Bright red")
  5993. a.Material = "Neon"
  5994. a.Transparency = 1
  5995. a.CanCollide = false
  5996. local ray = Ray.new(
  5997. dis.CFrame.p, -- origin
  5998. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5999. )
  6000. local ignore = dis
  6001. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6002. a.BottomSurface = 10
  6003. a.TopSurface = 10
  6004. local distance = (dis.CFrame.p - position).magnitude
  6005. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6006. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6007. dis.CFrame = a.CFrame
  6008. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6009. a:Destroy()
  6010. local bv = Instance.new("BodyVelocity")
  6011. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6012. bv.velocity = dis.CFrame.lookVector*250
  6013. bv.Parent = dis
  6014. game:GetService("Debris"):AddItem(dis, 5)
  6015. local hitted = false
  6016. coroutine.resume(coroutine.create(function()
  6017. dis.Touched:connect(function(hit)
  6018. if hitted == false and hit.Parent ~= char then
  6019. hitted = true
  6020. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6021. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6022. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6023. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6024. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6025. coroutine.resume(coroutine.create(function()
  6026. for i = 0, 9 do
  6027. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6028. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6029. local at1 = Instance.new("Attachment",disr)
  6030. at1.Position = vt(-2,0,0)
  6031. local at2 = Instance.new("Attachment",disr)
  6032. at2.Position = vt(2,0,0)
  6033. local trl = Instance.new('Trail',disr)
  6034. trl.Attachment0 = at1
  6035. trl.FaceCamera = true
  6036. trl.Attachment1 = at2
  6037. trl.Texture = "rbxassetid://2342682798"
  6038. trl.LightEmission = 1
  6039. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6040. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6041. trl.Lifetime = 0.5
  6042. local bv = Instance.new("BodyVelocity")
  6043. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6044. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6045. bv.Parent = disr
  6046. local val = 0
  6047. coroutine.resume(coroutine.create(function()
  6048. swait(30)
  6049. for i = 0, 9 do
  6050. swait()
  6051. val = val + 0.1
  6052. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6053. end
  6054. game:GetService("Debris"):AddItem(disr, 3)
  6055. end))
  6056. end
  6057. local eff = Instance.new("ParticleEmitter",dis)
  6058. eff.Texture = "rbxassetid://2273224484"
  6059. eff.LightEmission = 1
  6060. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6061. eff.Rate = 500000
  6062. eff.Lifetime = NumberRange.new(0.5,2)
  6063. 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)})
  6064. 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)})
  6065. eff.Speed = NumberRange.new(20,250)
  6066. eff.Drag = 5
  6067. eff.Rotation = NumberRange.new(-500,500)
  6068. eff.VelocitySpread = 9000
  6069. eff.RotSpeed = NumberRange.new(-50,50)
  6070. wait(0.25)
  6071. eff.Enabled = false
  6072. end))
  6073. for i = 0, 9 do
  6074. --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"))
  6075. end
  6076. for i = 0, 19 do
  6077. --
  6078. end
  6079. coroutine.resume(coroutine.create(function()
  6080. for i = 0, 19 do
  6081. swait()
  6082. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6083. end
  6084. hum.CameraOffset = vt(0,0,0)
  6085. end))
  6086. dis.Anchored = true
  6087. dis.Transparency = 1
  6088. wait(8)
  6089. dis:Destroy()
  6090. end
  6091. end)
  6092. end))
  6093. rot = rot - 15
  6094. end
  6095. for i = 0,2,0.1 do
  6096. swait()
  6097. 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)
  6098. 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)
  6099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6101. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6102. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6103. end
  6104. attack = false
  6105. hum.WalkSpeed = storehumanoidWS
  6106. end
  6107.  
  6108. function RapidBurst()
  6109. attack = true
  6110. hum.WalkSpeed = 0
  6111. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6112. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6113. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 4, 1,0,10,0.15,0.5,1)
  6114. bosschatfunc("DIE!!",MAINRUINCOLOR.Color,2)
  6115. local keptcolor = MAINRUINCOLOR
  6116. for i = 0,8,0.1 do
  6117. swait()
  6118. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6119. --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())
  6120. 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)
  6121. 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)
  6122. 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)
  6123. 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)
  6124. 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)
  6125. 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)
  6126. 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)
  6127. end
  6128. for i = 0, 99 do
  6129. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6130. 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)))
  6131. local at1 = Instance.new("Attachment",dis)
  6132. at1.Position = vt(-25000,0,0)
  6133. local at2 = Instance.new("Attachment",dis)
  6134. at2.Position = vt(25000,0,0)
  6135. local trl = Instance.new('Trail',dis)
  6136. trl.Attachment0 = at1
  6137. trl.FaceCamera = true
  6138. trl.Attachment1 = at2
  6139. trl.Texture = "rbxassetid://1049219073"
  6140. trl.LightEmission = 1
  6141. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6142. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6143. trl.Lifetime = 5
  6144. local bv = Instance.new("BodyVelocity")
  6145. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6146. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6147. bv.Parent = dis
  6148. game:GetService("Debris"):AddItem(dis, 5)
  6149. end
  6150. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6151. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6152. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6153. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6154. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6155. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6156. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6157. CFuncs["Sound"].Create("rbxassetid://2362924591", root, 10,1)
  6158. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6159. CFuncs["Sound"].Create("rbxassetid://1475585844", char, 5,1)
  6160. hum.CameraOffset = vt(0,0,0)
  6161. for i = 0, 24 do
  6162. --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())
  6163. end
  6164. local distam = 0
  6165. coroutine.resume(coroutine.create(function()
  6166. for i = 0, 99 do
  6167. wait()
  6168. distam = distam + 1
  6169. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6170. xa.Anchored = true
  6171. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6172. game:GetService("Debris"):AddItem(xa, 5)
  6173. for i = 0, 4 do
  6174. --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())
  6175. end
  6176. coroutine.resume(coroutine.create(function()
  6177. local eff = Instance.new("ParticleEmitter",xa)
  6178. eff.Texture = "rbxassetid://2273224484"
  6179. eff.LightEmission = 1
  6180. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6181. eff.Rate = 500000
  6182. eff.Lifetime = NumberRange.new(1,3)
  6183. 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)})
  6184. 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)})
  6185. eff.Speed = NumberRange.new(50,500)
  6186. eff.Drag = 5
  6187. eff.Rotation = NumberRange.new(-500,500)
  6188. eff.VelocitySpread = 9000
  6189. eff.RotSpeed = NumberRange.new(-50,50)
  6190. wait(0.25)
  6191. eff.Enabled = false
  6192. end))
  6193. coroutine.resume(coroutine.create(function()
  6194. for i = 0, 19 do
  6195. swait()
  6196. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6197. end
  6198. hum.CameraOffset = vt(0,0,0)
  6199. end))
  6200. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6201. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6202. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6203. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6204. end
  6205. end))
  6206. attack = false
  6207. hum.WalkSpeed = storehumanoidWS
  6208. end
  6209.  
  6210.  
  6211. function FallenOrbs()
  6212. attack = true
  6213. hum.WalkSpeed = 2
  6214. local keptcolor = MAINRUINCOLOR
  6215. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6216. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6217. local radm = math.random(1,3)
  6218. if radm == 1 then
  6219. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6220. elseif radm == 2 then
  6221. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  6222. elseif radm == 3 then
  6223. bosschatfunc("FREAKING DIE ALREADY!!",MAINRUINCOLOR.Color,1)
  6224. end
  6225. coroutine.resume(coroutine.create(function()
  6226. for i = 0, 29 do
  6227. swait(2)
  6228. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6229. dis.Anchored = true
  6230. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6231. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6232. CreateMesh(dis,"Sphere",2,2,2)
  6233. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6234. --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"))
  6235. coroutine.resume(coroutine.create(function()
  6236. wait(0.5)
  6237. dis.Anchored = false
  6238. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6239. local at1 = Instance.new("Attachment",dis)
  6240. at1.Position = vt(-1,0,0)
  6241. local at2 = Instance.new("Attachment",dis)
  6242. at2.Position = vt(1,0,0)
  6243. local trl = Instance.new('Trail',dis)
  6244. trl.Attachment0 = at1
  6245. trl.FaceCamera = true
  6246. trl.Attachment1 = at2
  6247. trl.Texture = "rbxassetid://1049219073"
  6248. trl.LightEmission = 1
  6249. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6250. trl.Color = ColorSequence.new(dis.Color)
  6251. trl.Lifetime = 0.6
  6252. local a = Instance.new("Part",workspace)
  6253. a.Name = "Direction"
  6254. a.Anchored = true
  6255. a.BrickColor = bc("Bright red")
  6256. a.Material = "Neon"
  6257. a.Transparency = 1
  6258. a.CanCollide = false
  6259. local ray = Ray.new(
  6260. dis.CFrame.p, -- origin
  6261. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6262. )
  6263. local ignore = dis
  6264. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6265. a.BottomSurface = 10
  6266. a.TopSurface = 10
  6267. local distance = (dis.CFrame.p - position).magnitude
  6268. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6269. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6270. dis.CFrame = a.CFrame
  6271. a:Destroy()
  6272. local bv = Instance.new("BodyVelocity")
  6273. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6274. bv.velocity = dis.CFrame.lookVector*500
  6275. bv.Parent = dis
  6276. game:GetService("Debris"):AddItem(dis, 5)
  6277. local hitted = false
  6278. coroutine.resume(coroutine.create(function()
  6279. dis.Touched:connect(function(hit)
  6280. if hitted == false and hit.Parent ~= char then
  6281. hitted = true
  6282. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6283. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6284. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6285. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6286. coroutine.resume(coroutine.create(function()
  6287. for i = 0, 4 do
  6288. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6289. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6290. local at1 = Instance.new("Attachment",disr)
  6291. at1.Position = vt(-10,0,0)
  6292. local at2 = Instance.new("Attachment",disr)
  6293. at2.Position = vt(10,0,0)
  6294. local trl = Instance.new('Trail',disr)
  6295. trl.Attachment0 = at1
  6296. trl.FaceCamera = true
  6297. trl.Attachment1 = at2
  6298. trl.Texture = "rbxassetid://2342682798"
  6299. trl.LightEmission = 1
  6300. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6301. trl.Color = ColorSequence.new(disr.Color)
  6302. trl.Lifetime = 0.5
  6303. local bv = Instance.new("BodyVelocity")
  6304. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6305. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6306. bv.Parent = disr
  6307. local val = 0
  6308. coroutine.resume(coroutine.create(function()
  6309. swait(30)
  6310. for i = 0, 9 do
  6311. swait()
  6312. val = val + 0.1
  6313. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6314. end
  6315. game:GetService("Debris"):AddItem(disr, 3)
  6316. end))
  6317. end
  6318. local eff = Instance.new("ParticleEmitter",dis)
  6319. eff.Texture = "rbxassetid://2273224484"
  6320. eff.LightEmission = 1
  6321. eff.Color = ColorSequence.new(dis.Color)
  6322. eff.Rate = 500000
  6323. eff.Lifetime = NumberRange.new(0.5,2)
  6324. 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)})
  6325. 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)})
  6326. eff.Speed = NumberRange.new(20,250)
  6327. eff.Drag = 5
  6328. eff.Rotation = NumberRange.new(-500,500)
  6329. eff.VelocitySpread = 9000
  6330. eff.RotSpeed = NumberRange.new(-50,50)
  6331. wait(0.5)
  6332. eff.Enabled = false
  6333. end))
  6334. for i = 0, 4 do
  6335. --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"))
  6336. end
  6337. coroutine.resume(coroutine.create(function()
  6338. for i = 0, 19 do
  6339. swait()
  6340. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6341. end
  6342. hum.CameraOffset = vt(0,0,0)
  6343. end))
  6344. dis.Anchored = true
  6345. dis.Transparency = 1
  6346. wait(8)
  6347. dis:Destroy()
  6348. end
  6349. end)
  6350. end))
  6351. end))
  6352. end
  6353. end))
  6354. for i = 0,9,0.1 do
  6355. swait()
  6356. 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)
  6357. 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)
  6358. 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)
  6359. 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)
  6360. 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)
  6361. 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)
  6362. 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)
  6363. end
  6364. attack = false
  6365. hum.WalkSpeed = storehumanoidWS
  6366. end
  6367.  
  6368. function Taunt()
  6369. ATTACK = true
  6370. local LAUGH = nil
  6371. coroutine.resume(coroutine.create(function()
  6372. repeat
  6373. Swait()
  6374. 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)
  6375. 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)
  6376. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  6377. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6378. 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)
  6379. 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)
  6380. until LAUGH ~= nil
  6381. repeat
  6382. Swait()
  6383. LAUGH.Parent = Head
  6384. 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)
  6385. 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)
  6386. 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)
  6387. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6388. 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)
  6389. 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)
  6390. until LAUGH.Playing == false
  6391. ATTACK = false
  6392. end))
  6393. wait(0.1)
  6394. LAUGH = CreateSound(300208779, Head, 10, 1, false)
  6395. sick:Resume()
  6396. end
  6397.  
  6398. function Shell()
  6399. ATTACK = true
  6400. Rooted = false
  6401. local GYRO = IT("BodyGyro",RootPart)
  6402. GYRO.D = 750
  6403. GYRO.P = 20000
  6404. GYRO.MaxTorque = VT(0,40000000,0)
  6405. for i=0, 1, 0.1 / Animation_Speed do
  6406. Swait()
  6407. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  6408. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6410. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6411. 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)
  6412. 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)
  6413. 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)
  6414. end
  6415. GYRO:remove()
  6416. CreateSound(696483710, Gun, 5, 1, false)
  6417. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  6418. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  6419. 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})
  6420. for i=0, 0.3, 0.1 / Animation_Speed do
  6421. Swait()
  6422. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6425. 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)
  6426. 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)
  6427. 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)
  6428. end
  6429. ATTACK = false
  6430. Rooted = false
  6431. end
  6432.  
  6433. function EquinoxOrbs()
  6434. hum.WalkSpeed = 0
  6435. attack = true
  6436. for i = 0,1,0.1 do
  6437. swait()
  6438. 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)
  6439. 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)
  6440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6443. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6444. end
  6445. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6446. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6447. for i = 0, 24 do
  6448. --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"))
  6449. end
  6450. bosschatfunc("TAKE THIS!",MAINRUINCOLOR.Color,1)
  6451. CFuncs["EchoSound"].Create("rbxassetid://313205954", char, 4, 1,0,10,0.15,0.5,1)
  6452. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6453. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6454. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6455. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6456. for i = 0,4,0.1 do
  6457. swait()
  6458. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6459. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6460. CreateMesh(dis,"Sphere",1,1,1)
  6461. dis.Anchored = true
  6462. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6463. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6464. CreateMesh(dis2,"Sphere",1,1,1)
  6465. dis2.Anchored = true
  6466. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6467. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6468. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6469. coroutine.resume(coroutine.create(function()
  6470. swait(60)
  6471. dis.Transparency = 1
  6472. dis2.Transparency = 1
  6473. coroutine.resume(coroutine.create(function()
  6474. for i = 0, 19 do
  6475. swait()
  6476. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6477. end
  6478. hum.CameraOffset = vt(0,0,0)
  6479. end))
  6480. coroutine.resume(coroutine.create(function()
  6481. local eff = Instance.new("ParticleEmitter",dis)
  6482. eff.Texture = "rbxassetid://2273224484"
  6483. eff.LightEmission = 1
  6484. eff.Color = ColorSequence.new(dis.Color)
  6485. eff.Rate = 500000
  6486. eff.Lifetime = NumberRange.new(0.5,2)
  6487. 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)})
  6488. 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)})
  6489. eff.Speed = NumberRange.new(50,450)
  6490. eff.Drag = 5
  6491. eff.Rotation = NumberRange.new(-500,500)
  6492. eff.VelocitySpread = 9000
  6493. eff.RotSpeed = NumberRange.new(-50,50)
  6494. local eff2 = eff:Clone()
  6495. eff2.Parent = dis2
  6496. eff2.LightEmission = 0
  6497. eff2.Color = ColorSequence.new(dis2.Color)
  6498. wait(0.25)
  6499. eff.Enabled = false
  6500. eff2.Enabled = false
  6501. end))
  6502. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6503. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6504. CFuncs["EchoSound"].Create("rbxassetid://165970126", char, 4, 1,0,10,0.15,0.5,1)
  6505. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6506. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6507. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6508. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6509. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6510. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6511. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6512. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6513. end))
  6514. game:GetService("Debris"):AddItem(dis, 5)
  6515. game:GetService("Debris"):AddItem(dis2, 5)
  6516. 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)
  6517. 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)
  6518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6520. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6521. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6522. end
  6523. attack = false
  6524. hum.WalkSpeed = storehumanoidWS
  6525. end
  6526. function FallenDEMISE()
  6527. attack = true
  6528. hum.WalkSpeed = 0
  6529. local keptcolor = MAINRUINCOLOR
  6530. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6531. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6532. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6533. for i = 0, 15, 0.1 do
  6534. swait()
  6535. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6536. 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)))
  6537. local at1 = Instance.new("Attachment",dis)
  6538. at1.Position = vt(-25000,0,0)
  6539. local at2 = Instance.new("Attachment",dis)
  6540. at2.Position = vt(25000,0,0)
  6541. local trl = Instance.new('Trail',dis)
  6542. trl.Attachment0 = at1
  6543. trl.FaceCamera = true
  6544. trl.Attachment1 = at2
  6545. trl.Texture = "rbxassetid://1049219073"
  6546. trl.LightEmission = 1
  6547. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6548. trl.Color = ColorSequence.new(dis.Color)
  6549. trl.Lifetime = 5
  6550. local bv = Instance.new("BodyVelocity")
  6551. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6552. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6553. bv.Parent = dis
  6554. game:GetService("Debris"):AddItem(dis, 1)
  6555. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6556. --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"))
  6557. --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"))
  6558. 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)
  6559. 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)
  6560. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6561. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6562. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6563. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6564. end
  6565. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6566. for i = 0, 30, 0.1 do
  6567. swait()
  6568. coroutine.resume(coroutine.create(function()
  6569. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6570. if v:FindFirstChild('Head') then
  6571. dmg(v)
  6572. end
  6573. end
  6574. end))
  6575. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6576. 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)))
  6577. local at1 = Instance.new("Attachment",dis)
  6578. at1.Position = vt(-50000,0,0)
  6579. local at2 = Instance.new("Attachment",dis)
  6580. at2.Position = vt(50000,0,0)
  6581. local trl = Instance.new('Trail',dis)
  6582. trl.Attachment0 = at1
  6583. trl.FaceCamera = true
  6584. trl.Attachment1 = at2
  6585. trl.Texture = "rbxassetid://1049219073"
  6586. trl.LightEmission = 1
  6587. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6588. trl.Color = ColorSequence.new(dis.Color)
  6589. trl.Lifetime = 10
  6590. local bv = Instance.new("BodyVelocity")
  6591. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6592. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6593. bv.Parent = dis
  6594. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6595. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6596. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6597. --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"))
  6598. --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"))
  6599. --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"))
  6600. --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"))
  6601. for i = 0, 2 do
  6602. --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)
  6603. end
  6604. 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)
  6605. 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)
  6606. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6608. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6609. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6610. end
  6611. attack = false
  6612. hum.WalkSpeed = storehumanoidWS
  6613. end
  6614. function NeptuniaWings()
  6615. local mainpart = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
  6616. 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))
  6617.  
  6618. local wng1a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6619. CreateMesh(wng1a,"Wedge",0.1,4,4)
  6620. 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))
  6621. local wng2a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6622. CreateMesh(wng2a,"Wedge",0.1,4,4)
  6623. 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))
  6624. local wng1b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6625. CreateMesh(wng1b,"Wedge",0.1,1.5,3)
  6626. 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))
  6627. local wng2b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6628. CreateMesh(wng2b,"Wedge",0.1,1.5,3)
  6629. 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))
  6630. end
  6631.  
  6632. function MagicMissiles()
  6633. ATTACK = true
  6634. Rooted = true
  6635. local SELECTING = true
  6636. local SPOTS = {}
  6637. coroutine.resume(coroutine.create(function()
  6638. local LOOP = 0
  6639. repeat
  6640. LOOP = LOOP + 1
  6641. Swait()
  6642. if LOOP >= 10 then
  6643. LOOP = 0
  6644. for i = 1, #SPOTS do
  6645. if SPOTS[i] ~= nil then
  6646. 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})
  6647. 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})
  6648. end
  6649. end
  6650. end
  6651. 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)
  6652. 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)
  6653. 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)
  6654. 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)
  6655. 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)
  6656. 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)
  6657. until SELECTING == false
  6658. Rooted = false
  6659. repeat
  6660. LOOP = LOOP + 1
  6661. Swait()
  6662. if LOOP >= 10 then
  6663. LOOP = 0
  6664. for i = 1, #SPOTS do
  6665. if SPOTS[i] ~= nil then
  6666. 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})
  6667. 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})
  6668. end
  6669. end
  6670. end
  6671. 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)
  6672. 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)
  6673. 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)
  6674. 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)
  6675. 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)
  6676. 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)
  6677. until ATTACK == false
  6678. end))
  6679. repeat
  6680. repeat Swait() until HOLD == true
  6681. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  6682. if DIST > 65 then
  6683. DIST = 65
  6684. end
  6685. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  6686. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  6687. if HITFLOOR ~= nil then
  6688. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  6689. 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})
  6690. 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})
  6691. end
  6692. repeat Swait() until HOLD == false
  6693. until #SPOTS == 5
  6694. SELECTING = false
  6695. for i = 1, #SPOTS do
  6696. if SPOTS[i] ~= nil then
  6697. local POS = SPOTS[i]
  6698. coroutine.resume(coroutine.create(function()
  6699. local MISSILE = IT("Model",Effects)
  6700. MISSILE.Name = "Missile"
  6701. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  6702. MakeForm(BASEPART,"Cyl")
  6703. MISSILE.PrimaryPart = BASEPART
  6704. BASEPART.CFrame = POS*CF(0,-30*3,0)
  6705. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  6706. MakeForm(HEAD,"Ball")
  6707. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  6708. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  6709. MakeForm(TAIL,"Cyl")
  6710. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  6711. for i = 1, 10 do
  6712. Swait()
  6713. for _, c in pairs(MISSILE:GetChildren()) do
  6714. if c.ClassName == "Part" then
  6715. c.Transparency = c.Transparency - 1/10
  6716. end
  6717. end
  6718. end
  6719. for i = 1, 15*1.5 do
  6720. Swait()
  6721. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  6722. end
  6723. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  6724. 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})
  6725. 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})
  6726. 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})
  6727. 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})
  6728. MISSILE:remove()
  6729. end))
  6730. end
  6731. end
  6732. wait(0.6)
  6733. ATTACK = false
  6734. Rooted = false
  6735. end
  6736. function ExplosiveLightBall()
  6737. if basiccooldown >= 5 then
  6738. local spart = Instance.new("Part",workspace)
  6739. local msh = Instance.new("SpecialMesh",spart)
  6740. msh.MeshType = "Sphere"
  6741. local sa = Instance.new("Sound",hed)
  6742. sa.SoundId = "rbxassetid://203691467"
  6743. sa.Pitch = 0.775
  6744. sa.Volume = 1
  6745. sa.Looped = false
  6746. local sa1 = Instance.new("Sound",hed)
  6747. sa1.SoundId = "rbxassetid://200633529"
  6748. sa1.Pitch = 0.75
  6749. sa1.Volume = 1
  6750. sa1.Looped = false
  6751. sa1:Play()
  6752. local sans1 = Instance.new("Sound",hed)
  6753. sans1.SoundId = "rbxassetid://200633529"
  6754. sans1.Pitch = 0.725
  6755. sans1.Volume = 1
  6756. sans1.Looped = false
  6757. sans1:Play()
  6758. spart.Size = vt(1,1,1)
  6759. spart.BrickColor = BrickColor.new("Bright violet")
  6760. spart.Material = "Neon"
  6761. spart.Transparency = 1
  6762. spart.Anchored = true
  6763. spart.CanCollide = false
  6764. spart.Position = hed.Position + vt(0,20,0)
  6765. local value = 2.5
  6766. for i = 0, 24 do
  6767. spart.Transparency = spart.Transparency - 0.05
  6768. value = value - 0.05
  6769. msh.Scale = msh.Scale + vt(value,value,value)
  6770. wait()
  6771. end
  6772. sa:Play()
  6773. spart.Anchored = false
  6774. local bv = Instance.new("BodyVelocity")
  6775. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6776. bv.velocity = mouse.Hit.lookVector *125
  6777. bv.Parent = spart
  6778. wait(0.1)
  6779. pewdiepie=spart.Touched:connect(function(hit) Explode(20,spart) end)
  6780. end
  6781.  
  6782. function Chaosbegone()
  6783. attack = true
  6784. bosschatfunc("SCCUMB TO THE INSANITY...",MAINRUINCOLOR.Color,3)
  6785. for i = 0, 10, 0.1 do
  6786. swait()
  6787. 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)
  6788. 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)
  6789. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6790. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6791. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  6792. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  6793. end
  6794. bosschatfunc("LEAVE THE DEAD WHERE THEY FALL!",MAINRUINCOLOR.Color,3)
  6795. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6796. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  6797. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  6798. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  6799. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  6800. CameraEnshaking(5, 25)
  6801. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  6802. if v:FindFirstChild("Head") then
  6803. dmg(v)
  6804. end
  6805. end
  6806. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  6807. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  6808. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  6809. for i = 0, 3, 0.1 do
  6810. swait()
  6811. 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)
  6812. 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)
  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. 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)
  6816. 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)
  6817. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6818. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  6819. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  6820. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  6821. end
  6822. attack = false
  6823. end
  6824. end
  6825. -------------------------------------
  6826.  
  6827. Humanoid.Animator.Parent = nil
  6828.  
  6829. -------------------------------------
  6830.  
  6831. local attacktype = 1
  6832. mouse.Button1Down:connect(function()
  6833. if attack == false and attacktype == 1 then
  6834. attacktype = 2
  6835. attackone()
  6836. elseif attack == false and attacktype == 2 then
  6837. attacktype = 3
  6838. attacktwo()
  6839. elseif attack == false and attacktype == 3 then
  6840. attacktype = 1
  6841. attackthree()
  6842. elseif attack == false and attacktype == 4 then
  6843. attacktype = 1
  6844. --attackfour()
  6845. end
  6846. end)
  6847. mouse.KeyDown:connect(function(k)
  6848. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6849. --normalmog() ---Disabled due to crashing... only in VSB
  6850. ModeOfGlitch = 1
  6851. storehumanoidWS = 16
  6852. hum.WalkSpeed = 16
  6853. rainbowmode = false
  6854. chaosmode = false
  6855. newTheme("rbxassetid://550578451",48.6,1,1.25)
  6856. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6857. MAINRUINCOLOR = BrickColor.new("Really red")
  6858. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6859. end
  6860. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6861. ModeOfGlitch = 2
  6862. storehumanoidWS = 16
  6863. hum.WalkSpeed = 16
  6864. rainbowmode = false
  6865. chaosmode = false
  6866. RecolorTextAndRename("FROST HYPERION",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6867. newTheme("rbxassetid://1579308042",0,1,1.25)
  6868. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6869. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6870. end
  6871. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6872. ModeOfGlitch = 3
  6873. storehumanoidWS = 16
  6874. hum.WalkSpeed = 16
  6875. rainbowmode = false
  6876. chaosmode = false
  6877. RecolorTextAndRename("VIRUS HYPERION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6878. newTheme("rbxassetid://1533368028",58.15,0.98,1.25)
  6879. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6880. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6881. end
  6882. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6883. ModeOfGlitch = 4
  6884. storehumanoidWS = 16
  6885. hum.WalkSpeed = 16
  6886. rainbowmode = false
  6887. chaosmode = true
  6888. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6889. newTheme("rbxassetid://777625426",0,1.01,1.25)
  6890. MAINRUINCOLOR = BrickColor.new("Really black")
  6891. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6892. end
  6893. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6894. ModeOfGlitch = 5
  6895. storehumanoidWS = 16
  6896. hum.WalkSpeed = 16
  6897. rainbowmode = false
  6898. chaosmode = false
  6899. RecolorTextAndRename("ERROR HYPERION",Color3.new(0,0,0),Color3.new(0,4,0),"SciFi")
  6900. newTheme("rbxassetid://870457266",0,1,1)
  6901. MAINRUINCOLOR = BrickColor.new("White")
  6902. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6903. end
  6904. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6905. ModeOfGlitch = 6
  6906. storehumanoidWS = 100
  6907. hum.WalkSpeed = 100
  6908. rainbowmode = false
  6909. chaosmode = false
  6910. RecolorTextAndRename("NEPTUNE",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6911. newTheme("rbxassetid://381991270",0,1,1)
  6912. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6913. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6914. end
  6915. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6916. ModeOfGlitch = 8
  6917. storehumanoidWS = 140
  6918. hum.WalkSpeed = 140
  6919. rainbowmode = false
  6920. chaosmode = false
  6921. RecolorTextAndRename("DESTINY HYPERION",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6922. newTheme("rbxassetid://1585109345",0,1.01,1.25)
  6923. MAINRUINCOLOR = BrickColor.new("Alder")
  6924. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6925. end
  6926. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6927. ModeOfGlitch = 9
  6928. storehumanoidWS = 150
  6929. hum.WalkSpeed = 150
  6930. rainbowmode = false
  6931. chaosmode = false
  6932. RecolorTextAndRename("BRUTAL HYPERION",Color3.new(5,0,0),Color3.new(0,0,0),"Arcade")
  6933. newTheme("rbxassetid://838051647",0,1.01,2)
  6934. MAINRUINCOLOR = BrickColor.new("Alder")
  6935. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6936. end
  6937. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  6938. ModeOfGlitch = 10
  6939. storehumanoidWS = 75
  6940. hum.WalkSpeed = 75
  6941. rainbowmode = false
  6942. chaosmode = false
  6943. RecolorTextAndRename("EVIL HYPERION",Color3.new(0,0,0),Color3.new(5,0,0),"Arcade")
  6944. newTheme("rbxassetid://1296518458",0,1,1)
  6945. MAINRUINCOLOR = BrickColor.new("Crimson")
  6946. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6947. end
  6948. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6949. ModeOfGlitch = 8889
  6950. storehumanoidWS = 180
  6951. hum.WalkSpeed = 180
  6952. rainbowmode = false
  6953. chaosmode = false
  6954. RecolorTextAndRename("CALAMITY HYPERION",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6955. newTheme("rbxassetid://1618176509",0,1,1)
  6956. MAINRUINCOLOR = BrickColor.new("Lilac")
  6957. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6958. end
  6959. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6960. ModeOfGlitch = 55469696922
  6961. storehumanoidWS = 275
  6962. hum.WalkSpeed = 275
  6963. rainbowmode = false
  6964. chaosmode = false
  6965. RecolorTextAndRename("COSMIC HYPERION",Color3.new(0.25,0,0.1),Color3.new(0.25,0,0.1),"Arcade")
  6966. newTheme("rbxassetid://1524504025",0,1.005,1)
  6967. MAINRUINCOLOR = BrickColor.new("Alder")
  6968. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6969. end
  6970. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6971. ModeOfGlitch = 4367677813
  6972. storehumanoidWS = 225
  6973. hum.WalkSpeed = 225
  6974. rainbowmode = false
  6975. chaosmode = false
  6976. RecolorTextAndRename("BRIGHTNESS HYPERION",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6977. newTheme("rbxassetid://1126561168",0,1.01,1.25)
  6978. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6979. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6980. end
  6981. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6982. ModeOfGlitch = 9999999921111
  6983. storehumanoidWS = 300
  6984. hum.WalkSpeed = 300
  6985. rainbowmode = false
  6986. chaosmode = false
  6987. RecolorTextAndRename("OMEGA HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6988. newTheme("rbxassetid://2024346699",0,1.01,1.25)
  6989. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6990. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6991. end
  6992. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6993. ModeOfGlitch = 999999999556
  6994. storehumanoidWS = 500
  6995. hum.WalkSpeed = 500
  6996. rainbowmode = false
  6997. chaosmode = false
  6998. RecolorTextAndRename("INSANE HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6999. newTheme("rbxassetid://601578010",0,1,1)
  7000. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7001. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7002. end
  7003. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7004. ModeOfGlitch = 1264532489
  7005. storehumanoidWS = 250
  7006. hum.WalkSpeed = 250
  7007. rainbowmode = false
  7008. chaosmode = false
  7009. RecolorTextAndRename("CYBER HYPERION",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7010. newTheme("rbxassetid://929330882",0,1,1)
  7011. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7012. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7013. end
  7014. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 7536 then
  7015. ModeOfGlitch = 7536
  7016. storehumanoidWS = 250
  7017. hum.WalkSpeed = 250
  7018. rainbowmode = false
  7019. chaosmode = false
  7020. RecolorTextAndRename("PURPLE HEART",Color3.new(0,0,0),Color3.new(0.35,0,1),"Arcade")
  7021. newTheme("rbxassetid://851403816",0,1,1)
  7022. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  7023. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7024. end
  7025. if k == "l" and mutedtog == false then
  7026. mutedtog = true
  7027. kan.Volume = 0
  7028. elseif k == "l" and mutedtog == true then
  7029. mutedtog = false
  7030. kan.Volume = 1.25
  7031. end
  7032. if k == "p" and toggleTag == false then
  7033. toggleTag = true
  7034. modet.TextTransparency = 0
  7035. modet.TextStrokeTransparency = 0
  7036. elseif k == "p" and toggleTag == true then
  7037. toggleTag = false
  7038. modet.TextTransparency = 1
  7039. modet.TextStrokeTransparency = 1
  7040. end
  7041. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7042. ExtinctiveHeartbreak()
  7043. elseif k == "c" and attack == false and ModeOfGlitch == 1 then
  7044. FallenOrbs()
  7045. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7046. HeavenlyDisk()
  7047. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  7048. PureOrb()
  7049. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7050. CorruptionEvent()
  7051. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  7052. MagicMissiles()
  7053. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  7054. CorruptBlink()
  7055. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7056. ChaosEND()
  7057. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7058. attacktwo()
  7059. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7060. ChaosGroundStrike()
  7061. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  7062. HeavenlyDisk()
  7063. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  7064. FallenOrbs()
  7065. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7066. RapidBurst()
  7067. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  7068. attackone()
  7069. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  7070. Chaosbegone()
  7071. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7072. DivineLights()
  7073. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7074. EquinoxOrbs()
  7075. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  7076. yinyangi()
  7077. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7078. Taunt()
  7079. elseif k == "x" and attack == false and ModeOfGlitch == 10 then
  7080. Shell()
  7081. elseif k == "v" and attack == false and ModeOfGlitch == 10 then
  7082. ExplosiveLightBall()
  7083. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7084. attackone()
  7085. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  7086. UniversalCollapse()
  7087. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7088. FallenOrbs()
  7089. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  7090. FallenOrbs()
  7091. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7092. EquinoxOrbs()
  7093. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7094. EndGROUND()
  7095. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  7096. StarDivision()
  7097. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7098. FallenOrbs()
  7099. end
  7100. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7101. FallenDEMISE()
  7102. end
  7103. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7104. EndGROUND()
  7105. end
  7106. end)
  7107.  
  7108. --[[coroutine.resume(coroutine.create(function()
  7109. while true do
  7110. swait(2)
  7111. if chaosmode == true then
  7112. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7113. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7114. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7115. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7116. for i, v in pairs(mw1:GetChildren()) do
  7117. if v:IsA("Part") then
  7118. v.Transparency = 0.75
  7119. v.BrickColor = BrickColor.random()
  7120. v.Material = "Neon"
  7121. end
  7122. end
  7123. for i, v in pairs(m2:GetChildren()) do
  7124. if v:IsA("Part") then
  7125. v.BrickColor = BrickColor.random()
  7126. v.Material = "Neon"
  7127. end
  7128. end
  7129. end
  7130. end
  7131. end))]]--
  7132. Humanoid.Name = "STARGLITCHER"
  7133. Humanoid.MaxHealth = math.huge
  7134. Humanoid.Health = math.huge
  7135. Instance.new("ForceField",char).Visible = false
  7136.  
  7137. local bguis = Instance.new("BillboardGui",tors)
  7138. bguis.Size = UDim2.new(25, 0, 25, 0)
  7139. local imgca = Instance.new("ImageLabel",bguis)
  7140. imgca.BackgroundTransparency = 1
  7141. imgca.ImageTransparency = 1
  7142. imgca.Size = UDim2.new(1,0,1,0)
  7143. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7144. imgca.ImageColor3 = Color3.new(0,0,0)
  7145.  
  7146. idleanim=.4
  7147. while true do
  7148. if mutedtog == false then
  7149. kan.Volume = currentVol
  7150. elseif mutedtog == true then
  7151. kan.Volume = 0
  7152. end
  7153. kan.PlaybackSpeed = currentPitch
  7154. kan.Pitch = currentPitch
  7155. kan.SoundId = currentThemePlaying
  7156. kan.Looped = true
  7157. kan.Parent = char
  7158. kan:Resume()
  7159. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7160. imgca.ImageTransparency = 1
  7161. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7162. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7163. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7164. end
  7165. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7166. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7167. coroutine.resume(coroutine.create(function()
  7168. if chaosmode == true then
  7169. for i, v in pairs(mw1:GetChildren()) do
  7170. if v:IsA("Part") then
  7171. v.Transparency = 0
  7172. v.BrickColor = BrickColor.random()
  7173. v.Material = "Neon"
  7174. end
  7175. end
  7176. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7177. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7178. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7179. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7180. end
  7181. end))
  7182. if chaosmode == false then
  7183. modet.Position = UDim2.new(0,0,0,0)
  7184. modet.Rotation = -5 * math.cos(sine / 32)
  7185. techc.Rotation = techc.Rotation + 1
  7186. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7187. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7188. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7189. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7190. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7191. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7192. else
  7193. techc.Rotation = techc.Rotation + 1
  7194. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7195. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7196. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7197. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7198. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7199. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7200. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7201. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7202. end
  7203. CameraManager()
  7204. swait()
  7205. 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)
  7206. 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)
  7207. 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)
  7208. 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)
  7209. 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)
  7210. 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)
  7211. 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)
  7212. 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)
  7213. 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)
  7214. 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)
  7215. 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)
  7216. 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)
  7217. sine = sine + change
  7218. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7219. local velderp=RootPart.Velocity.y
  7220. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7221. if equipped==true or equipped==false then
  7222. if attack==false then
  7223. idle=idle+1
  7224. else
  7225. idle=0
  7226. end
  7227. if idle>=500 then
  7228. if attack==false then
  7229. --Sheath()
  7230. end
  7231. end
  7232. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7233. Anim="Jump"
  7234. if attack==false then
  7235. 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)
  7236. 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)
  7237. 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)
  7238. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7239. 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)
  7240. 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)
  7241. end
  7242. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7243. Anim="Fall"
  7244. if attack==false then
  7245. 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)
  7246. 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)
  7247. 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)
  7248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7249. 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)
  7250. 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)
  7251. end
  7252. elseif torvel<1 and hitfloor~=nil then
  7253. Anim="Idle"
  7254. if attack==false then
  7255. if ModeOfGlitch == 1 then
  7256. local snap = math.random(1,10)
  7257. if snap == 1 then
  7258. 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)
  7259. end
  7260. 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)
  7261. 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)
  7262. 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)
  7263. 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)
  7264. 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)
  7265. 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)
  7266. elseif ModeOfGlitch == 2 then
  7267. 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)
  7268. 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)
  7269. 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)
  7270. 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)
  7271. 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)
  7272. 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)
  7273. elseif ModeOfGlitch == 3 then
  7274. local snap = math.random(1,32)
  7275. if snap == 1 then
  7276. 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)
  7277. end
  7278. 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)
  7279. 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)
  7280. 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)
  7281. 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)
  7282. 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)
  7283. 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)
  7284. elseif ModeOfGlitch == 4 then
  7285. local snap = math.random(1,5)
  7286. if snap == 1 then
  7287. 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)
  7288. 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)
  7289. 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)
  7290. end
  7291. 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)
  7292. 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)
  7293. 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)
  7294. 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)
  7295. 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)
  7296. 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)
  7297. elseif ModeOfGlitch == 5 then
  7298. 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)
  7299. 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)
  7300. 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)
  7301. 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)
  7302. 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)
  7303. 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)
  7304. elseif ModeOfGlitch == 6 then
  7305. 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)
  7306. 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)
  7307. 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)
  7308. 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)
  7309. 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)
  7310. 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)
  7311. elseif ModeOfGlitch == 8 then
  7312. 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)
  7313. 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)
  7314. 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)
  7315. 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)
  7316. 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)
  7317. 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)
  7318. elseif ModeOfGlitch == 9 then
  7319. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7320. 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)
  7321. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7322. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  7323. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7324. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7325. elseif ModeOfGlitch == 10 then
  7326. 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)
  7327. 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)
  7328. 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)
  7329. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7330. 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)
  7331. 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)
  7332. elseif ModeOfGlitch == 7536 then
  7333. 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)
  7334. 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)
  7335. 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)
  7336. 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)
  7337. 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)
  7338. 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)
  7339. elseif ModeOfGlitch == 8889 then
  7340. 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)
  7341. 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)
  7342. 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)
  7343. 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)
  7344. 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)
  7345. 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)
  7346. elseif ModeOfGlitch == 1264532489 then
  7347. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  7348. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  7349. 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)
  7350. 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)
  7351. 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)
  7352. 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)
  7353. elseif ModeOfGlitch == 9999999921111 then
  7354. 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)
  7355. 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)
  7356. 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)
  7357. 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)
  7358. 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)
  7359. 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)
  7360. elseif ModeOfGlitch == 4367677813 then
  7361. 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)
  7362. 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)
  7363. 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)
  7364. 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)
  7365. 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)
  7366. 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)
  7367. elseif ModeOfGlitch == 55469696922 then
  7368. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7369. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7370. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7372. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  7373. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7374. elseif ModeOfGlitch == 999999999556 then
  7375. 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)
  7376. 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)
  7377. 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)
  7378. 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)
  7379. 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)
  7380. 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)
  7381. end
  7382. end
  7383. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7384. Anim="Walk"
  7385. if attack==false then
  7386. 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)
  7387. 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)
  7388. 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)
  7389. 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)
  7390. 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)
  7391. 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)
  7392. end
  7393. elseif torvel>=22 and hitfloor~=nil then
  7394. Anim="Run"
  7395. if attack==false then
  7396. 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
  7397. 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)
  7398. 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)
  7399. 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)
  7400. 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)
  7401. 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)
  7402. 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)
  7403. if ModeOfGlitch == 9 then
  7404. --
  7405. end
  7406. 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
  7407. 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)
  7408. 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)
  7409. 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)
  7410. 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)
  7411. 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)
  7412. 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)
  7413. end
  7414. end
  7415. end
  7416. end
  7417. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement