ZaGodlyNoob

Hyper Glitcher

Nov 3rd, 2018 (edited)
3,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 454.67 KB | None | 0 0
  1. --DM me on Discord at CPU White Heart#6898 if there's any bugs
  2.  
  3. if game:GetService("RunService"):IsClient() then error("For this script to work, you must use h/ instead of hl/.") end
  4. local Player = owner
  5. local Mouse,mouse,UserInputService,ContextActionService
  6. do
  7. script.Parent = RhiBel00351
  8. local CAS = {Actions={}}
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11. Event.Parent = Player.Character
  12. local fakeEvent = function()
  13. local t = {_fakeEvent=true}
  14. t.Connect = function(self,f)self.Function=f end
  15. t.connect = t.Connect
  16. return t
  17. end
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. function CAS:BindAction(name,fun,touch,...)
  21. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  22. end
  23. function CAS:UnbindAction(name)
  24. CAS.Actions[name] = nil
  25. end
  26. local function te(self,ev,...)
  27. local t = m[ev]
  28. if t and t._fakeEvent and t.Function then
  29. t.Function(...)
  30. end
  31. end
  32. m.TrigEvent = te
  33. UIS.TrigEvent = te
  34. Event.OnServerEvent:Connect(function(plr,io)
  35. if plr~=Player then return end
  36. if io.isMouse then
  37. m.Target = io.Target
  38. m.Hit = io.Hit
  39. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  40. if io.UserInputState == Enum.UserInputState.Begin then
  41. m:TrigEvent("Button1Down")
  42. else
  43. m:TrigEvent("Button1Up")
  44. end
  45. else
  46. for n,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. if io.UserInputState == Enum.UserInputState.Begin then
  54. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputBegan",io,false)
  56. else
  57. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent("InputEnded",io,false)
  59. end
  60. end
  61. end)
  62. NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64.  
  65. local Char = Player.Character
  66. local Event = Char:WaitForChild("UserInput_Event")
  67.  
  68. local UIS = game:GetService("UserInputService")
  69.  
  70. local input = function(io,a)
  71. if a then return end
  72. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  73. Event:FireServer(io)
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77. local Changed = false
  78. local Mouse = Player:GetMouse()
  79. local h,t = Mouse.Hit,Mouse.Target
  80. while wait(1/30) do
  81. if h~=Mouse.Hit or t~=Mouse.Target then
  82. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  83. h,t=Mouse.Hit,Mouse.Target
  84. end
  85. end
  86. ]==],Player.Character)
  87. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  88. end
  89.  
  90.  
  91. wait(0.5)
  92.  
  93. warn([[Hyper Glitcher Loaded.
  94. They say you can run, but you can't hide...
  95. but you can't run.
  96. You cannot move.
  97. You are hopeless.
  98. - All for One, My Hero Academia
  99.  
  100. Created, Reworked by NoobyGames12. Heavily edited by RhiBel00351.
  101. This ISN'T the regular Star Glitcher Rework.
  102. It's an edit of SGR.
  103. So if you want the regular, go find it yourself.
  104. And YES, I AM AWARE of NoobyGames12.
  105. HEY! Make sure you don't abuse this!
  106. ]])
  107.  
  108.  
  109. ------------- ORIGINAL WIELDER OC: Velnorum
  110. print([[Hey! Don't abuse this!
  111. ]])
  112. warn([[
  113. IMPORTANT:
  114. I have came back from the dead, no I didn't die from Covid. The reason why I don't play VSB anymore is cause I'm perma banned from the game. I would love to continue working on this Script in the future.
  115. ]])
  116. --- its obs smooth af do not touch
  117. ---- Sources and functions might be taken from others
  118. plr = owner
  119. char = plr.Character
  120. hum = char.Humanoid
  121. local cam = game.Workspace.CurrentCamera
  122. Camera = cam
  123. local CamInterrupt = false
  124. local TwoD = false
  125. local TargetInfo = {nil, nil}
  126. cam.CameraType = "Custom"
  127. t = char.Torso
  128. h = char.Head
  129. ra = char["Right Arm"]
  130. la = char["Left Arm"]
  131. rl = char["Right Leg"]
  132. ll = char["Left Leg"]
  133. tors = char.Torso
  134. lleg = char["Left Leg"]
  135. root = char.HumanoidRootPart
  136. hed = char.Head
  137. rleg = char["Right Leg"]
  138. rarm = char["Right Arm"]
  139. larm = char["Left Arm"]
  140. radian = math.rad
  141. random = math.random
  142. Vec3 = Vector3.new
  143. Inst = Instance.new
  144. cFrame = CFrame.new
  145. Euler = CFrame.fromEulerAnglesXYZ
  146. vt = Vector3.new
  147. bc = BrickColor.new
  148. br = BrickColor.random
  149. it = Instance.new
  150. cf = CFrame.new
  151.  
  152. local Booleans = {
  153. CamFollow = true,
  154. GyroUse = true
  155. }
  156.  
  157. function lerp(object, newCFrame, alpha)
  158. return object:lerp(newCFrame, alpha)
  159. end
  160.  
  161. local Directer = Inst("BodyGyro", root)
  162. Directer.MaxTorque = Vec3(0, 0, 0)
  163. Directer.P = 600000
  164. local CPart = Inst("Part")
  165. CPart.Anchored = true
  166. CPart.CanCollide = false
  167. CPart.Locked = true
  168. CPart.Transparency = 1
  169.  
  170. local rainbowmode = false
  171. local chaosmode = false
  172.  
  173. local kan = Instance.new("Sound",char)
  174. kan.Volume = 1.25
  175. kan.TimePosition = 0
  176. kan.PlaybackSpeed = 1
  177. kan.Pitch = 1
  178. kan.SoundId = "rbxassetid://548642448"
  179. kan.Name = "wrecked"
  180. kan.Looped = true
  181. kan:Play()
  182.  
  183. local currentThemePlaying = kan.SoundId
  184. local currentPitch = kan.Pitch
  185. local currentVol = kan.Volume
  186. function newTheme(ID,timepos,pitch,vol)
  187. local kanz = kan
  188. --kanz:Stop()
  189. kanz.Volume = vol
  190. --kanz.TimePosition = timepos
  191. kanz.PlaybackSpeed = pitch
  192. kanz.Pitch = pitch
  193. kanz.SoundId = ID
  194. kanz.Name = "wrecked"
  195. kanz.Looped = true
  196. currentThemePlaying = kanz.SoundId
  197. currentVol = kanz.Volume
  198. currentPitch = kanz.Pitch
  199. --kanz:Play()
  200. --coroutine.resume(coroutine.create(function()
  201. --wait(0.05)
  202. --end))
  203. end
  204.  
  205.  
  206. function newThemeCust(ID,timepos,pitch,vol)
  207. local kanz = kan
  208. kanz:Stop()
  209. kanz.Volume = vol
  210. kanz.TimePosition = timepos
  211. kanz.PlaybackSpeed = pitch
  212. kanz.Pitch = pitch
  213. kanz.SoundId = ID
  214. kanz.Name = "wrecked"
  215. kanz.Looped = true
  216. currentThemePlaying = kanz.SoundId
  217. currentVol = kanz.Volume
  218. currentPitch = kanz.Pitch
  219. kanz:Play()
  220. coroutine.resume(coroutine.create(function()
  221. wait(0.05)
  222. end))
  223. end
  224.  
  225. local mutedtog = false
  226.  
  227. function CameraEnshaking(Length,Intensity)
  228. coroutine.resume(coroutine.create(function()
  229. local intensity = 1*Intensity
  230. local rotM = 0.01*Intensity
  231. for i = 0, Length, 0.1 do
  232. swait()
  233. intensity = intensity - 0.05*Intensity/Length
  234. rotM = rotM - 0.0005*Intensity/Length
  235. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  236. 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)
  237. end
  238. Humanoid.CameraOffset = Vec3(0, 0, 0)
  239. end))
  240. end
  241. CamShake=function(Part,Distan,Power,Times)
  242. local de=Part.Position
  243. for i,v in pairs(workspace:children()) do
  244. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  245. for _,c in pairs(v:children()) do
  246. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  247. local Noob=v.Humanoid
  248. if Noob~=nil then
  249. coroutine.resume(coroutine.create(function()
  250. FV = Instance.new("BoolValue", Noob)
  251. FV.Name = "CameraShake"
  252. for ShakeNum=1,Times do
  253. swait()
  254. local ef=Power
  255. if ef>=1 then
  256. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  257. else
  258. ef=Power*10
  259. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  260. end
  261. end
  262. Humanoid.CameraOffset = Vector3.new(0,0,0)
  263. FV:Destroy()
  264. end))
  265. CameraShake(Times, Power, Noob)
  266. end
  267. end
  268. end
  269. end
  270. end
  271. end
  272.  
  273. local toggleTag = true
  274. local bilguit = Instance.new("BillboardGui", hed)
  275. bilguit.Adornee = nil
  276. bilguit.Name = "ModeName"
  277. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  278. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  279. local modet = Instance.new("TextLabel", bilguit)
  280. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  281. modet.FontSize = "Size8"
  282. modet.TextScaled = true
  283. modet.TextTransparency = 0
  284. modet.BackgroundTransparency = 1
  285. modet.TextTransparency = 0
  286. modet.TextStrokeTransparency = 0
  287. modet.Font = "Antique"
  288. modet.TextStrokeColor3 = Color3.new(1,0,0)
  289. modet.TextColor3 = Color3.new(0.25,0,0)
  290. modet.Text = "Kenshiro"
  291.  
  292.  
  293. function chatfunc(text,color,typet,font,timeex)
  294. local chat = coroutine.wrap(function()
  295. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  296. Character:FindFirstChild("TalkingBillBoard"):destroy()
  297. end
  298. local naeeym2 = Instance.new("BillboardGui",Character)
  299. naeeym2.Size = UDim2.new(0,100,0,40)
  300. naeeym2.StudsOffset = Vector3.new(0,3,0)
  301. naeeym2.Adornee = Character.Head
  302. naeeym2.Name = "TalkingBillBoard"
  303. local tecks2 = Instance.new("TextLabel",naeeym2)
  304. tecks2.BackgroundTransparency = 1
  305. tecks2.BorderSizePixel = 0
  306. tecks2.Text = ""
  307. tecks2.Font = font
  308. tecks2.TextSize = 30
  309. tecks2.TextStrokeTransparency = 0
  310. tecks2.TextColor3 = color
  311. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  312. tecks2.Size = UDim2.new(1,0,0.5,0)
  313. local tecks3 = Instance.new("TextLabel",naeeym2)
  314. tecks3.BackgroundTransparency = 1
  315. tecks3.BorderSizePixel = 0
  316. tecks3.Text = ""
  317. tecks3.Font = font
  318. tecks3.TextSize = 30
  319. tecks3.TextStrokeTransparency = 0
  320. if typet == "Inverted" then
  321. tecks3.TextColor3 = Color3.new(0,0,0)
  322. tecks3.TextStrokeColor3 = color
  323. elseif typet == "Normal" then
  324. tecks3.TextColor3 = color
  325. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  326. end
  327. tecks3.Size = UDim2.new(1,0,0.5,0)
  328. coroutine.resume(coroutine.create(function()
  329. while true do
  330. swait(1)
  331. if chaosmode == true then
  332. tecks2.TextColor3 = BrickColor.random().Color
  333. tecks3.TextStrokeColor3 = BrickColor.random().Color
  334. end
  335. end
  336. end))
  337. modet.TextTransparency = modet.TextTransparency + 1
  338. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  339. for i = 0, 74*timeex do
  340. swait()
  341. modet.TextTransparency = 1
  342. modet.TextStrokeTransparency = 1
  343. tecks2.Text = text
  344. tecks3.Text = text
  345. end
  346. local randomrot = math.random(1,2)
  347. if randomrot == 1 then
  348. for i = 1, 50 do
  349. swait()
  350. tecks2.Text = text
  351. tecks3.Text = text
  352. modet.TextTransparency = modet.TextTransparency - .02
  353. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  354. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  355. tecks2.TextTransparency = tecks2.TextTransparency + .04
  356. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  357. tecks3.TextTransparency = tecks2.TextTransparency + .04
  358. end
  359. elseif randomrot == 2 then
  360. for i = 1, 50 do
  361. swait()
  362. tecks2.Text = text
  363. tecks3.Text = text
  364. modet.TextTransparency = modet.TextTransparency - .02
  365. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  366. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  367. tecks2.TextTransparency = tecks2.TextTransparency + .04
  368. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks3.TextTransparency = tecks2.TextTransparency + .04
  370. end
  371. end
  372. modet.TextTransparency = 0
  373. modet.TextStrokeTransparency = 0
  374. if toggleTag == false then
  375. modet.TextTransparency = 1
  376. modet.TextStrokeTransparency = 1
  377. end
  378. naeeym2:Destroy()
  379. end)
  380. chat()
  381. end
  382.  
  383. function bosschatfunc(text,color,watval)
  384. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  385. coroutine.resume(coroutine.create(function()
  386. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  387. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  388. end
  389. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  390. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  391. scrg.Name = "Dialog"
  392. local txtlb = Instance.new("TextLabel",scrg)
  393. txtlb.Text = ""
  394. txtlb.Font = "Bodoni"
  395. txtlb.TextColor3 = Color3.new(0,0,0)
  396. txtlb.TextStrokeTransparency = 0
  397. txtlb.BackgroundTransparency = 0.75
  398. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  399. txtlb.TextStrokeColor3 = color
  400. txtlb.TextScaled = true
  401. txtlb.Size = UDim2.new(1,0,0.25,0)
  402. txtlb.TextXAlignment = "Left"
  403. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  404. local txtlb2 = Instance.new("TextLabel",scrg)
  405. txtlb2.Text = "???:"
  406. txtlb2.Font = "Arcade"
  407. txtlb2.TextColor3 = Color3.new(0,0,0)
  408. txtlb2.TextStrokeTransparency = 0
  409. txtlb2.BackgroundTransparency = 1
  410. txtlb2.TextStrokeColor3 = color
  411. txtlb2.TextSize = 40
  412. txtlb2.Size = UDim2.new(1,0,0.25,0)
  413. txtlb2.TextXAlignment = "Left"
  414. txtlb2.Position = UDim2.new(0,0,1,0)
  415. local fvalen = 0.55
  416. local fval = -0.49
  417. coroutine.resume(coroutine.create(function()
  418. while true do
  419. swait()
  420. if chaosmode == true then
  421. txtlb.Rotation = math.random(-1,1)
  422. txtlb2.Rotation = math.random(-1,1)
  423. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  424. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  425. txtlb.TextStrokeColor3 = BrickColor.random().Color
  426. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  427. end
  428. end
  429. end))
  430. coroutine.resume(coroutine.create(function()
  431. while true do
  432. swait()
  433. if scrg.Parent ~= nil then
  434. fvalen = fvalen - 0.0001
  435. elseif scrg.Parent == nil then
  436. break
  437. end
  438. end
  439. end))
  440. local flol = 1.75
  441. local flil = 1.6
  442. coroutine.resume(coroutine.create(function()
  443. for i = 0, 9 do
  444. swait()
  445. fval = fval + 0.05
  446. flol = flol - 0.1
  447. flil = flil - 0.1
  448. txtlb.Text = ""
  449. txtlb.Position = UDim2.new(0,0,flol,0)
  450. txtlb2.Position = UDim2.new(0,0,flil,0)
  451. end
  452. txtlb.Text = text
  453. wait(watval)
  454. local valinc = 0
  455. for i = 0, 99 do
  456. swait()
  457. valinc = valinc + 0.0001
  458. flol = flol + valinc
  459. flil = flil + valinc
  460. txtlb.Rotation = txtlb.Rotation + valinc*20
  461. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  462. txtlb.Position = UDim2.new(0,0,flol,0)
  463. txtlb2.Position = UDim2.new(0,0,flil,0)
  464. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  465. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  466. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  467. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  468. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  469. end
  470. scrg:Destroy()
  471. end))
  472. end))
  473. end
  474. end
  475.  
  476.  
  477. local Create = LoadLibrary("RbxUtility").Create
  478.  
  479. CFuncs = {
  480. ["Part"] = {
  481. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  482. local Part = Create("Part"){
  483. Parent = Parent,
  484. Reflectance = Reflectance,
  485. Transparency = Transparency,
  486. CanCollide = false,
  487. Locked = true,
  488. BrickColor = BrickColor.new(tostring(BColor)),
  489. Name = Name,
  490. Size = Size,
  491. Material = Material,
  492. }
  493. RemoveOutlines(Part)
  494. return Part
  495. end;
  496. };
  497.  
  498. ["Mesh"] = {
  499. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  500. local Msh = Create(Mesh){
  501. Parent = Part,
  502. Offset = OffSet,
  503. Scale = Scale,
  504. }
  505. if Mesh == "SpecialMesh" then
  506. Msh.MeshType = MeshType
  507. Msh.MeshId = MeshId
  508. end
  509. return Msh
  510. end;
  511. };
  512.  
  513. ["Mesh"] = {
  514. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  515. local Msh = Create(Mesh){
  516. Parent = Part,
  517. Offset = OffSet,
  518. Scale = Scale,
  519. }
  520. if Mesh == "SpecialMesh" then
  521. Msh.MeshType = MeshType
  522. Msh.MeshId = MeshId
  523. end
  524. return Msh
  525. end;
  526. };
  527.  
  528. ["Weld"] = {
  529. Create = function(Parent, Part0, Part1, C0, C1)
  530. local Weld = Create("Weld"){
  531. Parent = Parent,
  532. Part0 = Part0,
  533. Part1 = Part1,
  534. C0 = C0,
  535. C1 = C1,
  536. }
  537. return Weld
  538. end;
  539. };
  540.  
  541. ["Sound"] = {
  542. Create = function(id, par, vol, pit)
  543. coroutine.resume(coroutine.create(function()
  544. local S = Create("Sound"){
  545. Volume = vol,
  546. Name = "EffectSoundo",
  547. Pitch = pit or 1,
  548. SoundId = id,
  549. Parent = par or workspace,
  550. }
  551. wait()
  552. S:play()
  553. game:GetService("Debris"):AddItem(S, 10)
  554. end))
  555. end;
  556. };
  557.  
  558. ["TimeSound"] = {
  559. Create = function(id, par, vol, pit, timepos)
  560. coroutine.resume(coroutine.create(function()
  561. local S = Create("Sound"){
  562. Volume = vol,
  563. Name = "EffectSoundo",
  564. Pitch = pit or 1,
  565. SoundId = id,
  566. TimePosition = timepos,
  567. Parent = par or workspace,
  568. }
  569. wait()
  570. S:play()
  571. game:GetService("Debris"):AddItem(S, 10)
  572. end))
  573. end;
  574. };
  575. ["EchoSound"] = {
  576. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  577. coroutine.resume(coroutine.create(function()
  578. local Sas = Create("Sound"){
  579. Volume = vol,
  580. Name = "EffectSoundo",
  581. Pitch = pit or 1,
  582. SoundId = id,
  583. TimePosition = timepos,
  584. Parent = par or workspace,
  585. }
  586. local E = Create("EchoSoundEffect"){
  587. Delay = echodelay,
  588. Name = "Echo",
  589. Feedback = fedb,
  590. DryLevel = dryl,
  591. Parent = Sas,
  592. }
  593. wait()
  594. Sas:play()
  595. game:GetService("Debris"):AddItem(Sas, delays)
  596. end))
  597. end;
  598. };
  599.  
  600. ["LongSound"] = {
  601. Create = function(id, par, vol, pit)
  602. coroutine.resume(coroutine.create(function()
  603. local S = Create("Sound"){
  604. Volume = vol,
  605. Pitch = pit or 1,
  606. SoundId = id,
  607. Parent = par or workspace,
  608. }
  609. wait()
  610. S:play()
  611. game:GetService("Debris"):AddItem(S, 60)
  612. end))
  613. end;
  614. };
  615.  
  616. ["ParticleEmitter"] = {
  617. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  618. local fp = Create("ParticleEmitter"){
  619. Parent = Parent,
  620. Color = ColorSequence.new(Color1, Color2),
  621. LightEmission = LightEmission,
  622. Size = Size,
  623. Texture = Texture,
  624. Transparency = Transparency,
  625. ZOffset = ZOffset,
  626. Acceleration = Accel,
  627. Drag = Drag,
  628. LockedToPart = LockedToPart,
  629. VelocityInheritance = VelocityInheritance,
  630. EmissionDirection = EmissionDirection,
  631. Enabled = Enabled,
  632. Lifetime = LifeTime,
  633. Rate = Rate,
  634. Rotation = Rotation,
  635. RotSpeed = RotSpeed,
  636. Speed = Speed,
  637. VelocitySpread = VelocitySpread,
  638. }
  639. return fp
  640. end;
  641. };
  642.  
  643. CreateTemplate = {
  644.  
  645. };
  646. }
  647.  
  648.  
  649.  
  650. New = function(Object, Parent, Name, Data)
  651. local Object = Instance.new(Object)
  652. for Index, Value in pairs(Data or {}) do
  653. Object[Index] = Value
  654. end
  655. Object.Parent = Parent
  656. Object.Name = Name
  657. return Object
  658. end
  659. local halocolor = BrickColor.new("Pastel light blue")
  660. local halocolor2 = BrickColor.new("Cool yellow")
  661. local starcolor = BrickColor.new("Bright yellow")
  662. local lunacolor = BrickColor.new("Navy blue")
  663. local lunacolor2 = BrickColor.new("Bright blue")
  664. local wepcolor = BrickColor.new("Really black")
  665. local maincolor = BrickColor.new("Really black")
  666. local m = Instance.new("Model",char)
  667. local m2 = Instance.new("Model",char)
  668. local m3 = Instance.new("Model",char)
  669. local mw1 = Instance.new("Model",char)
  670. local mw2 = Instance.new("Model",char)
  671.  
  672.  
  673. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  674. local gui = it(GuiType)
  675. gui.Parent = parent
  676. gui.Text = text
  677. gui.BackgroundTransparency = backtrans
  678. gui.BackgroundColor3 = backcol
  679. gui.SizeConstraint = "RelativeXY"
  680. gui.TextXAlignment = "Center"
  681. gui.TextYAlignment = "Center"
  682. gui.Position = pos
  683. gui.Size = size
  684. gui.Font = "SciFi"
  685. gui.FontSize = "Size14"
  686. gui.TextWrapped = false
  687. gui.TextStrokeTransparency = 0
  688. gui.TextColor = BrickColor.new("White")
  689. return gui
  690. end
  691. --------------------------- GUI STUFF
  692. local basgui = it("GuiMain")
  693. basgui.Parent = plr.PlayerGui
  694. basgui.Name = "VISgui"
  695. local fullscreenz = it("Frame")
  696. fullscreenz.Parent = basgui
  697. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  698. fullscreenz.BackgroundTransparency = 1
  699. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  700. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  701. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  702. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  703. imgl2.BackgroundTransparency = 1
  704. imgl2.BorderSizePixel = 0
  705. imgl2.ImageTransparency = 0.5
  706. imgl2.ImageColor3 = Color3.new(1,0,0)
  707. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  708. imgl2.Size = UDim2.new(0,1000,0,1000)
  709. imgl2.Image = "rbxassetid://2325939897"
  710. local techc = imgl2:Clone()
  711. techc.Parent = fullscreenz
  712. techc.ImageTransparency = 0
  713. techc.Size = UDim2.new(0,900,0,900)
  714. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  715. techc.ImageColor3 = Color3.new(1,0,0)
  716. techc.Image = "rbxassetid://2273224484"
  717. local circl = imgl2:Clone()
  718. circl.Parent = fullscreenz
  719. circl.ImageTransparency = 0
  720. circl.Size = UDim2.new(0,550,0,550)
  721. circl.Position = UDim2.new(0.75,25,0.55,25)
  722. circl.ImageColor3 = Color3.new(0,0,0)
  723. circl.Image = "rbxassetid://2312119891"
  724. local circl2 = imgl2:Clone()
  725. circl2.Parent = fullscreenz
  726. circl2.ImageTransparency = 0
  727. circl2.Size = UDim2.new(0,700,0,700)
  728. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  729. circl2.ImageColor3 = Color3.new(1,0,0)
  730. circl2.Image = "rbxassetid://2312119891"
  731. local imgl2b = imgl2:Clone()
  732. imgl2b.Parent = fullscreenz
  733. imgl2b.ImageTransparency = 0
  734. imgl2b.Size = UDim2.new(0,800,0,800)
  735. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  736. imgl2b.ImageColor3 = Color3.new(0,0,0)
  737. local ned = Instance.new("TextLabel",fullscreenz)
  738. ned.ZIndex = 2
  739. ned.Font = "Arcade"
  740. ned.BackgroundTransparency = 1
  741. ned.BorderSizePixel = 0.65
  742. ned.Size = UDim2.new(0.3,0,0.2,0)
  743. ned.Position = UDim2.new(0.7,0,0.8,0)
  744. ned.TextColor3 = BrickColor.new("Really red").Color
  745. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  746. ned.TextScaled = true
  747. ned.TextStrokeTransparency = 0
  748. ned.Text = "Hokuto no Ken"
  749. ned.TextSize = 24
  750. ned.Rotation = 1
  751. ned.TextXAlignment = "Right"
  752. ned.TextYAlignment = "Bottom"
  753.  
  754. local extrawingmod1 = Instance.new("Model",char)
  755. local extrawingmod2 = Instance.new("Model",char)
  756.  
  757. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  758. local p = Instance.new("Part")
  759. p.TopSurface = 0
  760. p.BottomSurface = 0
  761. p.Parent = parent
  762. p.Size = Vector3.new(0.1,0.1,0.1)
  763. p.Transparency = transparency
  764. p.Reflectance = reflectance
  765. p.CanCollide = false
  766. p.Locked = true
  767. p.BrickColor = brickcolor
  768. p.Material = material
  769. return p
  770. end
  771.  
  772. function CreateMesh(parent,meshtype,x1,y1,z1)
  773. local mesh = Instance.new("SpecialMesh",parent)
  774. mesh.MeshType = meshtype
  775. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  776. return mesh
  777. end
  778.  
  779. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  780. local mesh = Instance.new("SpecialMesh",parent)
  781. mesh.MeshType = "FileMesh"
  782. mesh.MeshId = meshid
  783. mesh.Scale = Vector3.new(x1,y1,z1)
  784. return mesh
  785. end
  786.  
  787.  
  788. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  789. local mesh = Instance.new("SpecialMesh",parent)
  790. mesh.MeshType = "FileMesh"
  791. mesh.MeshId = meshid
  792. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  793. mesh.Scale = Vector3.new(x1,y1,z1)
  794. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  795. return mesh
  796. end
  797.  
  798. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  799. local weld = Instance.new("Weld")
  800. weld.Parent = parent
  801. weld.Part0 = part0
  802. weld.Part1 = part1
  803. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  804. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  805. return weld
  806. end
  807.  
  808.  
  809. --------------
  810. --------------
  811. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  812. 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))
  813. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  814. 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))
  815.  
  816. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  817. CreateMesh(handle,"Brick",0,0,0)
  818. 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))
  819. local valuaring = 10
  820. for i = 0, 49 do
  821. valuaring = valuaring + 10
  822. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  823. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  824. 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))
  825. end
  826.  
  827. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  828. CreateMesh(handle,"Brick",0,0,0)
  829. 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))
  830. local valuaring = 10
  831. for i = 0, 49 do
  832. valuaring = valuaring + 10
  833. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  834. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  835. 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))
  836. end
  837.  
  838.  
  839. local handle = CreateParta(m,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  841. 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))
  842.  
  843. --- Left wing.
  844.  
  845. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  846. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  847. 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))
  848.  
  849. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  850. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  851. 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))
  852. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  853. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  854. 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))
  855. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  857. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  858. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  869. 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))
  870. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  872. 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))
  873. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  875. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  876. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  878. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  879.  
  880. tl1 = Instance.new('Trail',wed)
  881. tl1.Attachment0 = A1
  882. tl1.Attachment1 = A0
  883. tl1.Texture = "rbxassetid://2108945559"
  884. tl1.LightEmission = 1
  885. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  886. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  887. tl1.Lifetime = 0.6
  888.  
  889. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  890. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  891. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  892.  
  893. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  895. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  896. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  899. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  902. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  904. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  905. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  907. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  908. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  909. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  910. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  911. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  913. 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))
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  916. 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))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  919. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  922. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  923.  
  924. tl2 = Instance.new('Trail',wed)
  925. tl2.Attachment0 = A1
  926. tl2.Attachment1 = A0
  927. tl2.Texture = "rbxassetid://2108945559"
  928. tl2.LightEmission = 1
  929. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  930. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  931. tl2.Lifetime = 0.6
  932.  
  933. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  934. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  935. 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))
  936.  
  937. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  939. 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))
  940. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  941. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  942. 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))
  943. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  948. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  949. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  957. 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))
  958. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  960. 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))
  961. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  963. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  964. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  966. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967.  
  968. tl3 = Instance.new('Trail',wed)
  969. tl3.Attachment0 = A1
  970. tl3.Attachment1 = A0
  971. tl3.Texture = "rbxassetid://2108945559"
  972. tl3.LightEmission = 1
  973. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  974. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  975. tl3.Lifetime = 0.6
  976.  
  977. tl1.Enabled = false
  978. tl2.Enabled = false
  979. tl3.Enabled = false
  980. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  981. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  982. 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))
  983.  
  984. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  986. 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))
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  989. 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))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,3)
  992. 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))
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,3,0.5)
  995. 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))
  996.  
  997. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  998. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  999. 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))
  1000.  
  1001. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1002. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1003. 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))
  1004. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. 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))
  1007. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1009. 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))
  1010. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1012. 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))
  1013.  
  1014. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1015. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1016. 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))
  1017.  
  1018. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1019. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1020. 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))
  1021. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1022. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1023. 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))
  1024. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1025. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1026. 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))
  1027. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1028. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1029. 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))
  1030.  
  1031. -- Right wing.
  1032.  
  1033. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1034. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1035. 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))
  1036.  
  1037. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1038. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1039. 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))
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. 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))
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1048. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1049. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1051. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1052. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1053. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1054. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1055. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1056. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1057. 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))
  1058. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1059. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1060. 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))
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1063. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1066. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067.  
  1068. tr1 = Instance.new('Trail',wed)
  1069. tr1.Attachment0 = A1
  1070. tr1.Attachment1 = A0
  1071. tr1.Texture = "rbxassetid://2108945559"
  1072. tr1.LightEmission = 1
  1073. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1074. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1075. tr1.Lifetime = 0.6
  1076.  
  1077. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1078. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1079. 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))
  1080.  
  1081. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1082. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1083. 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))
  1084. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1085. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1086. 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))
  1087. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1088. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1089. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1090. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1091. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1092. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1093. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1094. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1095. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1096. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1099. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1101. 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))
  1102. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1104. 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))
  1105. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1107. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1108. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1110. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111.  
  1112. tr2 = Instance.new('Trail',wed)
  1113. tr2.Attachment0 = A1
  1114. tr2.Attachment1 = A0
  1115. tr2.Texture = "rbxassetid://2108945559"
  1116. tr2.LightEmission = 1
  1117. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1118. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1119. tr2.Lifetime = 0.6
  1120.  
  1121. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1122. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1123. 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))
  1124.  
  1125.  
  1126. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1127. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1128. 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))
  1129. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1130. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1131. 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))
  1132. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1133. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1134. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1135. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1136. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1137. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1138. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1139. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1140. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1141. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1143. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1146. 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))
  1147. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1148. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1149. 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))
  1150. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1151. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1152. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1153. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1154. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1155. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1156.  
  1157. tr3 = Instance.new('Trail',wed)
  1158. tr3.Attachment0 = A1
  1159. tr3.Attachment1 = A0
  1160. tr3.Texture = "rbxassetid://2108945559"
  1161. tr3.LightEmission = 1
  1162. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1163. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1164. tr3.Lifetime = 0.6
  1165.  
  1166. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1167. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1168. 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))
  1169.  
  1170. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1171. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1172. 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))
  1173. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1174. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1175. 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))
  1176. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1177. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1178. 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))
  1179. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1180. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1181. 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))
  1182.  
  1183. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1184. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1185. 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))
  1186.  
  1187. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1188. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1189. 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))
  1190. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1191. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1192. 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))
  1193. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1194. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1195. 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))
  1196. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1197. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1198. 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))
  1199.  
  1200. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1201. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1202. 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))
  1203.  
  1204. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1205. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1206. 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))
  1207. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1208. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1209. 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))
  1210. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1211. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1212. 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))
  1213. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1214. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1215. 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))
  1216.  
  1217.  
  1218. ---- HERES THE RING
  1219.  
  1220.  
  1221. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1222. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1223. 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))
  1224. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1225. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1226. 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))
  1227. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1228. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1229. 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))
  1230.  
  1231.  
  1232. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1233. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1234. 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))
  1235.  
  1236. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1237. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1238. 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))
  1239.  
  1240.  
  1241.  
  1242. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1243. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1244. 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))
  1245.  
  1246. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1247. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1248. 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))
  1249.  
  1250. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1251. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1252. 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))
  1253.  
  1254. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1255. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1256. 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))
  1257. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1258. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1259. 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))
  1260.  
  1261. --- second ring
  1262.  
  1263. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1264. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1265. 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))
  1266. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1267. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1268. 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))
  1269. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1270. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1271. 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))
  1272.  
  1273. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1274. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1275. 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))
  1276.  
  1277. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1278. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1279. 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))
  1280.  
  1281.  
  1282.  
  1283. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1284. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1285. 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))
  1286.  
  1287. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1288. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1289. 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))
  1290.  
  1291. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1292. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1293. 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))
  1294.  
  1295. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1296. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1297. 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))
  1298. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1299. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1300. 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))]]--
  1301.  
  1302.  
  1303.  
  1304. for i, v in pairs(m:GetChildren()) do
  1305. if v:IsA("Part") then
  1306. v.BrickColor = BrickColor.new("Really black")
  1307. v.Material = "Glass"
  1308. end
  1309. end
  1310. for i, v in pairs(m2:GetChildren()) do
  1311. if v:IsA("Part") then
  1312. v.BrickColor = BrickColor.new("Crimson")
  1313. v.Material = "Granite"
  1314. end
  1315. end
  1316. for i, v in pairs(m3:GetChildren()) do
  1317. if v:IsA("Part") then
  1318. v.BrickColor = BrickColor.new("Really red")
  1319. v.Material = "Neon"
  1320. end
  1321. end
  1322. for i, v in pairs(mw2:GetChildren()) do
  1323. if v:IsA("Part") then
  1324. v.BrickColor = BrickColor.new("Really red")
  1325. v.Material = "Neon"
  1326. end
  1327. end
  1328. for i, v in pairs(mw1:GetChildren()) do
  1329. if v:IsA("Part") then
  1330. v.Transparency = 1
  1331. v.BrickColor = BrickColor.new("Really red")
  1332. v.Material = "Neon"
  1333. end
  1334. end
  1335. for i, v in pairs(extrawingmod1:GetChildren()) do
  1336. if v:IsA("Part") then
  1337. v.Transparency = 1
  1338. v.BrickColor = BrickColor.new("White")
  1339. v.Material = "Neon"
  1340. end
  1341. end
  1342. for i, v in pairs(extrawingmod2:GetChildren()) do
  1343. if v:IsA("Part") then
  1344. v.Transparency = 1
  1345. v.BrickColor = BrickColor.new("White")
  1346. v.Material = "Neon"
  1347. end
  1348. end
  1349. local MAINRUINCOLOR = BrickColor.new("Really red")
  1350. ------
  1351.  
  1352.  
  1353. function RemoveOutlines(part)
  1354. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1355. end
  1356. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1357. local Part = Create("Part")({
  1358. Parent = Parent,
  1359. Reflectance = Reflectance,
  1360. Transparency = Transparency,
  1361. CanCollide = false,
  1362. Locked = true,
  1363. BrickColor = BrickColor.new(tostring(BColor)),
  1364. Name = Name,
  1365. Size = Size,
  1366. Material = Material
  1367. })
  1368. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1369. RemoveOutlines(Part)
  1370. return Part
  1371. end
  1372. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1373. local Msh = Create(Mesh)({
  1374. Parent = Part,
  1375. Offset = OffSet,
  1376. Scale = Scale
  1377. })
  1378. if Mesh == "SpecialMesh" then
  1379. Msh.MeshType = MeshType
  1380. Msh.MeshId = MeshId
  1381. end
  1382. return Msh
  1383. end
  1384. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1385. local Weld = Create("Weld")({
  1386. Parent = Parent,
  1387. Part0 = Part0,
  1388. Part1 = Part1,
  1389. C0 = C0,
  1390. C1 = C1
  1391. })
  1392. return Weld
  1393. end
  1394.  
  1395. Character=Player.Character
  1396. PlayerGui=Player.PlayerGui
  1397. Backpack=Player.Backpack
  1398. Torso=Character.Torso
  1399. Head=Character.Head
  1400. Humanoid=Character.Humanoid
  1401. m=Instance.new('Model',Character)
  1402. LeftArm=Character["Left Arm"]
  1403. LeftLeg=Character["Left Leg"]
  1404. RightArm=Character["Right Arm"]
  1405. RightLeg=Character["Right Leg"]
  1406. LS=Torso["Left Shoulder"]
  1407. LH=Torso["Left Hip"]
  1408. RS=Torso["Right Shoulder"]
  1409. RH=Torso["Right Hip"]
  1410. Face = Head.face
  1411. Neck=Torso.Neck
  1412. it=Instance.new
  1413. attacktype=1
  1414. vt=Vector3.new
  1415. cf=CFrame.new
  1416. euler=CFrame.fromEulerAnglesXYZ
  1417. angles=CFrame.Angles
  1418. cloaked=false
  1419. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1420. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1421. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1422. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1423. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1424. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1425. RootPart=Character.HumanoidRootPart
  1426. RootJoint=RootPart.RootJoint
  1427. RootCF=euler(-1.57,0,3.14)
  1428. attack = false
  1429. attackdebounce = false
  1430. deb=false
  1431. equipped=true
  1432. hand=false
  1433. combo=0
  1434. mana=0
  1435. trispeed=.2
  1436. attackmode='none'
  1437. local idle=0
  1438. local Anim="Idle"
  1439. local Effects={}
  1440. local gun=false
  1441. local shoot=false
  1442. local sine = 0
  1443. local change = 1
  1444.  
  1445. function RecolorTextAndRename(name,col1,col2,font)
  1446. modet.TextStrokeColor3 = col2
  1447. modet.TextColor3 = col1
  1448. modet.Font = font
  1449. modet.Text = name
  1450. techc.ImageColor3 = col2
  1451. circl.ImageColor3 = col2
  1452. circl2.ImageColor3 = col1
  1453. imgl2.ImageColor3 = col1
  1454. imgl2b.ImageColor3 = col2
  1455. ned.Text = name
  1456. ned.TextColor3 = col1
  1457. ned.TextStrokeColor3 = col2
  1458. end
  1459. --save shoulders
  1460. RSH, LSH=nil, nil
  1461. --welds
  1462. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1463. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1464. LH=Torso["Left Hip"]
  1465. RH=Torso["Right Hip"]
  1466. TorsoColor=Torso.BrickColor
  1467. function NoOutline(Part)
  1468. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1469. end
  1470. ch=Character
  1471. RSH=ch.Torso["Right Shoulder"]
  1472. LSH=ch.Torso["Left Shoulder"]
  1473. --
  1474. RSH.Parent=nil
  1475. LSH.Parent=nil
  1476. --
  1477. RW.Name="Right Shoulder"
  1478. RW.Part0=ch.Torso
  1479. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1480. RW.C1=cf(0, 0.5, 0)
  1481. RW.Part1=ch["Right Arm"]
  1482. RW.Parent=ch.Torso
  1483. --
  1484. LW.Name="Left Shoulder"
  1485. LW.Part0=ch.Torso
  1486. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1487. LW.C1=cf(0, 0.5, 0)
  1488. LW.Part1=ch["Left Arm"]
  1489. LW.Parent=ch.Torso
  1490.  
  1491. local Stats=Instance.new("BoolValue")
  1492. Stats.Name="Stats"
  1493. Stats.Parent=Character
  1494. local Atk=Instance.new("NumberValue")
  1495. Atk.Name="Damage"
  1496. Atk.Parent=Stats
  1497. Atk.Value=1
  1498. local Def=Instance.new("NumberValue")
  1499. Def.Name="Defense"
  1500. Def.Parent=Stats
  1501. Def.Value=1
  1502. local Speed=Instance.new("NumberValue")
  1503. Speed.Name="Speed"
  1504. Speed.Parent=Stats
  1505. Speed.Value=1
  1506. local Mvmt=Instance.new("NumberValue")
  1507. Mvmt.Name="Movement"
  1508. Mvmt.Parent=Stats
  1509. Mvmt.Value=1
  1510.  
  1511. local donum=0
  1512.  
  1513.  
  1514. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1515. local fp=it("Part")
  1516. fp.formFactor=formfactor
  1517. fp.Parent=parent
  1518. fp.Reflectance=reflectance
  1519. fp.Transparency=transparency
  1520. fp.CanCollide=false
  1521. fp.Locked=true
  1522. fp.BrickColor=brickcolor
  1523. fp.Name=name
  1524. fp.Size=size
  1525. fp.Position=Torso.Position
  1526. NoOutline(fp)
  1527. fp.Material="SmoothPlastic"
  1528. fp:BreakJoints()
  1529. return fp
  1530. end
  1531.  
  1532. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1533. local mesh=it(Mesh)
  1534. mesh.Parent=part
  1535. if Mesh=="SpecialMesh" then
  1536. mesh.MeshType=meshtype
  1537. if meshid~="nil" then
  1538. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1539. end
  1540. end
  1541. mesh.Offset=offset
  1542. mesh.Scale=scale
  1543. return mesh
  1544. end
  1545.  
  1546. function weld(parent,part0,part1,c0)
  1547. local weld=it("Weld")
  1548. weld.Parent=parent
  1549. weld.Part0=part0
  1550. weld.Part1=part1
  1551. weld.C0=c0
  1552. return weld
  1553. end
  1554.  
  1555. local Color1=Torso.BrickColor
  1556.  
  1557. local bodvel=Instance.new("BodyVelocity")
  1558. local bg=Instance.new("BodyGyro")
  1559.  
  1560. --------- SazEreno's Artificial HB --------------
  1561. ArtificialHB = Instance.new("BindableEvent", script)
  1562. ArtificialHB.Name = "ArtificialHB"
  1563.  
  1564. script:WaitForChild("ArtificialHB")
  1565. Frame_Speed = 1 / 60
  1566. frame = Frame_Speed
  1567. tf = 0
  1568. allowframeloss = false
  1569. tossremainder = false
  1570. lastframe = tick()
  1571. script.ArtificialHB:Fire()
  1572.  
  1573. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1574. tf = tf + s
  1575. if tf >= frame then
  1576. if allowframeloss then
  1577. script.ArtificialHB:Fire()
  1578. lastframe = tick()
  1579. else
  1580. for i = 1, math.floor(tf / frame) do
  1581. script.ArtificialHB:Fire()
  1582. end
  1583. lastframe = tick()
  1584. end
  1585. if tossremainder then
  1586. tf = 0
  1587. else
  1588. tf = tf - frame * math.floor(tf / frame)
  1589. end
  1590. end
  1591. end)
  1592.  
  1593. ------------------
  1594. function swait(num)
  1595. function swait(num)
  1596. if num==0 or num==nil then
  1597. game:service'RunService'.Stepped:wait(0)
  1598. else
  1599. for i=0,num do
  1600. game:service'RunService'.Stepped:wait(0)
  1601. end
  1602. end
  1603. end
  1604. end
  1605.  
  1606. -------- RAINBOW LEAVE IT TO ME
  1607. local r = 255
  1608. local g = 255
  1609. local b = 255
  1610. coroutine.resume(coroutine.create(function()
  1611. while wait() do
  1612. for i = 0, 254/5 do
  1613. swait()
  1614. g = g + 5
  1615. end
  1616. for i = 0, 254/5 do
  1617. swait()
  1618. r = r - 5
  1619. end
  1620. for i = 0, 254/5 do
  1621. swait()
  1622. b = b + 5
  1623. end
  1624. for i = 0, 254/5 do
  1625. swait()
  1626. g = g - 5
  1627. end
  1628. for i = 0, 254/5 do
  1629. swait()
  1630. r = r + 5
  1631. end
  1632. for i = 0, 254/5 do
  1633. swait()
  1634. b = b - 5
  1635. end
  1636. end
  1637. end))
  1638.  
  1639.  
  1640. so = function(id,par,vol,pit)
  1641. coroutine.resume(coroutine.create(function()
  1642. local sou = Instance.new("Sound",par or workspace)
  1643. sou.Volume=vol
  1644. sou.Pitch=pit or 1
  1645. sou.SoundId=id
  1646. swait()
  1647. sou:play()
  1648. game:GetService("Debris"):AddItem(sou,6)
  1649. end))
  1650. end
  1651.  
  1652. function clerp(a,b,t)
  1653. local qa = {QuaternionFromCFrame(a)}
  1654. local qb = {QuaternionFromCFrame(b)}
  1655. local ax, ay, az = a.x, a.y, a.z
  1656. local bx, by, bz = b.x, b.y, b.z
  1657. local _t = 1-t
  1658. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1659. end
  1660.  
  1661. function QuaternionFromCFrame(cf)
  1662. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1663. local trace = m00 + m11 + m22
  1664. if trace > 0 then
  1665. local s = math.sqrt(1 + trace)
  1666. local recip = 0.5/s
  1667. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1668. else
  1669. local i = 0
  1670. if m11 > m00 then
  1671. i = 1
  1672. end
  1673. if m22 > (i == 0 and m00 or m11) then
  1674. i = 2
  1675. end
  1676. if i == 0 then
  1677. local s = math.sqrt(m00-m11-m22+1)
  1678. local recip = 0.5/s
  1679. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1680. elseif i == 1 then
  1681. local s = math.sqrt(m11-m22-m00+1)
  1682. local recip = 0.5/s
  1683. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1684. elseif i == 2 then
  1685. local s = math.sqrt(m22-m00-m11+1)
  1686. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1687. end
  1688. end
  1689. end
  1690.  
  1691. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1692. local xs, ys, zs = x + x, y + y, z + z
  1693. local wx, wy, wz = w*xs, w*ys, w*zs
  1694. local xx = x*xs
  1695. local xy = x*ys
  1696. local xz = x*zs
  1697. local yy = y*ys
  1698. local yz = y*zs
  1699. local zz = z*zs
  1700. 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))
  1701. end
  1702.  
  1703. function QuaternionSlerp(a, b, t)
  1704. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1705. local startInterp, finishInterp;
  1706. if cosTheta >= 0.0001 then
  1707. if (1 - cosTheta) > 0.0001 then
  1708. local theta = math.acos(cosTheta)
  1709. local invSinTheta = 1/math.sin(theta)
  1710. startInterp = math.sin((1-t)*theta)*invSinTheta
  1711. finishInterp = math.sin(t*theta)*invSinTheta
  1712. else
  1713. startInterp = 1-t
  1714. finishInterp = t
  1715. end
  1716. else
  1717. if (1+cosTheta) > 0.0001 then
  1718. local theta = math.acos(-cosTheta)
  1719. local invSinTheta = 1/math.sin(theta)
  1720. startInterp = math.sin((t-1)*theta)*invSinTheta
  1721. finishInterp = math.sin(t*theta)*invSinTheta
  1722. else
  1723. startInterp = t-1
  1724. finishInterp = t
  1725. end
  1726. end
  1727. 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
  1728. end
  1729.  
  1730. local function CFrameFromTopBack(at, top, back)
  1731. local right = top:Cross(back)
  1732. return CFrame.new(at.x, at.y, at.z,
  1733. right.x, top.x, back.x,
  1734. right.y, top.y, back.y,
  1735. right.z, top.z, back.z)
  1736. end
  1737.  
  1738. function Triangle(a, b, c)
  1739. local edg1 = (c-a):Dot((b-a).unit)
  1740. local edg2 = (a-b):Dot((c-b).unit)
  1741. local edg3 = (b-c):Dot((a-c).unit)
  1742. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1743. a, b, c = a, b, c
  1744. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1745. a, b, c = b, c, a
  1746. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1747. a, b, c = c, a, b
  1748. else
  1749. assert(false, "unreachable")
  1750. end
  1751.  
  1752. local len1 = (c-a):Dot((b-a).unit)
  1753. local len2 = (b-a).magnitude - len1
  1754. local width = (a + (b-a).unit*len1 - c).magnitude
  1755.  
  1756. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1757.  
  1758. local list = {}
  1759.  
  1760. if len1 > 0.01 then
  1761. local w1 = Instance.new('WedgePart', m)
  1762. game:GetService("Debris"):AddItem(w1,5)
  1763. w1.Material = "SmoothPlastic"
  1764. w1.FormFactor = 'Custom'
  1765. w1.BrickColor = BrickColor.new("Really red")
  1766. w1.Transparency = 0
  1767. w1.Reflectance = 0
  1768. w1.Material = "SmoothPlastic"
  1769. w1.CanCollide = false
  1770. local l1 = Instance.new("PointLight",w1)
  1771. l1.Color = Color3.new(170,0,0)
  1772. NoOutline(w1)
  1773. local sz = Vector3.new(0.2, width, len1)
  1774. w1.Size = sz
  1775. local sp = Instance.new("SpecialMesh",w1)
  1776. sp.MeshType = "Wedge"
  1777. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1778. w1:BreakJoints()
  1779. w1.Anchored = true
  1780. w1.Parent = workspace
  1781. w1.Transparency = 0.7
  1782. table.insert(Effects,{w1,"Disappear",.01})
  1783. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1784. table.insert(list,w1)
  1785. end
  1786.  
  1787. if len2 > 0.01 then
  1788. local w2 = Instance.new('WedgePart', m)
  1789. game:GetService("Debris"):AddItem(w2,5)
  1790. w2.Material = "SmoothPlastic"
  1791. w2.FormFactor = 'Custom'
  1792. w2.BrickColor = BrickColor.new("Really red")
  1793. w2.Transparency = 0
  1794. w2.Reflectance = 0
  1795. w2.Material = "SmoothPlastic"
  1796. w2.CanCollide = false
  1797. local l2 = Instance.new("PointLight",w2)
  1798. l2.Color = Color3.new(170,0,0)
  1799. NoOutline(w2)
  1800. local sz = Vector3.new(0.2, width, len2)
  1801. w2.Size = sz
  1802. local sp = Instance.new("SpecialMesh",w2)
  1803. sp.MeshType = "Wedge"
  1804. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1805. w2:BreakJoints()
  1806. w2.Anchored = true
  1807. w2.Parent = workspace
  1808. w2.Transparency = 0.7
  1809. table.insert(Effects,{w2,"Disappear",.01})
  1810. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1811. table.insert(list,w2)
  1812. end
  1813. return unpack(list)
  1814. end
  1815.  
  1816.  
  1817. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1818. if hit.Parent == nil then
  1819. return
  1820. end
  1821. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1822. for _, v in pairs(hit.Parent:children()) do
  1823. if v:IsA("Humanoid") then
  1824. h = v
  1825. end
  1826. end
  1827. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1828. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1829. return
  1830. end
  1831. local c = Create("ObjectValue")({
  1832. Name = "creator",
  1833. Value = game:GetService("Players").LocalPlayer,
  1834. Parent = h
  1835. })
  1836. game:GetService("Debris"):AddItem(c, 0.5)
  1837. if HitSound ~= nil and HitPitch ~= nil then
  1838. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1839. end
  1840. local Damage = math.random(minim, maxim)
  1841. local blocked = false
  1842. local block = hit.Parent:findFirstChild("Block")
  1843. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1844. blocked = true
  1845. block.Value = block.Value - 1
  1846. print(block.Value)
  1847. end
  1848. if blocked == false then
  1849. HitHealth = h.Health
  1850. h.MaxHealth = 100
  1851. h.Health = h.Health - Damage
  1852. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1853. print("gained kill")
  1854. dmg(h.Parent)
  1855. end
  1856. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1857. else
  1858. h.Health = h.Health - Damage / 2
  1859. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1860. end
  1861. if Type == "Knockdown" then
  1862. local hum = hit.Parent.Humanoid
  1863. hum.PlatformStand = true
  1864. coroutine.resume(coroutine.create(function(HHumanoid)
  1865. swait(1)
  1866. HHumanoid.PlatformStand = false
  1867. end), hum)
  1868. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1869. local bodvol = Create("BodyVelocity")({
  1870. velocity = angle * knockback,
  1871. P = 5000,
  1872. maxForce = Vector3.new(8000, 8000, 8000),
  1873. Parent = hit
  1874. })
  1875. local rl = Create("BodyAngularVelocity")({
  1876. P = 3000,
  1877. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1878. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1879. Parent = hit
  1880. })
  1881. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1882. game:GetService("Debris"):AddItem(rl, 0.5)
  1883. elseif Type == "Normal" then
  1884. local vp = Create("BodyVelocity")({
  1885. P = 500,
  1886. maxForce = Vector3.new(math.huge, 0, math.huge),
  1887. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1888. })
  1889. if knockback > 0 then
  1890. vp.Parent = hit.Parent.Head
  1891. end
  1892. game:GetService("Debris"):AddItem(vp, 0.5)
  1893. elseif Type == "Up" then
  1894. local bodyVelocity = Create("BodyVelocity")({
  1895. velocity = Vector3.new(0, 20, 0),
  1896. P = 5000,
  1897. maxForce = Vector3.new(8000, 8000, 8000),
  1898. Parent = hit
  1899. })
  1900. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1901. local bodyVelocity = Create("BodyVelocity")({
  1902. velocity = Vector3.new(0, 20, 0),
  1903. P = 5000,
  1904. maxForce = Vector3.new(8000, 8000, 8000),
  1905. Parent = hit
  1906. })
  1907. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1908. elseif Type == "Leech" then
  1909. local hum = hit.Parent.Humanoid
  1910. if hum ~= nil then
  1911. for i = 0, 2 do
  1912. 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)
  1913. end
  1914. Humanoid.Health = Humanoid.Health + 10
  1915. end
  1916. elseif Type == "UpKnock" then
  1917. local hum = hit.Parent.Humanoid
  1918. hum.PlatformStand = true
  1919. if hum ~= nil then
  1920. hitr = true
  1921. end
  1922. coroutine.resume(coroutine.create(function(HHumanoid)
  1923. swait(5)
  1924. HHumanoid.PlatformStand = false
  1925. hitr = false
  1926. end), hum)
  1927. local bodyVelocity = Create("BodyVelocity")({
  1928. velocity = Vector3.new(0, 20, 0),
  1929. P = 5000,
  1930. maxForce = Vector3.new(8000, 8000, 8000),
  1931. Parent = hit
  1932. })
  1933. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1934. local bodyVelocity = Create("BodyVelocity")({
  1935. velocity = Vector3.new(0, 20, 0),
  1936. P = 5000,
  1937. maxForce = Vector3.new(8000, 8000, 8000),
  1938. Parent = hit
  1939. })
  1940. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1941. elseif Type == "Snare" then
  1942. local bp = Create("BodyPosition")({
  1943. P = 2000,
  1944. D = 100,
  1945. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1946. position = hit.Parent.Torso.Position,
  1947. Parent = hit.Parent.Torso
  1948. })
  1949. game:GetService("Debris"):AddItem(bp, 1)
  1950. elseif Type == "Slashnare" then
  1951. 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)
  1952. for i = 1, math.random(4, 5) do
  1953. 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)
  1954. end
  1955. local bp = Create("BodyPosition")({
  1956. P = 2000,
  1957. D = 100,
  1958. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1959. position = hit.Parent.Torso.Position,
  1960. Parent = hit.Parent.Torso
  1961. })
  1962. game:GetService("Debris"):AddItem(bp, 1)
  1963. elseif Type == "Spike" then
  1964. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1965. local bp = Create("BodyPosition")({
  1966. P = 2000,
  1967. D = 100,
  1968. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1969. position = hit.Parent.Torso.Position,
  1970. Parent = hit.Parent.Torso
  1971. })
  1972. game:GetService("Debris"):AddItem(bp, 1)
  1973. elseif Type == "Freeze" then
  1974. local BodPos = Create("BodyPosition")({
  1975. P = 50000,
  1976. D = 1000,
  1977. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1978. position = hit.Parent.Torso.Position,
  1979. Parent = hit.Parent.Torso
  1980. })
  1981. local BodGy = Create("BodyGyro")({
  1982. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1983. P = 20000,
  1984. Parent = hit.Parent.Torso,
  1985. cframe = hit.Parent.Torso.CFrame
  1986. })
  1987. hit.Parent.Torso.Anchored = true
  1988. coroutine.resume(coroutine.create(function(Part)
  1989. swait(1.5)
  1990. Part.Anchored = false
  1991. end), hit.Parent.Torso)
  1992. game:GetService("Debris"):AddItem(BodPos, 3)
  1993. game:GetService("Debris"):AddItem(BodGy, 3)
  1994. end
  1995. local debounce = Create("BoolValue")({
  1996. Name = "DebounceHit",
  1997. Parent = hit.Parent,
  1998. Value = true
  1999. })
  2000. game:GetService("Debris"):AddItem(debounce, Delay)
  2001. c = Instance.new("ObjectValue")
  2002. c.Name = "creator"
  2003. c.Value = Player
  2004. c.Parent = h
  2005. game:GetService("Debris"):AddItem(c, 0.5)
  2006. end
  2007. end
  2008. function ShowDamage(Pos, Text, Time, Color)
  2009. local Rate = 0.03333333333333333
  2010. local Pos = Pos or Vector3.new(0, 0, 0)
  2011. local Text = Text or ""
  2012. local Time = Time or 2
  2013. local Color = Color or Color3.new(1, 0, 1)
  2014. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2015. EffectPart.Anchored = true
  2016. local BillboardGui = Create("BillboardGui")({
  2017. Size = UDim2.new(3, 0, 3, 0),
  2018. Adornee = EffectPart,
  2019. Parent = EffectPart
  2020. })
  2021. local TextLabel = Create("TextLabel")({
  2022. BackgroundTransparency = 1,
  2023. Size = UDim2.new(1, 0, 1, 0),
  2024. Text = Text,
  2025. TextColor3 = Color,
  2026. TextScaled = true,
  2027. Font = Enum.Font.ArialBold,
  2028. Parent = BillboardGui
  2029. })
  2030. game.Debris:AddItem(EffectPart, Time + 0.1)
  2031. EffectPart.Parent = game:GetService("Workspace")
  2032. delay(0, function()
  2033. local Frames = Time / Rate
  2034. for Frame = 1, Frames do
  2035. wait(Rate)
  2036. local Percent = Frame / Frames
  2037. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2038. TextLabel.TextTransparency = Percent
  2039. end
  2040. if EffectPart and EffectPart.Parent then
  2041. EffectPart:Destroy()
  2042. end
  2043. end)
  2044. end
  2045. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2046. for _, c in pairs(workspace:children()) do
  2047. local hum = c:findFirstChildOfClass("Humanoid")
  2048. if hum ~= nil then
  2049. local head = c:findFirstChild("Head")
  2050. if head ~= nil then
  2051. local targ = head.Position - Part.Position
  2052. local mag = targ.magnitude
  2053. if magni >= mag and c.Name ~= Player.Name then
  2054. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2055. end
  2056. end
  2057. end
  2058. end
  2059. end
  2060.  
  2061. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2062. for _, c in pairs(workspace:children()) do
  2063. local hum = c:findFirstChild("Humanoid")
  2064. if hum ~= nil then
  2065. local head = c:findFirstChild("Torso")
  2066. if head ~= nil then
  2067. local targ = head.Position - Part.Position
  2068. local mag = targ.magnitude
  2069. if magni >= mag and c.Name ~= Player.Name then
  2070. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2071. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2072. end
  2073. end
  2074. end
  2075. end
  2076. end
  2077.  
  2078. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2079. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2080. end
  2081.  
  2082. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2083. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=true
  2085. prt.CFrame=cframe
  2086. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2087. --http://www.roblox.com/asset/?id=4770560
  2088. game:GetService("Debris"):AddItem(prt,2)
  2089. CF=prt.CFrame
  2090. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2091. for i=0,1,0.2 do
  2092. wait()
  2093. Part.CFrame=CF*cf(0,0,-0.4)
  2094. end
  2095. for i=0,1,delay do
  2096. wait()
  2097. --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)
  2098. Mesh.Scale=Mesh.Scale
  2099. end
  2100. for i=0,1,0.1 do
  2101. wait()
  2102. Part.Transparency=i
  2103. end
  2104. Part.Parent=nil
  2105. end),prt,msh,CF)
  2106. end
  2107.  
  2108. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2109. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2110. prt.Anchored=true
  2111. prt.Material = "Neon"
  2112. prt.CFrame=cframe
  2113. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2114. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2115. game:GetService("Debris"):AddItem(prt,5)
  2116. coroutine.resume(coroutine.create(function(Part,Mesh)
  2117. for i=0,1,delay do
  2118. swait()
  2119. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2120. Part.Transparency=i
  2121. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2122. end
  2123. Part.Parent=nil
  2124. end),prt,msh)
  2125. end
  2126.  
  2127. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2128. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2129. prt.Anchored=true
  2130. prt.Material = "Neon"
  2131. prt.CFrame=cframe
  2132. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2133. game:GetService("Debris"):AddItem(prt,5)
  2134. coroutine.resume(coroutine.create(function(Part,Mesh)
  2135. local rtype = rottype
  2136. for i=0,1,delay do
  2137. swait()
  2138. if rtype == 1 then
  2139. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2140. elseif rtype == 2 then
  2141. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2142. end
  2143. Part.Transparency=i
  2144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2145. end
  2146. Part.Parent=nil
  2147. end),prt,msh)
  2148. end
  2149.  
  2150. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2151. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2152. prt.Anchored=true
  2153. prt.CFrame=cframe
  2154. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2155. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2156. game:GetService("Debris"):AddItem(prt,5)
  2157. coroutine.resume(coroutine.create(function(Part,Mesh)
  2158. for i=0,1,delay do
  2159. wait()
  2160. Part.Transparency=i
  2161. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2162. end
  2163. Part.Parent=nil
  2164. end),prt,msh)
  2165. end
  2166.  
  2167. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2168. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2169. prt.Anchored=true
  2170. prt.Material = "Neon"
  2171. prt.CFrame=cframe
  2172. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2173. game:GetService("Debris"):AddItem(prt,5)
  2174. coroutine.resume(coroutine.create(function(Part,Mesh)
  2175. local rtype = rottype
  2176. for i=0,1,delay do
  2177. swait()
  2178. if rtype == 1 then
  2179. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2180. elseif rtype == 2 then
  2181. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2182. end
  2183. Part.Transparency=i
  2184. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2185. end
  2186. Part.Parent=nil
  2187. end),prt,msh)
  2188. end
  2189.  
  2190. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2191. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2192. prt.Anchored=true
  2193. prt.Material = "Neon"
  2194. prt.CFrame=cframe
  2195. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2196. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2197. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2198. game:GetService("Debris"):AddItem(prt,5)
  2199. coroutine.resume(coroutine.create(function(Part,Mesh)
  2200. local rtype = rottype
  2201. for i=0,1,delay do
  2202. swait()
  2203. if rtype == 1 then
  2204. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2205. elseif rtype == 2 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2207. end
  2208. dec.Transparency=i
  2209. dec2.Transparency=i
  2210. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2211. end
  2212. Part.Parent=nil
  2213. end),prt,msh)
  2214. end
  2215.  
  2216. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2217. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2218. prt.Anchored=true
  2219. prt.Material = "Neon"
  2220. prt.CFrame=cframe
  2221. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2222. game:GetService("Debris"):AddItem(prt,5)
  2223. coroutine.resume(coroutine.create(function(Part,Mesh)
  2224. local rtype = rottype
  2225. for i=0,1,delay do
  2226. swait()
  2227. if rtype == 1 then
  2228. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2229. elseif rtype == 2 then
  2230. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2231. end
  2232. prt.Transparency=i
  2233. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2234. end
  2235. Part.Parent=nil
  2236. end),prt,msh)
  2237. end
  2238.  
  2239. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2240. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2241. prt.Anchored=true
  2242. prt.Material = "Neon"
  2243. prt.CFrame=cframe
  2244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2245. game:GetService("Debris"):AddItem(prt,5)
  2246. coroutine.resume(coroutine.create(function(Part,Mesh)
  2247. local rtype = rottype
  2248. for i=0,1,delay do
  2249. swait()
  2250. if rtype == 1 then
  2251. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2252. elseif rtype == 2 then
  2253. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2254. end
  2255. prt.Transparency=i
  2256. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2257. end
  2258. Part.Parent=nil
  2259. end),prt,msh)
  2260. end
  2261.  
  2262. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2263. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2264. prt.Anchored=true
  2265. prt.Material = "Neon"
  2266. prt.CFrame=cframe
  2267. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2268. game:GetService("Debris"):AddItem(prt,5)
  2269. coroutine.resume(coroutine.create(function(Part,Mesh)
  2270. local rtype = rottype
  2271. for i=0,1,delay do
  2272. swait()
  2273. if rtype == 1 then
  2274. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2275. elseif rtype == 2 then
  2276. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2277. end
  2278. prt.Transparency=i
  2279. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2280. end
  2281. Part.Parent=nil
  2282. end),prt,msh)
  2283. end
  2284.  
  2285. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2286. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2287. prt.Anchored=true
  2288. prt.Material = "Neon"
  2289. prt.CFrame=cframe
  2290. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2291. game:GetService("Debris"):AddItem(prt,5)
  2292. coroutine.resume(coroutine.create(function(Part,Mesh)
  2293. local rtype = rottype
  2294. for i=0,1,delay do
  2295. swait()
  2296. if rtype == 1 then
  2297. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2298. elseif rtype == 2 then
  2299. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2300. end
  2301. prt.Transparency=i
  2302. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2303. end
  2304. Part.Parent=nil
  2305. end),prt,msh)
  2306. end
  2307.  
  2308. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2309. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2310. prt.Anchored=false
  2311. prt.CFrame=cframe
  2312. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2313. local wld=weld(prt,prt,Parent,cframe)
  2314. game:GetService("Debris"):AddItem(prt,5)
  2315. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2316. for i=0,1,delay do
  2317. wait()
  2318. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2319. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2320. Part.Transparency=i
  2321. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2322. end
  2323. Part.Parent=nil
  2324. end),prt,msh,wld)
  2325. end
  2326.  
  2327. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2328. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2329. prt.Anchored=false
  2330. prt.CFrame=cframe
  2331. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2332. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2333. game:GetService("Debris"):AddItem(prt,5)
  2334. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2335. for i=0,1,delay do
  2336. wait()
  2337. Weld.C0=euler(i*20,0,0)
  2338. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2339. Part.Transparency=i
  2340. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2341. end
  2342. Part.Parent=nil
  2343. end),prt,msh,wld)
  2344. end
  2345.  
  2346. function MagicCircle2(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. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2351. game:GetService("Debris"):AddItem(prt,2)
  2352. coroutine.resume(coroutine.create(function(Part,Mesh)
  2353. for i=0,1,delay do
  2354. wait()
  2355. Part.CFrame=Part.CFrame
  2356. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2357. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2358. prt2.Anchored=true
  2359. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2360. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2361. game:GetService("Debris"):AddItem(prt2,2)
  2362. coroutine.resume(coroutine.create(function(Part,Mesh)
  2363. for i=0,1,0.1 do
  2364. wait()
  2365. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2366. end
  2367. Part.Parent=nil
  2368. end),prt2,msh2)
  2369. end
  2370. for i=0,1,delay*2 do
  2371. wait()
  2372. Part.CFrame=Part.CFrame
  2373. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2374. end
  2375. Part.Parent=nil
  2376. end),prt,msh)
  2377. end
  2378.  
  2379. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2380. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2381. prt.Anchored=true
  2382. prt.CFrame=cframe
  2383. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2384. game:GetService("Debris"):AddItem(prt,2)
  2385. coroutine.resume(coroutine.create(function(Part,Mesh)
  2386. for i=0,1,delay do
  2387. wait()
  2388. Part.CFrame=Part.CFrame
  2389. Part.Transparency=i
  2390. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2391. end
  2392. Part.Parent=nil
  2393. end),prt,msh)
  2394. end
  2395.  
  2396. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2397. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2398. prt.Anchored=true
  2399. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2400. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2401. game:GetService("Debris"):AddItem(prt,2)
  2402. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2403. CF=Part.CFrame
  2404. Numbb=0
  2405. randnumb=math.random()/10
  2406. rand1=math.random()/10
  2407. for i=0,1,rand1 do
  2408. wait()
  2409. CF=CF*cf(0,math.random()/2,0)
  2410. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2411. Part.CFrame=CF*euler(Numbb,0,0)
  2412. Part.Transparency=i
  2413. Numbb=Numbb+randnumb
  2414. end
  2415. Part.Parent=nil
  2416. end),prt,CF,Numbb,randnumb)
  2417. end
  2418.  
  2419. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2420. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2421. prt.Anchored=true
  2422. prt.CFrame=cframe
  2423. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2424. game:GetService("Debris"):AddItem(prt,5)
  2425. coroutine.resume(coroutine.create(function(Part,Mesh)
  2426. for i=0,1,delay do
  2427. wait()
  2428. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2429. Part.Transparency=i
  2430. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2431. end
  2432. Part.Parent=nil
  2433. end),prt,msh)
  2434. end
  2435.  
  2436. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2437. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2438. prt.Anchored=true
  2439. prt.CFrame=cframe
  2440. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2441. game:GetService("Debris"):AddItem(prt,2)
  2442. coroutine.resume(coroutine.create(function(Part,Mesh)
  2443. for i=0,1,delay do
  2444. wait()
  2445. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2446. Part.Transparency=i
  2447. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2448. end
  2449. Part.Parent=nil
  2450. end),prt,msh)
  2451. end
  2452.  
  2453. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2454. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2455. prt.Anchored=true
  2456. prt.CFrame=cframe*cf(x,y,z)
  2457. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2458. game:GetService("Debris"):AddItem(prt,5)
  2459. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2460. local num=math.random()
  2461. local num2=math.random(-3,2)+math.random()
  2462. local numm=0
  2463. for i=0,1,delay*2 do
  2464. swait()
  2465. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2466. Part.Transparency=i
  2467. numm=numm+0.01
  2468. end
  2469. Part.Parent=nil
  2470. Mesh.Parent=nil
  2471. end),prt,msh,x,y,z)
  2472. end
  2473.  
  2474. function dmgstart(dmg,what)
  2475. hitcon = what.Touched:connect(function(hit)
  2476. local hum = hit.Parent:FindFirstChild("Humanoid")
  2477. if hum and not hum:IsDescendantOf(Character) then
  2478. hum:TakeDamage(dmg)
  2479. end
  2480. end)
  2481. end
  2482.  
  2483. function dmgstop()
  2484. hitcon:disconnect()
  2485. end
  2486.  
  2487. function Cloak()
  2488. Face.Parent=nil
  2489. cloaked=true
  2490. for _,v in pairs(Torso.Parent:children()) do
  2491. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2492. coroutine.resume(coroutine.create(function()
  2493. for i=0,1,0.2 do
  2494. wait()
  2495. v.Transparency=i
  2496. end
  2497. v.Transparency=1
  2498. end))
  2499. end
  2500. if v.className=="Hat" then
  2501. hatp=v.Handle
  2502. coroutine.resume(coroutine.create(function(derp)
  2503. for i=0,1,0.2 do
  2504. wait()
  2505. derp.Transparency=i
  2506. end
  2507. derp.Transparency=1
  2508. end),hatp)
  2509. end
  2510. end
  2511. for _,v in pairs(m:children()) do
  2512. if v.className=="Part" then
  2513. coroutine.resume(coroutine.create(function()
  2514. for i=0,1,0.2 do
  2515. wait()
  2516. v.Transparency=i
  2517. end
  2518. v.Transparency=1
  2519. end))
  2520. end
  2521. end
  2522. end
  2523.  
  2524. function UnCloak()
  2525. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2526. Face.Parent=Head
  2527. cloaked=false
  2528. for _,v in pairs(Torso.Parent:children()) do
  2529. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2530. coroutine.resume(coroutine.create(function()
  2531. for i=0,1,0.1 do
  2532. wait()
  2533. v.Transparency=v.Transparency-0.1
  2534. end
  2535. v.Transparency=0
  2536. end))
  2537. end
  2538. if v.className=="Hat" then
  2539. hatp=v.Handle
  2540. coroutine.resume(coroutine.create(function(derp)
  2541. for i=0,1,0.1 do
  2542. wait()
  2543. derp.Transparency=derp.Transparency-0.1
  2544. end
  2545. derp.Transparency=0
  2546. end),hatp)
  2547. end
  2548. end
  2549. for _,v in pairs(m:children()) do
  2550. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2551. coroutine.resume(coroutine.create(function()
  2552. for i=0,1,0.1 do
  2553. wait()
  2554. v.Transparency=v.Transparency-0.1
  2555. end
  2556. v.Transparency=0
  2557. end))
  2558. v.Transparency=0
  2559. end
  2560. end
  2561. end
  2562.  
  2563. local origcolor = BrickColor.new("Pastel light blue")
  2564. ---- This section of explosions.
  2565.  
  2566. ----
  2567.  
  2568.  
  2569. function ring(type,pos,scale,value)
  2570. local type = type
  2571. local rng = Instance.new("Part", char)
  2572. rng.Anchored = true
  2573. rng.BrickColor = origcolor
  2574. rng.CanCollide = false
  2575. rng.FormFactor = 3
  2576. rng.Name = "Ring"
  2577. rng.Size = Vector3.new(1, 1, 1)
  2578. rng.Transparency = 0
  2579. rng.TopSurface = 0
  2580. rng.BottomSurface = 0
  2581. rng.CFrame = pos
  2582. local rngm = Instance.new("SpecialMesh", rng)
  2583. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2584. rngm.Scale = scale
  2585. local scaler2 = 1
  2586. if type == "Add" then
  2587. scaler2 = 1*value
  2588. elseif type == "Divide" then
  2589. scaler2 = 1/value
  2590. end
  2591. coroutine.resume(coroutine.create(function()
  2592. for i = 0,10,0.1 do
  2593. swait()
  2594. if type == "Add" then
  2595. scaler2 = scaler2 - 0.01*value
  2596. elseif type == "Divide" then
  2597. scaler2 = scaler2 - 0.01/value
  2598. end
  2599. rng.Transparency = rng.Transparency + 0.01
  2600. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2601. end
  2602. rng:Destroy()
  2603. end))
  2604. end
  2605.  
  2606.  
  2607. function wave(type,pos,scale,value)
  2608. local type = type
  2609. local rng = Instance.new("Part", char)
  2610. rng.Anchored = true
  2611. rng.BrickColor = origcolor
  2612. rng.CanCollide = false
  2613. rng.FormFactor = 3
  2614. rng.Name = "Ring"
  2615. rng.Size = Vector3.new(1, 1, 1)
  2616. rng.Transparency = 0
  2617. rng.TopSurface = 0
  2618. rng.BottomSurface = 0
  2619. rng.CFrame = pos
  2620. local rngm = Instance.new("SpecialMesh", rng)
  2621. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2622. rngm.Scale = scale
  2623. local scaler2 = 1
  2624. if type == "Add" then
  2625. scaler2 = 1*value
  2626. elseif type == "Divide" then
  2627. scaler2 = 1/value
  2628. end
  2629. coroutine.resume(coroutine.create(function()
  2630. for i = 0,10,0.1 do
  2631. swait()
  2632. if type == "Add" then
  2633. scaler2 = scaler2 - 0.01*value
  2634. elseif type == "Divide" then
  2635. scaler2 = scaler2 - 0.01/value
  2636. end
  2637. rng.Transparency = rng.Transparency + 0.01
  2638. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2639. end
  2640. rng:Destroy()
  2641. end))
  2642. end
  2643.  
  2644. function wind(type,pos,scale,value,speed)
  2645. local type = type
  2646. local rng = Instance.new("Part", char)
  2647. rng.Anchored = true
  2648. rng.BrickColor = origcolor
  2649. rng.CanCollide = false
  2650. rng.FormFactor = 3
  2651. rng.Name = "Ring"
  2652. rng.Size = Vector3.new(1, 1, 1)
  2653. rng.Transparency = 0
  2654. rng.TopSurface = 0
  2655. rng.BottomSurface = 0
  2656. rng.CFrame = pos
  2657. local rngm = Instance.new("SpecialMesh", rng)
  2658. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2659. rngm.Scale = scale
  2660. local scaler2 = 1
  2661. if type == "Add" then
  2662. scaler2 = 1*value
  2663. elseif type == "Divide" then
  2664. scaler2 = 1/value
  2665. end
  2666. coroutine.resume(coroutine.create(function()
  2667. for i = 0,10,0.1 do
  2668. swait()
  2669. if type == "Add" then
  2670. scaler2 = scaler2 - 0.01*value
  2671. elseif type == "Divide" then
  2672. scaler2 = scaler2 - 0.01/value
  2673. end
  2674. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2675. rng.Transparency = rng.Transparency + 0.01
  2676. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2677. end
  2678. rng:Destroy()
  2679. end))
  2680. end
  2681.  
  2682. function groundwind(type,pos,scale,value,speed)
  2683. local type = type
  2684. local rng = Instance.new("Part", char)
  2685. rng.Anchored = true
  2686. rng.BrickColor = origcolor
  2687. rng.CanCollide = false
  2688. rng.FormFactor = 3
  2689. rng.Name = "Ring"
  2690. rng.Size = Vector3.new(1, 1, 1)
  2691. rng.Transparency = 0
  2692. rng.TopSurface = 0
  2693. rng.BottomSurface = 0
  2694. rng.CFrame = pos
  2695. local rngm = Instance.new("SpecialMesh", rng)
  2696. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2697. rngm.Scale = scale
  2698. local scaler2 = 1
  2699. if type == "Add" then
  2700. scaler2 = 1*value
  2701. elseif type == "Divide" then
  2702. scaler2 = 1/value
  2703. end
  2704. coroutine.resume(coroutine.create(function()
  2705. for i = 0,10,0.1 do
  2706. swait()
  2707. if type == "Add" then
  2708. scaler2 = scaler2 - 0.01*value
  2709. elseif type == "Divide" then
  2710. scaler2 = scaler2 - 0.01/value
  2711. end
  2712. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2713. rng.Transparency = rng.Transparency + 0.01
  2714. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2715. end
  2716. rng:Destroy()
  2717. end))
  2718. end
  2719.  
  2720. function CameraManager()
  2721. if TwoD and not CamInterrupt then
  2722. if Humanoid.Health > 0 then
  2723. Camera.CameraSubject = Humanoid
  2724. Camera.CameraType = "Scriptable"
  2725. Humanoid.AutoRotate = false
  2726. if Booleans.GyroUse then
  2727. Directer.MaxTorque = Vec3(0, huge, 0)
  2728. else
  2729. Directer.MaxTorque = Vec3(0, 0, 0)
  2730. end
  2731. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2732. if Booleans.CamFollow then
  2733. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2734. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2735. else
  2736. CPart.Position = RootPart.Position
  2737. end
  2738. else
  2739. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2740. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2741. end
  2742. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2743. else
  2744. Camera.CameraSubject = Humanoid
  2745. Camera.CameraType = "Custom"
  2746. Controller.Disabled = false
  2747. end
  2748. end
  2749. end
  2750.  
  2751. function ring(type,pos,scale,value)
  2752. local type = type
  2753. local rng = Instance.new("Part", char)
  2754. rng.Anchored = true
  2755. rng.BrickColor = origcolor
  2756. rng.CanCollide = false
  2757. rng.FormFactor = 3
  2758. rng.Name = "Ring"
  2759. rng.Size = Vector3.new(1, 1, 1)
  2760. rng.Transparency = 0
  2761. rng.TopSurface = 0
  2762. rng.BottomSurface = 0
  2763. rng.CFrame = pos
  2764. local rngm = Instance.new("SpecialMesh", rng)
  2765. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2766. rngm.Scale = scale
  2767. local scaler2 = 1
  2768. if type == "Add" then
  2769. scaler2 = 1*value
  2770. elseif type == "Divide" then
  2771. scaler2 = 1/value
  2772. end
  2773. coroutine.resume(coroutine.create(function()
  2774. for i = 0,10,0.1 do
  2775. swait()
  2776. if type == "Add" then
  2777. scaler2 = scaler2 - 0.01*value
  2778. elseif type == "Divide" then
  2779. scaler2 = scaler2 - 0.01/value
  2780. end
  2781. rng.Transparency = rng.Transparency + 0.01
  2782. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2783. end
  2784. rng:Destroy()
  2785. end))
  2786. end
  2787.  
  2788.  
  2789. function wave(type,pos,scale,value)
  2790. local type = type
  2791. local rng = Instance.new("Part", char)
  2792. rng.Anchored = true
  2793. rng.BrickColor = origcolor
  2794. rng.CanCollide = false
  2795. rng.FormFactor = 3
  2796. rng.Name = "Ring"
  2797. rng.Size = Vector3.new(1, 1, 1)
  2798. rng.Transparency = 0
  2799. rng.TopSurface = 0
  2800. rng.BottomSurface = 0
  2801. rng.CFrame = pos
  2802. local rngm = Instance.new("SpecialMesh", rng)
  2803. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2804. rngm.Scale = scale
  2805. local scaler2 = 1
  2806. if type == "Add" then
  2807. scaler2 = 1*value
  2808. elseif type == "Divide" then
  2809. scaler2 = 1/value
  2810. end
  2811. coroutine.resume(coroutine.create(function()
  2812. for i = 0,10,0.1 do
  2813. swait()
  2814. if type == "Add" then
  2815. scaler2 = scaler2 - 0.01*value
  2816. elseif type == "Divide" then
  2817. scaler2 = scaler2 - 0.01/value
  2818. end
  2819. rng.Transparency = rng.Transparency + 0.01
  2820. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2821. end
  2822. rng:Destroy()
  2823. end))
  2824. end
  2825.  
  2826. function sphere(bonuspeed,type,pos,scale,value,color)
  2827. local type = type
  2828. local rng = Instance.new("Part", char)
  2829. rng.Anchored = true
  2830. if ModeOfGlitch ~= 9 then
  2831. rng.BrickColor = color
  2832. elseif ModeOfGlitch == 9 then
  2833. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2834. end
  2835. rng.CanCollide = false
  2836. rng.FormFactor = 3
  2837. rng.Name = "Ring"
  2838. rng.Material = "Neon"
  2839. rng.Size = Vector3.new(1, 1, 1)
  2840. rng.Transparency = 0
  2841. rng.TopSurface = 0
  2842. rng.BottomSurface = 0
  2843. rng.CFrame = pos
  2844. local rngm = Instance.new("SpecialMesh", rng)
  2845. rngm.MeshType = "Sphere"
  2846. rngm.Scale = scale
  2847. if rainbowmode == true then
  2848. rng.Color = Color3.new(r/255,g/255,b/255)
  2849. end
  2850. if ModeOfGlitch == 9 then
  2851. coroutine.resume(coroutine.create(function()
  2852. while true do
  2853. swait()
  2854. if rng.Parent ~= nil then
  2855. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2856. else
  2857. break
  2858. end
  2859. end
  2860. end))
  2861. end
  2862. local scaler2 = 1
  2863. if type == "Add" then
  2864. scaler2 = 1*value
  2865. elseif type == "Divide" then
  2866. scaler2 = 1/value
  2867. end
  2868. coroutine.resume(coroutine.create(function()
  2869. for i = 0,10/bonuspeed,0.1 do
  2870. swait()
  2871. if rainbowmode == true then
  2872. rng.Color = Color3.new(r/255,g/255,b/255)
  2873. end
  2874. if type == "Add" then
  2875. scaler2 = scaler2 - 0.01*value/bonuspeed
  2876. elseif type == "Divide" then
  2877. scaler2 = scaler2 - 0.01/value*bonuspeed
  2878. end
  2879. if chaosmode == true then
  2880. rng.BrickColor = BrickColor.random()
  2881. end
  2882. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2883. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2884. end
  2885. rng:Destroy()
  2886. end))
  2887. end
  2888.  
  2889. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2890. local type = type
  2891. local rng = Instance.new("Part", char)
  2892. rng.Anchored = true
  2893. if ModeOfGlitch ~= 9 then
  2894. rng.BrickColor = color
  2895. elseif ModeOfGlitch == 9 then
  2896. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2897. end
  2898. rng.CanCollide = false
  2899. rng.FormFactor = 3
  2900. rng.Name = "Ring"
  2901. rng.Material = "Neon"
  2902. rng.Size = Vector3.new(1, 1, 1)
  2903. rng.Transparency = 0
  2904. rng.TopSurface = 0
  2905. rng.BottomSurface = 0
  2906. rng.CFrame = pos
  2907. local rngm = Instance.new("SpecialMesh", rng)
  2908. rngm.MeshType = "Sphere"
  2909. rngm.Scale = scale
  2910. local scaler2 = 1
  2911. local scaler2b = 1
  2912. local scaler2c = 1
  2913. if type == "Add" then
  2914. scaler2 = 1*value
  2915. scaler2b = 1*value2
  2916. scaler2c = 1*value3
  2917. elseif type == "Divide" then
  2918. scaler2 = 1/value
  2919. scaler2b = 1/value2
  2920. scaler2c = 1/value3
  2921. end
  2922. if ModeOfGlitch == 9 then
  2923. coroutine.resume(coroutine.create(function()
  2924. while true do
  2925. swait()
  2926. if rng.Parent ~= nil then
  2927. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2928. else
  2929. break
  2930. end
  2931. end
  2932. end))
  2933. end
  2934. coroutine.resume(coroutine.create(function()
  2935. for i = 0,10/bonuspeed,0.1 do
  2936. swait()
  2937. if type == "Add" then
  2938. scaler2 = scaler2 - 0.01*value/bonuspeed
  2939. scaler2b = scaler2b - 0.01*value/bonuspeed
  2940. scaler2c = scaler2c - 0.01*value/bonuspeed
  2941. elseif type == "Divide" then
  2942. scaler2 = scaler2 - 0.01/value*bonuspeed
  2943. scaler2b = scaler2b - 0.01/value*bonuspeed
  2944. scaler2c = scaler2c - 0.01/value*bonuspeed
  2945. end
  2946. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2947. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2948. end
  2949. rng:Destroy()
  2950. end))
  2951. end
  2952.  
  2953. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2954. local type = type
  2955. local rotenable = rotatingop
  2956. local rng = Instance.new("Part", char)
  2957. rng.Anchored = true
  2958. rng.BrickColor = color
  2959. rng.CanCollide = false
  2960. rng.FormFactor = 3
  2961. rng.Name = "Ring"
  2962. rng.Material = "Neon"
  2963. rng.Size = Vector3.new(1, 1, 1)
  2964. rng.Transparency = 0
  2965. if typeoftrans == "In" then
  2966. rng.Transparency = 1
  2967. end
  2968. rng.TopSurface = 0
  2969. rng.BottomSurface = 0
  2970. rng.CFrame = pos
  2971. local rngm = Instance.new("SpecialMesh", rng)
  2972. rngm.MeshType = "FileMesh"
  2973. if typeofshape == "Normal" then
  2974. rngm.MeshId = "rbxassetid://662586858"
  2975. elseif typeofshape == "Round" then
  2976. rngm.MeshId = "rbxassetid://662585058"
  2977. end
  2978. rngm.Scale = scale
  2979. local scaler2 = 1/10
  2980. if type == "Add" then
  2981. scaler2 = 1*value/10
  2982. elseif type == "Divide" then
  2983. scaler2 = 1/value/10
  2984. end
  2985. local randomrot = math.random(1,2)
  2986. coroutine.resume(coroutine.create(function()
  2987. for i = 0,10/bonuspeed,0.1 do
  2988. swait()
  2989. if type == "Add" then
  2990. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2991. elseif type == "Divide" then
  2992. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2993. end
  2994. if rotenable == true then
  2995. if randomrot == 1 then
  2996. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2997. elseif randomrot == 2 then
  2998. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2999. end
  3000. end
  3001. if typeoftrans == "Out" then
  3002. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3003. elseif typeoftrans == "In" then
  3004. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3005. end
  3006. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3007. end
  3008. rng:Destroy()
  3009. end))
  3010. end
  3011.  
  3012. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3013. local type = type
  3014. local rng = Instance.new("Part", char)
  3015. rng.Anchored = true
  3016. rng.BrickColor = color
  3017. rng.CanCollide = false
  3018. rng.FormFactor = 3
  3019. rng.Name = "Ring"
  3020. rng.Material = "Neon"
  3021. rng.Size = Vector3.new(1, 1, 1)
  3022. rng.Transparency = 0
  3023. rng.TopSurface = 0
  3024. rng.BottomSurface = 0
  3025. rng.CFrame = pos
  3026. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3027. local rngm = Instance.new("SpecialMesh", rng)
  3028. rngm.MeshType = "Brick"
  3029. rngm.Scale = vt(x1,y1,z1)
  3030. if rainbowmode == true then
  3031. rng.Color = Color3.new(r/255,g/255,b/255)
  3032. end
  3033. local scaler2 = 1
  3034. local speeder = FastSpeed/10
  3035. if type == "Add" then
  3036. scaler2 = 1*value
  3037. elseif type == "Divide" then
  3038. scaler2 = 1/value
  3039. end
  3040. coroutine.resume(coroutine.create(function()
  3041. for i = 0,10/bonuspeed,0.1 do
  3042. swait()
  3043. if rainbowmode == true then
  3044. rng.Color = Color3.new(r/255,g/255,b/255)
  3045. end
  3046. if type == "Add" then
  3047. scaler2 = scaler2 - 0.01*value/bonuspeed
  3048. elseif type == "Divide" then
  3049. scaler2 = scaler2 - 0.01/value*bonuspeed
  3050. end
  3051. if chaosmode == true then
  3052. rng.BrickColor = BrickColor.random()
  3053. end
  3054. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3055. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3056. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3057. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3058. end
  3059. rng:Destroy()
  3060. end))
  3061. end
  3062.  
  3063. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3064. local type = type
  3065. local rng = Instance.new("Part", char)
  3066. rng.Anchored = true
  3067. rng.BrickColor = color
  3068. rng.CanCollide = false
  3069. rng.FormFactor = 3
  3070. rng.Name = "Ring"
  3071. rng.Material = "Neon"
  3072. rng.Size = Vector3.new(1, 1, 1)
  3073. rng.Transparency = 0
  3074. rng.TopSurface = 0
  3075. rng.BottomSurface = 0
  3076. rng.CFrame = pos
  3077. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3078. local rngm = Instance.new("SpecialMesh", rng)
  3079. rngm.MeshType = "Brick"
  3080. rngm.Scale = vt(x1,y1,z1)
  3081. if rainbowmode == true then
  3082. rng.Color = Color3.new(r/255,g/255,b/255)
  3083. end
  3084. local scaler2 = 1
  3085. local speeder = FastSpeed/10
  3086. if type == "Add" then
  3087. scaler2 = 1*value
  3088. elseif type == "Divide" then
  3089. scaler2 = 1/value
  3090. end
  3091. coroutine.resume(coroutine.create(function()
  3092. for i = 0,10/bonuspeed,0.1 do
  3093. swait()
  3094. if rainbowmode == true then
  3095. rng.Color = Color3.new(r/255,g/255,b/255)
  3096. end
  3097. if type == "Add" then
  3098. scaler2 = scaler2 - 0.01*value/bonuspeed
  3099. elseif type == "Divide" then
  3100. scaler2 = scaler2 - 0.01/value*bonuspeed
  3101. end
  3102. if chaosmode == true then
  3103. rng.BrickColor = BrickColor.random()
  3104. end
  3105. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3106. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3107. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3108. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3109. end
  3110. rng:Destroy()
  3111. end))
  3112. end
  3113.  
  3114. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3115. local type = type
  3116. local rng = Instance.new("Part", char)
  3117. rng.Anchored = true
  3118. rng.BrickColor = color
  3119. rng.CanCollide = false
  3120. rng.FormFactor = 3
  3121. rng.Name = "Ring"
  3122. rng.Material = "Neon"
  3123. rng.Size = Vector3.new(1, 1, 1)
  3124. rng.Transparency = 0
  3125. rng.TopSurface = 0
  3126. rng.BottomSurface = 0
  3127. rng.CFrame = pos
  3128. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3129. local rngm = Instance.new("SpecialMesh", rng)
  3130. rngm.MeshType = "Brick"
  3131. rngm.Scale = vt(x1,y1,z1)
  3132. if rainbowmode == true then
  3133. rng.Color = Color3.new(r/255,g/255,b/255)
  3134. end
  3135. local scaler2 = 0
  3136. local speeder = FastSpeed/10
  3137. if type == "Add" then
  3138. scaler2 = 1*value
  3139. elseif type == "Divide" then
  3140. scaler2 = 1/value
  3141. end
  3142. coroutine.resume(coroutine.create(function()
  3143. for i = 0,10/bonuspeed,0.1 do
  3144. swait()
  3145. if rainbowmode == true then
  3146. rng.Color = Color3.new(r/255,g/255,b/255)
  3147. end
  3148. if type == "Add" then
  3149. scaler2 = scaler2 - 0.01*value/bonuspeed
  3150. elseif type == "Divide" then
  3151. scaler2 = scaler2 - 0.01/value*bonuspeed
  3152. end
  3153. if chaosmode == true then
  3154. rng.BrickColor = BrickColor.random()
  3155. end
  3156. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3157. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3158. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3159. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3160. end
  3161. rng:Destroy()
  3162. end))
  3163. end
  3164.  
  3165. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3166. local type = type
  3167. local rng = Instance.new("Part", char)
  3168. rng.Anchored = true
  3169. rng.BrickColor = color
  3170. rng.Color = color3
  3171. rng.CanCollide = false
  3172. rng.FormFactor = 3
  3173. rng.Name = "Ring"
  3174. rng.Material = "Neon"
  3175. rng.Size = Vector3.new(1, 1, 1)
  3176. rng.Transparency = 0
  3177. rng.TopSurface = 0
  3178. rng.BottomSurface = 0
  3179. rng.CFrame = pos
  3180. local rngm = Instance.new("SpecialMesh", rng)
  3181. rngm.MeshType = "Brick"
  3182. rngm.Scale = scale
  3183. local scaler2 = 1
  3184. local scaler2b = 1
  3185. local scaler2c = 1
  3186. if type == "Add" then
  3187. scaler2 = 1*value
  3188. scaler2b = 1*value2
  3189. scaler2c = 1*value3
  3190. elseif type == "Divide" then
  3191. scaler2 = 1/value
  3192. scaler2b = 1/value2
  3193. scaler2c = 1/value3
  3194. end
  3195. coroutine.resume(coroutine.create(function()
  3196. for i = 0,10/bonuspeed,0.1 do
  3197. swait()
  3198. if type == "Add" then
  3199. scaler2 = scaler2 - 0.01*value/bonuspeed
  3200. scaler2b = scaler2b - 0.01*value/bonuspeed
  3201. scaler2c = scaler2c - 0.01*value/bonuspeed
  3202. elseif type == "Divide" then
  3203. scaler2 = scaler2 - 0.01/value*bonuspeed
  3204. scaler2b = scaler2b - 0.01/value*bonuspeed
  3205. scaler2c = scaler2c - 0.01/value*bonuspeed
  3206. end
  3207. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3208. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3209. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3210. end
  3211. rng:Destroy()
  3212. end))
  3213. end
  3214.  
  3215. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3216. local type = type
  3217. local rng = Instance.new("Part", char)
  3218. rng.Anchored = true
  3219. if ModeOfGlitch ~= 9 then
  3220. rng.BrickColor = color
  3221. elseif ModeOfGlitch == 9 then
  3222. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3223. end
  3224. rng.CanCollide = false
  3225. rng.FormFactor = 3
  3226. rng.Name = "Ring"
  3227. rng.Material = "Neon"
  3228. rng.Size = Vector3.new(1, 1, 1)
  3229. rng.Transparency = 0
  3230. rng.TopSurface = 0
  3231. rng.BottomSurface = 0
  3232. rng.CFrame = pos
  3233. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3234. local rngm = Instance.new("SpecialMesh", rng)
  3235. rngm.MeshType = "Sphere"
  3236. rngm.Scale = vt(x1,y1,z1)
  3237. if rainbowmode == true then
  3238. rng.Color = Color3.new(r/255,g/255,b/255)
  3239. end
  3240. if ModeOfGlitch == 9 then
  3241. coroutine.resume(coroutine.create(function()
  3242. while true do
  3243. swait()
  3244. if rng.Parent ~= nil then
  3245. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3246. else
  3247. break
  3248. end
  3249. end
  3250. end))
  3251. end
  3252. local scaler2 = 1
  3253. local speeder = FastSpeed
  3254. if type == "Add" then
  3255. scaler2 = 1*value
  3256. elseif type == "Divide" then
  3257. scaler2 = 1/value
  3258. end
  3259. coroutine.resume(coroutine.create(function()
  3260. for i = 0,10/bonuspeed,0.1 do
  3261. swait()
  3262. if rainbowmode == true then
  3263. rng.Color = Color3.new(r/255,g/255,b/255)
  3264. end
  3265. if type == "Add" then
  3266. scaler2 = scaler2 - 0.01*value/bonuspeed
  3267. elseif type == "Divide" then
  3268. scaler2 = scaler2 - 0.01/value*bonuspeed
  3269. end
  3270. if chaosmode == true then
  3271. rng.BrickColor = BrickColor.random()
  3272. end
  3273. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3274. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3275. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3276. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3277. end
  3278. rng:Destroy()
  3279. end))
  3280. end
  3281.  
  3282.  
  3283. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3284. local type = type
  3285. local rng = Instance.new("Part", char)
  3286. rng.Anchored = true
  3287. if ModeOfGlitch ~= 9 then
  3288. rng.BrickColor = color
  3289. elseif ModeOfGlitch == 9 then
  3290. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3291. end
  3292. rng.CanCollide = false
  3293. rng.FormFactor = 3
  3294. rng.Name = "Ring"
  3295. rng.Material = "Neon"
  3296. rng.Size = Vector3.new(1, 1, 1)
  3297. rng.Transparency = 1
  3298. rng.TopSurface = 0
  3299. rng.BottomSurface = 0
  3300. rng.CFrame = pos
  3301. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3302. local rngm = Instance.new("SpecialMesh", rng)
  3303. rngm.MeshType = "Sphere"
  3304. rngm.Scale = vt(x1,y1,z1)
  3305. if rainbowmode == true then
  3306. rng.Color = Color3.new(r/255,g/255,b/255)
  3307. end
  3308. if ModeOfGlitch == 9 then
  3309. coroutine.resume(coroutine.create(function()
  3310. while true do
  3311. swait()
  3312. if rng.Parent ~= nil then
  3313. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3314. else
  3315. break
  3316. end
  3317. end
  3318. end))
  3319. end
  3320. local scaler2 = 1
  3321. local speeder = FastSpeed
  3322. if type == "Add" then
  3323. scaler2 = 1*value
  3324. elseif type == "Divide" then
  3325. scaler2 = 1/value
  3326. end
  3327. coroutine.resume(coroutine.create(function()
  3328. for i = 0,10/bonuspeed,0.1 do
  3329. swait()
  3330. if rainbowmode == true then
  3331. rng.Color = Color3.new(r/255,g/255,b/255)
  3332. end
  3333. if type == "Add" then
  3334. scaler2 = scaler2 - 0.01*value/bonuspeed
  3335. elseif type == "Divide" then
  3336. scaler2 = scaler2 - 0.01/value*bonuspeed
  3337. end
  3338. if chaosmode == true then
  3339. rng.BrickColor = BrickColor.random()
  3340. end
  3341. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3342. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3343. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3344. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3345. end
  3346. rng:Destroy()
  3347. end))
  3348. end
  3349.  
  3350. function dmg(dude)
  3351. if dude.Name ~= Character then
  3352. local keptcolor = MAINRUINCOLOR
  3353. local bgf = Instance.new("BodyGyro",dude.Head)
  3354. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3355. --[[local val = Instance.new("BoolValue",dude)
  3356. val.Name = "IsHit"]]--
  3357. local ds = coroutine.wrap(function()
  3358. dude:WaitForChild("Head"):BreakJoints()
  3359. for i, v in pairs(dude:GetChildren()) do
  3360. if v:IsA("Part") or v:IsA("MeshPart") then
  3361. v.Name = "DEMINISHED"
  3362. end
  3363. end
  3364. wait(0.5)
  3365. targetted = nil
  3366. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3367. coroutine.resume(coroutine.create(function()
  3368. for i, v in pairs(dude:GetChildren()) do
  3369. if v:IsA("Accessory") then
  3370. v:Destroy()
  3371. end
  3372. if v:IsA("Humanoid") then
  3373. v:Destroy()
  3374. end
  3375. if v:IsA("CharacterMesh") then
  3376. v:Destroy()
  3377. end
  3378. if v:IsA("Model") then
  3379. v:Destroy()
  3380. end
  3381. if v:IsA("Part") or v:IsA("MeshPart") then
  3382. for x, o in pairs(v:GetChildren()) do
  3383. if o:IsA("Decal") then
  3384. o:Destroy()
  3385. end
  3386. end
  3387. coroutine.resume(coroutine.create(function()
  3388. v.Material = "Neon"
  3389. v.CanCollide = false
  3390. v.Anchored = false
  3391. local bld = Instance.new("ParticleEmitter",v)
  3392. bld.LightEmission = 0.75
  3393. bld.Texture = "rbxassetid://363275192" ---284205403
  3394. bld.Color = ColorSequence.new(keptcolor.Color)
  3395. bld.Rate = 500
  3396. bld.Lifetime = NumberRange.new(1)
  3397. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3398. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3399. bld.Speed = NumberRange.new(2,5)
  3400. bld.VelocitySpread = 50000
  3401. bld.Rotation = NumberRange.new(-500,500)
  3402. bld.RotSpeed = NumberRange.new(-500,500)
  3403. local sbs = Instance.new("BodyPosition", v)
  3404. sbs.P = 3000
  3405. sbs.D = 1000
  3406. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3407. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3408. v.Color = keptcolor.Color
  3409. coroutine.resume(coroutine.create(function()
  3410. for i = 0, 49 do
  3411. swait(1)
  3412. v:BreakJoints()
  3413. v.Transparency = v.Transparency + 0.02
  3414. end
  3415. v:BreakJoints()
  3416. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3417. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3418. bld.Speed = NumberRange.new(10,25)
  3419. bld.Drag = 5
  3420. bld.Acceleration = vt(0,2,0)
  3421. wait(0.5)
  3422. bld.Enabled = false
  3423. wait(8)
  3424. v:Destroy()
  3425. dude:Destroy()
  3426. end))
  3427. end))
  3428. end
  3429. end
  3430. end))
  3431. end)
  3432. ds()
  3433. end
  3434. end
  3435.  
  3436.  
  3437. function FindNearestHead(Position, Distance, SinglePlayer)
  3438. if SinglePlayer then
  3439. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3440. end
  3441. local List = {}
  3442. for i, v in pairs(workspace:GetChildren()) do
  3443. if v:IsA("Model") then
  3444. if v:findFirstChild("Head") then
  3445. if v ~= Character then
  3446. if (v.Head.Position - Position).magnitude <= Distance then
  3447. table.insert(List, v)
  3448. end
  3449. end
  3450. end
  3451. end
  3452. end
  3453. return List
  3454. end
  3455.  
  3456. function FaceMouse()
  3457. Cam = workspace.CurrentCamera
  3458. return {
  3459. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3460. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3461. }
  3462. end
  3463.  
  3464. function FaceMouse2()
  3465. Cam = workspace.CurrentCamera
  3466. return {
  3467. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3468. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3469. }
  3470. end
  3471.  
  3472. local ModeOfGlitch = 1
  3473. -- Functions are ready.
  3474. local storehumanoidWS = 16
  3475.  
  3476. function CorruptBlink()
  3477. for i = 0, 14 do
  3478. 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)
  3479. end
  3480. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3481. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3482. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3483. CameraEnshaking(2,10)
  3484. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3485. if v:FindFirstChild('Head') then
  3486. dmg(v)
  3487. end
  3488. end
  3489. for i = 0, 14 do
  3490. 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)
  3491. end
  3492. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3493. end
  3494.  
  3495. function PureBomb()
  3496. attack = true
  3497. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  3498. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  3499. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  3500. local orb = Instance.new("Part", char)
  3501. orb.Anchored = true
  3502. orb.BrickColor = BrickColor.new("Toothpaste")
  3503. orb.CanCollide = false
  3504. orb.FormFactor = 3
  3505. orb.Name = "Ring"
  3506. orb.Material = "Neon"
  3507. orb.Size = Vector3.new(1, 1, 1)
  3508. orb.Transparency = 0
  3509. orb.TopSurface = 0
  3510. orb.BottomSurface = 0
  3511. local orbm = Instance.new("SpecialMesh", orb)
  3512. orbm.MeshType = "Sphere"
  3513. orbm.Name = "SizeMesh"
  3514. orbm.Scale = vt(0,0,0)
  3515. local scaled = 0.1
  3516. local posid = 0
  3517. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  3518. for i = 0, 5, 0.1 do
  3519. swait()
  3520. scaled = scaled - 0.001
  3521. posid = posid - scaled
  3522. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3523. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3524. 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)
  3525. 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)
  3526. 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)
  3527. 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)
  3528. 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)
  3529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3530. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3531. 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)
  3532. end
  3533. for i = 0, 2, 0.1 do
  3534. swait()
  3535. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3536. 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)
  3537. 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)
  3538. 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)
  3539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3540. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3541. 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)
  3542. end
  3543. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  3544. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  3545. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  3546. coroutine.resume(coroutine.create(function()
  3547. orb.Anchored = false
  3548. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  3549. local a = Instance.new("Part",workspace)
  3550. a.Name = "Direction"
  3551. a.Anchored = true
  3552. a.BrickColor = bc("Toothpaste")
  3553. a.Material = "Neon"
  3554. a.Transparency = 1
  3555. a.CanCollide = false
  3556. local ray = Ray.new(
  3557. orb.CFrame.p, -- origin
  3558. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3559. )
  3560. local ignore = orb
  3561. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3562. a.BottomSurface = 10
  3563. a.TopSurface = 10
  3564. local distance = (orb.CFrame.p - position).magnitude
  3565. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3566. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3567. orb.CFrame = a.CFrame
  3568. a:Destroy()
  3569. local bv = Instance.new("BodyVelocity")
  3570. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3571. bv.velocity = orb.CFrame.lookVector*125
  3572. bv.Parent = orb
  3573. local hitted = false
  3574. game:GetService("Debris"):AddItem(orb, 15)
  3575. wait()
  3576. local hit =orb.Touched:connect(function(hit)
  3577. if hitted == false then
  3578. hitted = true
  3579. CameraEnshaking(10,2.5)
  3580. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3581. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3582. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3583. for i = 0, 49 do
  3584. 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)
  3585. end
  3586. local eff = Instance.new("ParticleEmitter",orb)
  3587. eff.Texture = "rbxassetid://2273224484"
  3588. eff.LightEmission = 1
  3589. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  3590. eff.Rate = 500000
  3591. eff.Lifetime = NumberRange.new(0.5,2)
  3592. 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)})
  3593. 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)})
  3594. eff.Speed = NumberRange.new(20,250)
  3595. eff.Drag = 5
  3596. eff.Rotation = NumberRange.new(-500,500)
  3597. eff.VelocitySpread = 9000
  3598. eff.RotSpeed = NumberRange.new(-50,50)
  3599. coroutine.resume(coroutine.create(function()
  3600. wait(0.25)
  3601. eff.Enabled = false
  3602. end))
  3603. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  3604. for i = 0, 9 do
  3605. 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)
  3606. 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)
  3607. end
  3608. orb.Anchored = true
  3609. orb.Transparency = 1
  3610. local eff = Instance.new("ParticleEmitter",orb)
  3611. eff.Texture = "rbxassetid://2273224484"
  3612. eff.LightEmission = 1
  3613. eff.Color = ColorSequence.new(Color3.new(M))
  3614. eff.Rate = 500000
  3615. eff.Lifetime = NumberRange.new(0.5,2)
  3616. 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)})
  3617. 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)})
  3618. eff.Speed = NumberRange.new(20,250)
  3619. eff.Drag = 5
  3620. eff.Rotation = NumberRange.new(-500,500)
  3621. eff.VelocitySpread = 9000
  3622. eff.RotSpeed = NumberRange.new(-50,50)
  3623. coroutine.resume(coroutine.create(function()
  3624. wait(1)
  3625. eff.Enabled = false
  3626. end))
  3627. wait(8)
  3628. orb:Destroy()
  3629. end
  3630. end)
  3631. end))
  3632. for i = 0, 1, 0.1 do
  3633. swait()
  3634. 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)
  3635. 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)
  3636. 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)
  3637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3638. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3639. 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)
  3640. end
  3641. attack = false
  3642. end
  3643.  
  3644. function BanishingOrb()
  3645. attack = true
  3646. hum.WalkSpeed = 0
  3647. local radm = math.random(1,3)
  3648. if radm == 1 then
  3649. bosschatfunc("Let's go..",MAINRUINCOLOR.Color,1)
  3650. elseif radm == 2 then
  3651. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3652. elseif radm == 3 then
  3653. bosschatfunc("I've had enough..",MAINRUINCOLOR.Color,1)
  3654. end
  3655. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3656. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3657. local orb = Instance.new("Part", char)
  3658. orb.Anchored = true
  3659. orb.BrickColor = BrickColor.new("Lime green")
  3660. orb.CanCollide = false
  3661. orb.FormFactor = 3
  3662. orb.Name = "Ring"
  3663. orb.Material = "Neon"
  3664. orb.Size = Vector3.new(1, 1, 1)
  3665. orb.Transparency = 0
  3666. orb.TopSurface = 0
  3667. orb.BottomSurface = 0
  3668. local orbm = Instance.new("SpecialMesh", orb)
  3669. orbm.MeshType = "Sphere"
  3670. orbm.Name = "SizeMesh"
  3671. orbm.Scale = vt(0,0,0)
  3672. local scaled = 0.1
  3673. local posid = 0
  3674. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3675. for i = 0, 5, 0.1 do
  3676. swait()
  3677. scaled = scaled - 0.001
  3678. posid = posid - scaled
  3679. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3680. local scaled = 0.1
  3681. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3682. 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("Cool yellow"),10)
  3683. 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)
  3684. 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)
  3685. 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)
  3686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3687. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3688. 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)
  3689. end
  3690. for i = 0, 2, 0.1 do
  3691. swait()
  3692. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3693. 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)
  3694. 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)
  3695. 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)
  3696. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3697. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3698. 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)
  3699. end
  3700. coroutine.resume(coroutine.create(function()
  3701. orb.Anchored = false
  3702. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3703. local a = Instance.new("Part",workspace)
  3704. a.Name = "Direction"
  3705. a.Anchored = true
  3706. a.BrickColor = bc("Lime green")
  3707. a.Material = "Neon"
  3708. a.Transparency = 1
  3709. a.CanCollide = false
  3710. local ray = Ray.new(
  3711. orb.CFrame.p, -- origin
  3712. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3713. )
  3714. local ignore = orb
  3715. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3716. a.BottomSurface = 10
  3717. a.TopSurface = 10
  3718. local distance = (orb.CFrame.p - position).magnitude
  3719. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3720. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3721. orb.CFrame = a.CFrame
  3722. a:Destroy()
  3723. local bv = Instance.new("BodyVelocity")
  3724. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3725. bv.velocity = orb.CFrame.lookVector*0
  3726. bv.Parent = orb
  3727. local hitted = false
  3728. local rate = 0
  3729. coroutine.resume(coroutine.create(function()
  3730. for i = 0, 24 do
  3731. wait(0.1)
  3732. rate = rate + 0.25
  3733. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3734. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3735. if v:FindFirstChild('Head') then
  3736. dmg(v)
  3737. end
  3738. end
  3739. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3740. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3741. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3742. end
  3743. orb.Anchored = true
  3744. orb.Transparency = 1
  3745. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3746. if v:FindFirstChild('Head') then
  3747. dmg(v)
  3748. end
  3749. end
  3750. local eff = Instance.new("ParticleEmitter",orb)
  3751. eff.Texture = "rbxassetid://296874871"
  3752. eff.LightEmission = 0.95
  3753. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3754. eff.Rate = 1000000000
  3755. eff.Lifetime = NumberRange.new(3)
  3756. 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)})
  3757. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3758. eff.Speed = NumberRange.new(30)
  3759. eff.Acceleration = vt(0,-15,0)
  3760. eff.Rotation = NumberRange.new(-500,500)
  3761. eff.VelocitySpread = 100000
  3762. eff.RotSpeed = NumberRange.new(-500,500)
  3763. coroutine.resume(coroutine.create(function()
  3764. wait(0.6)
  3765. eff.Enabled = false
  3766. end))
  3767. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3768. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3769. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3770. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3771. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3772. game:GetService("Debris"):AddItem(orb, 15)
  3773. end))
  3774. end))
  3775. for i = 0, 1, 0.1 do
  3776. swait()
  3777. 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)
  3778. 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)
  3779. 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)
  3780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3781. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3782. 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)
  3783. end
  3784. hum.WalkSpeed = storehumanoidWS
  3785. attack = false
  3786. end
  3787.  
  3788.  
  3789. function ChaosGroundStrike()
  3790. attack = true
  3791. for i = 0, 2, 0.1 do
  3792. swait()
  3793. 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)
  3794. 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)
  3795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3798. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3799. end
  3800. bosschatfunc("DIE, FOOL!",MAINRUINCOLOR.Color,1)
  3801. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  3802. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  3803. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3804. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3805. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2, 1)
  3806. CameraEnshaking(4,12)
  3807. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3808. if v:FindFirstChild('Head') then
  3809. dmg(v)
  3810. end
  3811. end
  3812. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3813. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3814. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3815. for i = 0, 2, 0.1 do
  3816. swait()
  3817. 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)
  3818. 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)
  3819. 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)
  3820. 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)
  3821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3825. end
  3826. attack = false
  3827. end
  3828.  
  3829. function Starfall()
  3830. attack = true
  3831. hum.WalkSpeed = 0
  3832. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3833. for i = 0, 5, 0.1 do
  3834. swait()
  3835. 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)
  3836. 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)
  3837. 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)
  3838. 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)
  3839. 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)
  3840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3841. 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)
  3842. 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)
  3843. end
  3844. local Overed = false
  3845. CameraEnshaking(2,20)
  3846. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3847. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3848. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3849. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3850. local orb = Instance.new("Part", char)
  3851. orb.Anchored = true
  3852. orb.BrickColor = BrickColor.new("Toothpaste")
  3853. orb.CanCollide = false
  3854. orb.FormFactor = 3
  3855. orb.Name = "Remenant"
  3856. orb.Material = "Neon"
  3857. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3858. orb.Size = Vector3.new(1, 1, 1)
  3859. orb.Transparency = 1
  3860. orb.TopSurface = 0
  3861. orb.BottomSurface = 0
  3862. hum.WalkSpeed = storehumanoidWS
  3863. coroutine.resume(coroutine.create(function()
  3864. for i = 0, 9 do
  3865. swait(10)
  3866. local lb = Instance.new("Part")
  3867. lb.Color = MAINRUINCOLOR.Color
  3868. lb.CanCollide = false
  3869. lb.Material = "Neon"
  3870. lb.Anchored = true
  3871. lb.TopSurface = 0
  3872. lb.BottomSurface = 0
  3873. lb.Transparency = 0
  3874. lb.Size = vt(1,1,1)
  3875. 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)))
  3876. lb.Anchored = false
  3877. lb.Parent = char
  3878. local thingery = Instance.new("SpecialMesh",lb)
  3879. thingery.MeshType = "Sphere"
  3880. thingery.Scale = vt(20,20,20)
  3881. game:GetService("Debris"):AddItem(lb, 10)
  3882. local bv = Instance.new("BodyVelocity")
  3883. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3884. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3885. bv.Parent = lb
  3886. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3887. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3888. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3889. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3890. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3891. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3892. local hitted = false
  3893. coroutine.resume(coroutine.create(function()
  3894. while true do
  3895. swait(1)
  3896. if lb.Parent ~= nil and hitted == false then
  3897. 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)
  3898. elseif lb.Parent == nil then
  3899. break
  3900. end
  3901. end
  3902. end))
  3903.  
  3904. game:GetService("Debris"):AddItem(a, 0.1)
  3905.  
  3906. coroutine.resume(coroutine.create(function()
  3907. swait(1)
  3908. lb.Touched:connect(function(hit)
  3909. if hitted == false then
  3910. hitted = true
  3911. lb.Transparency = 1
  3912. lb.Anchored = true
  3913. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3914. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3915. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3916. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3917. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3918. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3919. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3920. CameraEnshaking(1,5)
  3921. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3922. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3923. for i = 0, 9 do
  3924. 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)
  3925. end
  3926. for i = 0, 49 do
  3927. swait()
  3928. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3929. 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)
  3930. end
  3931. end
  3932. end)
  3933. end))
  3934. end
  3935. Overed = true
  3936. orb:Destroy()
  3937. end))
  3938.  
  3939. attack = false
  3940. end
  3941.  
  3942. function StarfallEX()
  3943. attack = true
  3944. hum.WalkSpeed = 0
  3945. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3946. for i = 0, 10, 0.1 do
  3947. swait()
  3948. 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)
  3949. 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)
  3950. 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)
  3951. 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)
  3952. 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)
  3953. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3954. 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)
  3955. 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)
  3956. end
  3957. local Overed = false
  3958. CameraEnshaking(2,20)
  3959. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3960. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3961. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3962. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3963. local orb = Instance.new("Part", char)
  3964. orb.Anchored = true
  3965. orb.BrickColor = BrickColor.new("Toothpaste")
  3966. orb.CanCollide = false
  3967. orb.FormFactor = 3
  3968. orb.Name = "Remenant"
  3969. orb.Material = "Neon"
  3970. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3971. orb.Size = Vector3.new(1, 1, 1)
  3972. orb.Transparency = 1
  3973. orb.TopSurface = 0
  3974. orb.BottomSurface = 0
  3975. hum.WalkSpeed = storehumanoidWS
  3976. coroutine.resume(coroutine.create(function()
  3977. for i = 0, 4 do
  3978. swait(15)
  3979. local lb = Instance.new("Part")
  3980. lb.Color = MAINRUINCOLOR.Color
  3981. lb.CanCollide = false
  3982. lb.Material = "Neon"
  3983. lb.Anchored = true
  3984. lb.TopSurface = 0
  3985. lb.BottomSurface = 0
  3986. lb.Transparency = 0
  3987. lb.Size = vt(1,1,1)
  3988. 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)))
  3989. lb.Anchored = false
  3990. lb.Parent = char
  3991. local thingery = Instance.new("SpecialMesh",lb)
  3992. thingery.MeshType = "Sphere"
  3993. thingery.Scale = vt(50,50,50)
  3994. game:GetService("Debris"):AddItem(lb, 10)
  3995. local bv = Instance.new("BodyVelocity")
  3996. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3997. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3998. bv.Parent = lb
  3999. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4000. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4001. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  4002. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  4003. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  4004. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  4005. local hitted = false
  4006. coroutine.resume(coroutine.create(function()
  4007. while true do
  4008. swait(1)
  4009. if lb.Parent ~= nil and hitted == false then
  4010. 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)
  4011. elseif lb.Parent == nil then
  4012. break
  4013. end
  4014. end
  4015. end))
  4016.  
  4017. game:GetService("Debris"):AddItem(a, 0.1)
  4018.  
  4019. coroutine.resume(coroutine.create(function()
  4020. swait(1)
  4021. lb.Touched:connect(function(hit)
  4022. if hitted == false then
  4023. hitted = true
  4024. lb.Transparency = 1
  4025. lb.Anchored = true
  4026. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  4027. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  4028. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  4029. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  4030. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  4031. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  4032. MagniDamage(lb, 50, 60,99, 0, "Normal")
  4033. CameraEnshaking(1,5)
  4034. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  4035. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  4036. for i = 0, 9 do
  4037. 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)
  4038. end
  4039. for i = 0, 99 do
  4040. swait()
  4041. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4042. 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)
  4043. end
  4044. end
  4045. end)
  4046. end))
  4047. end
  4048. Overed = true
  4049. orb:Destroy()
  4050. end))
  4051.  
  4052. attack = false
  4053. end
  4054.  
  4055. function DivineBlast()
  4056. attack = true
  4057. bosschatfunc("I WILL END YOU!",MAINRUINCOLOR.Color,0.7)
  4058. hum.WalkSpeed = 0
  4059. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4060. elocacenter.Anchored = true
  4061. elocacenter.CFrame = sorb.CFrame
  4062. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4063. eloca1.Anchored = true
  4064. eloca1.CFrame = elocacenter.CFrame
  4065. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4066. eloca2.Anchored = true
  4067. eloca2.CFrame = elocacenter.CFrame
  4068. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4069. eloca3.Anchored = true
  4070. eloca3.CFrame = elocacenter.CFrame
  4071. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4072. eloca4.Anchored = true
  4073. eloca4.CFrame = elocacenter.CFrame
  4074. local lookavec = 0
  4075. local speeds = 0
  4076. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4077. for i = 0, 3, 0.1 do
  4078. swait()
  4079. ---
  4080. lookavec = lookavec + 0.1
  4081. speeds = speeds + 10
  4082. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4083. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4084. 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)
  4085.  
  4086. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4087. 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)
  4088.  
  4089. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4090. 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)
  4091.  
  4092. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4093. 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)
  4094. ---
  4095. root.CFrame = FaceMouse()[1]
  4096. 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)
  4097. 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)
  4098. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4099. 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)
  4100. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4101. 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)
  4102. end
  4103. for i = 0, 3, 0.1 do
  4104. swait()
  4105. ---
  4106. speeds = speeds + 10
  4107. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4108. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4109. 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)
  4110.  
  4111. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4112. 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)
  4113.  
  4114. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4115. 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)
  4116.  
  4117. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4118. 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)
  4119. ---
  4120. root.CFrame = FaceMouse()[1]
  4121. 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)
  4122. 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)
  4123. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4124. 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)
  4125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4126. 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)
  4127. end
  4128. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4129. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4130. for i = 0, 3, 0.1 do
  4131. swait()
  4132. ---
  4133. speeds = speeds + 10
  4134. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4135. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4136. 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)
  4137.  
  4138. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4139. 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)
  4140.  
  4141. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4142. 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)
  4143.  
  4144. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4145. 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)
  4146. ---
  4147. root.CFrame = FaceMouse()[1]
  4148. 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)
  4149. 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)
  4150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4151. 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)
  4152. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4153. 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)
  4154. end
  4155. coroutine.resume(coroutine.create(function()
  4156. local a = Instance.new("Part",Character)
  4157. a.Name = "Direction"
  4158. a.Anchored = true
  4159. a.BrickColor = bc("White")
  4160. a.Material = "Neon"
  4161. a.Transparency = 0
  4162. a.Shape = "Cylinder"
  4163. a.CanCollide = false
  4164. local a2 = Instance.new("Part",Character)
  4165. a2.Name = "Direction"
  4166. a2.Anchored = true
  4167. a2.BrickColor = bc("Bright yellow")
  4168. a2.Material = "Neon"
  4169. a2.Transparency = 0
  4170. a2.Shape = "Cylinder"
  4171. a2.CanCollide = false
  4172. local b = Instance.new("Part",Character)
  4173. b.Name = "HitDirect"
  4174. b.Anchored = true
  4175. b.BrickColor = bc("Cool yellow")
  4176. b.Material = "Neon"
  4177. b.Transparency = 1
  4178. b.CanCollide = false
  4179. local ray = Ray.new(
  4180. elocacenter.CFrame.p, -- origin
  4181. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4182. )
  4183. local ignore = Character
  4184. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4185. a.BottomSurface = 10
  4186. a.TopSurface = 10
  4187. a2.BottomSurface = 10
  4188. a2.TopSurface = 10
  4189. local distance = (elocacenter.CFrame.p - position).magnitude
  4190. a.Size = Vector3.new(distance, 1, 1)
  4191. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4192. a2.Size = Vector3.new(distance, 1, 1)
  4193. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4194. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4195. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4196. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4197. game:GetService("Debris"):AddItem(a, 10)
  4198. game:GetService("Debris"):AddItem(a2, 10)
  4199. game:GetService("Debris"):AddItem(b, 10)
  4200. local eff = Instance.new("ParticleEmitter",b)
  4201. eff.Texture = "rbxassetid://2273224484"
  4202. eff.LightEmission = 1
  4203. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4204. eff.Rate = 500000
  4205. eff.Lifetime = NumberRange.new(0.5,2)
  4206. 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)})
  4207. 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)})
  4208. eff.Speed = NumberRange.new(20,250)
  4209. eff.Drag = 5
  4210. eff.Rotation = NumberRange.new(-500,500)
  4211. eff.VelocitySpread = 9000
  4212. eff.RotSpeed = NumberRange.new(-50,50)
  4213. coroutine.resume(coroutine.create(function()
  4214. wait(0.25)
  4215. eff.Enabled = false
  4216. end))
  4217. local msh = Instance.new("SpecialMesh",a)
  4218. msh.MeshType = "Cylinder"
  4219. msh.Scale = vt(1,2,2)
  4220. local msh2 = Instance.new("SpecialMesh",a2)
  4221. msh2.MeshType = "Cylinder"
  4222. msh2.Scale = vt(1,2.5,2.5)
  4223. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4224. coroutine.resume(coroutine.create(function()
  4225. for i = 0,10,0.1 do
  4226. swait()
  4227. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4228. a.Transparency = a.Transparency + 0.025
  4229. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4230. a2.Transparency = a2.Transparency + 0.05
  4231. end
  4232. a:Destroy()
  4233. a2:Destroy()
  4234. end))
  4235. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4236. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4237. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4238. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4239. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4240. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4241. MagniDamage(b, 25, 40,65, 0, "Normal")
  4242. for i = 0, 49 do
  4243. 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)
  4244. 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)
  4245. end
  4246. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4247. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4248. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4249. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4250. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4251. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4252. end))
  4253. game:GetService("Debris"):AddItem(elocacenter, 5)
  4254. hum.WalkSpeed = storehumanoidWS
  4255. attack = false
  4256. end
  4257.  
  4258.  
  4259. function StarDivision()
  4260. attack = true
  4261. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4262. for i = 0, 2, 0.1 do
  4263. swait()
  4264. 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)
  4265. 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)
  4266. 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)
  4267. 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)
  4268. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4269. 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)
  4270. end
  4271. local orb = Instance.new("Part", char)
  4272. orb.BrickColor = MAINRUINCOLOR
  4273. orb.CanCollide = false
  4274. orb.FormFactor = 3
  4275. orb.Name = "Ring"
  4276. orb.Material = "Neon"
  4277. orb.Size = Vector3.new(1, 1, 1)
  4278. orb.Transparency = 0
  4279. orb.TopSurface = 0
  4280. orb.BottomSurface = 0
  4281. local orbm = Instance.new("SpecialMesh", orb)
  4282. orbm.MeshType = "Sphere"
  4283. orbm.Name = "SizeMesh"
  4284. orbm.Scale = vt(2,2,2)
  4285. local a = Instance.new("Part",workspace)
  4286. a.Name = "Direction"
  4287. a.Anchored = true
  4288. a.BrickColor = bc("Bright red")
  4289. a.Material = "Neon"
  4290. a.Transparency = 1
  4291. a.CanCollide = false
  4292. local ray = Ray.new(
  4293. sorb.CFrame.p, -- origin
  4294. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4295. )
  4296. local ignore = sorb
  4297. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4298. a.BottomSurface = 10
  4299. a.TopSurface = 10
  4300. local distance = (sorb.CFrame.p - position).magnitude
  4301. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4302. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4303. orb.CFrame = a.CFrame
  4304. a:Destroy()
  4305. local bv = Instance.new("BodyVelocity")
  4306. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4307. bv.velocity = orb.CFrame.lookVector*100
  4308. bv.Parent = orb
  4309. local hitted = false
  4310. game:GetService("Debris"):AddItem(orb, 10)
  4311. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4312. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4313. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4314. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4315. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4316. coroutine.resume(coroutine.create(function()
  4317. while true do
  4318. swait(1)
  4319. if orb.Parent ~= nil and hitted == false then
  4320. 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)
  4321. elseif orb.Parent == nil then
  4322. break
  4323. end
  4324. end
  4325. end))
  4326. coroutine.resume(coroutine.create(function()
  4327. swait(1)
  4328. orb.Touched:connect(function(hit)
  4329. if hitted == false then
  4330. hitted = true
  4331. game:GetService("Debris"):AddItem(orb, 5)
  4332. orb.Transparency = 1
  4333. orb.Anchored = true
  4334. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4335. elocacenter.Anchored = true
  4336. elocacenter.CFrame = orb.CFrame
  4337. elocacenter.Orientation = vt(0,0,0)
  4338. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4339. eloca1.Anchored = true
  4340. eloca1.CFrame = elocacenter.CFrame
  4341. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4342. eloca2.Anchored = true
  4343. eloca2.CFrame = elocacenter.CFrame
  4344. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4345. eloca3.Anchored = true
  4346. eloca3.CFrame = elocacenter.CFrame
  4347. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4348. eloca4.Anchored = true
  4349. eloca4.CFrame = elocacenter.CFrame
  4350. local lookavec = 0
  4351. local speeds = 0
  4352. CameraEnshaking(1,1)
  4353. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4354. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4355. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4356. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4357. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4358. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4359. for i = 0, 99 do
  4360. swait()
  4361. lookavec = lookavec + 1
  4362. speeds = speeds + 0.1
  4363. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4364. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4365. 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)
  4366.  
  4367. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4368. 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)
  4369.  
  4370. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4371. 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)
  4372.  
  4373. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4374. 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)
  4375. end
  4376.  
  4377. for i = 0, 149 do
  4378. swait()
  4379. speeds = speeds + 0.1
  4380. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4381. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4382. PixelBlockNeg(2,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)
  4383.  
  4384. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4385. 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)
  4386.  
  4387. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4388. 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)
  4389.  
  4390. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4391. 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)
  4392. end
  4393. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4394. if v:FindFirstChild('Head') then
  4395. dmg(v)
  4396. end
  4397. end
  4398. CameraEnshaking(7,30)
  4399. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4400. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4401. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4402. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4403. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4404. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4405. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4406. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4407. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4408. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4409. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4410. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4411. for i = 0, 24 do
  4412. 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)
  4413. 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)
  4414. 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)
  4415. 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)
  4416. end
  4417. coroutine.resume(coroutine.create(function()
  4418. for i = 0, 499 do
  4419. swait(1)
  4420. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4421. 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)
  4422. end
  4423. elocacenter:Destroy()
  4424. eloca1:Destroy()
  4425. eloca2:Destroy()
  4426. eloca3:Destroy()
  4427. eloca4:Destroy()
  4428. end))
  4429. end
  4430. end)
  4431. end))
  4432. attack = false
  4433. end
  4434.  
  4435.  
  4436. function THE_TRUE_POWER_OF_VIOLENCE()
  4437. attack = true
  4438. hum.WalkSpeed = 0
  4439. bosschatfunc("ALL YOUR DESTINY AND SOULS...",MAINRUINCOLOR.Color,4)
  4440. for i = 0, 10, 0.1 do
  4441. swait()
  4442. 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)
  4443. 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)
  4444. 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)
  4445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4448. 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)
  4449. end
  4450. local orb = Instance.new("Part", char)
  4451. orb.BrickColor = MAINRUINCOLOR
  4452. orb.CanCollide = false
  4453. orb.FormFactor = 3
  4454. orb.Name = "Ring"
  4455. orb.Material = "Neon"
  4456. orb.Size = Vector3.new(1, 1, 1)
  4457. orb.Transparency = 0
  4458. orb.TopSurface = 0
  4459. orb.BottomSurface = 0
  4460. orb.CFrame = sorb.CFrame
  4461. local orbm = Instance.new("SpecialMesh", orb)
  4462. orbm.MeshType = "Sphere"
  4463. orbm.Name = "SizeMesh"
  4464. orbm.Scale = vt(0,0,0)
  4465. local sbs = Instance.new("BodyPosition", orb)
  4466. sbs.P = 3000
  4467. sbs.D = 1000
  4468. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4469. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4470. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4471. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4472. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4473. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4474. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4475. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4476. for i = 0, 10, 0.1 do
  4477. swait()
  4478. 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)
  4479. 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)
  4480. 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)
  4481. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4483. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4484. 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)
  4485. end
  4486. orb.Anchored = true
  4487. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4488. elocacenter.Anchored = true
  4489. elocacenter.CFrame = orb.CFrame
  4490. elocacenter.Orientation = vt(0,0,0)
  4491. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4492. eloca1.Anchored = true
  4493. eloca1.CFrame = elocacenter.CFrame
  4494. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4495. eloca2.Anchored = true
  4496. eloca2.CFrame = elocacenter.CFrame
  4497. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4498. eloca3.Anchored = true
  4499. eloca3.CFrame = elocacenter.CFrame
  4500. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4501. eloca4.Anchored = true
  4502. eloca4.CFrame = elocacenter.CFrame
  4503. local lookavec = 0
  4504. local speeds = 0
  4505. CameraEnshaking(1,1)
  4506. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4507. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4508. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4509. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4510. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4511. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4512. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4513. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4514. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4515. for i = 0, 99 do
  4516. swait()
  4517. lookavec = lookavec + 2.5
  4518. speeds = speeds + 0.25
  4519. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4520. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4521. 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)
  4522.  
  4523. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4524. 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)
  4525.  
  4526. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4527. 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)
  4528.  
  4529. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4530. 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)
  4531. end
  4532.  
  4533. for i = 0, 149 do
  4534. swait()
  4535. speeds = speeds + 0.25
  4536. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4537. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4538. 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)
  4539.  
  4540. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4541. 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)
  4542.  
  4543. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4544. 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)
  4545.  
  4546. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4547. 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)
  4548. end
  4549. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4550. for i = 0, 99 do
  4551. swait()
  4552. lookavec = lookavec - 2.5
  4553. speeds = speeds + 0.25
  4554. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4555. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4556. 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)
  4557.  
  4558. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4559. 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)
  4560.  
  4561. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4562. 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)
  4563.  
  4564. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4565. 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)
  4566. end
  4567. local scaled = 0.1*75
  4568. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4569. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4570. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4571. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4572. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4573. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4574. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4575. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4576. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4577. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4578. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4579.  
  4580. for i = 0, 10, 0.1 do
  4581. swait()
  4582. scaled = scaled - 0.001*75
  4583. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4584. 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)
  4585. 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)
  4586. 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)
  4587. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4588. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4589. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4590. 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)
  4591. end
  4592. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4593. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4594. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4595. for x = 0, 4 do
  4596. for i = 0, 9 do
  4597. 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)
  4598. end
  4599. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4600. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4601. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4602. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4603. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4604. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4605. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4606. for i = 0, 5, 0.1 do
  4607. swait()
  4608. 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)
  4609. 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)
  4610. 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)
  4611. 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)
  4612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4615. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4616. end
  4617. end
  4618. local speedearn = 0
  4619. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4620. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4621. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4622. for i = 0, 30, 0.1 do
  4623. swait()
  4624. scaled = scaled - 0.001*75/10
  4625. speedearn = speedearn + 0.5
  4626. for i = 0, 4 do
  4627. 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)
  4628. end
  4629. 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)
  4630. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4631. 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)
  4632. 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)
  4633. 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)
  4634. 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)
  4635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4638. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4639. end
  4640. orb.Transparency = 1
  4641. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4642. if v:FindFirstChild('Head') then
  4643. dmg(v)
  4644. end
  4645. end
  4646. CameraEnshaking(7,30)
  4647. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4648. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4649. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4650. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4651. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4652. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4653. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4654. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4655. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4656. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4657. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4658. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4659. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4660. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4661. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4662. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4663. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4664. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4665. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4666. for i = 0, 99 do
  4667. 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)
  4668. 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)
  4669. end
  4670. for i = 0, 24 do
  4671. 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)
  4672. 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)
  4673. 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)
  4674. 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)
  4675. 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)
  4676. end
  4677. game:GetService("Debris"):AddItem(orb, 10)
  4678. hum.WalkSpeed = storehumanoidWS
  4679. attack = false
  4680. end
  4681.  
  4682.  
  4683. function ViolentRing()
  4684. attack = true
  4685. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4686. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4687. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4688. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4689. for i = 0, 2, 0.1 do
  4690. swait()
  4691. local snap = math.random(1,10)
  4692. if snap == 1 then
  4693. 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)
  4694. end
  4695. 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)
  4696. 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)
  4697. 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)
  4698. 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)
  4699. 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)
  4700. 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)
  4701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4702. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4703. 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)
  4704. RootPart.CFrame = FaceMouse()[1]
  4705. end
  4706. local orb = Instance.new("Part", char)
  4707. orb.BrickColor = MAINRUINCOLOR
  4708. orb.CanCollide = false
  4709. orb.FormFactor = 3
  4710. orb.Name = "Ring"
  4711. orb.Material = "Neon"
  4712. orb.Size = Vector3.new(1, 1, 1)
  4713. orb.Transparency = 0
  4714. orb.TopSurface = 0
  4715. orb.BottomSurface = 0
  4716. local orbm = Instance.new("SpecialMesh", orb)
  4717. orbm.MeshType = "Sphere"
  4718. orbm.Name = "SizeMesh"
  4719. orbm.Scale = vt(2,2,2)
  4720. orb.CFrame = mouse.Hit
  4721. local bv = Instance.new("BodyVelocity")
  4722. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4723. bv.velocity = orb.CFrame.lookVector*100
  4724. bv.Parent = orb
  4725. local hitted = false
  4726. coroutine.resume(coroutine.create(function()
  4727. game:GetService("Debris"):AddItem(orb, 5)
  4728. orb.Transparency = 1
  4729. orb.Anchored = true
  4730. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4731. elocacenter.Anchored = true
  4732. elocacenter.CFrame = orb.CFrame
  4733. elocacenter.Orientation = vt(0,0,0)
  4734. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4735. eloca1.Anchored = true
  4736. eloca1.CFrame = elocacenter.CFrame
  4737. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4738. eloca2.Anchored = true
  4739. eloca2.CFrame = elocacenter.CFrame
  4740. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4741. eloca3.Anchored = true
  4742. eloca3.CFrame = elocacenter.CFrame
  4743. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4744. eloca4.Anchored = true
  4745. eloca4.CFrame = elocacenter.CFrame
  4746. local lookavec = 0
  4747. local speeds = 0
  4748. CameraEnshaking(1,1)
  4749. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4750. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4751. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4752. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4753. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4754. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4755. for i = 0, 24 do
  4756. swait()
  4757. lookavec = lookavec + 3.5
  4758. speeds = speeds + 1
  4759. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4760. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4761. 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)
  4762.  
  4763. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4764. 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)
  4765.  
  4766. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4767. 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)
  4768.  
  4769. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4770. 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)
  4771. end
  4772.  
  4773. local risen = 0
  4774. for i = 0, 49 do
  4775. swait()
  4776. risen = risen + 0.05
  4777. speeds = speeds + 0.1
  4778. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4779. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4780. 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)
  4781.  
  4782. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4783. 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)
  4784.  
  4785. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4786. 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)
  4787.  
  4788. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4789. 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)
  4790. end
  4791. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4792. if v:FindFirstChild('Head') then
  4793. dmg(v)
  4794. end
  4795. end
  4796. CameraEnshaking(4,10)
  4797. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4798. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4799. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4800. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4801. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4802. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4803. local eff = Instance.new("ParticleEmitter",elocacenter)
  4804. eff.Texture = "rbxassetid://2273224484"
  4805. eff.LightEmission = 1
  4806. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4807. eff.Rate = 1000000
  4808. eff.Lifetime = NumberRange.new(0.5,2)
  4809. 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)})
  4810. 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)})
  4811. eff.Speed = NumberRange.new(20,250)
  4812. eff.Drag = 5
  4813. eff.Rotation = NumberRange.new(-500,500)
  4814. eff.VelocitySpread = 5000000
  4815. eff.RotSpeed = NumberRange.new(-50,50)
  4816. coroutine.resume(coroutine.create(function()
  4817. wait(1)
  4818. eff.Enabled = false
  4819. end))
  4820. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4821. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4822. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4823. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4824. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4825. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4826. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4827. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4828. for i = 0, 24 do
  4829. 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)
  4830. 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)
  4831. 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)
  4832. 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)
  4833. end
  4834. coroutine.resume(coroutine.create(function()
  4835. wait(10)
  4836. elocacenter:Destroy()
  4837. eloca1:Destroy()
  4838. eloca2:Destroy()
  4839. eloca3:Destroy()
  4840. eloca4:Destroy()
  4841. end))
  4842. end))
  4843. attack = false
  4844. end
  4845.  
  4846. function UniversalCollapse()
  4847. attack = true
  4848. local speedearn = 0
  4849. hum.WalkSpeed = 0
  4850. local sbs = Instance.new("BodyPosition", root)
  4851. sbs.P = 3000
  4852. sbs.D = 1000
  4853. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4854. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4855. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4856. for i = 0, 85, 0.1 do
  4857. swait()
  4858. speedearn = speedearn + 0.1
  4859. 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)
  4860. 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)
  4861. 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)
  4862. 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)
  4863. 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)
  4864. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4865. 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)
  4866. 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)
  4867. 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)
  4868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4869. 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)
  4870. 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)
  4871. end
  4872. bosschatfunc("Universal...",MAINRUINCOLOR.Color,1)
  4873. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4874. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4875. for i = 0, 25, 0.1 do
  4876. swait()
  4877. speedearn = speedearn + 0.1
  4878. 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)
  4879. 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)
  4880. 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)
  4881. 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)
  4882. 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)
  4883. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4884. 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)
  4885. 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)
  4886. 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)
  4887. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4888. 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)
  4889. 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)
  4890. end
  4891. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4892. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4893. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4894. CameraEnshaking(5,50)
  4895. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4896. for i = 0, 2 do
  4897. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4898. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4899. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4900. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4901. end
  4902. for i = 0, 49 do
  4903. 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)
  4904. 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)
  4905. 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)
  4906. 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)
  4907. end
  4908. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4909. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4910. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4911. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4912. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4913. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4914. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4915. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4916. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4917. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4918. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4919. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4920. for i = 0, 99 do
  4921. 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)
  4922. 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)
  4923. end
  4924. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4925. if v:FindFirstChild('Head') then
  4926. dmg(v)
  4927. end
  4928. end
  4929. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4930. sbs:Destroy()
  4931. hum.WalkSpeed = storehumanoidWS
  4932. attack = false
  4933. end
  4934.  
  4935. function ChaosEND()
  4936. attack = true
  4937. local speedearn = 0
  4938. bosschatfunc("THIS IS...",MAINRUINCOLOR.Color,1)
  4939. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4940. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4941. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4942. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 5, 1)
  4943. for i = 0, 15, 0.1 do
  4944. swait()
  4945. speedearn = speedearn + 0.25
  4946. 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)
  4947. 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)
  4948. 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)
  4949. 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)
  4950. 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)
  4951. 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)
  4952. 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)
  4953. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4955. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4956. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4957. end
  4958. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4959. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4960. bosschatfunc("THE END",MAINRUINCOLOR.Color,1)
  4961. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4962. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4963. CameraEnshaking(5,25)
  4964. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4965. if v:FindFirstChild('Head') then
  4966. dmg(v)
  4967. end
  4968. end
  4969. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4970. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4971. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4972. for i = 0, 3, 0.1 do
  4973. swait()
  4974. 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)
  4975. 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)
  4976. 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)
  4977. 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)
  4978. 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)
  4979. 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)
  4980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4984. end
  4985. attack = false
  4986. end
  4987.  
  4988. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4989. local orb = Instance.new("Part", char)
  4990. orb.Anchored = true
  4991. orb.BrickColor = color
  4992. orb.CanCollide = false
  4993. orb.FormFactor = 3
  4994. orb.Name = "Ring"
  4995. orb.Material = "Neon"
  4996. orb.Size = Vector3.new(1, 1, 1)
  4997. orb.Transparency = 0
  4998. orb.TopSurface = 0
  4999. orb.BottomSurface = 0
  5000. local orbm = Instance.new("SpecialMesh", orb)
  5001. orbm.MeshType = "Sphere"
  5002. orb.CFrame = positted
  5003. orbm.Name = "SizeMesh"
  5004. orbm.Scale = vt(1,1,1)
  5005. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5006. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5007. --[[for i = 0, 2 do
  5008. 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)
  5009. end]]--
  5010. coroutine.resume(coroutine.create(function()
  5011. wait(timer)
  5012. CameraEnshaking(3,ShakePower)
  5013. orb.Transparency = 1
  5014. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5015. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5016. --[[for i = 0, 4 do
  5017. 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)
  5018. end]]--
  5019. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5020. wait(3)
  5021. orb:Destroy()
  5022. end))
  5023. end
  5024.  
  5025. function orb_spawn(positted,timer)
  5026. local randomcol = math.random(1,2)
  5027. local orb = Instance.new("Part", char)
  5028. orb.Anchored = true
  5029. if randomcol == 1 then
  5030. orb.BrickColor = BrickColor.new("White")
  5031. elseif randomcol == 2 then
  5032. orb.BrickColor = BrickColor.new("Really black")
  5033. end
  5034. orb.CanCollide = false
  5035. orb.FormFactor = 3
  5036. orb.Name = "Ring"
  5037. orb.Material = "Neon"
  5038. orb.Size = Vector3.new(1, 1, 1)
  5039. orb.Transparency = 0
  5040. orb.TopSurface = 0
  5041. orb.BottomSurface = 0
  5042. local orbm = Instance.new("SpecialMesh", orb)
  5043. orbm.MeshType = "Sphere"
  5044. orb.CFrame = positted
  5045. orbm.Name = "SizeMesh"
  5046. orbm.Scale = vt(1,1,1)
  5047. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5048. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5049. for i = 0, 2 do
  5050. 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)
  5051. end
  5052. coroutine.resume(coroutine.create(function()
  5053. wait(timer)
  5054. CameraEnshaking(3,2)
  5055. orb.Transparency = 1
  5056. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5057. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5058. for i = 0, 4 do
  5059. 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)
  5060. end
  5061. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5062. wait(3)
  5063. orb:Destroy()
  5064. end))
  5065. end
  5066.  
  5067. function scattercorrupt()
  5068. attack = true
  5069. hum.WalkSpeed = 0
  5070. for i = 0, 2, 0.1 do
  5071. swait()
  5072. 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(0)),.2)
  5073. 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(0)),.2)
  5074. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5076. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5077. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5078. end
  5079. local rot = 0
  5080. local randomrotations = math.random(1,2)
  5081. local lookv = 2.5
  5082. local power = 7
  5083. local radm = math.random(1,3)
  5084. if radm == 1 then
  5085. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5086. elseif radm == 2 then
  5087. bosschatfunc("YOUR EXISTANCE IS WASTED!!!!!!",MAINRUINCOLOR.Color,1)
  5088. elseif radm == 3 then
  5089. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5090. end
  5091. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5092. for i = 0, 1, 0.1 do
  5093. swait()
  5094. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5095. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5096. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5097. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5098. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5099. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5100. end
  5101. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5102. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5103. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5104. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5105. for i = 0, 9 do
  5106. 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)
  5107. end
  5108. local hite = Instance.new("Part", char)
  5109. hite.Anchored = true
  5110. hite.CanCollide = false
  5111. hite.FormFactor = 3
  5112. hite.Name = "Ring"
  5113. hite.Material = "Neon"
  5114. hite.Size = Vector3.new(1, 1, 1)
  5115. hite.Transparency = 1
  5116. hite.TopSurface = 0
  5117. hite.BottomSurface = 0
  5118. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5119. local rem = Instance.new("Part", char)
  5120. rem.Anchored = true
  5121. rem.CanCollide = false
  5122. rem.FormFactor = 3
  5123. rem.Name = "Ring"
  5124. rem.Material = "Neon"
  5125. rem.Size = Vector3.new(1, 1, 1)
  5126. rem.Transparency = 1
  5127. rem.TopSurface = 0
  5128. rem.BottomSurface = 0
  5129. rem.CFrame = hite.CFrame
  5130. local rem2 = rem:Clone()
  5131. rem2.Parent = char
  5132. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5133. local rem3 = rem:Clone()
  5134. rem3.Parent = char
  5135. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5136. local rem4 = rem:Clone()
  5137. rem4.Parent = char
  5138. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5139. hite:Destroy()
  5140. coroutine.resume(coroutine.create(function()
  5141. for i = 0, 24 do
  5142. swait(1)
  5143. if randomrotations == 1 then
  5144. rot = rot + 1
  5145. elseif randomrotations == 2 then
  5146. rot = rot - 1
  5147. end
  5148. power = power + 0.5
  5149. lookv = lookv + 7.5
  5150. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5151. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5152. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5153. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5154. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5155. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5156. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5157. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5158. end
  5159. end))
  5160. wait(2)
  5161. hum.WalkSpeed = storehumanoidWS
  5162. attack = false
  5163. end
  5164.  
  5165. function yinyangi()
  5166. attack = true
  5167. for i = 0, 2, 0.1 do
  5168. swait()
  5169. bosschatfunc("YAAAAAHHHHHHH!",MAINRUINCOLOR.Color,1)
  5170. CFuncs["Sound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  5171. 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)
  5172. 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)
  5173. 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)
  5174. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5175. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5176. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5177. end
  5178. local bv = Instance.new("BodyVelocity")
  5179. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5180. bv.velocity = root.CFrame.lookVector*175
  5181. bv.Parent = root
  5182. for Rotations = 0, 9 do
  5183. for i = 0, 1, 0.5 do
  5184. swait()
  5185. bv.velocity = root.CFrame.lookVector*175
  5186. 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)
  5187. 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)
  5188. 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)
  5189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5191. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5192. end
  5193. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5194. for i = 0, 1, 0.5 do
  5195. swait()
  5196. bv.velocity = root.CFrame.lookVector*175
  5197. 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)
  5198. 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)
  5199. 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)
  5200. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5201. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5202. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5203. end
  5204. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5205. for i = 0, 1, 0.5 do
  5206. swait()
  5207. bv.velocity = root.CFrame.lookVector*175
  5208. 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)
  5209. 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)
  5210. 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)
  5211. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5212. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5213. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5214. end
  5215. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5216. for i = 0, 1, 0.5 do
  5217. swait()
  5218. bv.velocity = root.CFrame.lookVector*175
  5219. 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)
  5220. 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)
  5221. 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)
  5222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5223. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5224. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5225. end
  5226. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5227. end
  5228. bv:Destroy()
  5229. attack = false
  5230. end
  5231.  
  5232. function createBGCircle(size,parent,color)
  5233. local bgui = Instance.new("BillboardGui",parent)
  5234. bgui.Size = UDim2.new(size, 0, size, 0)
  5235. local imgc = Instance.new("ImageLabel",bgui)
  5236. imgc.BackgroundTransparency = 1
  5237. imgc.ImageTransparency = 0
  5238. imgc.Size = UDim2.new(1,0,1,0)
  5239. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5240. imgc.ImageColor3 = color
  5241. return bgui,imgc
  5242. end
  5243.  
  5244. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5245. local bgui,imgc = createBGCircle(size,guipar,color)
  5246. bgui.AlwaysOnTop = true
  5247. imgc.Image = "rbxassetid://" ..img
  5248. local rrot = math.random(1,2)
  5249. CFuncs["Sound"].Create("rbxassetid://183763506", 2.5, 1.05)
  5250. coroutine.resume(coroutine.create(function()
  5251. for i = 0, 24*delay do
  5252. swait()
  5253. if rotationenabled == true then
  5254. if rrot == 1 then
  5255. imgc.Rotation = imgc.Rotation + rotsp
  5256. elseif rrot == 2 then
  5257. imgc.Rotation = imgc.Rotation - rotsp
  5258. end
  5259. end
  5260. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5261. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5262. end
  5263. bgui:Destroy()
  5264. end))
  5265. end
  5266. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5267. for i, v in pairs(mw2:GetChildren()) do
  5268. if v:IsA("Part") then
  5269. v.BrickColor = one
  5270. v.Material = "Neon"
  5271. end
  5272. end
  5273. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 999999, 1,0,10,0.25,0.25,1)
  5274. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5275. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5276. tr1.Color = ColorSequence.new(one.Color)
  5277. tr2.Color = ColorSequence.new(one.Color)
  5278. tr3.Color = ColorSequence.new(one.Color)
  5279. for i, v in pairs(mw1:GetChildren()) do
  5280. if v:IsA("Part") then
  5281. if secondaryenabled == false then
  5282. v.Transparency = 1
  5283. elseif secondaryenabled == true then
  5284. v.Transparency = 0
  5285. end
  5286. v.BrickColor = two
  5287. v.Material = "Neon"
  5288. end
  5289. end
  5290. if secondaryenabled == false then
  5291. tl1.Enabled = false
  5292. tl2.Enabled = false
  5293. tl3.Enabled = false
  5294. elseif secondaryenabled == true then
  5295. tl1.Enabled = true
  5296. tl2.Enabled = true
  5297. tl3.Enabled = true
  5298. end
  5299. tl1.Color = ColorSequence.new(two.Color)
  5300. tl2.Color = ColorSequence.new(two.Color)
  5301. tl3.Color = ColorSequence.new(two.Color)
  5302. for i, v in pairs(m:GetChildren()) do
  5303. if v:IsA("Part") then
  5304. v.BrickColor = three
  5305. v.Material = "Ice"
  5306. end
  5307. end
  5308. for i, v in pairs(m2:GetChildren()) do
  5309. if v:IsA("Part") then
  5310. v.BrickColor = four
  5311. v.Material = "Ice"
  5312. end
  5313. end
  5314. for i, v in pairs(m3:GetChildren()) do
  5315. if v:IsA("Part") then
  5316. v.BrickColor = five
  5317. v.Material = "Neon"
  5318. end
  5319. end
  5320. for i, v in pairs(extrawingmod1:GetChildren()) do
  5321. if v:IsA("Part") then
  5322. v.Transparency = exonetran
  5323. v.BrickColor = exone
  5324. v.Material = "Neon"
  5325. end
  5326. end
  5327. for i, v in pairs(extrawingmod2:GetChildren()) do
  5328. if v:IsA("Part") then
  5329. v.Transparency = extwotran
  5330. v.BrickColor = extwo
  5331. v.Material = "Neon"
  5332. end
  5333. end
  5334. end
  5335.  
  5336.  
  5337. function normalmog()
  5338. attack = true
  5339. hum.WalkSpeed = 0
  5340. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 35, 1.25)
  5341. bosschatfunc("Let's do this.",MAINRUINCOLOR.Color,1)
  5342. for i = 0,6,0.1 do
  5343. swait()
  5344. 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)
  5345. 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)
  5346. 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)
  5347. 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)
  5348. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5349. 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)
  5350. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5351. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5352. end
  5353. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5354. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5355. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5356. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5357. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5358. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5359. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5360. rainbowmode = false
  5361. chaosmode = false
  5362. ModeOfGlitch = 1
  5363. storehumanoidWS = 16
  5364. newTheme("rbxassetid://548642448",48.6,1,1.25)
  5365. RecolorTextAndRename("Hokuto no Ken",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5366. CameraEnshaking(5,2.5)
  5367. MAINRUINCOLOR = BrickColor.new("Bright red")
  5368. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5369. for i = 0, 49 do
  5370. 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)
  5371. end
  5372. for i = 0, 24 do
  5373. 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)
  5374. 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"))
  5375. end
  5376. for i = 0,3,0.1 do
  5377. 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)
  5378. end
  5379. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5380. for i = 0,2,0.1 do
  5381. swait()
  5382. 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)
  5383. 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)
  5384. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5385. 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)
  5386. 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)
  5387. 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)
  5388. end
  5389. hum.WalkSpeed = storehumanoidWS
  5390. attack = false
  5391. end
  5392.  
  5393. function attackone()
  5394. attack = true
  5395. for i = 0,1,0.1 do
  5396. swait()
  5397. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5398. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5399. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5400. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5401. 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(0)),.3)
  5402. 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(10),math.rad(0)),.3)
  5403. end
  5404. local distlook = 5
  5405. for i = 0, 4 do
  5406. swait(2)
  5407. CameraEnshaking(2,3)
  5408. local hite = Instance.new("Part", char)
  5409. hite.Anchored = true
  5410. hite.CanCollide = false
  5411. hite.FormFactor = 3
  5412. hite.Name = "Ring"
  5413. hite.Material = "Neon"
  5414. hite.Size = Vector3.new(1, 1, 1)
  5415. hite.Transparency = 1
  5416. hite.TopSurface = 0
  5417. hite.BottomSurface = 0
  5418. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5419. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5420. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5421. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5422. for i = 0, 2 do
  5423. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5424. sphereMK(3,0.2,"Add",hite.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,MAINRUINCOLOR,0)
  5425. sphereMK(6,0.35,"Add",hite.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,MAINRUINCOLOR,0)
  5426. end
  5427. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5428. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.26, 0.6)
  5429. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 10,1)
  5430. game:GetService("Debris"):AddItem(hite, 5)
  5431. distlook = distlook + 10
  5432. end
  5433. attack = false
  5434. end
  5435.  
  5436. function attacktwo()
  5437. attack = true
  5438. for i = 0,1,0.1 do
  5439. swait()
  5440. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  5441. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5442. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  5443. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  5444. 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(-1.5),math.rad(0),math.rad(10)),.3)
  5445. 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)),.3)
  5446. end
  5447. CameraEnshaking(3,4)
  5448. MagniDamage(root, 12, 15,30, 0, "Normal")
  5449. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5450. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5451. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5452. coroutine.resume(coroutine.create(function()
  5453. local eff = Instance.new("ParticleEmitter",root)
  5454. eff.Texture = "rbxassetid://363275192"
  5455. eff.LightEmission = 0.95
  5456. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5457. eff.Rate = 10000
  5458. eff.Lifetime = NumberRange.new(1)
  5459. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  5460. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  5461. eff.Speed = NumberRange.new(10,125)
  5462. eff.Drag = 5
  5463. eff.Rotation = NumberRange.new(-500,500)
  5464. eff.VelocitySpread = 9000
  5465. eff.RotSpeed = NumberRange.new(-50,50)
  5466. local eff2 = eff:Clone()
  5467. eff2.Parent = root
  5468. eff2.Texture = "rbxassetid://284205403"
  5469. eff2.Rate = 10000
  5470. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  5471. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  5472. eff2.Drag = 5
  5473. eff2.Speed = NumberRange.new(10,50)
  5474. eff2.Rotation = NumberRange.new(-500,500)
  5475. eff2.VelocitySpread = 9000
  5476. wait(0.25)
  5477. eff2.Enabled = false
  5478. eff.Enabled = false
  5479. wait(3)
  5480. eff2:Destroy()
  5481. eff:Destroy()
  5482. end))
  5483. for i = 0, 9 do
  5484. sphere2(7.5,"Add",root.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.0025,1,-0.0025,MAINRUINCOLOR)
  5485. end
  5486. for i = 0, 24 do
  5487. local rsiz = math.random(5,20)
  5488. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  5489. end
  5490. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  5491. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  5492. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  5493. CFuncs["Sound"].Create("rbxassetid://201858045", root, 2.5,1.3)
  5494. for i = 0,2,0.1 do
  5495. swait()
  5496. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5497. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  5498. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  5499. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  5500. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  5501. 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)),.3)
  5502. end
  5503. attack = false
  5504. end
  5505.  
  5506. function attackthree()
  5507. attack = true
  5508. local keptcolor = MAINRUINCOLOR
  5509. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  5510. for i = 0,1,0.1 do
  5511. swait()
  5512. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  5513. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5514. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  5515. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  5516. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  5517. 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(-1.5),math.rad(0),math.rad(0)),.5)
  5518. 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)),.5)
  5519. end
  5520. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  5521. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  5522. local angle = -25
  5523. coroutine.resume(coroutine.create(function()
  5524. for i = 0, 2 do
  5525. local orb = Instance.new("Part", char)
  5526. orb.BrickColor = MAINRUINCOLOR
  5527. orb.CanCollide = false
  5528. orb.FormFactor = 3
  5529. orb.Name = "Ring"
  5530. orb.Material = "Neon"
  5531. orb.Size = Vector3.new(1, 1, 1)
  5532. orb.Transparency = 0.5
  5533. orb.TopSurface = 0
  5534. orb.BottomSurface = 0
  5535. local orbm = Instance.new("SpecialMesh", orb)
  5536. orbm.MeshType = "Sphere"
  5537. orbm.Name = "SizeMesh"
  5538. orbm.Scale = vt(3,3,3)
  5539. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  5540. local bv = Instance.new("BodyVelocity")
  5541. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5542. bv.velocity = orb.CFrame.lookVector*100
  5543. bv.Parent = orb
  5544. game:GetService("Debris"):AddItem(orb, 10)
  5545. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5546. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5547. coroutine.resume(coroutine.create(function()
  5548. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5549. for i = 0, 7 do
  5550. swait(2.5)
  5551. CameraEnshaking(1,2)
  5552. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5553. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  5554. for i = 0, 4 do
  5555. local rsiz = math.random(5,10)
  5556. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  5557. sphereMK(math.random(2,6),0.15,"Add",orb.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)
  5558. end
  5559. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5560. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5561. end
  5562. orb.Transparency = 1
  5563. orb.Anchored = false
  5564. wait(10)
  5565. orb:Destroy()
  5566. end))
  5567. angle = angle + 25
  5568. end
  5569. end))
  5570. for i = 0,1,0.1 do
  5571. swait()
  5572. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5573. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5574. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  5575. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  5576. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  5577. 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)),.3)
  5578. end
  5579. attack = false
  5580. end
  5581. ----------------------------------- Abilities
  5582.  
  5583. function ExtinctiveHeartbreak()
  5584. local targetted = nil
  5585. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5586. targetted = mouse.Target.Parent
  5587. end
  5588. if targetted ~= nil then
  5589. attack = true
  5590. bosschatfunc("*Teleports behind the enemy*",MAINRUINCOLOR.Color,1)
  5591. CFuncs["EchoSound"].Create("rbxassetid://985132972", char, 1.5, 1,0,10,0.15,0.5,1)
  5592. CFuncs["EchoSound"].Create("rbxassetid://985132972", root, 10, 1,0,10,0.15,0.5,1)
  5593. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2.5,1)
  5594. CFuncs["Sound"].Create("rbxassetid://201858045", root, 2.5,1.3)
  5595. for i = 0, 9 do
  5596. 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)
  5597. end
  5598. for i = 0, 24 do
  5599. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5600. end
  5601. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5602. local originalpos = root.CFrame
  5603. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5604. for i = 0, 9 do
  5605. 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)
  5606. end
  5607. for i = 0, 24 do
  5608. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5609. end
  5610. hum.WalkSpeed = 0
  5611. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5612. local radm = math.random(1,3)
  5613. if radm == 1 then
  5614. bosschatfunc("You are already dead.",MAINRUINCOLOR.Color,2)
  5615. elseif radm == 2 then
  5616. bosschatfunc("You are already dead.",MAINRUINCOLOR.Color,2)
  5617. elseif radm == 3 then
  5618. bosschatfunc("You are already dead.",MAINRUINCOLOR.Color,2)
  5619. end
  5620. for i = 0,2,0.1 do
  5621. swait()
  5622. 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)
  5623. 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)
  5624. 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)
  5625. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5626. 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)
  5627. 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)
  5628. end
  5629. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5630. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5631. for i = 0,2,0.1 do
  5632. swait()
  5633. coroutine.resume(coroutine.create(function()
  5634. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5635. for i,v in pairs(targetted:GetChildren()) do
  5636. if v:IsA("Part") or v:IsA("MeshPart") then
  5637. v.Velocity = vt(0,0,0)
  5638. end
  5639. end
  5640. end))
  5641. 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)
  5642. 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)
  5643. 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)
  5644. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5645. 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)
  5646. 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)
  5647. end
  5648. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5649. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5650. for i = 0, 1 do
  5651. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5652. end
  5653. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5654. chatfunc("NANI?!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5655. for i = 0,4,0.1 do
  5656. swait()
  5657. coroutine.resume(coroutine.create(function()
  5658. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5659. 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)))
  5660. local at1 = Instance.new("Attachment",dis)
  5661. at1.Position = vt(-25000,0,0)
  5662. local at2 = Instance.new("Attachment",dis)
  5663. at2.Position = vt(25000,0,0)
  5664. local trl = Instance.new('Trail',dis)
  5665. trl.Attachment0 = at1
  5666. trl.FaceCamera = true
  5667. trl.Attachment1 = at2
  5668. trl.Texture = "rbxassetid://1049219073"
  5669. trl.LightEmission = 1
  5670. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5671. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5672. trl.Lifetime = 5
  5673. local bv = Instance.new("BodyVelocity")
  5674. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5675. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5676. bv.Parent = dis
  5677. game:GetService("Debris"):AddItem(dis, 5)
  5678. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5679. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5680. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5681. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5682. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5683. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5684. 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)
  5685. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5686. for i = 0, 2 do
  5687. 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"))
  5688. end
  5689. 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)
  5690. for i,v in pairs(targetted:GetChildren()) do
  5691. if v:IsA("Part") or v:IsA("MeshPart") then
  5692. v.Velocity = vt(0,0,0)
  5693. end
  5694. end
  5695. end))
  5696. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5697. 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)
  5698. 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)
  5699. 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)
  5700. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5701. 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)
  5702. 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)
  5703. end
  5704. hum.CameraOffset = vt(0,0,0)
  5705. for i = 0, 49 do
  5706. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5707. 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)))
  5708. local at1 = Instance.new("Attachment",dis)
  5709. at1.Position = vt(-50000,0,0)
  5710. local at2 = Instance.new("Attachment",dis)
  5711. at2.Position = vt(50000,0,0)
  5712. local trl = Instance.new('Trail',dis)
  5713. trl.Attachment0 = at1
  5714. trl.FaceCamera = true
  5715. trl.Attachment1 = at2
  5716. trl.Texture = "rbxassetid://1049219073"
  5717. trl.LightEmission = 1
  5718. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5719. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5720. trl.Lifetime = 5
  5721. local bv = Instance.new("BodyVelocity")
  5722. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5723. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5724. bv.Parent = dis
  5725. game:GetService("Debris"):AddItem(dis, 5)
  5726. end
  5727. for i = 0, 49 do
  5728. 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)
  5729. 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"))
  5730. end
  5731. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5732. for i = 0, 1 do
  5733. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5734. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5735. end
  5736. for i = 0, 4 do
  5737. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5738. end
  5739. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5740. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5741. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5742. dmg(targetted)
  5743. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5744. for i = 0, 9 do
  5745. 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)
  5746. end
  5747. for i = 0, 24 do
  5748. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5749. end
  5750. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5751. root.CFrame = originalpos
  5752. for i = 0, 9 do
  5753. 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)
  5754. end
  5755. for i = 0, 24 do
  5756. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5757. end
  5758. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5759. attack = false
  5760. hum.WalkSpeed = storehumanoidWS
  5761. end
  5762. end
  5763.  
  5764. function CorruptionEvent()
  5765. attack = true
  5766. hum.WalkSpeed = 0
  5767. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  5768. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  5769. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  5770. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5771. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5772. local keptcolor = MAINRUINCOLOR
  5773. for i = 0,4,0.1 do
  5774. swait()
  5775. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5776. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5777. 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)
  5778. 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)
  5779. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5781. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5782. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5783. end
  5784. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5785. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5786. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5787. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5788. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5789. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5790. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5791. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5792. hum.CameraOffset = vt(0,0,0)
  5793. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5794. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5795. for i = 0, 24 do
  5796. 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"))
  5797. end
  5798. local rrot = 0
  5799. coroutine.resume(coroutine.create(function()
  5800. for i = 0, 4 do
  5801. rrot = rrot + 45
  5802. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5803. xa.Anchored = true
  5804. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5805. xb.Anchored = true
  5806. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5807. xc.Anchored = true
  5808. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5809. xd.Anchored = true
  5810. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5811. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5812. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5813. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5814. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5815. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5816. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5817. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5818. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5819. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5820. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5821. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5822. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5823. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5824. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5825. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5826. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5827. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5828. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5829. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5830. for i = 0, 9 do
  5831. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5832. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5833. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5834. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5835. end
  5836. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5837. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5838. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5839. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5840. 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)
  5841. 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)
  5842. 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)
  5843. 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)
  5844. 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))
  5845. 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))
  5846. 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))
  5847. 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))
  5848. game:GetService("Debris"):AddItem(xa, 5)
  5849. game:GetService("Debris"):AddItem(xb, 5)
  5850. game:GetService("Debris"):AddItem(xc, 5)
  5851. game:GetService("Debris"):AddItem(xd, 5)
  5852. coroutine.resume(coroutine.create(function()
  5853. for i = 0, 19 do
  5854. swait()
  5855. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5856. end
  5857. hum.CameraOffset = vt(0,0,0)
  5858. end))
  5859. swait(9)
  5860. end
  5861. end))
  5862. for i = 0,2,0.1 do
  5863. swait()
  5864. 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)
  5865. 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)
  5866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5867. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5868. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5869. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5870. end
  5871. attack = false
  5872. hum.WalkSpeed = storehumanoidWS
  5873. end
  5874.  
  5875. function EndGROUND()
  5876. attack = true
  5877. hum.WalkSpeed = 0
  5878. bosschatfunc("...",MAINRUINCOLOR.Color,1)
  5879. --CFuncs["Sound"].Create("rbxassetid://0", root, 10, 1)
  5880. CFuncs["Sound"].Create("rbxassetid://0", root, 10, 1)
  5881. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5882. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5883. local keptcolor = MAINRUINCOLOR
  5884. for i = 0,4,0.1 do
  5885. swait()
  5886. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5887. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5888. 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"))
  5889. 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)
  5890. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5891. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5892. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5893. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5894. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5895. end
  5896. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5897. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5898. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5899. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5900. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5901. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5902. coroutine.resume(coroutine.create(function()
  5903. local shval = 10
  5904. for i = 0, 99 do
  5905. swait()
  5906. shval = shval - 0.1
  5907. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5908. end
  5909. hum.CameraOffset = vt(0,0,0)
  5910. end))
  5911. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5912. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5913. for i = 0, 24 do
  5914. 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"))
  5915. end
  5916. local rrot = 0
  5917. local xam = 1
  5918. coroutine.resume(coroutine.create(function()
  5919. for i = 0, 14 do
  5920. --swait()
  5921. rrot = rrot + 40*xam
  5922. xam = xam + 0.25
  5923. local bonus = xam
  5924. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5925. xa.Anchored = true
  5926. xa.Color = Color3.new(0,0,0)
  5927. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5928. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5929. local xc = 0
  5930. coroutine.resume(coroutine.create(function()
  5931. for i = 0, 99 do
  5932. swait()
  5933. xc = xc + 0.01
  5934. xa.Color = Color3.new(xc,0,0)
  5935. end
  5936. xa.Transparency = 1
  5937. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5938. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5939. for i = 0, 9 do
  5940. 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"))
  5941. end
  5942. 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)
  5943. 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)
  5944. 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))
  5945. game:GetService("Debris"):AddItem(xa, 5)
  5946. coroutine.resume(coroutine.create(function()
  5947. for i = 0, 19 do
  5948. swait()
  5949. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5950. end
  5951. hum.CameraOffset = vt(0,0,0)
  5952. end))
  5953. end))
  5954. end
  5955. end))
  5956. for i = 0,2,0.1 do
  5957. swait()
  5958. 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)
  5959. 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)
  5960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5962. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5963. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5964. end
  5965. attack = false
  5966. hum.WalkSpeed = storehumanoidWS
  5967. end
  5968.  
  5969.  
  5970. function HeavenlyDisk()
  5971. attack = true
  5972. hum.WalkSpeed = 2
  5973. local keptcolor = MAINRUINCOLOR
  5974. local radm = math.random(1,3)
  5975. if radm == 1 then
  5976. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  5977. elseif radm == 2 then
  5978. bosschatfunc("I really don't have a choice...",MAINRUINCOLOR.Color,1)
  5979. elseif radm == 3 then
  5980. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5981. end
  5982. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5983. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 4, 1,0,10,0.15,0.5,1)
  5984. sphere2(5,"Add",larm.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)
  5985. sphere2(5,"Add",larm.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)
  5986. for i = 0, 14 do
  5987. PixelBlock(1,math.random(1,3),"Add",larm.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,BrickColor.new(MULTIRUINCOLOR),0)
  5988. end
  5989. for i = 0,2,0.1 do
  5990. swait()
  5991. 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)
  5992. 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)
  5993. 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)
  5994. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5995. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5996. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5997. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5998. end
  5999. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6000. for i = 0,1,0.6 do
  6001. swait()
  6002. 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)
  6003. 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"))
  6004. 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)
  6005. 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)
  6006. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6008. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6009. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6010. end
  6011. for i = 0,1,0.6 do
  6012. swait()
  6013. 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)
  6014. 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"))
  6015. 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)
  6016. 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)
  6017. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6020. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6021. end
  6022. for i = 0,1,0.6 do
  6023. swait()
  6024. 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)
  6025. 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"))
  6026. 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)
  6027. 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)
  6028. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6030. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6031. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6032. end
  6033. for i = 0,1,0.6 do
  6034. swait()
  6035. 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)
  6036. 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"))
  6037. 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)
  6038. 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)
  6039. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6040. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6041. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6042. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6043. end
  6044. local rot = 15
  6045. for i = 0, 2 do
  6046. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new(MULTIRUINCOLOR))
  6047. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6048. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6049. CreateMesh(dis,"Sphere",10,1,10)
  6050. local at1 = Instance.new("Attachment",dis)
  6051. at1.Position = vt(-5,0,0)
  6052. local at2 = Instance.new("Attachment",dis)
  6053. at2.Position = vt(5,0,0)
  6054. local trl = Instance.new('Trail',wed)
  6055. trl.Attachment0 = at1
  6056. trl.Attachment1 = at2
  6057. trl.Texture = "rbxassetid://1049219073"
  6058. trl.LightEmission = 1
  6059. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6060. trl.Color = ColorSequence.new(dis.Color)
  6061. trl.Lifetime = 0.6
  6062. local a = Instance.new("Part",workspace)
  6063. a.Name = "Direction"
  6064. a.Anchored = true
  6065. a.BrickColor = bc("Bright red")
  6066. a.Material = "Neon"
  6067. a.Transparency = 1
  6068. a.CanCollide = false
  6069. local ray = Ray.new(
  6070. dis.CFrame.p, -- origin
  6071. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6072. )
  6073. local ignore = dis
  6074. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6075. a.BottomSurface = 10
  6076. a.TopSurface = 10
  6077. local distance = (dis.CFrame.p - position).magnitude
  6078. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6079. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6080. dis.CFrame = a.CFrame
  6081. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6082. a:Destroy()
  6083. local bv = Instance.new("BodyVelocity")
  6084. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6085. bv.velocity = dis.CFrame.lookVector*250
  6086. bv.Parent = dis
  6087. game:GetService("Debris"):AddItem(dis, 5)
  6088. local hitted = false
  6089. coroutine.resume(coroutine.create(function()
  6090. dis.Touched:connect(function(hit)
  6091. if hitted == false and hit.Parent ~= char then
  6092. hitted = true
  6093. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6094. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6095. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6096. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6097. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6098. coroutine.resume(coroutine.create(function()
  6099. for i = 0, 9 do
  6100. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6101. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6102. local at1 = Instance.new("Attachment",disr)
  6103. at1.Position = vt(-2,0,0)
  6104. local at2 = Instance.new("Attachment",disr)
  6105. at2.Position = vt(2,0,0)
  6106. local trl = Instance.new('Trail',disr)
  6107. trl.Attachment0 = at1
  6108. trl.FaceCamera = true
  6109. trl.Attachment1 = at2
  6110. trl.Texture = "rbxassetid://2342682798"
  6111. trl.LightEmission = 1
  6112. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6113. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6114. trl.Lifetime = 0.5
  6115. local bv = Instance.new("BodyVelocity")
  6116. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6117. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6118. bv.Parent = disr
  6119. local val = 0
  6120. coroutine.resume(coroutine.create(function()
  6121. swait(30)
  6122. for i = 0, 9 do
  6123. swait()
  6124. val = val + 0.1
  6125. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6126. end
  6127. game:GetService("Debris"):AddItem(disr, 3)
  6128. end))
  6129. end
  6130. local eff = Instance.new("ParticleEmitter",dis)
  6131. eff.Texture = "rbxassetid://2273224484"
  6132. eff.LightEmission = 1
  6133. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6134. eff.Rate = 500000
  6135. eff.Lifetime = NumberRange.new(0.5,2)
  6136. 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)})
  6137. 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)})
  6138. eff.Speed = NumberRange.new(20,250)
  6139. eff.Drag = 5
  6140. eff.Rotation = NumberRange.new(-500,500)
  6141. eff.VelocitySpread = 9000
  6142. eff.RotSpeed = NumberRange.new(-50,50)
  6143. wait(0.25)
  6144. eff.Enabled = false
  6145. end))
  6146. for i = 0, 9 do
  6147. 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"))
  6148. end
  6149. for i = 0, 19 do
  6150. PixelBlock(1,math.random(5,20),"Add",dis.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)
  6151. end
  6152. coroutine.resume(coroutine.create(function()
  6153. for i = 0, 19 do
  6154. swait()
  6155. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6156. end
  6157. hum.CameraOffset = vt(0,0,0)
  6158. end))
  6159. dis.Anchored = true
  6160. dis.Transparency = 1
  6161. wait(8)
  6162. dis:Destroy()
  6163. end
  6164. end)
  6165. end))
  6166. rot = rot - 15
  6167. end
  6168. for i = 0,2,0.1 do
  6169. swait()
  6170. 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)
  6171. 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)
  6172. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6174. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6175. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6176. end
  6177. attack = false
  6178. hum.WalkSpeed = storehumanoidWS
  6179. end
  6180.  
  6181. function RapidBurst()
  6182. attack = true
  6183. hum.WalkSpeed = 0
  6184. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6185. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6186. CFuncs["Sound"].Create("rbxassetid://138677306", root, 10, 0.5)
  6187. CFuncs["EchoSound"].Create("rbxassetid://358080429", char, 4, 1,0,10,0.15,0.5,1)
  6188. CFuncs["EchoSound"].Create("rbxassetid://2014087015", char, 4, 1,0,10,0.15,0.5,1)
  6189. bosschatfunc("ENOUGH!!",MAINRUINCOLOR.Color,2)
  6190. local keptcolor = MAINRUINCOLOR
  6191. for i = 0,8,0.1 do
  6192. swait()
  6193. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6194. 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())
  6195. 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)
  6196. 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)
  6197. 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)
  6198. 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)
  6199. 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)
  6200. 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)
  6201. 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)
  6202. end
  6203. for i = 0, 99 do
  6204. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6205. 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)))
  6206. local at1 = Instance.new("Attachment",dis)
  6207. at1.Position = vt(-25000,0,0)
  6208. local at2 = Instance.new("Attachment",dis)
  6209. at2.Position = vt(25000,0,0)
  6210. local trl = Instance.new('Trail',dis)
  6211. trl.Attachment0 = at1
  6212. trl.FaceCamera = true
  6213. trl.Attachment1 = at2
  6214. trl.Texture = "rbxassetid://1049219073"
  6215. trl.LightEmission = 1
  6216. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6217. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6218. trl.Lifetime = 5
  6219. local bv = Instance.new("BodyVelocity")
  6220. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6221. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6222. bv.Parent = dis
  6223. game:GetService("Debris"):AddItem(dis, 5)
  6224. end
  6225. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6226. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6227. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6228. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6229. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6230. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6231. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6232. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6233. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6234. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6235. hum.CameraOffset = vt(0,0,0)
  6236. for i = 0, 24 do
  6237. 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())
  6238. end
  6239. local distam = 0
  6240. coroutine.resume(coroutine.create(function()
  6241. for i = 0, 99 do
  6242. wait()
  6243. distam = distam + 1
  6244. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6245. xa.Anchored = true
  6246. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6247. game:GetService("Debris"):AddItem(xa, 5)
  6248. for i = 0, 4 do
  6249. 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())
  6250. end
  6251. coroutine.resume(coroutine.create(function()
  6252. local eff = Instance.new("ParticleEmitter",xa)
  6253. eff.Texture = "rbxassetid://2273224484"
  6254. eff.LightEmission = 1
  6255. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6256. eff.Rate = 500000
  6257. eff.Lifetime = NumberRange.new(1,3)
  6258. 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)})
  6259. 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)})
  6260. eff.Speed = NumberRange.new(50,500)
  6261. eff.Drag = 5
  6262. eff.Rotation = NumberRange.new(-500,500)
  6263. eff.VelocitySpread = 9000
  6264. eff.RotSpeed = NumberRange.new(-50,50)
  6265. wait(0.25)
  6266. eff.Enabled = false
  6267. end))
  6268. coroutine.resume(coroutine.create(function()
  6269. for i = 0, 19 do
  6270. swait()
  6271. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6272. end
  6273. hum.CameraOffset = vt(0,0,0)
  6274. end))
  6275. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6276. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6277. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6278. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6279. end
  6280. end))
  6281. attack = false
  6282. hum.WalkSpeed = storehumanoidWS
  6283. end
  6284.  
  6285.  
  6286. function FallenOrbs()
  6287. attack = true
  6288. hum.WalkSpeed = 2
  6289. local keptcolor = MAINRUINCOLOR
  6290. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6291. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6292. local radm = math.random(1,3)
  6293. if radm == 1 then
  6294. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6295. elseif radm == 2 then
  6296. bosschatfunc("BEGONE!",MAINRUINCOLOR.Color,1)
  6297. elseif radm == 3 then
  6298. bosschatfunc("YOUR EXISTANCE IS FUTILE!!!!!!",MAINRUINCOLOR.Color,1)
  6299. end
  6300. coroutine.resume(coroutine.create(function()
  6301. for i = 0, 29 do
  6302. swait(2)
  6303. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6304. dis.Anchored = true
  6305. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6306. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6307. CreateMesh(dis,"Sphere",2,2,2)
  6308. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6309. 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"))
  6310. coroutine.resume(coroutine.create(function()
  6311. wait(0.5)
  6312. dis.Anchored = false
  6313. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6314. local at1 = Instance.new("Attachment",dis)
  6315. at1.Position = vt(-1,0,0)
  6316. local at2 = Instance.new("Attachment",dis)
  6317. at2.Position = vt(1,0,0)
  6318. local trl = Instance.new('Trail',dis)
  6319. trl.Attachment0 = at1
  6320. trl.FaceCamera = true
  6321. trl.Attachment1 = at2
  6322. trl.Texture = "rbxassetid://1049219073"
  6323. trl.LightEmission = 1
  6324. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6325. trl.Color = ColorSequence.new(dis.Color)
  6326. trl.Lifetime = 0.6
  6327. local a = Instance.new("Part",workspace)
  6328. a.Name = "Direction"
  6329. a.Anchored = true
  6330. a.BrickColor = bc("Bright red")
  6331. a.Material = "Neon"
  6332. a.Transparency = 1
  6333. a.CanCollide = false
  6334. local ray = Ray.new(
  6335. dis.CFrame.p, -- origin
  6336. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6337. )
  6338. local ignore = dis
  6339. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6340. a.BottomSurface = 10
  6341. a.TopSurface = 10
  6342. local distance = (dis.CFrame.p - position).magnitude
  6343. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6344. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6345. dis.CFrame = a.CFrame
  6346. a:Destroy()
  6347. local bv = Instance.new("BodyVelocity")
  6348. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6349. bv.velocity = dis.CFrame.lookVector*500
  6350. bv.Parent = dis
  6351. game:GetService("Debris"):AddItem(dis, 5)
  6352. local hitted = false
  6353. coroutine.resume(coroutine.create(function()
  6354. dis.Touched:connect(function(hit)
  6355. if hitted == false and hit.Parent ~= char then
  6356. hitted = true
  6357. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6358. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6359. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6360. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6361. coroutine.resume(coroutine.create(function()
  6362. for i = 0, 4 do
  6363. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6364. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6365. local at1 = Instance.new("Attachment",disr)
  6366. at1.Position = vt(-10,0,0)
  6367. local at2 = Instance.new("Attachment",disr)
  6368. at2.Position = vt(10,0,0)
  6369. local trl = Instance.new('Trail',disr)
  6370. trl.Attachment0 = at1
  6371. trl.FaceCamera = true
  6372. trl.Attachment1 = at2
  6373. trl.Texture = "rbxassetid://2342682798"
  6374. trl.LightEmission = 1
  6375. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6376. trl.Color = ColorSequence.new(disr.Color)
  6377. trl.Lifetime = 0.5
  6378. local bv = Instance.new("BodyVelocity")
  6379. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6380. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6381. bv.Parent = disr
  6382. local val = 0
  6383. coroutine.resume(coroutine.create(function()
  6384. swait(30)
  6385. for i = 0, 9 do
  6386. swait()
  6387. val = val + 0.1
  6388. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6389. end
  6390. game:GetService("Debris"):AddItem(disr, 3)
  6391. end))
  6392. end
  6393. local eff = Instance.new("ParticleEmitter",dis)
  6394. eff.Texture = "rbxassetid://1049219073"
  6395. eff.LightEmission = 1
  6396. eff.Color = ColorSequence.new(dis.Color)
  6397. eff.Rate = 500000
  6398. eff.Lifetime = NumberRange.new(0.5,2)
  6399. 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)})
  6400. 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)})
  6401. eff.Speed = NumberRange.new(20,250)
  6402. eff.Drag = 5
  6403. eff.Rotation = NumberRange.new(-500,500)
  6404. eff.VelocitySpread = 9000
  6405. eff.RotSpeed = NumberRange.new(-50,50)
  6406. wait(0.5)
  6407. eff.Enabled = false
  6408. end))
  6409. for i = 0, 4 do
  6410. 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"))
  6411. end
  6412. coroutine.resume(coroutine.create(function()
  6413. for i = 0, 19 do
  6414. swait()
  6415. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6416. end
  6417. hum.CameraOffset = vt(0,0,0)
  6418. end))
  6419. dis.Anchored = true
  6420. dis.Transparency = 1
  6421. wait(8)
  6422. dis:Destroy()
  6423. end
  6424. end)
  6425. end))
  6426. end))
  6427. end
  6428. end))
  6429. for i = 0,9,0.1 do
  6430. swait()
  6431. 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)
  6432. 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)
  6433. 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)
  6434. 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)
  6435. 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)
  6436. 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)
  6437. 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)
  6438. end
  6439. attack = false
  6440. hum.WalkSpeed = storehumanoidWS
  6441. end
  6442.  
  6443. function EquinoxOrbs()
  6444. hum.WalkSpeed = 0
  6445. attack = true
  6446. for i = 0,1,0.1 do
  6447. swait()
  6448. 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)
  6449. 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)
  6450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6454. end
  6455. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6456. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6457. for i = 0, 24 do
  6458. --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"))
  6459. end
  6460. bosschatfunc("TAKE THIS!",MAINRUINCOLOR.Color,1)
  6461. CFuncs["EchoSound"].Create("rbxassetid://313205954", char, 4, 1,0,10,0.15,0.5,1)
  6462. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6463. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6464. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6465. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6466. for i = 0,1,0.1 do
  6467. swait()
  6468. 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)
  6469. 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)
  6470. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6471. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6472. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6473. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6474. end
  6475. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6476. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6477. for i = 0, 24 do
  6478. 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"))
  6479. end
  6480. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6481. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6482. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6483. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6484. for i = 0,4,0.1 do
  6485. swait()
  6486. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6487. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6488. CreateMesh(dis,"Sphere",1,1,1)
  6489. dis.Anchored = true
  6490. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6491. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6492. CreateMesh(dis2,"Sphere",1,1,1)
  6493. dis2.Anchored = true
  6494. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6495. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6496. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6497. coroutine.resume(coroutine.create(function()
  6498. swait(60)
  6499. dis.Transparency = 1
  6500. dis2.Transparency = 1
  6501. coroutine.resume(coroutine.create(function()
  6502. for i = 0, 19 do
  6503. swait()
  6504. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6505. end
  6506. hum.CameraOffset = vt(0,0,0)
  6507. end))
  6508. coroutine.resume(coroutine.create(function()
  6509. local eff = Instance.new("ParticleEmitter",dis)
  6510. eff.Texture = "rbxassetid://2273224484"
  6511. eff.LightEmission = 1
  6512. eff.Color = ColorSequence.new(dis.Color)
  6513. eff.Rate = 500000
  6514. eff.Lifetime = NumberRange.new(0.5,2)
  6515. 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)})
  6516. 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)})
  6517. eff.Speed = NumberRange.new(50,450)
  6518. eff.Drag = 5
  6519. eff.Rotation = NumberRange.new(-500,500)
  6520. eff.VelocitySpread = 9000
  6521. eff.RotSpeed = NumberRange.new(-50,50)
  6522. local eff2 = eff:Clone()
  6523. eff2.Parent = dis2
  6524. eff2.LightEmission = 0
  6525. eff2.Color = ColorSequence.new(dis2.Color)
  6526. wait(0.25)
  6527. eff.Enabled = false
  6528. eff2.Enabled = false
  6529. end))
  6530. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6531. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6532. for i = 0, 2 do
  6533. 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(100,300)/250,dis.BrickColor)
  6534. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.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,300)/250,dis2.BrickColor)
  6535. end
  6536. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6537. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6538. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6539. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6540. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6541. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6542. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6543. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6544. end))
  6545. game:GetService("Debris"):AddItem(dis, 5)
  6546. game:GetService("Debris"):AddItem(dis2, 5)
  6547. 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)
  6548. 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)
  6549. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6550. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6551. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6552. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6553. end
  6554. attack = false
  6555. hum.WalkSpeed = storehumanoidWS
  6556. end
  6557.  
  6558. function FallenDEMISE()
  6559. attack = true
  6560. hum.WalkSpeed = 0
  6561. local keptcolor = MAINRUINCOLOR
  6562. bosschatfunc("HOW ABOUT THIS!?",MAINRUINCOLOR.Color,3)
  6563. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6564. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6565. for i = 0, 15, 0.1 do
  6566. swait()
  6567. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6568. 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)))
  6569. local at1 = Instance.new("Attachment",dis)
  6570. at1.Position = vt(-25000,0,0)
  6571. local at2 = Instance.new("Attachment",dis)
  6572. at2.Position = vt(25000,0,0)
  6573. local trl = Instance.new('Trail',dis)
  6574. trl.Attachment0 = at1
  6575. trl.FaceCamera = true
  6576. trl.Attachment1 = at2
  6577. trl.Texture = "rbxassetid://1049219073"
  6578. trl.LightEmission = 1
  6579. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6580. trl.Color = ColorSequence.new(dis.Color)
  6581. trl.Lifetime = 5
  6582. local bv = Instance.new("BodyVelocity")
  6583. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6584. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6585. bv.Parent = dis
  6586. game:GetService("Debris"):AddItem(dis, 1)
  6587. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6588. 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"))
  6589. 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"))
  6590. 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)
  6591. 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)
  6592. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6594. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6595. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6596. end
  6597. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6598. for i = 0, 30, 0.1 do
  6599. swait()
  6600. coroutine.resume(coroutine.create(function()
  6601. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6602. if v:FindFirstChild('Head') then
  6603. dmg(v)
  6604. end
  6605. end
  6606. end))
  6607. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6608. 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)))
  6609. local at1 = Instance.new("Attachment",dis)
  6610. at1.Position = vt(-50000,0,0)
  6611. local at2 = Instance.new("Attachment",dis)
  6612. at2.Position = vt(50000,0,0)
  6613. local trl = Instance.new('Trail',dis)
  6614. trl.Attachment0 = at1
  6615. trl.FaceCamera = true
  6616. trl.Attachment1 = at2
  6617. trl.Texture = "rbxassetid://1049219073"
  6618. trl.LightEmission = 1
  6619. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6620. trl.Color = ColorSequence.new(dis.Color)
  6621. trl.Lifetime = 10
  6622. local bv = Instance.new("BodyVelocity")
  6623. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6624. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6625. bv.Parent = dis
  6626. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6627. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6628. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6629. 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"))
  6630. 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"))
  6631. 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"))
  6632. 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"))
  6633. for i = 0, 2 do
  6634. 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)
  6635. end
  6636. 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)
  6637. 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)
  6638. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6640. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6641. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6642. end
  6643. attack = false
  6644. hum.WalkSpeed = storehumanoidWS
  6645. end
  6646.  
  6647. function GleamingBeam()
  6648. attack = true
  6649. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  6650. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  6651. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  6652. local rsiz = math.random(1,15)
  6653. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6654. hb.Anchored = true
  6655. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  6656. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  6657. for i = 0, 16, 0.1 do
  6658. swait()
  6659. rsiz = math.random(5,15)
  6660. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  6661. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  6662. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  6663. 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)
  6664. 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)
  6665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  6666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  6667. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  6668. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  6669. end
  6670. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  6671. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  6672. for i = 0, 2 do
  6673. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  6674. end
  6675. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6676. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6677. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6678. for i = 0, 49 do
  6679. local rsiza = math.random(1,15)
  6680. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  6681. end
  6682. local a = Instance.new("Part",Character)
  6683. a.Name = "Direction"
  6684. a.Anchored = true
  6685. a.BrickColor = MAINRUINCOLOR
  6686. a.Material = "Neon"
  6687. a.Transparency = 0
  6688. a.Shape = "Cylinder"
  6689. a.CanCollide = false
  6690. local ba = Instance.new("Part",Character)
  6691. ba.Name = "HitDirect"
  6692. ba.Anchored = true
  6693. ba.BrickColor = bc("Cool yellow")
  6694. ba.Material = "Neon"
  6695. ba.Transparency = 1
  6696. ba.CanCollide = false
  6697. local ray = Ray.new(
  6698. hb.CFrame.p, -- origin
  6699. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  6700. )
  6701. local ignore = Character
  6702. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6703. a.BottomSurface = 10
  6704. a.TopSurface = 10
  6705. local distance = (hb.CFrame.p - position).magnitude
  6706. a.Size = Vector3.new(distance, 1, 1)
  6707. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6708. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  6709. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6710. local msh = Instance.new("SpecialMesh",a)
  6711. msh.MeshType = "Cylinder"
  6712. msh.Scale = vt(1,4,4)
  6713. game:GetService("Debris"):AddItem(a, 30)
  6714. game:GetService("Debris"):AddItem(ba, 30)
  6715. for i = 0, 25, 0.1 do
  6716. swait()
  6717. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  6718. ray = Ray.new(
  6719. hb.CFrame.p, -- origin
  6720. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  6721. )
  6722. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6723. distance = (hb.CFrame.p - position).magnitude
  6724. a.Size = Vector3.new(distance, 1, 1)
  6725. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6726. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  6727. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6728. rsiz = math.random(5,25)
  6729. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  6730. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
  6731. for c = 0, 2 do
  6732. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
  6733. end
  6734. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  6735. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  6736. 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)),.6)
  6737. 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)),.6)
  6738. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
  6739. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  6740. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  6741. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  6742. end
  6743. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  6744. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  6745. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  6746. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  6747. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  6748. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  6749. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  6750. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  6751. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6752. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6753. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  6754. for i = 0, 49 do
  6755. local rsiza = math.random(1,15)
  6756. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  6757. end
  6758. for i = 0, 49 do
  6759. rsiz = math.random(1,8)
  6760. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
  6761. end
  6762. coroutine.resume(coroutine.create(function()
  6763. for i = 0, 99 do
  6764. swait()
  6765. a.Transparency = a.Transparency + 0.01
  6766. end
  6767. a:Destroy()
  6768. ba:Destroy()
  6769. end))
  6770. hb:Destroy()
  6771. attack = false
  6772. end
  6773.  
  6774. function SHDTwist()
  6775. attack = true
  6776. hum.WalkSpeed = 2
  6777. local radm = math.random(1,4)
  6778. if radm == 1 then
  6779. bosschatfunc("YOU FOOL!",MAINRUINCOLOR.Color,1)
  6780. elseif radm == 2 then
  6781. bosschatfunc("SUBMIT TO ME!",MAINRUINCOLOR.Color,1)
  6782. elseif radm == 3 then
  6783. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6784. elseif radm == 4 then
  6785. bosschatfunc("YOU SHOULDN'T EXIST!",MAINRUINCOLOR.Color,1)
  6786. end
  6787. CFuncs["EchoSound"].Create("rbxassetid://1448033299", rarm, 1.5,1.25)
  6788. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1.5,1.25)
  6789. local obj1 = script.chring2:Clone()
  6790. obj1.Parent = char
  6791. obj1.Transparency = 1
  6792. obj1.Size = vt(1,1,1)
  6793. obj1.Color = BrickColor.new("Pink").Color
  6794. local obj2 = script.spball:Clone()
  6795. obj2.Parent = char
  6796. obj2.Transparency = 1
  6797. obj2.Size = vt(1,1,1)
  6798. obj2.Color = MAINRUINCOLOR.Color
  6799. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6800. cfor.Anchored = true
  6801. cfor.CFrame = obj2.CFrame
  6802. local cef = Instance.new("ParticleEmitter",cfor)
  6803. cef.Texture = "rbxassetid://2344870656"
  6804. cef.LightEmission = 1
  6805. cef.Color = ColorSequence.new(obj2.Color)
  6806. cef.Rate = 150
  6807. cef.Lifetime = NumberRange.new(0.25)
  6808. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  6809. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  6810. cef.Speed = NumberRange.new(0)
  6811. local rval = 0
  6812. local eval = 1
  6813. for i = 0,7,0.1 do
  6814. swait()
  6815. rval = rval + math.random(30,40)
  6816. eval = eval + 0.45
  6817. obj1.Transparency = obj1.Transparency - 0.005
  6818. obj1.Size = obj1.Size + vt(0.3,0.3,0.1)
  6819. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  6820. obj2.Transparency = obj2.Transparency - 0.007
  6821. obj2.Size = obj2.Size + vt(0.15,0.15,0.15)
  6822. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  6823. obj2.CFrame = root.CFrame*CFrame.new(0,1,-7)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6824. cfor.CFrame = obj2.CFrame
  6825. sphere2(8,"Add",larm.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,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  6826. sphere2(10,"Add",larm.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.15,-0.01,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  6827. 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)
  6828. 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)
  6829. 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(-50)),.3)
  6830. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2 * math.cos(sine / 37)),math.rad(10 + 1 * math.cos(sine / 58)),math.rad(50 + 2 * math.cos(sine / 53))),.3)
  6831. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(10 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(5 + 2 * math.cos(sine / 45))),.3)
  6832. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-50 - 4 * math.cos(sine / 45))),.3)
  6833. end
  6834. cef.Enabled = false
  6835. coroutine.resume(coroutine.create(function()
  6836. for i = 0,49 do
  6837. swait()
  6838. rval = rval + 100
  6839. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  6840. obj2.Transparency = obj2.Transparency + 0.02
  6841. obj2.Size = obj2.Size + vt(5,5,5)
  6842. obj1.Transparency = obj1.Transparency + 0.02
  6843. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  6844. end
  6845. obj1:Destroy()
  6846. obj2:Destroy()
  6847. cfor:Destroy()
  6848. end))
  6849. local lva = 1
  6850. local ica = 0
  6851. local cent = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6852. CFuncs["Sound"].Create("rbxassetid://1177785010", cent, 10, 1)
  6853. cent.CFrame = root.CFrame*CFrame.Angles(0,0,0) + root.CFrame.lookVector*5
  6854. sphere2(2,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  6855. sphere2(3,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  6856.  
  6857. local a = Instance.new("Part",workspace)
  6858. a.Name = "Direction"
  6859. a.Anchored = true
  6860. a.BrickColor = bc("Bright red")
  6861. a.Material = "Neon"
  6862. a.Transparency = 1
  6863. a.CanCollide = false
  6864. local ray = Ray.new(
  6865. cent.CFrame.p, -- origin
  6866. (mouse.Hit.p - cent.CFrame.p).unit * 500 -- direction
  6867. )
  6868. local ignore = cent
  6869. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6870. a.BottomSurface = 10
  6871. a.TopSurface = 10
  6872. local distance = (cent.CFrame.p - position).magnitude
  6873. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6874. a.CFrame = CFrame.new(cent.CFrame.p, position) * CFrame.new(0, 0, 0)
  6875. cent.CFrame = a.CFrame
  6876. a:Destroy()
  6877. local bv = Instance.new("BodyVelocity")
  6878. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6879. bv.velocity = cent.CFrame.lookVector*0
  6880. bv.Parent = cent
  6881. game:GetService("Debris"):AddItem(cent, 20)
  6882. local hitted = false
  6883. coroutine.resume(coroutine.create(function()
  6884. while true do
  6885. swait(1)
  6886. if hitted == false and cent.Parent ~= nil then
  6887. ica = ica + 4*lva
  6888. lva = lva + 0.1
  6889. bv.velocity = cent.CFrame.lookVector*ica
  6890. sphere2(3,"Add",cent.CFrame,vt(5,5,5),-0.05,-0.05,-0.05,BrickColor.new("Pastel light blue"))
  6891. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,-5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pink"))
  6892. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pastel light blue"))
  6893. elseif hitted == true or cent.Parent == nil then
  6894. break
  6895. end
  6896. end
  6897. end))
  6898. coroutine.resume(coroutine.create(function()
  6899. cent.Touched:connect(function(hit)
  6900. if hitted == false and hit.Parent ~= char then
  6901. hitted = true
  6902. cent.Anchored = true
  6903. CFuncs["Sound"].Create("rbxassetid://782353443", cent, 10, 1)
  6904. CFuncs["Sound"].Create("rbxassetid://1368637781", cent, 8, 1)
  6905. CFuncs["Sound"].Create("rbxassetid://763717897", cent, 5, 1)
  6906. CFuncs["EchoSound"].Create("rbxassetid://1177785010", cent, 8, 1.1,0,10,0.15,0.5,1)
  6907. MagniDamage(cent, 50, 50,99999, 0, "Normal")
  6908. sphere2(2,"Add",cent.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  6909. sphere2(3,"Add",cent.CFrame,vt(1,1,1),1.2,1.2,1.2,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  6910. for i = 0, 19 do
  6911. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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,400)/250,BrickColor.new("Pink"))
  6912. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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,300)/250,BrickColor.new("Pastel light blue"))
  6913. end
  6914. coroutine.resume(coroutine.create(function()
  6915. local eff = Instance.new("ParticleEmitter",cent)
  6916. eff.Texture = "rbxassetid://2344870656"
  6917. eff.LightEmission = 1
  6918. eff.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  6919. eff.Rate = 10000000
  6920. eff.Enabled = true
  6921. --eff.EmissionDirection = "Front"
  6922. eff.Lifetime = NumberRange.new(5)
  6923. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,60,0),NumberSequenceKeypoint.new(1,80,0)})
  6924. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6925. eff.Speed = NumberRange.new(350)
  6926. eff.Drag = 5
  6927. eff.Rotation = NumberRange.new(-500,500)
  6928. eff.SpreadAngle = Vector2.new(0,900)
  6929. eff.RotSpeed = NumberRange.new(-500,500)
  6930. local eff2 = eff:Clone()
  6931. eff2.Parent = cent
  6932. eff2.Speed = NumberRange.new(250)
  6933. eff2.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  6934. wait(0.2)
  6935. eff.Enabled = false
  6936. eff2.Enabled = false
  6937. end))
  6938. end
  6939. end)
  6940. end))
  6941. attack = false
  6942. hum.WalkSpeed = storehumanoidWS
  6943. end
  6944.  
  6945. function dragin()
  6946. local targetted = nil
  6947. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6948. targetted = mouse.Target.Parent
  6949. end
  6950. if targetted ~= nil then
  6951. RootPart.CFrame = FaceMouse()[1]
  6952. attack = true
  6953. hum.WalkSpeed = 0
  6954. for x = 0, 1 do
  6955. for i = 0,1,0.5 do
  6956. swait()
  6957. 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)
  6958. 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)
  6959. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  6960. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  6961. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  6962. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  6963. end
  6964. for i = 0,1,0.5 do
  6965. swait()
  6966. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  6967. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  6968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  6969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  6970. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  6971. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  6972. end
  6973. for i = 0,1,0.5 do
  6974. swait()
  6975. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  6976. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  6977. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  6978. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  6979. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  6980. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  6981. end
  6982. for i = 0,1,0.5 do
  6983. swait()
  6984. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  6985. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  6986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  6988. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  6989. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  6990. end
  6991. end
  6992. coroutine.resume(coroutine.create(function()
  6993. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  6994. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  6995. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  6996. end))
  6997. local A1 = Instance.new("Attachment",targetted.Head)
  6998. local A2 = Instance.new("Attachment",sorb)
  6999. local Beem = Instance.new("Beam",tors)
  7000. Beem.Attachment0 = A1
  7001. Beem.Attachment1 = A2
  7002. Beem.Texture = "rbxassetid://897585362"
  7003. Beem.LightEmission = 0.75
  7004. Beem.FaceCamera = true
  7005. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  7006. Beem.Width0 = 1
  7007. Beem.Width1 = 1
  7008. Beem.TextureMode = "Wrap"
  7009. Beem.TextureLength = 1
  7010. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7011. sphere2(3,"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(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR)
  7012. sphere2(3,"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(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR)
  7013. for x = 0, 24 do
  7014. local rsiz = math.random(5,15)
  7015. sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7016. end
  7017.  
  7018. CFuncs["EchoSound"].Create("rbxassetid://131228548", char, 7, 1,0,10,0.15,0.5,1)
  7019. CFuncs["EchoSound"].Create("rbxassetid://131228548", root, 60, 1,0,10,0.15,0.5,1)
  7020. local radm = math.random(1,2)
  7021. if radm == 1 then
  7022. bosschatfunc("GET OVER HERE!",MAINRUINCOLOR.Color,1)
  7023. elseif radm == 2 then
  7024. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  7025. end
  7026. for i = 0,3,0.1 do
  7027. swait()
  7028. coroutine.resume(coroutine.create(function()
  7029. local rsiz = math.random(5,15)
  7030. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7031. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7032. end))
  7033. sphere2(8,"Add",sorb.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,0.01,0.01,MAINRUINCOLOR)
  7034. 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)
  7035. 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)
  7036. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  7037. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  7038. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
  7039. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
  7040. end
  7041. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  7042. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  7043. local vel = Instance.new("BodyPosition", targetted.Head)
  7044. vel.P = 12500
  7045. vel.D = 1000
  7046. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7047. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  7048. for i = 0,4,0.1 do
  7049. swait()
  7050. coroutine.resume(coroutine.create(function()
  7051. local rsiz = math.random(5,15)
  7052. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7053. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7054. end))
  7055. sphere2(8,"Add",sorb.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,0.01,0.01,MAINRUINCOLOR)
  7056. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  7057. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
  7058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  7059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  7060. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  7061. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  7062. end
  7063. local visibility = 0
  7064. coroutine.resume(coroutine.create(function()
  7065. for i = 0, 49 do
  7066. swait()
  7067. visibility = visibility + 0.02
  7068. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  7069. end
  7070. Beem:Destroy()
  7071. A1:Destroy()
  7072. A2:Destroy()
  7073. end))
  7074. game:GetService("Debris"):AddItem(vel,0.75)
  7075. attack = false
  7076. hum.WalkSpeed = storehumanoidWS
  7077.  
  7078. end
  7079. end
  7080.  
  7081. function DualGleamingBeam()
  7082. attack = true
  7083. hum.WalkSpeed = 0
  7084. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7085. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7086. local radm = math.random(1,3)
  7087. if radm == 1 then
  7088. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7089. elseif radm == 2 then
  7090. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7091. elseif radm == 3 then
  7092. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7093. end
  7094. local rsiz = math.random(1,15)
  7095. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7096. hb.Anchored = true
  7097. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7098. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7099. hb2.Anchored = true
  7100. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7101. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7102. CFuncs["Sound"].Create("rbxassetid://138677306", sorb, 8,0.25)
  7103. for i = 0, 14, 0.1 do
  7104. swait()
  7105. rsiz = math.random(5,15)
  7106. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7107. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7108. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  7109. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  7110. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)
  7111. sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
  7112. 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)
  7113. 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)
  7114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7116. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7117. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7118. end
  7119. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7120. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7121. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7122. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7123. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7124. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7125. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7126. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7127. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7128. sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  7129. sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  7130. sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  7131. for i = 0, 49 do
  7132. local rsiza = math.random(1,15)
  7133. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  7134. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  7135. end
  7136. local a = Instance.new("Part",Character)
  7137. a.Name = "Direction"
  7138. a.Anchored = true
  7139. a.BrickColor = MAINRUINCOLOR
  7140. a.Material = "Neon"
  7141. a.Transparency = 0
  7142. a.Shape = "Cylinder"
  7143. a.CanCollide = false
  7144. local a2 = Instance.new("Part",Character)
  7145. a2.Name = "Direction"
  7146. a2.Anchored = true
  7147. a2.BrickColor = MAINRUINCOLOR
  7148. a2.Material = "Neon"
  7149. a2.Transparency = 0
  7150. a2.Shape = "Cylinder"
  7151. a2.CanCollide = false
  7152. local ba = Instance.new("Part",Character)
  7153. ba.Name = "HitDirect"
  7154. ba.Anchored = true
  7155. ba.BrickColor = MAINRUINCOLOR
  7156. ba.Material = "Neon"
  7157. ba.Transparency = 1
  7158. ba.CanCollide = false
  7159. local ba2 = Instance.new("Part",Character)
  7160. ba2.Name = "HitDirect"
  7161. ba2.Anchored = true
  7162. ba2.BrickColor = MAINRUINCOLOR
  7163. ba2.Material = "Neon"
  7164. ba2.Transparency = 1
  7165. ba2.CanCollide = false
  7166. local ray = Ray.new(
  7167. hb.CFrame.p, -- origin
  7168. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7169. )
  7170. local ignore = Character
  7171. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7172. local ray2 = Ray.new(
  7173. hb2.CFrame.p, -- origin
  7174. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7175. )
  7176. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7177. local distance2 = (hb2.CFrame.p - position).magnitude
  7178.  
  7179. a.BottomSurface = 10
  7180. a.TopSurface = 10
  7181. local distance = (hb.CFrame.p - position).magnitude
  7182. a.Size = Vector3.new(distance, 1, 1)
  7183. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7184. a2.BottomSurface = 10
  7185. a2.TopSurface = 10
  7186. a2.Size = Vector3.new(distance2, 1, 1)
  7187. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7188. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7189. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7190. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7191. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7192. local msh = Instance.new("SpecialMesh",a)
  7193. msh.MeshType = "Cylinder"
  7194. msh.Scale = vt(1,4,4)
  7195. local msh2 = Instance.new("SpecialMesh",a2)
  7196. msh2.MeshType = "Cylinder"
  7197. msh2.Scale = vt(1,4,4)
  7198. game:GetService("Debris"):AddItem(a, 30)
  7199. game:GetService("Debris"):AddItem(a2, 30)
  7200. game:GetService("Debris"):AddItem(ba, 30)
  7201. game:GetService("Debris"):AddItem(ba2, 30)
  7202. for i = 0, 20, 0.1 do
  7203. swait()
  7204. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7205. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7206. ray = Ray.new(
  7207. hb.CFrame.p, -- origin
  7208. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7209. )
  7210. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7211. distance = (hb.CFrame.p - position).magnitude
  7212. ray2 = Ray.new(
  7213. hb2.CFrame.p, -- origin
  7214. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7215. )
  7216. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7217. distance2 = (hb2.CFrame.p - position).magnitude
  7218. a.Size = Vector3.new(distance, 1, 1)
  7219. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7220. a2.Size = Vector3.new(distance2, 1, 1)
  7221. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7222. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7223. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7224. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7225. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7226. rsiz = math.random(5,25)
  7227. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  7228. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  7229. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  7230. if v:FindFirstChild('Head') then
  7231. dmg(v)
  7232. end
  7233. end
  7234. coroutine.resume(coroutine.create(function()
  7235. local bx = Instance.new("Part",Character)
  7236. bx.Name = "Location"
  7237. bx.Anchored = true
  7238. bx.BrickColor = MAINRUINCOLOR
  7239. bx.Material = "Neon"
  7240. bx.Transparency = 1
  7241. bx.CanCollide = false
  7242. bx.Position = ba.Position
  7243. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  7244. wait(math.random(1,2))
  7245. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  7246. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  7247. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  7248. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  7249. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  7250. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  7251. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  7252. if v:FindFirstChild('Head') then
  7253. dmg(v)
  7254. end
  7255. end
  7256. wait(5)
  7257. bx:Destroy()
  7258. end))
  7259. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  7260. sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  7261. for c = 0, 2 do
  7262. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
  7263. end
  7264. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  7265. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  7266. sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  7267. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  7268. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  7269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05)
  7270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  7271. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  7272. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  7273. end
  7274. for i = 0, 1 do
  7275. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7276. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7277. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7278. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7279. end
  7280. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  7281. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  7282. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  7283. if v:FindFirstChild('Head') then
  7284. dmg(v)
  7285. end
  7286. end
  7287. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7288. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7289. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7290. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7291. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7292. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7293. sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  7294. sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  7295. sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  7296. for i = 0, 49 do
  7297. local rsiza = math.random(1,15)
  7298. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  7299. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  7300. end
  7301. for i = 0, 49 do
  7302. rsiz = math.random(1,8)
  7303. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
  7304. end
  7305. coroutine.resume(coroutine.create(function()
  7306. for i = 0, 99 do
  7307. swait()
  7308. a.Transparency = a.Transparency + 0.01
  7309. a2.Transparency = a2.Transparency + 0.01
  7310. end
  7311. a:Destroy()
  7312. ba:Destroy()
  7313. a2:Destroy()
  7314. ba2:Destroy()
  7315. end))
  7316. hum.WalkSpeed = storehumanoidWS
  7317. hb:Destroy()
  7318. hb2:Destroy()
  7319. attack = false
  7320. end
  7321.  
  7322. function Counter()
  7323. hum.WalkSpeed = 0
  7324. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  7325. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  7326. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  7327. attack = true
  7328. for i = 0,1,0.1 do
  7329. swait()
  7330. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  7331. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  7332. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  7333. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  7334. 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(-1.5),math.rad(0),math.rad(10)),.3)
  7335. 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)),.3)
  7336. end
  7337. CameraEnshaking(3,4)
  7338. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  7339. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7340. sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7341. sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7342. coroutine.resume(coroutine.create(function()
  7343. local eff = Instance.new("ParticleEmitter",root)
  7344. eff.Texture = "rbxassetid://363275192"
  7345. eff.LightEmission = 0.95
  7346. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7347. eff.Rate = 10000
  7348. eff.Lifetime = NumberRange.new(1)
  7349. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  7350. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7351. eff.Speed = NumberRange.new(10,125)
  7352. eff.Drag = 5
  7353. eff.Rotation = NumberRange.new(-500,500)
  7354. eff.VelocitySpread = 9000
  7355. eff.RotSpeed = NumberRange.new(-50,50)
  7356. local eff2 = eff:Clone()
  7357. eff2.Parent = root
  7358. eff2.Texture = "rbxassetid://284205403"
  7359. eff2.Rate = 10000
  7360. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)})
  7361. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7362. eff2.Drag = 5
  7363. eff2.Speed = NumberRange.new(10,50)
  7364. eff2.Rotation = NumberRange.new(-500,500)
  7365. eff2.VelocitySpread = 9000
  7366. wait(0.25)
  7367. eff2.Enabled = false
  7368. eff.Enabled = false
  7369. wait(3)
  7370. eff2:Destroy()
  7371. eff:Destroy()
  7372. end))
  7373. for i = 0, 9 do
  7374. sphere2(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))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  7375. end
  7376. for i = 0, 24 do
  7377. local rsiz = math.random(5,20)
  7378. sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  7379. end
  7380. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  7381. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  7382. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  7383. for i = 0,2,0.1 do
  7384. swait()
  7385. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  7386. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  7387. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  7388. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  7389. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  7390. 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)),.3)
  7391. end
  7392. hum.WalkSpeed = storehumanoidWS
  7393. attack = false
  7394. end
  7395.  
  7396. function CyberSlash()
  7397. local posit = -2
  7398. attack = true
  7399. hum.WalkSpeed = 5
  7400. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  7401. local radm = math.random(1,3)
  7402. if radm == 1 then
  7403. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  7404. elseif radm == 2 then
  7405. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  7406. elseif radm == 3 then
  7407. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  7408. end
  7409. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  7410. for i = 0,2,0.1 do
  7411. swait()
  7412. sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
  7413. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  7414. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  7415. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  7416. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  7417. 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)
  7418. 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)
  7419. end
  7420. for i = 0, 2 do
  7421. CameraEnshaking(1,2)
  7422. local hite = Instance.new("Part", char)
  7423. hite.Anchored = true
  7424. hite.CanCollide = false
  7425. hite.FormFactor = 3
  7426. hite.Name = "Ring"
  7427. hite.Material = "Neon"
  7428. hite.Size = Vector3.new(1, 1, 1)
  7429. hite.Transparency = 1
  7430. hite.TopSurface = 0
  7431. hite.BottomSurface = 0
  7432. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  7433. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  7434. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  7435. coroutine.resume(coroutine.create(function()
  7436. for i = 0, 1 do
  7437. swait()
  7438. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7439. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7440. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7441. end
  7442. end))
  7443. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  7444. MagniDamage(hite, 3, 30,40, 0, "Normal")
  7445. game:GetService("Debris"):AddItem(hite, 5)
  7446. posit = posit + 2
  7447. end
  7448. for i = 0,1,0.1 do
  7449. swait()
  7450. sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
  7451. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  7452. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  7453. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  7454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  7455. 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(-20),math.rad(0)),.5)
  7456. 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(0)),.5)
  7457. end
  7458. for i = 0,1,0.1 do
  7459. swait()
  7460. sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
  7461. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  7462. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  7463. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  7464. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  7465. 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(-20),math.rad(30)),.5)
  7466. 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(40)),.5)
  7467. end
  7468. posit = -6
  7469. for i = 0, 6 do
  7470. CameraEnshaking(1,3)
  7471. local hite = Instance.new("Part", char)
  7472. hite.Anchored = true
  7473. hite.CanCollide = false
  7474. hite.FormFactor = 3
  7475. hite.Name = "Ring"
  7476. hite.Material = "Neon"
  7477. hite.Size = Vector3.new(1, 1, 1)
  7478. hite.Transparency = 1
  7479. hite.TopSurface = 0
  7480. hite.BottomSurface = 0
  7481. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  7482. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  7483. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  7484. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  7485. coroutine.resume(coroutine.create(function()
  7486. for i = 0, 2 do
  7487. swait()
  7488. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7489. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7490. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  7491. end
  7492. end))
  7493. MagniDamage(hite, 5, 40,70, 0, "Normal")
  7494. game:GetService("Debris"):AddItem(hite, 5)
  7495. posit = posit + 2
  7496. end
  7497. for i = 0,1,0.1 do
  7498. swait()
  7499. sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
  7500. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  7501. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  7502. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  7503. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  7504. 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(10),math.rad(-10)),.5)
  7505. 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(60)),.5)
  7506. end
  7507. hum.WalkSpeed = storehumanoidWS
  7508. attack = false
  7509. end
  7510.  
  7511. function Beams()
  7512. attack = true
  7513. hum.WalkSpeed = 0
  7514. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7515. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7516. bosschatfunc("You're gone..",MAINRUINCOLOR.Color,2)
  7517. local keptcolor = MAINRUINCOLOR
  7518. coroutine.resume(coroutine.create(function()
  7519. for i = 0, 96 do
  7520. swait(5)
  7521. local orb = Instance.new("Part", char)
  7522. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7523. orb.BrickColor = keptcolor
  7524. orb.CanCollide = false
  7525. orb.FormFactor = 3
  7526. orb.Name = "Ring"
  7527. orb.Material = "Neon"
  7528. orb.Size = Vector3.new(1, 1, 1)
  7529. orb.Transparency = 0
  7530. orb.TopSurface = 0
  7531. orb.BottomSurface = 0
  7532. orb.Anchored = true
  7533. local orbm = Instance.new("SpecialMesh", orb)
  7534. orbm.MeshType = "Sphere"
  7535. orbm.Name = "SizeMesh"
  7536. orbm.Scale = vt(1.25,1.25,1.25)
  7537. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7538. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7539. coroutine.resume(coroutine.create(function()
  7540. wait(0.5)
  7541. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7542. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7543. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7544. orb.Transparency = 1
  7545. local a = Instance.new("Part",char)
  7546. a.Name = "Direction"
  7547. a.Anchored = true
  7548. a.BrickColor = keptcolor
  7549. a.Material = "Neon"
  7550. a.Transparency = 0.25
  7551. a.Shape = "Cylinder"
  7552. local ht = Instance.new("Part",char)
  7553. ht.Name = "DirectionHit"
  7554. ht.Anchored = true
  7555. ht.BrickColor = keptcolor
  7556. ht.CanCollide = false
  7557. ht.Transparency = 1
  7558. ht.Size = vt(0.1,0.1,0.1)
  7559. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7560. a.CanCollide = false
  7561. local ray = Ray.new(
  7562. orb.CFrame.p, -- origin
  7563. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7564. )
  7565. local ignore = char
  7566. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7567. a.BottomSurface = 10
  7568. a.TopSurface = 10
  7569. local distance = (orb.CFrame.p - position).magnitude
  7570. a.Size = Vector3.new(distance,1,1)
  7571. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7572. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7573. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7574. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7575. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7576. coroutine.resume(coroutine.create(function()
  7577. local eff = Instance.new("ParticleEmitter",ht)
  7578. eff.Texture = "rbxassetid://284205403"
  7579. eff.LightEmission = 0.95
  7580. eff.Color = ColorSequence.new(keptcolor.Color)
  7581. eff.Rate = 500
  7582. eff.Lifetime = NumberRange.new(0.5)
  7583. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7584. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7585. eff.Speed = NumberRange.new(10,50)
  7586. eff.Drag = 5
  7587. eff.Rotation = NumberRange.new(-500,500)
  7588. eff.VelocitySpread = 9000
  7589. eff.RotSpeed = NumberRange.new(-500,500)
  7590. wait(0.25)
  7591. eff.Enabled = false
  7592. end))
  7593. for i = 0, 4 do
  7594. sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor)
  7595. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  7596. local rsiz = math.random(10,30)
  7597. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*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)
  7598. end
  7599. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7600. local msh = Instance.new("SpecialMesh",a)
  7601. msh.MeshType = "Cylinder"
  7602. msh.Scale = vt(1,1,1)
  7603. for i = 0, 49 do
  7604. swait()
  7605. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7606. a.Transparency = a.Transparency + 0.02
  7607. end
  7608. orb:Destroy()
  7609. a:Destroy()
  7610. ht:Destroy()
  7611. end))
  7612. game:GetService("Debris"):AddItem(orb, 10)
  7613. end
  7614. end))
  7615. for i = 0,6,0.1 do
  7616. swait()
  7617. sphere2(7,"Add",sorb.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,0.075,-0.01,keptcolor)
  7618. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  7619. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7620. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7621. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7622. 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)
  7623. 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)
  7624. end
  7625. hum.WalkSpeed = storehumanoidWS
  7626. attack = false
  7627. end
  7628.  
  7629. function hugg()
  7630. attack = true
  7631. hum.WalkSpeed = 5
  7632. local rsiz = math.random(5,15)
  7633. for i = 0, 2, 0.1 do
  7634. swait()
  7635. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7636. 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))),.3)
  7637. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  7639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  7640. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  7641. end
  7642. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  7643. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7644. hb.Anchored = true
  7645. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  7646. local huggedperson = nil
  7647. local act = false
  7648. local alreadydid = false
  7649. for i = 0, 3, 0.1 do
  7650. swait()
  7651. if act == false then
  7652. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  7653. if v:FindFirstChild('Head') then
  7654. if alreadydid == false then
  7655. huggedperson = v
  7656. hum.WalkSpeed = 0
  7657. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  7658. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  7659. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  7660. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  7661. local radm = math.random(1,4)
  7662. if radm == 1 then
  7663. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  7664. elseif radm == 2 then
  7665. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  7666. elseif radm == 3 then
  7667. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  7668. elseif radm == 4 then
  7669. bosschatfunc("I love you...",MAINRUINCOLOR.Color,1)
  7670. end
  7671. root.Anchored = true
  7672. coroutine.resume(coroutine.create(function()
  7673. huggedperson.Humanoid.WalkSpeed = 0
  7674. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  7675. end))
  7676. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  7677. alreadydid = true
  7678. act = true
  7679. print(huggedperson.Name)
  7680. end
  7681. end
  7682. end
  7683. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  7684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  7685. elseif act == true then
  7686. coroutine.resume(coroutine.create(function()
  7687. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  7688. end))
  7689. rsiz = math.random(5,15)
  7690. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  7691. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
  7692. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  7693. end
  7694. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7695. 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))),.3)
  7696. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7697. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  7698. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  7699. end
  7700. hb:Destroy()
  7701. if act == true then
  7702. for x = 0, 2 do
  7703. for i = 0, 2, 0.1 do
  7704. swait()
  7705. coroutine.resume(coroutine.create(function()
  7706. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  7707. end))
  7708. rsiz = math.random(5,15)
  7709. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  7710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  7711. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  7712. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7713. 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))),.3)
  7714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7715. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  7716. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  7717. end
  7718. for i = 0, 2, 0.1 do
  7719. swait()
  7720. coroutine.resume(coroutine.create(function()
  7721. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  7722. end))
  7723. rsiz = math.random(5,15)
  7724. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  7725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
  7726. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  7727. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7728. 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))),.3)
  7729. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7730. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  7731. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  7732. end
  7733. end
  7734. end
  7735. hum.WalkSpeed = storehumanoidWS
  7736. root.Anchored = false
  7737. if act == true then
  7738. coroutine.resume(coroutine.create(function()
  7739. huggedperson.Humanoid.WalkSpeed = 16
  7740. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  7741. end))
  7742. end
  7743. hum.WalkSpeed = storehumanoidWS
  7744. attack = false
  7745. end
  7746.  
  7747. function shytaunty()
  7748. attack = true
  7749. hum.WalkSpeed = 0
  7750. bosschatfunc("Hehe..",MAINRUINCOLOR.Color,1)
  7751. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7752. local blush = Instance.new("Decal",hed)
  7753. blush.Texture = "rbxassetid://898404027"
  7754. blush.Face = "Front"
  7755. for i = 0, 13, 0.1 do
  7756. swait()
  7757. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  7758. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  7759. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  7760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  7761. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  7762. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  7763. end
  7764. coroutine.resume(coroutine.create(function()
  7765. for i = 0, 49 do
  7766. swait()
  7767. blush.Transparency = blush.Transparency + 0.02
  7768. end
  7769. blush:Destroy()
  7770. end))
  7771. hum.WalkSpeed = storehumanoidWS
  7772. attack = false
  7773. end
  7774.  
  7775. function smiter()
  7776. local targetted = nil
  7777. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7778. targetted = mouse.Target.Parent
  7779. end
  7780. if targetted ~= nil then
  7781. RootPart.CFrame = FaceMouse()[1]
  7782. attack = true
  7783. local radm = math.random(1,3)
  7784. if radm == 1 then
  7785. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7786. elseif radm == 2 then
  7787. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7788. elseif radm == 3 then
  7789. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7790. end
  7791. hum.WalkSpeed = 0
  7792. coroutine.resume(coroutine.create(function()
  7793. CFuncs["Sound"].Create("rbxassetid://2556945475", char, 1.5, 1)
  7794. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7795. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7796. local vel = Instance.new("BodyPosition", targetted.Head)
  7797. vel.P = 12500
  7798. vel.D = 1000
  7799. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7800. vel.position = targetted.Head.CFrame.p
  7801. end))
  7802. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7803. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7804. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7805. for i = 0,4,0.1 do
  7806. swait()
  7807. sphere2(4,"Add",sorb2.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,0.125,-0.01,MAINRUINCOLOR)
  7808. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7809. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7810. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7811. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7812. 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)
  7813. 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)
  7814. end
  7815. coroutine.resume(coroutine.create(function()
  7816. CameraEnshaking(6,5)
  7817. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7818. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7819. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7820. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7821. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7822. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7823. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7824. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7825. coroutine.resume(coroutine.create(function()
  7826. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7827. eff.Texture = "rbxassetid://2273224484"
  7828. eff.LightEmission = 1
  7829. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7830. eff.Rate = 500000
  7831. eff.Lifetime = NumberRange.new(0.5,2)
  7832. 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)})
  7833. 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)})
  7834. eff.Speed = NumberRange.new(20,250)
  7835. eff.Drag = 5
  7836. eff.Rotation = NumberRange.new(-500,500)
  7837. eff.VelocitySpread = 9000
  7838. eff.RotSpeed = NumberRange.new(-50,50)
  7839. wait(0.25)
  7840. eff.Enabled = false
  7841. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7842. eff.Texture = "rbxassetid://363275192"
  7843. eff.LightEmission = 0.95
  7844. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7845. eff.Rate = 10000
  7846. eff.Lifetime = NumberRange.new(1.5)
  7847. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7848. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7849. eff.Speed = NumberRange.new(25,150)
  7850. eff.Drag = 5
  7851. eff.Rotation = NumberRange.new(-500,500)
  7852. eff.VelocitySpread = 9000
  7853. eff.RotSpeed = NumberRange.new(-50,50)
  7854. local eff2 = eff:Clone()
  7855. eff2.Parent = targetted.Head
  7856. eff2.Texture = "rbxassetid://284205403"
  7857. eff2.Rate = 10000
  7858. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7859. eff2.Drag = 5
  7860. eff2.Rotation = NumberRange.new(-500,500)
  7861. eff2.VelocitySpread = 9000
  7862. wait(0.5)
  7863. eff2.Enabled = false
  7864. eff.Enabled = false
  7865. end))
  7866. for i = 0, 9 do
  7867. sphere2(3,"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(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  7868. end
  7869. for i = 0, 49 do
  7870. local rsiz = math.random(10,50)
  7871. sphereMK(math.random(1,4),1,"Add",targetted.Head.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,MAINRUINCOLOR,0)
  7872. end
  7873. game:GetService("Debris"):AddItem(vel,1)
  7874. dmg(targetted)
  7875. end))
  7876. for i = 0,1,0.1 do
  7877. swait()
  7878. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7879. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7880. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7881. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7882. 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)
  7883. 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)
  7884. end
  7885. attack = false
  7886. hum.WalkSpeed = storehumanoidWS
  7887. end
  7888.  
  7889. function SpeedDrop()
  7890. attack = true
  7891. hum.WalkSpeed = 0
  7892. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7893. local poste = 3
  7894. local rotation = 0
  7895. local rate = 0
  7896. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7897. for i = 0, 124 do
  7898. swait()
  7899. rotation = rotation + rate
  7900. poste = poste + 0.1
  7901. rate = rate + 0.1
  7902. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7903. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  7904. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7905. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7906. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7907. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7908. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  7909. 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)),.5)
  7910. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7911. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7912. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7913. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7914. end
  7915. CameraEnshaking(3,7)
  7916. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7917. local loc = Instance.new("Part", char)
  7918. loc.BrickColor = MAINRUINCOLOR
  7919. loc.CanCollide = false
  7920. loc.FormFactor = 3
  7921. loc.Name = "Ring"
  7922. loc.Material = "Neon"
  7923. loc.Size = Vector3.new(1, 1, 1)
  7924. loc.Transparency = 1
  7925. loc.TopSurface = 0
  7926. loc.BottomSurface = 0
  7927. loc.Anchored = true
  7928. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7929. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7930. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7931. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7932. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7933. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7934. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7935. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7936. coroutine.resume(coroutine.create(function()
  7937. local eff = Instance.new("ParticleEmitter",loc)
  7938. eff.Texture = "rbxassetid://363275192"
  7939. eff.LightEmission = 0.95
  7940. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7941. eff.Rate = 10000
  7942. eff.Lifetime = NumberRange.new(1)
  7943. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7944. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7945. eff.Speed = NumberRange.new(100,500)
  7946. eff.Drag = 5
  7947. eff.Rotation = NumberRange.new(-500,500)
  7948. eff.VelocitySpread = 9000
  7949. eff.RotSpeed = NumberRange.new(-50,50)
  7950. wait(0.5)
  7951. eff.Enabled = false
  7952. end))
  7953. for i = 0, 49 do
  7954. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7955. end
  7956. for i = 0, 9 do
  7957. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7958. end
  7959. game:GetService("Debris"):AddItem(loc, 5)
  7960. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7961. hum.WalkSpeed = storehumanoidWS
  7962. attack = false
  7963. end
  7964.  
  7965. function HolyBarrier()
  7966. attack = true
  7967. shielding = true
  7968. for i = 0, 2, 0.1 do
  7969. swait()
  7970. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  7971. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  7972. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  7973. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  7974. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  7975. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  7976. end
  7977. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  7978. stash = Instance.new("Model",workspace)
  7979. local barrier = Instance.new("Part",stash)
  7980. barrier.Anchored = true
  7981. barrier.CanCollide = false
  7982. barrier.Size = Vector3.new(20,20,20)
  7983. barrier.CFrame = root.CFrame
  7984. barrier.Transparency = 0.6
  7985. barrier.BrickColor = MAINRUINCOLOR
  7986. barrier.Material = Enum.Material.Neon
  7987. barrier.Shape = Enum.PartType.Ball
  7988. barrier.CFrame = root.CFrame
  7989. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  7990. Torso.Anchored = true
  7991. for i=1,50 do
  7992. local p = Instance.new("Part",stash)
  7993. p.Anchored = true
  7994. p.Transparency = 1
  7995. p.Size = Vector3.new(11,11,11)
  7996. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  7997. end
  7998. repeat
  7999. swait(5)
  8000. 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("White"),0)
  8001. until shielding == false
  8002. stash:Remove()
  8003. Torso.Anchored = false
  8004. shielding = false
  8005. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  8006. attack = false
  8007. end
  8008.  
  8009. function vistaunty()
  8010. attack = true
  8011. hum.WalkSpeed = 0
  8012. local rd = math.random(1,5)
  8013. if rd == 1 then
  8014. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8015. elseif rd == 2 then
  8016. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8017. elseif rd == 3 then
  8018. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8019. elseif rd == 4 then
  8020. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8021. elseif rd == 5 then
  8022. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8023. end
  8024. for i = 0, 8, 0.1 do
  8025. swait()
  8026. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  8027. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  8028. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  8029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  8030. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  8031. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  8032. end
  8033. hum.WalkSpeed = storehumanoidWS
  8034. attack = false
  8035. end
  8036.  
  8037. function BinaryBLINK()
  8038. for i = 0, 9 do
  8039. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8040. end
  8041. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8042. coroutine.resume(coroutine.create(function()
  8043. local eff = Instance.new("ParticleEmitter",root)
  8044. eff.Texture = "rbxassetid://1175838406"
  8045. eff.LightEmission = 0.95
  8046. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8047. eff.Rate = 10000
  8048. eff.Lifetime = NumberRange.new(1)
  8049. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  8050. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8051. eff.Speed = NumberRange.new(30,160)
  8052. eff.Drag = 5
  8053. eff.Rotation = NumberRange.new(-500,500)
  8054. eff.VelocitySpread = 100000
  8055. wait(0.25)
  8056. eff.Enabled = false
  8057. wait(4)
  8058. eff:Destroy()
  8059. end))
  8060. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  8061. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  8062. CameraEnshaking(2,10)
  8063. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  8064. if v:FindFirstChild('Head') then
  8065. dmg(v)
  8066. end
  8067. end
  8068. for i = 0, 9 do
  8069. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8070. end
  8071. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8072. end
  8073.  
  8074. function AZUREFINALE()
  8075. attack = true
  8076. duringend = true
  8077. hum.WalkSpeed = 0
  8078. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  8079. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  8080. local hite = Instance.new("Part", char)
  8081. hite.Anchored = true
  8082. hite.CanCollide = false
  8083. hite.FormFactor = 3
  8084. hite.Name = "Ring"
  8085. hite.Material = "Neon"
  8086. hite.Size = Vector3.new(1, 1, 1)
  8087. hite.Transparency = 0
  8088. hite.TopSurface = 0
  8089. hite.BottomSurface = 0
  8090. hite.BrickColor = MAINRUINCOLOR
  8091. local orbm = Instance.new("SpecialMesh", hite)
  8092. orbm.MeshType = "Sphere"
  8093. orbm.Name = "SizeMesh"
  8094. orbm.Scale = vt(0,0,0)
  8095. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  8096. for i = 0,70,0.1 do
  8097. swait()
  8098. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  8099. rsiz = math.random(10,45)
  8100. kan.Volume = kan.Volume + 0.01
  8101. kan.Pitch = kan.Pitch - 0.00135
  8102. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  8103. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  8104. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8105. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8106. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8107. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8108. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8109. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8110. end
  8111. kan.Pitch = 0.1
  8112. hite.Transparency = 1
  8113. for i = 0,2 do
  8114. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  8115. end
  8116. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  8117. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  8118. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  8119. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  8120. coroutine.resume(coroutine.create(function()
  8121. local eff = Instance.new("ParticleEmitter",hite)
  8122. eff.Texture = "rbxassetid://284205403"
  8123. eff.LightEmission = 0.95
  8124. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8125. eff.Rate = 10000
  8126. eff.Lifetime = NumberRange.new(5)
  8127. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  8128. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8129. eff.Speed = NumberRange.new(600,1250)
  8130. eff.Drag = 5
  8131. eff.Rotation = NumberRange.new(-500,500)
  8132. eff.VelocitySpread = 9000
  8133. eff.RotSpeed = NumberRange.new(-500,500)
  8134. wait(1)
  8135. eff.Enabled = false
  8136. end))
  8137. for i = 0,5,0.1 do
  8138. swait()
  8139. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8140. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8141. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8142. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8143. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8144. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8145. end
  8146. local adsc = 0
  8147. local radiatezone = 0
  8148. for i = 0,20,0.1 do
  8149. swait()
  8150. adsc = adsc + 0.025
  8151. radiatezone = radiatezone + 1.25
  8152. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8153. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8154. if v:FindFirstChild('Head') then
  8155. dmg(v)
  8156. end
  8157. end
  8158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8159. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8160. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8161. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8162. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8163. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8164. end
  8165. for i = 0,2 do
  8166. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  8167. end
  8168. for i = 0,40,0.1 do
  8169. swait()
  8170. adsc = adsc + 0.05
  8171. radiatezone = radiatezone + 2.5
  8172. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8173. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8174. if v:FindFirstChild('Head') then
  8175. dmg(v)
  8176. end
  8177. end
  8178. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8179. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8180. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8181. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8182. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8183. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8184. end
  8185. for i = 0,4 do
  8186. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  8187. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  8188. end
  8189. for i = 0,80,0.1 do
  8190. swait()
  8191. adsc = adsc + 0.075
  8192. radiatezone = radiatezone + 3.75
  8193. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8194. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8195. if v:FindFirstChild('Head') then
  8196. dmg(v)
  8197. end
  8198. end
  8199. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8200. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8201. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8202. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8203. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8204. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8205. end
  8206. hite:Destroy()
  8207. duringend = false
  8208. hum.WalkSpeed = storehumanoidWS
  8209. attack = false
  8210. end
  8211.  
  8212. function ITSNOTOVER()
  8213. attack = true
  8214. newThemeCust("rbxassetid://1180273873",0,1,1.25)
  8215. kan.TimePosition = 44
  8216. repeat swait() until kan.IsLoaded
  8217. wait(8)
  8218. bosschatfunc("We don't care what they say,",MAINRUINCOLOR.Color,1)
  8219. for i = 0, 16, .1 do
  8220. swait()
  8221. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8222. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8223. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8225. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8226. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8227. end
  8228. bosschatfunc("We will be here all day,",MAINRUINCOLOR.Color,1)
  8229. for i = 0, 16, .1 do
  8230. swait()
  8231. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8232. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8235. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8236. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8237. end
  8238. bosschatfunc("We’ll stay here 'till it’s over...",MAINRUINCOLOR.Color,1)
  8239. for i = 0, 14, .1 do
  8240. swait()
  8241. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8242. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8243. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  8245. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8246. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8247. end
  8248. wait(1)
  8249. bosschatfunc("Till the world’s out of sight,",MAINRUINCOLOR.Color,1)
  8250. for i = 0, 16, .1 do
  8251. swait()
  8252. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8253. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8256. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8257. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8258. end
  8259. bosschatfunc("We will stand, We will fight,",MAINRUINCOLOR.Color,1)
  8260. for i = 0, 16, .1 do
  8261. swait()
  8262. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8263. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8264. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8266. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8267. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8268. end
  8269. bosschatfunc("IT'S NOT OVER 'TILL IT'S OVER...",Color3.new(0.5,0,0),1)
  8270. Face.Texture = "rbxassetid://15471076"
  8271. for i = 0, 16, .1 do
  8272. swait()
  8273. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8274. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8277. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8278. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8279. end
  8280. wait(1)
  8281. sphere(1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(1,100000,1),0.6,BrickColor.new("Maroon"))
  8282. sphere(1,"Add",root.CFrame,vt(1,1,1),0.8,BrickColor.new("Really red"))
  8283. for i = 0, 49 do
  8284. PixelBlockX(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))),8,8,8,0.16,BrickColor.new("Maroon"),0)
  8285. 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,BrickColor.new("Really red"),0)
  8286. slash(math.random(10,20)/10,5,true,"Round","Add","Out",Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30, 30)), math.rad(math.random(-30, 30)), math.rad(math.random(-40, 40))),vt(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Really red"))
  8287. end
  8288. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8289. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8290. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8291. attack = false
  8292. ModeOfGlitch = 999999999
  8293. storehumanoidWS = 100
  8294. hum.WalkSpeed = 100
  8295. rainbowmode = false
  8296. chaosmode = false
  8297. RecolorTextAndRename("THE DETERMINED",Color3.new(0.5,0,0),BrickColor.new("Really red").Color,"Arcade")
  8298. MAINRUINCOLOR = BrickColor.new("Really red")
  8299. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8300. end
  8301.  
  8302. function GalacticalBeams()
  8303. attack = true
  8304. local keptcolor = MAINRUINCOLOR
  8305. coroutine.resume(coroutine.create(function()
  8306. for i = 0, 0 do
  8307. swait(10)
  8308. local orb = Instance.new("Part", char)
  8309. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  8310. orb.BrickColor = keptcolor
  8311. orb.CanCollide = false
  8312. orb.FormFactor = 3
  8313. orb.Name = "Ring"
  8314. orb.Material = "Neon"
  8315. orb.Size = Vector3.new(1, 1, 1)
  8316. orb.Transparency = 1
  8317. orb.TopSurface = 0
  8318. orb.BottomSurface = 0
  8319. orb.Anchored = true
  8320. local orbm = Instance.new("SpecialMesh", orb)
  8321. orbm.MeshType = "Sphere"
  8322. orbm.Name = "SizeMesh"
  8323. orbm.Scale = vt(1.25,1.25,1.25)
  8324. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  8325. coroutine.resume(coroutine.create(function()
  8326. orb.Transparency = 1
  8327. local a = Instance.new("Part",char)
  8328. a.Name = "Direction"
  8329. a.Anchored = true
  8330. a.BrickColor = keptcolor
  8331. a.Material = "Neon"
  8332. a.Transparency = 1
  8333. a.Shape = "Cylinder"
  8334. local x = Instance.new("Part",char)
  8335. x.Name = "Direction"
  8336. x.Anchored = true
  8337. x.BrickColor = keptcolor
  8338. x.Material = "Neon"
  8339. x.Transparency = 1
  8340. x.Shape = "Cylinder"
  8341. local ht = Instance.new("Part",char)
  8342. ht.Name = "DirectionHit"
  8343. ht.Anchored = true
  8344. ht.BrickColor = keptcolor
  8345. ht.CanCollide = false
  8346. ht.Transparency = 1
  8347. ht.Size = vt(0.1,0.1,0.1)
  8348. a.CanCollide = false
  8349. local ray = Ray.new(
  8350. orb.CFrame.p, -- origin
  8351. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  8352. )
  8353. local ignore = char
  8354. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8355. a.BottomSurface = 10
  8356. a.TopSurface = 10
  8357. local distance = (orb.CFrame.p - position).magnitude
  8358. a.Size = Vector3.new(distance,1,1)
  8359. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8360. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8361. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  8362. local poste = 0
  8363. local rotation = 0
  8364. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  8365. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  8366. CameraEnshaking(2,2)
  8367. for i = 0, 49 do
  8368. swait()
  8369. rotation = rotation + 5
  8370. poste = poste + 1
  8371. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8372. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8373. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8374. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8375. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8376. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8377. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8378. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8379. end
  8380. local A1 = Instance.new("Attachment",x)
  8381. local A2 = Instance.new("Attachment",ht)
  8382. local Beem = Instance.new("Beam",ht)
  8383. Beem.Attachment0 = A1
  8384. Beem.Attachment1 = A2
  8385. Beem.LightEmission = 1
  8386. Beem.FaceCamera = true
  8387. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  8388. Beem.Width0 = 125
  8389. Beem.Width1 = 125
  8390. Beem.Texture = "rbxassetid://1134824633"
  8391. Beem.TextureMode = "Wrap"
  8392. Beem.TextureLength = 200
  8393. Beem.TextureSpeed = 1.5
  8394. Beem.Color = ColorSequence.new(keptcolor.Color)
  8395. CameraEnshaking(3,6)
  8396. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  8397. a.Transparency = 0.25
  8398. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  8399. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  8400. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  8401. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  8402. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  8403. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  8404. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  8405. local eff = Instance.new("ParticleEmitter",ht)
  8406. eff.Texture = "rbxassetid://284205403"
  8407. eff.LightEmission = 0.95
  8408. eff.Color = ColorSequence.new(keptcolor.Color)
  8409. eff.Rate = 500
  8410. eff.Lifetime = NumberRange.new(1)
  8411. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  8412. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8413. eff.Speed = NumberRange.new(80,500)
  8414. eff.Drag = 5
  8415. eff.Rotation = NumberRange.new(-500,500)
  8416. eff.VelocitySpread = 9000
  8417. eff.RotSpeed = NumberRange.new(-500,500)
  8418. for i = 0, 24 do
  8419. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  8420. local rsiz = math.random(10,50)
  8421. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*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)
  8422. end
  8423. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8424. local msh = Instance.new("SpecialMesh",a)
  8425. msh.MeshType = "Cylinder"
  8426. msh.Scale = vt(1,15,15)
  8427. for i = 0, 49 do
  8428. swait()
  8429. CameraEnshaking(1,4)
  8430. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  8431. rotation = rotation + 5
  8432. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  8433. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  8434. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  8435. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8436. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8437. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8438. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8439. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8440. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8441. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8442. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  8443. for i = 0, 2 do
  8444. local rsiz = math.random(50,250)
  8445. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*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)
  8446. end
  8447. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  8448. end
  8449. eff.Enabled = false
  8450. local visibility = 0
  8451. for i = 0, 49 do
  8452. swait()
  8453. visibility = visibility + 0.02
  8454. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  8455. rotation = rotation + 5
  8456. poste = poste - 1
  8457. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8458. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8459. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8460. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8461. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8462. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8463. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8464. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  8465. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  8466. a.Transparency = a.Transparency + 0.02
  8467. end
  8468. wait(1)
  8469. orb:Destroy()
  8470. a:Destroy()
  8471. ht:Destroy()
  8472. end))
  8473. game:GetService("Debris"):AddItem(orb, 10)
  8474. end
  8475. end))
  8476. hum.WalkSpeed = storehumanoidWS
  8477. attack = false
  8478. end
  8479. end
  8480. -------------------------------------
  8481.  
  8482. Humanoid.Animator.Parent = nil
  8483.  
  8484. -------------------------------------
  8485.  
  8486. local attacktype = 1
  8487. mouse.Button1Down:connect(function()
  8488. if attack == false and attacktype == 1 then
  8489. attacktype = 2
  8490. attackone()
  8491. elseif attack == false and attacktype == 2 then
  8492. attacktype = 3
  8493. attacktwo()
  8494. elseif attack == false and attacktype == 3 then
  8495. attacktype = 1
  8496. attackthree()
  8497. elseif attack == false and attacktype == 4 then
  8498. attacktype = 1
  8499. --attackfour()
  8500. end
  8501. end)
  8502. mouse.KeyDown:connect(function(k)
  8503. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8504. --normalmog() ---Disabled due to crashing... only in VSB
  8505. ModeOfGlitch = 1
  8506. storehumanoidWS = 17
  8507. hum.WalkSpeed = 17
  8508. rainbowmode = false
  8509. chaosmode = false
  8510. newTheme("rbxassetid://548642448",48.6,1,1.25)
  8511. RecolorTextAndRename("Hokuto no Ken",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8512. MAINRUINCOLOR = BrickColor.new("Bright red")
  8513. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8514. end
  8515. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8516. ModeOfGlitch = 2
  8517. storehumanoidWS = 25
  8518. hum.WalkSpeed = 25
  8519. rainbowmode = false
  8520. chaosmode = false
  8521. RecolorTextAndRename("Calm-Minded",Color3.new(0,1,1),Color3.new(0,1,1),"Code")
  8522. newTheme("rbxassetid://1391232732",0,1,1)
  8523. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8524. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8525. end
  8526. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8527. ModeOfGlitch = 3
  8528. storehumanoidWS = 25
  8529. hum.WalkSpeed = 25
  8530. rainbowmode = false
  8531. chaosmode = false
  8532. RecolorTextAndRename("VIRUS",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8533. newTheme("rbxassetid://2482377049",58.15,1,1.25)
  8534. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8535. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8536. end
  8537. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8538. ModeOfGlitch = 4
  8539. storehumanoidWS = 20
  8540. hum.WalkSpeed = 20
  8541. rainbowmode = false
  8542. chaosmode = true
  8543. RecolorTextAndRename("DARKNESS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8544. newTheme("rbxassetid://1755361996",0,1.01,1.25)
  8545. MAINRUINCOLOR = BrickColor.new("Really black")
  8546. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8547. end
  8548. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8549. ModeOfGlitch = 5
  8550. storehumanoidWS = 55
  8551. hum.WalkSpeed = 55
  8552. rainbowmode = false
  8553. chaosmode = false
  8554. RecolorTextAndRename("JUSTICE",Color3.new(1,1,1),Color3.new(1,1,1),"SciFi")
  8555. newTheme("rbxassetid://1160171018",0,1,1)
  8556. MAINRUINCOLOR = BrickColor.new("Alder")
  8557. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8558. end
  8559. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8560. ModeOfGlitch = 6
  8561. storehumanoidWS = 100
  8562. hum.WalkSpeed = 100
  8563. rainbowmode = false
  8564. chaosmode = false
  8565. print'Mode was meant for Vengeful Program or those other fans out there'
  8566. RecolorTextAndRename("NEPTUNE",Color3.new(0.75,0.9,1),BrickColor.new("Hot pink").Color,"Arcade")
  8567. newTheme("rbxassetid://344781763",0,1.02,1.1)
  8568. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8569. RecolorThing(MAINRUINCOLOR,BrickColor.new("Hot pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8570. end
  8571. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8572. ModeOfGlitch = 8
  8573. storehumanoidWS = 140
  8574. hum.WalkSpeed = 140
  8575. rainbowmode = false
  8576. chaosmode = false
  8577. RecolorTextAndRename("INFUSED",Color3.new(0,0,0),BrickColor.new("Deep orange").Color,"Code")
  8578. newTheme("rbxassetid://431432734",0,1.01,1.25)
  8579. MAINRUINCOLOR = BrickColor.new("Deep orange")
  8580. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8581. end
  8582. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8583. ModeOfGlitch = 9
  8584. storehumanoidWS = 150
  8585. hum.WalkSpeed = 150
  8586. rainbowmode = false
  8587. chaosmode = false
  8588. RecolorTextAndRename("DIVINITY",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"SciFi")
  8589. newTheme("rbxassetid://502359223",0,1,2)
  8590. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8591. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8592. end
  8593. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  8594. ModeOfGlitch = 10
  8595. storehumanoidWS = 75
  8596. hum.WalkSpeed = 75
  8597. rainbowmode = false
  8598. chaosmode = false
  8599. RecolorTextAndRename("UPLIFTED",Color3.new(0,0,5),BrickColor.new("Lapis").Color,"Code")
  8600. newTheme("rbxassetid://976836387",0,1,1)
  8601. MAINRUINCOLOR = BrickColor.new("Lapis")
  8602. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lapis"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8603. end
  8604. if k == "m" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 32 then
  8605. ModeOfGlitch = 32
  8606. storehumanoidWS = 180
  8607. hum.WalkSpeed = 180
  8608. rainbowmode = false
  8609. chaosmode = false
  8610. RecolorTextAndRename("FIGHTER",BrickColor.new("White").Color,BrickColor.new("Really black").Color,"Antique")
  8611. newTheme("rbxassetid://746726865",0,1,1)
  8612. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8613. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8614. end
  8615. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 83 then
  8616. ModeOfGlitch = 83
  8617. storehumanoidWS = 180
  8618. hum.WalkSpeed = 180
  8619. rainbowmode = false
  8620. chaosmode = false
  8621. RecolorTextAndRename("V a p o r w a v e.",BrickColor.new("Black").Color,BrickColor.new("Really black").Color,"Antique")
  8622. newTheme("rbxassetid://1280408510",0,1,1)
  8623. MAINRUINCOLOR = BrickColor.new("Black")
  8624. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8625. end
  8626. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 95 then
  8627. ModeOfGlitch = 95
  8628. storehumanoidWS = 180
  8629. hum.WalkSpeed = 180
  8630. rainbowmode = false
  8631. chaosmode = false
  8632. RecolorTextAndRename("LUNAR",BrickColor.new("Electric blue").Color,BrickColor.new("Electric blue").Color,"Antique")
  8633. newTheme("rbxassetid://626736229",0,1,1)
  8634. MAINRUINCOLOR = BrickColor.new("Electric blue")
  8635. RecolorThing(MAINRUINCOLOR,BrickColor.new("Electric blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8636. end
  8637. if k == "b" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 97 then
  8638. ModeOfGlitch = 97
  8639. storehumanoidWS = 100
  8640. hum.WalkSpeed = 100
  8641. rainbowmode = false
  8642. chaosmode = false
  8643. RecolorTextAndRename("J-EVIL",BrickColor.new("Really black").Color,BrickColor.new("Royal purple").Color,"Arcade")
  8644. newTheme("rbxassetid://2597271983",0,1,1)
  8645. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8646. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright yellow"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8647. end
  8648. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 150 then
  8649. ModeOfGlitch = 150
  8650. storehumanoidWS = 180
  8651. hum.WalkSpeed = 180
  8652. rainbowmode = false
  8653. chaosmode = false
  8654. RecolorTextAndRename("ERROR",BrickColor.new("White").Color,BrickColor.new("Really black").Color,"Antique")
  8655. newTheme("rbxassetid://1960307734",0,1,1)
  8656. MAINRUINCOLOR = BrickColor.new("White")
  8657. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8658. end
  8659. if k == "n" and attack == false and ModeOfGlitch == 9 and ModeOfGlitch ~= 500 then
  8660. ModeOfGlitch = 500
  8661. storehumanoidWS = 180
  8662. hum.WalkSpeed = 180
  8663. rainbowmode = false
  8664. chaosmode = false
  8665. RecolorTextAndRename("Pandora",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  8666. newTheme("rbxassetid://1382488262",0,1,1)
  8667. MAINRUINCOLOR = BrickColor.new("Lilac")
  8668. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lilac"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8669. end
  8670. if k == "m" and attack == false and ModeOfGlitch == 9 and ModeOfGlitch ~= 495 then
  8671. ModeOfGlitch = 495
  8672. storehumanoidWS = 125
  8673. hum.WalkSpeed = 125
  8674. rainbowmode = false
  8675. chaosmode = false
  8676. RecolorTextAndRename("SIN",BrickColor.new("Really black").Color,BrickColor.new("Maroon").Color,"Antique")
  8677. newTheme("rbxassetid://613035749",0,1,1)
  8678. MAINRUINCOLOR = BrickColor.new("Maroon")
  8679. RecolorThing(MAINRUINCOLOR,BrickColor.new("Maroon"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8680. end
  8681. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 652 then
  8682. ModeOfGlitch = 652
  8683. storehumanoidWS = 180
  8684. hum.WalkSpeed = 180
  8685. rainbowmode = false
  8686. chaosmode = false
  8687. RecolorTextAndRename("サブゼロ【Sub-Zero】",BrickColor.new("Baby blue").Color,BrickColor.new("Cyan").Color,"Antique")
  8688. newTheme("rbxassetid://1579308042",0,1,1)
  8689. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8690. RecolorThing(MAINRUINCOLOR,BrickColor.new("Cyan"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8691. end
  8692. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 999 then
  8693. ModeOfGlitch = 999
  8694. storehumanoidWS = 180
  8695. hum.WalkSpeed = 180
  8696. rainbowmode = true
  8697. chaosmode = false
  8698. RecolorTextAndRename("The Big Black",BrickColor.new("Dark stone grey").Color,BrickColor.new("Really black").Color,"Antique")
  8699. newTheme("rbxassetid://1681272944",0,1,1)
  8700. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8701. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8702. end
  8703. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8704. ModeOfGlitch = 8889
  8705. storehumanoidWS = 180
  8706. hum.WalkSpeed = 180
  8707. rainbowmode = false
  8708. chaosmode = false
  8709. RecolorTextAndRename("TEMPORAL",BrickColor.new("Deep orange").Color,BrickColor.new("Deep orange").Color,"Antique")
  8710. newTheme("rbxassetid://1764195391",0,1,1)
  8711. MAINRUINCOLOR = BrickColor.new("Deep orange")
  8712. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8713. end
  8714. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8715. ModeOfGlitch = 55469696922
  8716. storehumanoidWS = 275
  8717. hum.WalkSpeed = 275
  8718. rainbowmode = false
  8719. chaosmode = false
  8720. RecolorTextAndRename("NANO",BrickColor.new("Hot pink").Color,BrickColor.new("Hot pink").Color,"Antique")
  8721. newTheme("rbxassetid://1953528755",0,1,1)
  8722. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8723. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8724. end
  8725. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8726. ModeOfGlitch = 4367677813
  8727. storehumanoidWS = 225
  8728. hum.WalkSpeed = 225
  8729. rainbowmode = false
  8730. chaosmode = false
  8731. RecolorTextAndRename("CLARITY",Color3.new(0,1,1),BrickColor.new("Electric blue").Color,"Arcade")
  8732. newTheme("rbxassetid://728272672",0,1,1)
  8733. MAINRUINCOLOR = BrickColor.new("Electric blue")
  8734. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8735. end
  8736. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8737. ModeOfGlitch = 9999999921111
  8738. storehumanoidWS = 300
  8739. hum.WalkSpeed = 300
  8740. rainbowmode = false
  8741. chaosmode = false
  8742. RecolorTextAndRename("DEATH",BrickColor.new("Really red").Color,BrickColor.new("Crimson").Color,"Antique")
  8743. newTheme("rbxassetid://1119709168",0,1,1)
  8744. MAINRUINCOLOR = BrickColor.new("Really red")
  8745. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8746. end
  8747. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8748. ModeOfGlitch = 999999999556
  8749. storehumanoidWS = 500
  8750. hum.WalkSpeed = 500
  8751. rainbowmode = false
  8752. chaosmode = false
  8753. RecolorTextAndRename("THEORIES",Color3.new(1,1,0.5),BrickColor.new("Storm blue").Color,"Code")
  8754. newTheme("rbxassetid://1295603847",0,1,1)
  8755. MAINRUINCOLOR = BrickColor.new("Storm blue")
  8756. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright yellow"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8757. end
  8758. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8759. ModeOfGlitch = 1264532489
  8760. storehumanoidWS = 250
  8761. hum.WalkSpeed = 250
  8762. rainbowmode = false
  8763. chaosmode = false
  8764. RecolorTextAndRename("ASCENDED",Color3.new(0.5,1,1),BrickColor.new("Alder").Color,"Garamond")
  8765. newTheme("rbxassetid://257453119",0,1,1)
  8766. MAINRUINCOLOR = BrickColor.new("Alder")
  8767. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8768. end
  8769. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 7536 then
  8770. ModeOfGlitch = 7536
  8771. storehumanoidWS = 250
  8772. hum.WalkSpeed = 250
  8773. rainbowmode = false
  8774. chaosmode = false
  8775. print'Mode was meant for Vengeful Program or those other fans out there'
  8776. RecolorTextAndRename("PURPLE HEART",Color3.new(0,0,0),Color3.new(0.35,0,1),"Arcade")
  8777. newTheme("rbxassetid://1873219898",0,1,1)
  8778. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8779. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8780. end
  8781. if k == "n" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 666 then
  8782. ModeOfGlitch = 666
  8783. storehumanoidWS = 75
  8784. hum.WalkSpeed = 75
  8785. rainbowmode = false
  8786. chaosmode = false
  8787. RecolorTextAndRename("INFESTED",Color3.new(0.5,2,0.1),BrickColor.new("Lime green").Color,"Arcade")
  8788. newTheme("rbxassetid://525170371",0,1,1)
  8789. MAINRUINCOLOR = BrickColor.new("Lime green")
  8790. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8791. end
  8792. if k == "l" and mutedtog == false then
  8793. mutedtog = true
  8794. kan.Volume = 0
  8795. elseif k == "l" and mutedtog == true then
  8796. mutedtog = false
  8797. kan.Volume = 1.25
  8798. end
  8799. if k == "p" and toggleTag == false then
  8800. toggleTag = true
  8801. modet.TextTransparency = 0
  8802. modet.TextStrokeTransparency = 0
  8803. elseif k == "p" and toggleTag == true then
  8804. toggleTag = false
  8805. modet.TextTransparency = 1
  8806. modet.TextStrokeTransparency = 1
  8807. end
  8808. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8809. ExtinctiveHeartbreak()
  8810. elseif k == "v" and attack == false and ModeOfGlitch == 1 then
  8811. ITSNOTOVER()
  8812. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8813. HeavenlyDisk()
  8814. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  8815. PureOrb()
  8816. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8817. harmonytaunty()
  8818. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8819. CorruptionEvent()
  8820. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  8821. scattercorrupt()
  8822. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8823. CorruptBlink()
  8824. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  8825. ChaosEND()
  8826. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  8827. ChaosGroundStrike()
  8828. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  8829. FallenOrbs()
  8830. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8831. RapidBurst()
  8832. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  8833. InsaneDrop()
  8834. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  8835. SpeedDrop()
  8836. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8837. DivineLights()
  8838. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8839. vistaunty()
  8840. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8841. EquinoxOrbs()
  8842. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  8843. shytaunty()
  8844. elseif k == "c" and attack == false and ModeOfGlitch == 6 then
  8845. cutesigh()
  8846. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8847. Counter()
  8848. elseif k == "b" and attack == false and ModeOfGlitch == 6 then
  8849. hugg()
  8850. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  8851. yinyangi()
  8852. elseif k == "x" and attack == false and ModeOfGlitch == 9 then
  8853. smiter()
  8854. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8855. HolyBarrier()
  8856. elseif k == "z" and attack == false and ModeOfGlitch == 999 then
  8857. ExtinctiveHeartbreak()
  8858. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  8859. attackone()
  8860. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8861. UniversalCollapse()
  8862. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8863. FallenOrbs()
  8864. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  8865. FallenOrbs()
  8866. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  8867. EquinoxOrbs()
  8868. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  8869. CyberSlash()
  8870. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  8871. EndGROUND()
  8872. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  8873. StarDivision()
  8874. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8875. GleamingBeam()
  8876. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8877. DualGleamingBeam()
  8878. elseif k == "b" and attack == false and ModeOfGlitch == 9999999921111 then
  8879. dragin()
  8880. elseif k == "m" and attack == false and ModeOfGlitch == 9999999921111 then
  8881. Beams()
  8882. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8883. FallenOrbs()
  8884. end
  8885. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8886. FallenDEMISE()
  8887. end
  8888. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8889. EndGROUND()
  8890. end
  8891. end)
  8892.  
  8893. --[[coroutine.resume(coroutine.create(function()
  8894. while true do
  8895. swait(2)
  8896. if chaosmode == true then
  8897. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8898. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8899. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8900. RecolorTextAndRename("DARKNESS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8901. for i, v in pairs(mw1:GetChildren()) do
  8902. if v:IsA("Part") then
  8903. v.Transparency = 0.75
  8904. v.BrickColor = BrickColor.random()
  8905. v.Material = "Neon"
  8906. end
  8907. end
  8908. for i, v in pairs(m2:GetChildren()) do
  8909. if v:IsA("Part") then
  8910. v.BrickColor = BrickColor.random()
  8911. v.Material = "Neon"
  8912. end
  8913. end
  8914. end
  8915. end
  8916. end))]]--
  8917. Humanoid.Name = "STARGLITCHER"
  8918. Humanoid.MaxHealth = math.huge
  8919. Humanoid.Health = math.huge
  8920. Instance.new("ForceField",char).Visible = false
  8921.  
  8922. local bguis = Instance.new("BillboardGui",tors)
  8923. bguis.Size = UDim2.new(25, 0, 25, 0)
  8924. local imgca = Instance.new("ImageLabel",bguis)
  8925. imgca.BackgroundTransparency = 1
  8926. imgca.ImageTransparency = 1
  8927. imgca.Size = UDim2.new(1,0,1,0)
  8928. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  8929. imgca.ImageColor3 = Color3.new(0,0,0)
  8930.  
  8931. idleanim=.4
  8932. while true do
  8933. if mutedtog == false then
  8934. kan.Volume = currentVol
  8935. elseif mutedtog == true then
  8936. kan.Volume = 0
  8937. end
  8938. kan.PlaybackSpeed = currentPitch
  8939. kan.Pitch = currentPitch
  8940. kan.SoundId = currentThemePlaying
  8941. kan.Looped = true
  8942. kan.Parent = char
  8943. kan:Resume()
  8944. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  8945. imgca.ImageTransparency = 1
  8946. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  8947. imgca.ImageColor3 = MAINRUINCOLOR.Color
  8948. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8949. end
  8950. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  8951. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  8952. coroutine.resume(coroutine.create(function()
  8953. if chaosmode == true then
  8954. for i, v in pairs(mw1:GetChildren()) do
  8955. if v:IsA("Part") then
  8956. v.Transparency = 0
  8957. v.BrickColor = BrickColor.random()
  8958. v.Material = "Neon"
  8959. end
  8960. end
  8961. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8962. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8963. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8964. RecolorTextAndRename("DARKNESS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  8965. end
  8966. end))
  8967.  
  8968. if chaosmode == false then
  8969. modet.Position = UDim2.new(0,0,0,0)
  8970. modet.Rotation = -5 * math.cos(sine / 32)
  8971. techc.Rotation = techc.Rotation + 1
  8972. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  8973. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  8974. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  8975. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  8976. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  8977. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  8978. else
  8979. techc.Rotation = techc.Rotation + 1
  8980. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  8981. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  8982. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  8983. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  8984. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  8985. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  8986. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  8987. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  8988. end
  8989. CameraManager()
  8990. swait()
  8991. 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)
  8992. 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)
  8993. 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)
  8994. 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)
  8995. 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)
  8996. 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)
  8997. 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)
  8998. 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)
  8999. 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)
  9000. 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)
  9001. 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)
  9002. 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)
  9003. sine = sine + change
  9004. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9005. local velderp=RootPart.Velocity.y
  9006. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9007. if equipped==true or equipped==false then
  9008. if attack==false then
  9009. idle=idle+1
  9010. else
  9011. idle=0
  9012. end
  9013. if idle>=500 then
  9014. if attack==false then
  9015. --Sheath()
  9016. end
  9017. end
  9018. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9019. Anim="Jump"
  9020. if attack==false then
  9021. 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)
  9022. 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)
  9023. 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)
  9024. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9025. 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)
  9026. 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)
  9027. end
  9028. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9029. Anim="Fall"
  9030. if attack==false then
  9031. 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)
  9032. 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)
  9033. 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)
  9034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9035. 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)
  9036. 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)
  9037. end
  9038. elseif torvel<1 and hitfloor~=nil then
  9039. Anim="Idle"
  9040. if attack==false then
  9041. if ModeOfGlitch == 1 then
  9042. local snap = math.random(1,10)
  9043. if snap == 1 then
  9044. 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)
  9045. end
  9046. 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)
  9047. 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)
  9048. 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)
  9049. 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)
  9050. 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)
  9051. 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)
  9052. elseif ModeOfGlitch == 2 then
  9053. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9054. 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)
  9055. 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)
  9056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9057. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9058. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9059. elseif ModeOfGlitch == 3 then
  9060. local snap = math.random(1,32)
  9061. if snap == 1 then
  9062. 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)
  9063. end
  9064. 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)
  9065. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9066. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9067. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  9069. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9070. elseif ModeOfGlitch == 4 then
  9071. local snap = math.random(1,5)
  9072. if snap == 1 then
  9073. 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)
  9074. 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)
  9075. 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)
  9076. end
  9077. sphere2(8,"Add",rleg.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,BrickColor.random(),BrickColor.random().Color)
  9078. sphere2(8,"Add",lleg.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,BrickColor.random(),BrickColor.random().Color)
  9079. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1)
  9080. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1)
  9081. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1)
  9082. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
  9083. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1)
  9084. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1)
  9085. elseif ModeOfGlitch == 5 then
  9086. 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)
  9087. sphere2(8,"Add",larm.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,BrickColor.new("Alder"),Color3.new(0,1,0))
  9088. 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)
  9089. 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)
  9090. 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)
  9091. 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)
  9092. 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)
  9093. 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)
  9094. elseif ModeOfGlitch == 6 then
  9095. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  9096. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  9097. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  9098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  9099. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  9100. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  9101. elseif ModeOfGlitch == 8 then
  9102. 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(2 + 1 * math.cos(sine / 34))),.1)
  9103. 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)
  9104. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9105. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9106. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9107. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9108. elseif ModeOfGlitch == 9 then
  9109. local snap = math.random(1,32)
  9110. if snap == 1 then
  9111. 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)
  9112. end
  9113. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9114. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9115. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9116. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9117. 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)
  9118. 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)
  9119. elseif ModeOfGlitch == 10 then
  9120. 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))), 0.1)
  9121. 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))), 0.1)
  9122. 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)), 0.1)
  9123. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  9124. RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1)
  9125. 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)), 0.1)
  9126. elseif ModeOfGlitch == 32 then
  9127. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9128. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9131. 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)
  9132. 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)
  9133. elseif ModeOfGlitch == 83 then
  9134. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9135. 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)
  9136. 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)
  9137. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9138. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9139. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9140. elseif ModeOfGlitch == 95 then
  9141. 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)
  9142. 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)
  9143. 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)
  9144. 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)
  9145. 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)
  9146. 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)
  9147. elseif ModeOfGlitch == 97 then
  9148. local snap = math.random(1,32)
  9149. if snap == 1 then
  9150. 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)
  9151. end
  9152. 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)
  9153. 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)
  9154. 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)
  9155. 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)
  9156. 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)
  9157. 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)
  9158. elseif ModeOfGlitch == 150 then
  9159. local snap = math.random(1,5)
  9160. if snap == 1 then
  9161. 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)
  9162. 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)
  9163. 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)
  9164. end
  9165. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9166. 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)
  9167. 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)
  9168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9169. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9170. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9171. elseif ModeOfGlitch == 432 then
  9172. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(95),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9173. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9176. 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)
  9177. 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)
  9178. elseif ModeOfGlitch == 495 then
  9179. 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)
  9180. 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)
  9181. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  9182. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  9183. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  9184. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  9185. elseif ModeOfGlitch == 500 then
  9186. 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)
  9187. 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)
  9188. 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)
  9189. 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)
  9190. 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)
  9191. 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)
  9192. elseif ModeOfGlitch == 652 then
  9193. local snap = math.random(1,2)
  9194. if snap == 1 then
  9195. 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)
  9196. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9197. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9198. end
  9199. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),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)
  9200. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),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)
  9201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9202. 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)
  9203. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9204. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  9205. elseif ModeOfGlitch == 666 then
  9206. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9207. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9208. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9210. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  9211. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  9212. elseif ModeOfGlitch == 789 then
  9213. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9214. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9215. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9216. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9217. 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)
  9218. 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)
  9219. elseif ModeOfGlitch == 999 then
  9220. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  9221. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  9222. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  9223. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  9224. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  9225. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  9226. elseif ModeOfGlitch == 7536 then
  9227. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(0 - 6 * math.cos(sine / 40)),math.rad(-6 + 2 * math.cos(sine / 20) - 6 * math.cos(sine / 40))),.1)
  9228. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(10 - 6 * math.cos(sine / 40)),math.rad(3 - 2 * math.cos(sine / 20) - 3 * math.cos(sine / 40))),.1)
  9229. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.06 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(-20 + 6 * math.cos(sine / 40))),.1)
  9230. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6),math.rad(0 - 2 * math.cos(sine / 42)),math.rad(20 - 6 * math.cos(sine / 40))),.1)
  9231. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 + 3 * math.cos(sine / 26)),math.rad(-20 - 3 * math.cos(sine / 24)),math.rad(20 - 5 * math.cos(sine / 34))),.1)
  9232. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 3 * math.cos(sine / 25)),math.rad(10 + 3 * math.cos(sine / 24)),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9233. elseif ModeOfGlitch == 8889 then
  9234. 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)
  9235. 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)
  9236. 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)
  9237. 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)
  9238. 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)
  9239. 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)
  9240. elseif ModeOfGlitch == 1264532489 then
  9241. 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)
  9242. 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)
  9243. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-60)),.1)
  9244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1)
  9245. 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)
  9246. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9247. elseif ModeOfGlitch == 9999999921111 then
  9248. local snap = math.random(1,10)
  9249. if snap == 1 then
  9250. 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)
  9251. end
  9252. 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)
  9253. 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)
  9254. 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)
  9255. 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)
  9256. 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)
  9257. 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)
  9258. elseif ModeOfGlitch == 4367677813 then
  9259. 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)
  9260. 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)
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. elseif ModeOfGlitch == 999999999 then
  9266. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  9267. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  9268. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  9269. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  9270. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  9271. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  9272. elseif ModeOfGlitch == 55469696922 then
  9273. 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)
  9274. 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)
  9275. 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)
  9276. 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)
  9277. 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)
  9278. 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)
  9279. elseif ModeOfGlitch == 999999999556 then
  9280. 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)
  9281. 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)
  9282. 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)
  9283. 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)
  9284. 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)
  9285. 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)
  9286. end
  9287. end
  9288. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9289. Anim="Walk"
  9290. if attack==false then
  9291. 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)
  9292. 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)
  9293. 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)
  9294. 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)
  9295. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9296. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  9297. end
  9298. elseif torvel>=22 and hitfloor~=nil then
  9299. Anim="Run"
  9300. if attack==false then
  9301. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 7536 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  9302. 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)
  9303. 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)
  9304. 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)
  9305. 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)
  9306. 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)
  9307. 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)
  9308. if ModeOfGlitch == 9 then
  9309. --
  9310. end
  9311. elseif ModeOfGlitch == 6 or ModeOfGlitch == 10 or ModeofGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. end
  9319. end
  9320. end
  9321. end
  9322. end
Add Comment
Please, Sign In to add comment