Advertisement
ZaGodlyNoob

Hyperion Glitcher V2.0.5

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