Advertisement
ZaGodlyNoob

Hyperion Glitcher V2

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