Advertisement
Dasd5755

spectrum glitcher 5 test ver.

Oct 20th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 468.25 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89. wait(0.2)
  90.  
  91. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  92. The super switcher.
  93. Velnorum is one of the first wielders.
  94.  
  95. Created, Reworked by NoobyGames12
  96. Edited by GodzPlaysRB
  97. Edited by wanTH092 (Gam_Filano CH)
  98. SpectrumGlitcher Developers ^^^
  99. ]])
  100.  
  101.  
  102. ------------- ORIGINAL WIELDER OC: Velnorum
  103. print([[Icons:
  104. ! = New
  105. ? = Spoilers
  106. * = Exclusivity
  107. C = Changes
  108.  
  109. ]])
  110. warn([[V 8.0 Update Log:
  111. C: TEST BUILD
  112. ]])
  113. --- its obs smooth af do not touch
  114. ---- Sources and functions might be taken from others
  115. plr = game:GetService("Players").GodzPlaysRB
  116. char = plr.Character
  117. hum = char.Humanoid
  118. local cam = game.Workspace.CurrentCamera
  119. Camera = cam
  120. local CamInterrupt = false
  121. local TwoD = false
  122. local TargetInfo = {nil, nil}
  123. cam.CameraType = "Custom"
  124. t = char.Torso
  125. h = char.Head
  126. ra = char["Right Arm"]
  127. la = char["Left Arm"]
  128. rl = char["Right Leg"]
  129. ll = char["Left Leg"]
  130. tors = char.Torso
  131. lleg = char["Left Leg"]
  132. root = char.HumanoidRootPart
  133. hed = char.Head
  134. rleg = char["Right Leg"]
  135. rarm = char["Right Arm"]
  136. larm = char["Left Arm"]
  137. radian = math.rad
  138. random = math.random
  139. Vec3 = Vector3.new
  140. Inst = Instance.new
  141. cFrame = CFrame.new
  142. Euler = CFrame.fromEulerAnglesXYZ
  143. vt = Vector3.new
  144. bc = BrickColor.new
  145. br = BrickColor.random
  146. it = Instance.new
  147. cf = CFrame.new
  148. local Player_Size = 0
  149. cam = game.Workspace.CurrentCamera
  150. CF = CFrame.new
  151. angles = CFrame.Angles
  152. attack = false
  153. Euler = CFrame.fromEulerAnglesXYZ
  154. Rad = math.rad
  155. IT = Instance.new
  156. BrickC = BrickColor.new
  157. Cos = math.cos
  158. Acos = math.acos
  159. Sin = math.sin
  160. Asin = math.asin
  161. Abs = math.abs
  162. Mrandom = math.random
  163. Floor = math.floor
  164. IT = Instance.new
  165. CF = CFrame.new
  166. VT = Vector3.new
  167. RAD = math.rad
  168. C3 = Color3.new
  169. UD2 = UDim2.new
  170. BRICKC = BrickColor.new
  171. ANGLES = CFrame.Angles
  172. EULER = CFrame.fromEulerAnglesXYZ
  173. COS = math.cos
  174. ACOS = math.acos
  175. SIN = math.sin
  176. ASIN = math.asin
  177. ABS = math.abs
  178. MRANDOM = math.random
  179. FLOOR = math.floor
  180. local SINE = 0
  181.  
  182. local Booleans = {
  183. CamFollow = true,
  184. GyroUse = true
  185. }
  186.  
  187. function lerp(object, newCFrame, alpha)
  188. return object:lerp(newCFrame, alpha)
  189. end
  190.  
  191. local Directer = Inst("BodyGyro", root)
  192. Directer.MaxTorque = Vec3(0, 0, 0)
  193. Directer.P = 600000
  194. local CPart = Inst("Part")
  195. CPart.Anchored = true
  196. CPart.CanCollide = false
  197. CPart.Locked = true
  198. CPart.Transparency = 1
  199.  
  200. local rainbowmode = false
  201. local chaosmode = false
  202.  
  203. local kan = Instance.new("Sound",tors)
  204. kan.Volume = 0.85
  205. kan.TimePosition = 0
  206. kan.PlaybackSpeed = 1
  207. kan.Pitch = 1
  208. kan.SoundId = "rbxassetid://1255569288"
  209. kan.Name = "wrecked"
  210. kan.Looped = true
  211. kan:Play()
  212.  
  213. local currentThemePlaying = kan.SoundId
  214. local currentPitch = kan.Pitch
  215. local currentVol = kan.Volume
  216. function newTheme(ID,timepos,pitch,vol)
  217. local kanz = kan
  218. --kanz:Stop()
  219. kanz.Volume = vol
  220. --kanz.TimePosition = timepos
  221. kanz.PlaybackSpeed = pitch
  222. kanz.Pitch = pitch
  223. kanz.SoundId = ID
  224. kanz.Name = "wrecked"
  225. kanz.Looped = true
  226. currentThemePlaying = kanz.SoundId
  227. currentVol = kanz.Volume
  228. currentPitch = kanz.Pitch
  229. --kanz:Play()
  230. --coroutine.resume(coroutine.create(function()
  231. --wait(0.05)
  232. --end))
  233. end
  234.  
  235.  
  236. function newThemeCust(ID,timepos,pitch,vol)
  237. local kanz = kan
  238. kanz:Stop()
  239. kanz.Volume = vol
  240. kanz.TimePosition = timepos
  241. kanz.PlaybackSpeed = pitch
  242. kanz.Pitch = pitch
  243. kanz.SoundId = ID
  244. kanz.Name = "wrecked"
  245. kanz.Looped = true
  246. currentThemePlaying = kanz.SoundId
  247. currentVol = kanz.Volume
  248. currentPitch = kanz.Pitch
  249. kanz:Play()
  250. coroutine.resume(coroutine.create(function()
  251. wait(0.05)
  252. end))
  253. end
  254.  
  255. local mutedtog = false
  256.  
  257. function CameraEnshaking(Length,Intensity)
  258. coroutine.resume(coroutine.create(function()
  259. local intensity = 1*Intensity
  260. local rotM = 0.01*Intensity
  261. for i = 0, Length, 0.1 do
  262. swait()
  263. intensity = intensity - 0.05*Intensity/Length
  264. rotM = rotM - 0.0005*Intensity/Length
  265. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  266. 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)
  267. end
  268. Humanoid.CameraOffset = Vec3(0, 0, 0)
  269. end))
  270. end
  271. CamShake=function(Part,Distan,Power,Times)
  272. local de=Part.Position
  273. for i,v in pairs(workspace:children()) do
  274. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  275. for _,c in pairs(v:children()) do
  276. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  277. local Noob=v.Humanoid
  278. if Noob~=nil then
  279. coroutine.resume(coroutine.create(function()
  280. FV = Instance.new("BoolValue", Noob)
  281. FV.Name = "CameraShake"
  282. for ShakeNum=1,Times do
  283. swait()
  284. local ef=Power
  285. if ef>=1 then
  286. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  287. else
  288. ef=Power*10
  289. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  290. end
  291. end
  292. Humanoid.CameraOffset = Vector3.new(0,0,0)
  293. FV:Destroy()
  294. end))
  295. CameraShake(Times, Power, Noob)
  296. end
  297. end
  298. end
  299. end
  300. end
  301. end
  302.  
  303. local toggleTag = true
  304. local bilguit = Instance.new("BillboardGui", hed)
  305. bilguit.Adornee = nil
  306. bilguit.Name = "ModeName"
  307. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  308. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  309. local modet = Instance.new("TextLabel", bilguit)
  310. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  311. modet.FontSize = "Size8"
  312. modet.TextScaled = true
  313. modet.TextTransparency = 0
  314. modet.BackgroundTransparency = 1
  315. modet.TextTransparency = 0
  316. modet.TextStrokeTransparency = 0
  317. modet.Font = "Antique"
  318. modet.TextStrokeColor3 = Color3.new(1,0,0)
  319. modet.TextColor3 = Color3.new(0.25,0,0)
  320. modet.Text = "Hopeless Guest"
  321.  
  322.  
  323. function chatfunc(text,color,typet,font,timeex)
  324. local chat = coroutine.wrap(function()
  325. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  326. Character:FindFirstChild("TalkingBillBoard"):destroy()
  327. end
  328. local naeeym2 = Instance.new("BillboardGui",Character)
  329. naeeym2.Size = UDim2.new(0,100,0,40)
  330. naeeym2.StudsOffset = Vector3.new(0,3,0)
  331. naeeym2.Adornee = Character.Head
  332. naeeym2.Name = "TalkingBillBoard"
  333. local tecks2 = Instance.new("TextLabel",naeeym2)
  334. tecks2.BackgroundTransparency = 1
  335. tecks2.BorderSizePixel = 0
  336. tecks2.Text = ""
  337. tecks2.Font = font
  338. tecks2.TextSize = 30
  339. tecks2.TextStrokeTransparency = 0
  340. tecks2.TextColor3 = color
  341. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  342. tecks2.Size = UDim2.new(1,0,0.5,0)
  343. local tecks3 = Instance.new("TextLabel",naeeym2)
  344. tecks3.BackgroundTransparency = 1
  345. tecks3.BorderSizePixel = 0
  346. tecks3.Text = ""
  347. tecks3.Font = font
  348. tecks3.TextSize = 30
  349. tecks3.TextStrokeTransparency = 0
  350. if typet == "Inverted" then
  351. tecks3.TextColor3 = Color3.new(0,0,0)
  352. tecks3.TextStrokeColor3 = color
  353. elseif typet == "Normal" then
  354. tecks3.TextColor3 = color
  355. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  356. end
  357. tecks3.Size = UDim2.new(1,0,0.5,0)
  358. coroutine.resume(coroutine.create(function()
  359. while true do
  360. swait(1)
  361. if chaosmode == true then
  362. tecks2.TextColor3 = BrickColor.random().Color
  363. tecks3.TextStrokeColor3 = BrickColor.random().Color
  364. end
  365. end
  366. end))
  367. modet.TextTransparency = modet.TextTransparency + 1
  368. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  369. for i = 0, 74*timeex do
  370. swait()
  371. modet.TextTransparency = 1
  372. modet.TextStrokeTransparency = 1
  373. tecks2.Text = text
  374. tecks3.Text = text
  375. end
  376. local randomrot = math.random(1,2)
  377. if randomrot == 1 then
  378. for i = 1, 50 do
  379. swait()
  380. tecks2.Text = text
  381. tecks3.Text = text
  382. modet.TextTransparency = modet.TextTransparency - .02
  383. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  384. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  385. tecks2.TextTransparency = tecks2.TextTransparency + .04
  386. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  387. tecks3.TextTransparency = tecks2.TextTransparency + .04
  388. end
  389. elseif randomrot == 2 then
  390. for i = 1, 50 do
  391. swait()
  392. tecks2.Text = text
  393. tecks3.Text = text
  394. modet.TextTransparency = modet.TextTransparency - .02
  395. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  396. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  397. tecks2.TextTransparency = tecks2.TextTransparency + .04
  398. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  399. tecks3.TextTransparency = tecks2.TextTransparency + .04
  400. end
  401. end
  402. modet.TextTransparency = 0
  403. modet.TextStrokeTransparency = 0
  404. if toggleTag == false then
  405. modet.TextTransparency = 1
  406. modet.TextStrokeTransparency = 1
  407. end
  408. naeeym2:Destroy()
  409. end)
  410. chat()
  411. end
  412.  
  413. function bosschatfunc(text,color,watval)
  414. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  415. coroutine.resume(coroutine.create(function()
  416. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  417. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  418. end
  419. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  420. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  421. scrg.Name = "Dialog"
  422. local txtlb = Instance.new("TextLabel",scrg)
  423. txtlb.Text = ""
  424. txtlb.Font = "Bodoni"
  425. txtlb.TextColor3 = Color3.new(0,0,0)
  426. txtlb.TextStrokeTransparency = 0
  427. txtlb.BackgroundTransparency = 0.75
  428. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  429. txtlb.TextStrokeColor3 = color
  430. txtlb.TextScaled = true
  431. txtlb.Size = UDim2.new(1,0,0.25,0)
  432. txtlb.TextXAlignment = "Left"
  433. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  434. local txtlb2 = Instance.new("TextLabel",scrg)
  435. txtlb2.Text = plr.Name.." The Guest:"
  436. txtlb2.Font = "Antique"
  437. txtlb2.TextColor3 = Color3.new(0,0,0)
  438. txtlb2.TextStrokeTransparency = 0
  439. txtlb2.BackgroundTransparency = 1
  440. txtlb2.TextStrokeColor3 = color
  441. txtlb2.TextSize = 40
  442. txtlb2.Size = UDim2.new(1,0,0.25,0)
  443. txtlb2.TextXAlignment = "Left"
  444. txtlb2.Position = UDim2.new(0,0,1,0)
  445. local fvalen = 0.55
  446. local fval = -0.49
  447. coroutine.resume(coroutine.create(function()
  448. while true do
  449. swait()
  450. if chaosmode == true then
  451. txtlb.Rotation = math.random(-1,1)
  452. txtlb2.Rotation = math.random(-1,1)
  453. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  454. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  455. txtlb.TextStrokeColor3 = BrickColor.random().Color
  456. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  457. end
  458. end
  459. end))
  460. coroutine.resume(coroutine.create(function()
  461. while true do
  462. swait()
  463. if scrg.Parent ~= nil then
  464. fvalen = fvalen - 0.0001
  465. elseif scrg.Parent == nil then
  466. break
  467. end
  468. end
  469. end))
  470. local flol = 1.75
  471. local flil = 1.6
  472. coroutine.resume(coroutine.create(function()
  473. for i = 0, 9 do
  474. swait()
  475. fval = fval + 0.05
  476. flol = flol - 0.1
  477. flil = flil - 0.1
  478. txtlb.Text = ""
  479. txtlb.Position = UDim2.new(0,0,flol,0)
  480. txtlb2.Position = UDim2.new(0,0,flil,0)
  481. end
  482. txtlb.Text = text
  483. wait(watval)
  484. local valinc = 0
  485. for i = 0, 99 do
  486. swait()
  487. valinc = valinc + 0.0001
  488. flol = flol + valinc
  489. flil = flil + valinc
  490. txtlb.Rotation = txtlb.Rotation + valinc*20
  491. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  492. txtlb.Position = UDim2.new(0,0,flol,0)
  493. txtlb2.Position = UDim2.new(0,0,flil,0)
  494. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  495. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  496. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  497. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  498. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  499. end
  500. scrg:Destroy()
  501. end))
  502. end))
  503. end
  504. end
  505.  
  506.  
  507. local Create = LoadLibrary("RbxUtility").Create
  508.  
  509. CFuncs = {
  510. ["Part"] = {
  511. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  512. local Part = Create("Part"){
  513. Parent = Parent,
  514. Reflectance = Reflectance,
  515. Transparency = Transparency,
  516. CanCollide = false,
  517. Locked = true,
  518. BrickColor = BrickColor.new(tostring(BColor)),
  519. Name = Name,
  520. Size = Size,
  521. Material = Material,
  522. }
  523. RemoveOutlines(Part)
  524. return Part
  525. end;
  526. };
  527.  
  528. ["Mesh"] = {
  529. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  530. local Msh = Create(Mesh){
  531. Parent = Part,
  532. Offset = OffSet,
  533. Scale = Scale,
  534. }
  535. if Mesh == "SpecialMesh" then
  536. Msh.MeshType = MeshType
  537. Msh.MeshId = MeshId
  538. end
  539. return Msh
  540. end;
  541. };
  542.  
  543. ["Mesh"] = {
  544. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  545. local Msh = Create(Mesh){
  546. Parent = Part,
  547. Offset = OffSet,
  548. Scale = Scale,
  549. }
  550. if Mesh == "SpecialMesh" then
  551. Msh.MeshType = MeshType
  552. Msh.MeshId = MeshId
  553. end
  554. return Msh
  555. end;
  556. };
  557.  
  558. ["Weld"] = {
  559. Create = function(Parent, Part0, Part1, C0, C1)
  560. local Weld = Create("Weld"){
  561. Parent = Parent,
  562. Part0 = Part0,
  563. Part1 = Part1,
  564. C0 = C0,
  565. C1 = C1,
  566. }
  567. return Weld
  568. end;
  569. };
  570.  
  571. ["Sound"] = {
  572. Create = function(id, par, vol, pit)
  573. coroutine.resume(coroutine.create(function()
  574. local S = Create("Sound"){
  575. Volume = vol,
  576. Name = "EffectSoundo",
  577. Pitch = pit or 1,
  578. SoundId = id,
  579. Parent = par or workspace,
  580. }
  581. wait()
  582. S:play()
  583. game:GetService("Debris"):AddItem(S, 10)
  584. end))
  585. end;
  586. };
  587.  
  588. ["TimeSound"] = {
  589. Create = function(id, par, vol, pit, timepos)
  590. coroutine.resume(coroutine.create(function()
  591. local S = Create("Sound"){
  592. Volume = vol,
  593. Name = "EffectSoundo",
  594. Pitch = pit or 1,
  595. SoundId = id,
  596. TimePosition = timepos,
  597. Parent = par or workspace,
  598. }
  599. wait()
  600. S:play()
  601. game:GetService("Debris"):AddItem(S, 10)
  602. end))
  603. end;
  604. };
  605. ["EchoSound"] = {
  606. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  607. coroutine.resume(coroutine.create(function()
  608. local Sas = Create("Sound"){
  609. Volume = vol,
  610. Name = "EffectSoundo",
  611. Pitch = pit or 1,
  612. SoundId = id,
  613. TimePosition = timepos,
  614. Parent = par or workspace,
  615. }
  616. local E = Create("EchoSoundEffect"){
  617. Delay = echodelay,
  618. Name = "Echo",
  619. Feedback = fedb,
  620. DryLevel = dryl,
  621. Parent = Sas,
  622. }
  623. wait()
  624. Sas:play()
  625. game:GetService("Debris"):AddItem(Sas, delays)
  626. end))
  627. end;
  628. };
  629.  
  630. ["LongSound"] = {
  631. Create = function(id, par, vol, pit)
  632. coroutine.resume(coroutine.create(function()
  633. local S = Create("Sound"){
  634. Volume = vol,
  635. Pitch = pit or 1,
  636. SoundId = id,
  637. Parent = par or workspace,
  638. }
  639. wait()
  640. S:play()
  641. game:GetService("Debris"):AddItem(S, 60)
  642. end))
  643. end;
  644. };
  645.  
  646. ["ParticleEmitter"] = {
  647. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  648. local fp = Create("ParticleEmitter"){
  649. Parent = Parent,
  650. Color = ColorSequence.new(Color1, Color2),
  651. LightEmission = LightEmission,
  652. Size = Size,
  653. Texture = Texture,
  654. Transparency = Transparency,
  655. ZOffset = ZOffset,
  656. Acceleration = Accel,
  657. Drag = Drag,
  658. LockedToPart = LockedToPart,
  659. VelocityInheritance = VelocityInheritance,
  660. EmissionDirection = EmissionDirection,
  661. Enabled = Enabled,
  662. Lifetime = LifeTime,
  663. Rate = Rate,
  664. Rotation = Rotation,
  665. RotSpeed = RotSpeed,
  666. Speed = Speed,
  667. VelocitySpread = VelocitySpread,
  668. }
  669. return fp
  670. end;
  671. };
  672.  
  673. CreateTemplate = {
  674.  
  675. };
  676. }
  677.  
  678.  
  679.  
  680. New = function(Object, Parent, Name, Data)
  681. local Object = Instance.new(Object)
  682. for Index, Value in pairs(Data or {}) do
  683. Object[Index] = Value
  684. end
  685. Object.Parent = Parent
  686. Object.Name = Name
  687. return Object
  688. end
  689. local halocolor = BrickColor.new("Pastel light blue")
  690. local halocolor2 = BrickColor.new("Cool yellow")
  691. local starcolor = BrickColor.new("Bright yellow")
  692. local lunacolor = BrickColor.new("Navy blue")
  693. local lunacolor2 = BrickColor.new("Bright blue")
  694. local wepcolor = BrickColor.new("Really black")
  695. local maincolor = BrickColor.new("Really black")
  696. local m = Instance.new("Model",char)
  697. local m2 = Instance.new("Model",char)
  698. local m3 = Instance.new("Model",char)
  699. local mw1 = Instance.new("Model",char)
  700. local mw2 = Instance.new("Model",char)
  701.  
  702.  
  703. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  704. local gui = it(GuiType)
  705. gui.Parent = parent
  706. gui.Text = text
  707. gui.BackgroundTransparency = backtrans
  708. gui.BackgroundColor3 = backcol
  709. gui.SizeConstraint = "RelativeXY"
  710. gui.TextXAlignment = "Center"
  711. gui.TextYAlignment = "Center"
  712. gui.Position = pos
  713. gui.Size = size
  714. gui.Font = "SourceSans"
  715. gui.FontSize = "Size14"
  716. gui.TextWrapped = false
  717. gui.TextStrokeTransparency = 0
  718. gui.TextColor = BrickColor.new("White")
  719. return gui
  720. end
  721. --------------------------- GUI STUFF
  722. local basgui = it("GuiMain")
  723. basgui.Parent = plr.PlayerGui
  724. basgui.Name = "VISgui"
  725. local fullscreenz = it("Frame")
  726. fullscreenz.Parent = basgui
  727. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  728. fullscreenz.BackgroundTransparency = 1
  729. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  730. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  731. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  732. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  733. imgl2.BackgroundTransparency = 1
  734. imgl2.BorderSizePixel = 0
  735. imgl2.ImageTransparency = 0.5
  736. imgl2.ImageColor3 = Color3.new(1,0,0)
  737. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  738. imgl2.Size = UDim2.new(0,1000,0,1000)
  739. imgl2.Image = "rbxassetid://2325939897"
  740. local techc = imgl2:Clone()
  741. techc.Parent = fullscreenz
  742. techc.ImageTransparency = 0
  743. techc.Size = UDim2.new(0,900,0,900)
  744. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  745. techc.ImageColor3 = Color3.new(1,0,0)
  746. techc.Image = "rbxassetid://2273224484"
  747. local circl = imgl2:Clone()
  748. circl.Parent = fullscreenz
  749. circl.ImageTransparency = 0
  750. circl.Size = UDim2.new(0,550,0,550)
  751. circl.Position = UDim2.new(0.75,25,0.55,25)
  752. circl.ImageColor3 = Color3.new(0,0,0)
  753. circl.Image = "rbxassetid://2312119891"
  754. local circl2 = imgl2:Clone()
  755. circl2.Parent = fullscreenz
  756. circl2.ImageTransparency = 0
  757. circl2.Size = UDim2.new(0,700,0,700)
  758. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  759. circl2.ImageColor3 = Color3.new(1,0,0)
  760. circl2.Image = "rbxassetid://2312119891"
  761. local imgl2b = imgl2:Clone()
  762. imgl2b.Parent = fullscreenz
  763. imgl2b.ImageTransparency = 0
  764. imgl2b.Size = UDim2.new(0,800,0,800)
  765. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  766. imgl2b.ImageColor3 = Color3.new(0,0,0)
  767. local ned = Instance.new("TextLabel",fullscreenz)
  768. ned.ZIndex = 2
  769. ned.Font = "Arcade"
  770. ned.BackgroundTransparency = 1
  771. ned.BorderSizePixel = 0.65
  772. ned.Size = UDim2.new(0.3,0,0.2,0)
  773. ned.Position = UDim2.new(0.7,0,0.8,0)
  774. ned.TextColor3 = BrickColor.new("Really red").Color
  775. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  776. ned.TextScaled = true
  777. ned.TextStrokeTransparency = 0
  778. ned.Text = "Hopeless Guest"
  779. ned.TextSize = 24
  780. ned.Rotation = 1
  781. ned.TextXAlignment = "Right"
  782. ned.TextYAlignment = "Bottom"
  783.  
  784. local extrawingmod1 = Instance.new("Model",char)
  785. local extrawingmod2 = Instance.new("Model",char)
  786.  
  787. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  788. local p = Instance.new("Part")
  789. p.TopSurface = 0
  790. p.BottomSurface = 0
  791. p.Parent = parent
  792. p.Size = Vector3.new(0.1,0.1,0.1)
  793. p.Transparency = transparency
  794. p.Reflectance = reflectance
  795. p.CanCollide = false
  796. p.Locked = true
  797. p.BrickColor = brickcolor
  798. p.Material = material
  799. return p
  800. end
  801.  
  802. function CreateMesh(parent,meshtype,x1,y1,z1)
  803. local mesh = Instance.new("SpecialMesh",parent)
  804. mesh.MeshType = meshtype
  805. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  806. return mesh
  807. end
  808.  
  809. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  810. local mesh = Instance.new("SpecialMesh",parent)
  811. mesh.MeshType = "FileMesh"
  812. mesh.MeshId = meshid
  813. mesh.Scale = Vector3.new(x1,y1,z1)
  814. return mesh
  815. end
  816.  
  817.  
  818. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  819. local mesh = Instance.new("SpecialMesh",parent)
  820. mesh.MeshType = "FileMesh"
  821. mesh.MeshId = meshid
  822. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  823. mesh.Scale = Vector3.new(x1,y1,z1)
  824. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  825. return mesh
  826. end
  827.  
  828. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  829. local weld = Instance.new("Weld")
  830. weld.Parent = parent
  831. weld.Part0 = part0
  832. weld.Part1 = part1
  833. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  834. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  835. return weld
  836. end
  837.  
  838.  
  839. --------------
  840. --------------
  841. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  842. 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))
  843. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  844. 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))
  845.  
  846. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  847. CreateMesh(handle,"Brick",0,0,0)
  848. 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))
  849. local valuaring = 10
  850. for i = 0, 49 do
  851. valuaring = valuaring + 10
  852. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  853. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  854. 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))
  855. end
  856.  
  857. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0,0,0)
  859. 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))
  860. local valuaring = 10
  861. for i = 0, 49 do
  862. valuaring = valuaring + 10
  863. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  864. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  865. 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))
  866. end
  867.  
  868.  
  869. local handle = CreateParta(m,1,1,"Neon",maincolor)
  870. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  871. 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))
  872.  
  873. --- Left wing.
  874.  
  875. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  876. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  877. 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))
  878.  
  879. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  881. 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))
  882. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  884. 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))
  885. A0 = Instance.new('Attachment',wed)
  886. A0.Position = vt(0,0.25,0.25)
  887. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,3)
  889. 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))
  890. A1 = Instance.new('Attachment',wed)
  891. A1.Position = vt(0,-0.25,-2)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,3,0.5)
  894. 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))
  895.  
  896. tl1 = Instance.new('Trail',wed)
  897. tl1.Attachment0 = A1
  898. tl1.Attachment1 = A0
  899. tl1.Texture = "rbxassetid://2108945559"
  900. tl1.LightEmission = 1
  901. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  902. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  903. tl1.Lifetime = 0.6
  904.  
  905.  
  906. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  907. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  908. 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))
  909.  
  910. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. 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))
  913. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  915. 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))
  916. A0 = Instance.new('Attachment',wed)
  917. A0.Position = vt(0,0.25,0.25)
  918. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,0.5,3)
  920. 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))
  921. A1 = Instance.new('Attachment',wed)
  922. A1.Position = vt(0,-0.25,-2)
  923. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,3,0.5)
  925. 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))
  926.  
  927. tl2 = Instance.new('Trail',wed)
  928. tl2.Attachment0 = A1
  929. tl2.Attachment1 = A0
  930. tl2.Texture = "rbxassetid://2108945559"
  931. tl2.LightEmission = 1
  932. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  933. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  934. tl2.Lifetime = 0.6
  935.  
  936. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  937. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  938. 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))
  939.  
  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,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946. A0 = Instance.new('Attachment',wed)
  947. A0.Position = vt(0,0.25,0.25)
  948. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,3)
  950. 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))
  951. A1 = Instance.new('Attachment',wed)
  952. A1.Position = vt(0,-0.25,-2)
  953. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,3,0.5)
  955. 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))
  956.  
  957. tl3 = Instance.new('Trail',wed)
  958. tl3.Attachment0 = A1
  959. tl3.Attachment1 = A0
  960. tl3.Texture = "rbxassetid://2108945559"
  961. tl3.LightEmission = 1
  962. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  963. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  964. tl3.Lifetime = 0.6
  965.  
  966. tl1.Enabled = false
  967. tl2.Enabled = false
  968. tl3.Enabled = false
  969. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  970. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  971. 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))
  972.  
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. 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))
  976. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,0.5,3)
  981. 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))
  982. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,3,0.5)
  984. 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))
  985.  
  986. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  987. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  988. 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))
  989.  
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  992. 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))
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,0.5,3)
  998. 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))
  999. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1001. 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))
  1002.  
  1003. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1004. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1005. 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))
  1006.  
  1007. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. 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))
  1010. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1015. 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))
  1016. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1018. 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))
  1019.  
  1020. -- Right wing.
  1021.  
  1022. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1023. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1024. 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))
  1025.  
  1026. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1027. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1028. 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))
  1029. A0 = Instance.new('Attachment',wed)
  1030. A0.Position = vt(0,0.25,0.25)
  1031. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1032. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1033. 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))
  1034. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1036. 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))
  1037. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1038. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1039. 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))
  1040. A1 = Instance.new('Attachment',wed)
  1041. A1.Position = vt(0,2,0.25)
  1042.  
  1043. tr1 = Instance.new('Trail',wed)
  1044. tr1.Attachment0 = A1
  1045. tr1.Attachment1 = A0
  1046. tr1.Texture = "rbxassetid://2108945559"
  1047. tr1.LightEmission = 1
  1048. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1049. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1050. tr1.Lifetime = 0.6
  1051.  
  1052. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1053. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1054. 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))
  1055.  
  1056. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1058. 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))
  1059. A0 = Instance.new('Attachment',wed)
  1060. A0.Position = vt(0,0.25,0.25)
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1063. 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))
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1066. 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))
  1067. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1069. 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))
  1070. A1 = Instance.new('Attachment',wed)
  1071. A1.Position = vt(0,2,0.25)
  1072.  
  1073. tr2 = Instance.new('Trail',wed)
  1074. tr2.Attachment0 = A1
  1075. tr2.Attachment1 = A0
  1076. tr2.Texture = "rbxassetid://2108945559"
  1077. tr2.LightEmission = 1
  1078. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1079. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1080. tr2.Lifetime = 0.6
  1081.  
  1082. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1083. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1084. 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))
  1085.  
  1086. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1087. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1088. 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))
  1089. A0 = Instance.new('Attachment',wed)
  1090. A0.Position = vt(0,0.25,0.25)
  1091. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. 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))
  1094. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1096. 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))
  1097. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1099. 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))
  1100. A1 = Instance.new('Attachment',wed)
  1101. A1.Position = vt(0,2,0.25)
  1102.  
  1103. tr3 = Instance.new('Trail',wed)
  1104. tr3.Attachment0 = A1
  1105. tr3.Attachment1 = A0
  1106. tr3.Texture = "rbxassetid://2108945559"
  1107. tr3.LightEmission = 1
  1108. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1109. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1110. tr3.Lifetime = 0.6
  1111.  
  1112.  
  1113. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1114. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1115. 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))
  1116.  
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1119. 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))
  1120. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1121. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1125. 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))
  1126. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1127. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1128. 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))
  1129.  
  1130. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1131. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1132. 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))
  1133.  
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1136. 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))
  1137. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1139. 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))
  1140. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1142. 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))
  1143. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1144. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1145. 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))
  1146.  
  1147. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1148. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1149. 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))
  1150.  
  1151. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1152. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1153. 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))
  1154. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1155. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1156. 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))
  1157. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1159. 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))
  1160. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1162. 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))
  1163.  
  1164. --HERES THE RING
  1165.  
  1166.  
  1167. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1168. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1169. 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))
  1170. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1171. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1172. 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))
  1173. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1174. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1175. 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))
  1176.  
  1177.  
  1178. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1179. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1180. 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))
  1181.  
  1182. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1183. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1184. 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))
  1185.  
  1186.  
  1187.  
  1188. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1189. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1190. 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))
  1191.  
  1192. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1193. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1194. 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))
  1195.  
  1196. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1197. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1198. 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))
  1199.  
  1200. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1201. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1202. 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))
  1203. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1204. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1205. 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))]]--
  1206.  
  1207. --- second ring
  1208.  
  1209.  
  1210. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1211. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1212. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1213.  
  1214. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1215. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1216. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1217.  
  1218.  
  1219.  
  1220. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1221. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1222. 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))
  1223.  
  1224. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1225. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1226. 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))
  1227.  
  1228. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1229. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1230. 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))
  1231.  
  1232. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1233. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1234. 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))
  1235. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1236. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1237. 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))
  1238.  
  1239.  
  1240.  
  1241. for i, v in pairs(m:GetChildren()) do
  1242. if v:IsA("Part") then
  1243. v.BrickColor = BrickColor.new("Really black")
  1244. v.Material = "Glass"
  1245. end
  1246. end
  1247. for i, v in pairs(m2:GetChildren()) do
  1248. if v:IsA("Part") then
  1249. v.BrickColor = BrickColor.new("Crimson")
  1250. v.Material = "Granite"
  1251. end
  1252. end
  1253. for i, v in pairs(m3:GetChildren()) do
  1254. if v:IsA("Part") then
  1255. v.BrickColor = BrickColor.new("Really red")
  1256. v.Material = "Neon"
  1257. end
  1258. end
  1259. for i, v in pairs(mw2:GetChildren()) do
  1260. if v:IsA("Part") then
  1261. v.BrickColor = BrickColor.new("Really red")
  1262. v.Material = "Neon"
  1263. end
  1264. end
  1265. for i, v in pairs(mw1:GetChildren()) do
  1266. if v:IsA("Part") then
  1267. v.Transparency = 1
  1268. v.BrickColor = BrickColor.new("Really red")
  1269. v.Material = "Neon"
  1270. end
  1271. end
  1272. for i, v in pairs(extrawingmod1:GetChildren()) do
  1273. if v:IsA("Part") then
  1274. v.Transparency = 1
  1275. v.BrickColor = BrickColor.new("White")
  1276. v.Material = "Neon"
  1277. end
  1278. end
  1279. for i, v in pairs(extrawingmod2:GetChildren()) do
  1280. if v:IsA("Part") then
  1281. v.Transparency = 1
  1282. v.BrickColor = BrickColor.new("White")
  1283. v.Material = "Neon"
  1284. end
  1285. end
  1286. local MAINRUINCOLOR = BrickColor.new("Really red")
  1287. ------
  1288.  
  1289.  
  1290. function RemoveOutlines(part)
  1291. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1292. end
  1293. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1294. local Part = Create("Part")({
  1295. Parent = Parent,
  1296. Reflectance = Reflectance,
  1297. Transparency = Transparency,
  1298. CanCollide = false,
  1299. Locked = true,
  1300. BrickColor = BrickColor.new(tostring(BColor)),
  1301. Name = Name,
  1302. Size = Size,
  1303. Material = Material
  1304. })
  1305. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1306. RemoveOutlines(Part)
  1307. return Part
  1308. end
  1309. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1310. local Msh = Create(Mesh)({
  1311. Parent = Part,
  1312. Offset = OffSet,
  1313. Scale = Scale
  1314. })
  1315. if Mesh == "SpecialMesh" then
  1316. Msh.MeshType = MeshType
  1317. Msh.MeshId = MeshId
  1318. end
  1319. return Msh
  1320. end
  1321. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1322. local Weld = Create("Weld")({
  1323. Parent = Parent,
  1324. Part0 = Part0,
  1325. Part1 = Part1,
  1326. C0 = C0,
  1327. C1 = C1
  1328. })
  1329. return Weld
  1330. end
  1331.  
  1332. Player = plr
  1333. Character=Player.Character
  1334. PlayerGui=Player.PlayerGui
  1335. Backpack=Player.Backpack
  1336. Torso=Character.Torso
  1337. Head=Character.Head
  1338. Humanoid=Character.Humanoid
  1339. m=Instance.new('Model',Character)
  1340. LeftArm=Character["Left Arm"]
  1341. LeftLeg=Character["Left Leg"]
  1342. RightArm=Character["Right Arm"]
  1343. RightLeg=Character["Right Leg"]
  1344. LS=Torso["Left Shoulder"]
  1345. LH=Torso["Left Hip"]
  1346. RS=Torso["Right Shoulder"]
  1347. RH=Torso["Right Hip"]
  1348. Face = Head.face
  1349. Neck=Torso.Neck
  1350. it=Instance.new
  1351. attacktype=1
  1352. vt=Vector3.new
  1353. cf=CFrame.new
  1354. euler=CFrame.fromEulerAnglesXYZ
  1355. angles=CFrame.Angles
  1356. cloaked=false
  1357. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1358. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1359. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1360. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1361. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1362. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1363. RootPart=Character.HumanoidRootPart
  1364. RootJoint=RootPart.RootJoint
  1365. RootCF=euler(-1.57,0,3.14)
  1366. attack = false
  1367. attackdebounce = false
  1368. deb=false
  1369. equipped=true
  1370. hand=false
  1371. combo=0
  1372. mana=0
  1373. trispeed=.2
  1374. attackmode='none'
  1375. local idle=0
  1376. local Anim="Idle"
  1377. local Effects={}
  1378. local gun=false
  1379. local shoot=false
  1380. local sine = 0
  1381. local change = 1
  1382.  
  1383. function RecolorTextAndRename(name,col1,col2,font)
  1384. modet.TextStrokeColor3 = col2
  1385. modet.TextColor3 = col1
  1386. modet.Font = font
  1387. modet.Text = name
  1388. techc.ImageColor3 = col2
  1389. circl.ImageColor3 = col2
  1390. circl2.ImageColor3 = col1
  1391. imgl2.ImageColor3 = col1
  1392. imgl2b.ImageColor3 = col2
  1393. ned.Text = name
  1394. ned.TextColor3 = col1
  1395. ned.TextStrokeColor3 = col2
  1396. end
  1397. --save shoulders
  1398. RSH, LSH=nil, nil
  1399. --welds
  1400. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1401. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1402. LH=Torso["Left Hip"]
  1403. RH=Torso["Right Hip"]
  1404. TorsoColor=Torso.BrickColor
  1405. function NoOutline(Part)
  1406. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1407. end
  1408. ch=Character
  1409. RSH=ch.Torso["Right Shoulder"]
  1410. LSH=ch.Torso["Left Shoulder"]
  1411. --
  1412. RSH.Parent=nil
  1413. LSH.Parent=nil
  1414. --
  1415. RW.Name="Right Shoulder"
  1416. RW.Part0=ch.Torso
  1417. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1418. RW.C1=cf(0, 0.5, 0)
  1419. RW.Part1=ch["Right Arm"]
  1420. RW.Parent=ch.Torso
  1421. --
  1422. LW.Name="Left Shoulder"
  1423. LW.Part0=ch.Torso
  1424. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1425. LW.C1=cf(0, 0.5, 0)
  1426. LW.Part1=ch["Left Arm"]
  1427. LW.Parent=ch.Torso
  1428.  
  1429. local Stats=Instance.new("BoolValue")
  1430. Stats.Name="Stats"
  1431. Stats.Parent=Character
  1432. local Atk=Instance.new("NumberValue")
  1433. Atk.Name="Damage"
  1434. Atk.Parent=Stats
  1435. Atk.Value=1
  1436. local Def=Instance.new("NumberValue")
  1437. Def.Name="Defense"
  1438. Def.Parent=Stats
  1439. Def.Value=1
  1440. local Speed=Instance.new("NumberValue")
  1441. Speed.Name="Speed"
  1442. Speed.Parent=Stats
  1443. Speed.Value=1
  1444. local Mvmt=Instance.new("NumberValue")
  1445. Mvmt.Name="Movement"
  1446. Mvmt.Parent=Stats
  1447. Mvmt.Value=1
  1448.  
  1449. local donum=0
  1450. local ast = {744586075,385254610}
  1451.  
  1452. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1453. local fp=it("Part")
  1454. fp.formFactor=formfactor
  1455. fp.Parent=parent
  1456. fp.Reflectance=reflectance
  1457. fp.Transparency=transparency
  1458. fp.CanCollide=false
  1459. fp.Locked=true
  1460. fp.BrickColor=brickcolor
  1461. fp.Name=name
  1462. fp.Size=size
  1463. fp.Position=Torso.Position
  1464. NoOutline(fp)
  1465. fp.Material="SmoothPlastic"
  1466. fp:BreakJoints()
  1467. return fp
  1468. end
  1469.  
  1470. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1471. local mesh=it(Mesh)
  1472. mesh.Parent=part
  1473. if Mesh=="SpecialMesh" then
  1474. mesh.MeshType=meshtype
  1475. if meshid~="nil" then
  1476. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1477. end
  1478. end
  1479. mesh.Offset=offset
  1480. mesh.Scale=scale
  1481. return mesh
  1482. end
  1483.  
  1484. function weld(parent,part0,part1,c0)
  1485. local weld=it("Weld")
  1486. weld.Parent=parent
  1487. weld.Part0=part0
  1488. weld.Part1=part1
  1489. weld.C0=c0
  1490. return weld
  1491. end
  1492.  
  1493. local Color1=Torso.BrickColor
  1494.  
  1495. local bodvel=Instance.new("BodyVelocity")
  1496. local bg=Instance.new("BodyGyro")
  1497.  
  1498. --------- SazEreno's Artificial HB --------------
  1499. ArtificialHB = Instance.new("BindableEvent", script)
  1500. ArtificialHB.Name = "ArtificialHB"
  1501.  
  1502. script:WaitForChild("ArtificialHB")
  1503. Frame_Speed = 1 / 60
  1504. frame = Frame_Speed
  1505. tf = 0
  1506. allowframeloss = false
  1507. tossremainder = false
  1508. lastframe = tick()
  1509. script.ArtificialHB:Fire()
  1510.  
  1511. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1512. tf = tf + s
  1513. if tf >= frame then
  1514. if allowframeloss then
  1515. script.ArtificialHB:Fire()
  1516. lastframe = tick()
  1517. else
  1518. for i = 1, math.floor(tf / frame) do
  1519. script.ArtificialHB:Fire()
  1520. end
  1521. lastframe = tick()
  1522. end
  1523. if tossremainder then
  1524. tf = 0
  1525. else
  1526. tf = tf - frame * math.floor(tf / frame)
  1527. end
  1528. end
  1529. end)
  1530.  
  1531. ------------------
  1532. function swait(num)
  1533. if num == 0 or num == nil then
  1534. ArtificialHB.Event:wait()
  1535. else
  1536. for i = 1, num do
  1537. ArtificialHB.Event:wait()
  1538. end
  1539. end
  1540. end
  1541. -------- RAINBOW LEAVE IT TO ME
  1542. local r = 255
  1543. local g = 0
  1544. local b = 0
  1545. coroutine.resume(coroutine.create(function()
  1546. while wait() do
  1547. for i = 0, 254/5 do
  1548. swait()
  1549. g = g + 5
  1550. end
  1551. for i = 0, 254/5 do
  1552. swait()
  1553. r = r - 5
  1554. end
  1555. for i = 0, 254/5 do
  1556. swait()
  1557. b = b + 5
  1558. end
  1559. for i = 0, 254/5 do
  1560. swait()
  1561. g = g - 5
  1562. end
  1563. for i = 0, 254/5 do
  1564. swait()
  1565. r = r + 5
  1566. end
  1567. for i = 0, 254/5 do
  1568. swait()
  1569. b = b - 5
  1570. end
  1571. end
  1572. end))
  1573.  
  1574.  
  1575. so = function(id,par,vol,pit)
  1576. coroutine.resume(coroutine.create(function()
  1577. local sou = Instance.new("Sound",par or workspace)
  1578. sou.Volume=vol
  1579. sou.Pitch=pit or 1
  1580. sou.SoundId=id
  1581. swait()
  1582. sou:play()
  1583. game:GetService("Debris"):AddItem(sou,6)
  1584. end))
  1585. end
  1586.  
  1587. function clerp(a,b,t)
  1588. local qa = {QuaternionFromCFrame(a)}
  1589. local qb = {QuaternionFromCFrame(b)}
  1590. local ax, ay, az = a.x, a.y, a.z
  1591. local bx, by, bz = b.x, b.y, b.z
  1592. local _t = 1-t
  1593. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1594. end
  1595.  
  1596. function QuaternionFromCFrame(cf)
  1597. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1598. local trace = m00 + m11 + m22
  1599. if trace > 0 then
  1600. local s = math.sqrt(1 + trace)
  1601. local recip = 0.5/s
  1602. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1603. else
  1604. local i = 0
  1605. if m11 > m00 then
  1606. i = 1
  1607. end
  1608. if m22 > (i == 0 and m00 or m11) then
  1609. i = 2
  1610. end
  1611. if i == 0 then
  1612. local s = math.sqrt(m00-m11-m22+1)
  1613. local recip = 0.5/s
  1614. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1615. elseif i == 1 then
  1616. local s = math.sqrt(m11-m22-m00+1)
  1617. local recip = 0.5/s
  1618. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1619. elseif i == 2 then
  1620. local s = math.sqrt(m22-m00-m11+1)
  1621. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1622. end
  1623. end
  1624. end
  1625.  
  1626. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1627. local xs, ys, zs = x + x, y + y, z + z
  1628. local wx, wy, wz = w*xs, w*ys, w*zs
  1629. local xx = x*xs
  1630. local xy = x*ys
  1631. local xz = x*zs
  1632. local yy = y*ys
  1633. local yz = y*zs
  1634. local zz = z*zs
  1635. 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))
  1636. end
  1637.  
  1638. function QuaternionSlerp(a, b, t)
  1639. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1640. local startInterp, finishInterp;
  1641. if cosTheta >= 0.0001 then
  1642. if (1 - cosTheta) > 0.0001 then
  1643. local theta = math.acos(cosTheta)
  1644. local invSinTheta = 1/math.sin(theta)
  1645. startInterp = math.sin((1-t)*theta)*invSinTheta
  1646. finishInterp = math.sin(t*theta)*invSinTheta
  1647. else
  1648. startInterp = 1-t
  1649. finishInterp = t
  1650. end
  1651. else
  1652. if (1+cosTheta) > 0.0001 then
  1653. local theta = math.acos(-cosTheta)
  1654. local invSinTheta = 1/math.sin(theta)
  1655. startInterp = math.sin((t-1)*theta)*invSinTheta
  1656. finishInterp = math.sin(t*theta)*invSinTheta
  1657. else
  1658. startInterp = t-1
  1659. finishInterp = t
  1660. end
  1661. end
  1662. 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
  1663. end
  1664.  
  1665. local function CFrameFromTopBack(at, top, back)
  1666. local right = top:Cross(back)
  1667. return CFrame.new(at.x, at.y, at.z,
  1668. right.x, top.x, back.x,
  1669. right.y, top.y, back.y,
  1670. right.z, top.z, back.z)
  1671. end
  1672.  
  1673. function Triangle(a, b, c)
  1674. local edg1 = (c-a):Dot((b-a).unit)
  1675. local edg2 = (a-b):Dot((c-b).unit)
  1676. local edg3 = (b-c):Dot((a-c).unit)
  1677. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1678. a, b, c = a, b, c
  1679. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1680. a, b, c = b, c, a
  1681. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1682. a, b, c = c, a, b
  1683. else
  1684. assert(false, "unreachable")
  1685. end
  1686.  
  1687. local len1 = (c-a):Dot((b-a).unit)
  1688. local len2 = (b-a).magnitude - len1
  1689. local width = (a + (b-a).unit*len1 - c).magnitude
  1690.  
  1691. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1692.  
  1693. local list = {}
  1694.  
  1695. if len1 > 0.01 then
  1696. local w1 = Instance.new('WedgePart', m)
  1697. game:GetService("Debris"):AddItem(w1,5)
  1698. w1.Material = "SmoothPlastic"
  1699. w1.FormFactor = 'Custom'
  1700. w1.BrickColor = BrickColor.new("Really red")
  1701. w1.Transparency = 0
  1702. w1.Reflectance = 0
  1703. w1.Material = "SmoothPlastic"
  1704. w1.CanCollide = false
  1705. local l1 = Instance.new("PointLight",w1)
  1706. l1.Color = Color3.new(170,0,0)
  1707. NoOutline(w1)
  1708. local sz = Vector3.new(0.2, width, len1)
  1709. w1.Size = sz
  1710. local sp = Instance.new("SpecialMesh",w1)
  1711. sp.MeshType = "Wedge"
  1712. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1713. w1:BreakJoints()
  1714. w1.Anchored = true
  1715. w1.Parent = workspace
  1716. w1.Transparency = 0.7
  1717. table.insert(Effects,{w1,"Disappear",.01})
  1718. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1719. table.insert(list,w1)
  1720. end
  1721.  
  1722. if len2 > 0.01 then
  1723. local w2 = Instance.new('WedgePart', m)
  1724. game:GetService("Debris"):AddItem(w2,5)
  1725. w2.Material = "SmoothPlastic"
  1726. w2.FormFactor = 'Custom'
  1727. w2.BrickColor = BrickColor.new("Really red")
  1728. w2.Transparency = 0
  1729. w2.Reflectance = 0
  1730. w2.Material = "SmoothPlastic"
  1731. w2.CanCollide = false
  1732. local l2 = Instance.new("PointLight",w2)
  1733. l2.Color = Color3.new(170,0,0)
  1734. NoOutline(w2)
  1735. local sz = Vector3.new(0.2, width, len2)
  1736. w2.Size = sz
  1737. local sp = Instance.new("SpecialMesh",w2)
  1738. sp.MeshType = "Wedge"
  1739. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1740. w2:BreakJoints()
  1741. w2.Anchored = true
  1742. w2.Parent = workspace
  1743. w2.Transparency = 0.7
  1744. table.insert(Effects,{w2,"Disappear",.01})
  1745. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1746. table.insert(list,w2)
  1747. end
  1748. return unpack(list)
  1749. end
  1750.  
  1751.  
  1752. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1753. if hit.Parent == nil then
  1754. return
  1755. end
  1756. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1757. for _, v in pairs(hit.Parent:children()) do
  1758. if v:IsA("Humanoid") then
  1759. h = v
  1760. end
  1761. end
  1762. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1763. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1764. return
  1765. end
  1766. local c = Create("ObjectValue")({
  1767. Name = "creator",
  1768. Value = game:GetService("Players").GodzPlaysRB,
  1769. Parent = h
  1770. })
  1771. game:GetService("Debris"):AddItem(c, 0.5)
  1772. if HitSound ~= nil and HitPitch ~= nil then
  1773. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1774. end
  1775. local Damage = math.random(minim, maxim)
  1776. local blocked = false
  1777. local block = hit.Parent:findFirstChild("Block")
  1778. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1779. blocked = true
  1780. block.Value = block.Value - 1
  1781. print(block.Value)
  1782. end
  1783. if blocked == false then
  1784. HitHealth = h.Health
  1785. h.MaxHealth = 100
  1786. h.Health = h.Health - Damage
  1787. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1788. print("gained kill")
  1789. dmg(h.Parent)
  1790. end
  1791. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1792. else
  1793. h.Health = h.Health - Damage / 2
  1794. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1795. end
  1796. if Type == "Knockdown" then
  1797. local hum = hit.Parent.Humanoid
  1798. hum.PlatformStand = true
  1799. coroutine.resume(coroutine.create(function(HHumanoid)
  1800. swait(1)
  1801. HHumanoid.PlatformStand = false
  1802. end), hum)
  1803. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1804. local bodvol = Create("BodyVelocity")({
  1805. velocity = angle * knockback,
  1806. P = 5000,
  1807. maxForce = Vector3.new(8000, 8000, 8000),
  1808. Parent = hit
  1809. })
  1810. local rl = Create("BodyAngularVelocity")({
  1811. P = 3000,
  1812. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1813. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1814. Parent = hit
  1815. })
  1816. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1817. game:GetService("Debris"):AddItem(rl, 0.5)
  1818. elseif Type == "Normal" then
  1819. local vp = Create("BodyVelocity")({
  1820. P = 500,
  1821. maxForce = Vector3.new(math.huge, 0, math.huge),
  1822. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1823. })
  1824. if knockback > 0 then
  1825. vp.Parent = hit.Parent.Head
  1826. end
  1827. game:GetService("Debris"):AddItem(vp, 0.5)
  1828. elseif Type == "Up" then
  1829. local bodyVelocity = Create("BodyVelocity")({
  1830. velocity = Vector3.new(0, 20, 0),
  1831. P = 5000,
  1832. maxForce = Vector3.new(8000, 8000, 8000),
  1833. Parent = hit
  1834. })
  1835. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1836. local bodyVelocity = Create("BodyVelocity")({
  1837. velocity = Vector3.new(0, 20, 0),
  1838. P = 5000,
  1839. maxForce = Vector3.new(8000, 8000, 8000),
  1840. Parent = hit
  1841. })
  1842. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1843. elseif Type == "Leech" then
  1844. local hum = hit.Parent.Humanoid
  1845. if hum ~= nil then
  1846. for i = 0, 2 do
  1847. 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)
  1848. end
  1849. Humanoid.Health = Humanoid.Health + 10
  1850. end
  1851. elseif Type == "UpKnock" then
  1852. local hum = hit.Parent.Humanoid
  1853. hum.PlatformStand = true
  1854. if hum ~= nil then
  1855. hitr = true
  1856. end
  1857. coroutine.resume(coroutine.create(function(HHumanoid)
  1858. swait(5)
  1859. HHumanoid.PlatformStand = false
  1860. hitr = false
  1861. end), hum)
  1862. local bodyVelocity = Create("BodyVelocity")({
  1863. velocity = Vector3.new(0, 20, 0),
  1864. P = 5000,
  1865. maxForce = Vector3.new(8000, 8000, 8000),
  1866. Parent = hit
  1867. })
  1868. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1869. local bodyVelocity = Create("BodyVelocity")({
  1870. velocity = Vector3.new(0, 20, 0),
  1871. P = 5000,
  1872. maxForce = Vector3.new(8000, 8000, 8000),
  1873. Parent = hit
  1874. })
  1875. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1876. elseif Type == "Snare" then
  1877. local bp = Create("BodyPosition")({
  1878. P = 2000,
  1879. D = 100,
  1880. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1881. position = hit.Parent.Torso.Position,
  1882. Parent = hit.Parent.Torso
  1883. })
  1884. game:GetService("Debris"):AddItem(bp, 1)
  1885. elseif Type == "Slashnare" then
  1886. 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)
  1887. for i = 1, math.random(4, 5) do
  1888. 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)
  1889. end
  1890. local bp = Create("BodyPosition")({
  1891. P = 2000,
  1892. D = 100,
  1893. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1894. position = hit.Parent.Torso.Position,
  1895. Parent = hit.Parent.Torso
  1896. })
  1897. game:GetService("Debris"):AddItem(bp, 1)
  1898. elseif Type == "Spike" then
  1899. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1900. local bp = Create("BodyPosition")({
  1901. P = 2000,
  1902. D = 100,
  1903. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1904. position = hit.Parent.Torso.Position,
  1905. Parent = hit.Parent.Torso
  1906. })
  1907. game:GetService("Debris"):AddItem(bp, 1)
  1908. elseif Type == "Freeze" then
  1909. local BodPos = Create("BodyPosition")({
  1910. P = 50000,
  1911. D = 1000,
  1912. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1913. position = hit.Parent.Torso.Position,
  1914. Parent = hit.Parent.Torso
  1915. })
  1916. local BodGy = Create("BodyGyro")({
  1917. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1918. P = 20000,
  1919. Parent = hit.Parent.Torso,
  1920. cframe = hit.Parent.Torso.CFrame
  1921. })
  1922. hit.Parent.Torso.Anchored = true
  1923. coroutine.resume(coroutine.create(function(Part)
  1924. swait(1.5)
  1925. Part.Anchored = false
  1926. end), hit.Parent.Torso)
  1927. game:GetService("Debris"):AddItem(BodPos, 3)
  1928. game:GetService("Debris"):AddItem(BodGy, 3)
  1929. end
  1930. local debounce = Create("BoolValue")({
  1931. Name = "DebounceHit",
  1932. Parent = hit.Parent,
  1933. Value = true
  1934. })
  1935. game:GetService("Debris"):AddItem(debounce, Delay)
  1936. c = Instance.new("ObjectValue")
  1937. c.Name = "creator"
  1938. c.Value = Player
  1939. c.Parent = h
  1940. game:GetService("Debris"):AddItem(c, 0.5)
  1941. end
  1942. end
  1943. function ShowDamage(Pos, Text, Time, Color)
  1944. local Rate = 0.03333333333333333
  1945. local Pos = Pos or Vector3.new(0, 0, 0)
  1946. local Text = Text or ""
  1947. local Time = Time or 2
  1948. local Color = Color or Color3.new(1, 0, 1)
  1949. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1950. EffectPart.Anchored = true
  1951. local BillboardGui = Create("BillboardGui")({
  1952. Size = UDim2.new(3, 0, 3, 0),
  1953. Adornee = EffectPart,
  1954. Parent = EffectPart
  1955. })
  1956. local TextLabel = Create("TextLabel")({
  1957. BackgroundTransparency = 1,
  1958. Size = UDim2.new(1, 0, 1, 0),
  1959. Text = Text,
  1960. TextColor3 = Color,
  1961. TextScaled = true,
  1962. Font = Enum.Font.ArialBold,
  1963. Parent = BillboardGui
  1964. })
  1965. game.Debris:AddItem(EffectPart, Time + 0.1)
  1966. EffectPart.Parent = game:GetService("Workspace")
  1967. delay(0, function()
  1968. local Frames = Time / Rate
  1969. for Frame = 1, Frames do
  1970. wait(Rate)
  1971. local Percent = Frame / Frames
  1972. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1973. TextLabel.TextTransparency = Percent
  1974. end
  1975. if EffectPart and EffectPart.Parent then
  1976. EffectPart:Destroy()
  1977. end
  1978. end)
  1979. end
  1980. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1981. for _, c in pairs(workspace:children()) do
  1982. local hum = c:findFirstChildOfClass("Humanoid")
  1983. if hum ~= nil then
  1984. local head = c:findFirstChild("Head")
  1985. if head ~= nil then
  1986. local targ = head.Position - Part.Position
  1987. local mag = targ.magnitude
  1988. if magni >= mag and c.Name ~= Player.Name then
  1989. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1990. end
  1991. end
  1992. end
  1993. end
  1994. end
  1995.  
  1996. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1997. for _, c in pairs(workspace:children()) do
  1998. local hum = c:findFirstChild("Humanoid")
  1999. if hum ~= nil then
  2000. local head = c:findFirstChild("Torso")
  2001. if head ~= nil then
  2002. local targ = head.Position - Part.Position
  2003. local mag = targ.magnitude
  2004. if magni >= mag and c.Name ~= Player.Name then
  2005. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2006. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2007. end
  2008. end
  2009. end
  2010. end
  2011. end
  2012.  
  2013. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2014. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2015. end
  2016.  
  2017. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2018. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2019. prt.Anchored=true
  2020. prt.CFrame=cframe
  2021. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2022. --http://www.roblox.com/asset/?id=4770560
  2023. game:GetService("Debris"):AddItem(prt,2)
  2024. CF=prt.CFrame
  2025. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2026. for i=0,1,0.2 do
  2027. wait()
  2028. Part.CFrame=CF*cf(0,0,-0.4)
  2029. end
  2030. for i=0,1,delay do
  2031. wait()
  2032. --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)
  2033. Mesh.Scale=Mesh.Scale
  2034. end
  2035. for i=0,1,0.1 do
  2036. wait()
  2037. Part.Transparency=i
  2038. end
  2039. Part.Parent=nil
  2040. end),prt,msh,CF)
  2041. end
  2042.  
  2043. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2044. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2045. prt.Anchored=true
  2046. prt.Material = "Neon"
  2047. prt.CFrame=cframe
  2048. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2049. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2050. game:GetService("Debris"):AddItem(prt,5)
  2051. coroutine.resume(coroutine.create(function(Part,Mesh)
  2052. for i=0,1,delay do
  2053. swait()
  2054. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2055. Part.Transparency=i
  2056. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2057. end
  2058. Part.Parent=nil
  2059. end),prt,msh)
  2060. end
  2061.  
  2062. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2063. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2064. prt.Anchored=true
  2065. prt.Material = "Neon"
  2066. prt.CFrame=cframe
  2067. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2068. game:GetService("Debris"):AddItem(prt,5)
  2069. coroutine.resume(coroutine.create(function(Part,Mesh)
  2070. local rtype = rottype
  2071. for i=0,1,delay do
  2072. swait()
  2073. if rtype == 1 then
  2074. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2075. elseif rtype == 2 then
  2076. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2077. end
  2078. Part.Transparency=i
  2079. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2080. end
  2081. Part.Parent=nil
  2082. end),prt,msh)
  2083. end
  2084.  
  2085. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2086. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2087. prt.Anchored=true
  2088. prt.CFrame=cframe
  2089. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2090. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2091. game:GetService("Debris"):AddItem(prt,5)
  2092. coroutine.resume(coroutine.create(function(Part,Mesh)
  2093. for i=0,1,delay do
  2094. wait()
  2095. Part.Transparency=i
  2096. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2097. end
  2098. Part.Parent=nil
  2099. end),prt,msh)
  2100. end
  2101.  
  2102. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2103. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2104. prt.Anchored=true
  2105. prt.Material = "Neon"
  2106. prt.CFrame=cframe
  2107. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2108. game:GetService("Debris"):AddItem(prt,5)
  2109. coroutine.resume(coroutine.create(function(Part,Mesh)
  2110. local rtype = rottype
  2111. for i=0,1,delay do
  2112. swait()
  2113. if rtype == 1 then
  2114. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2115. elseif rtype == 2 then
  2116. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2117. end
  2118. Part.Transparency=i
  2119. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2120. end
  2121. Part.Parent=nil
  2122. end),prt,msh)
  2123. end
  2124.  
  2125. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2126. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2127. prt.Anchored=true
  2128. prt.Material = "Neon"
  2129. prt.CFrame=cframe
  2130. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2131. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2132. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  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. dec.Transparency=i
  2144. dec2.Transparency=i
  2145. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2146. end
  2147. Part.Parent=nil
  2148. end),prt,msh)
  2149. end
  2150.  
  2151. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2152. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2153. prt.Anchored=true
  2154. prt.Material = "Neon"
  2155. prt.CFrame=cframe
  2156. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2157. game:GetService("Debris"):AddItem(prt,5)
  2158. coroutine.resume(coroutine.create(function(Part,Mesh)
  2159. local rtype = rottype
  2160. for i=0,1,delay do
  2161. swait()
  2162. if rtype == 1 then
  2163. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2164. elseif rtype == 2 then
  2165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2166. end
  2167. prt.Transparency=i
  2168. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2169. end
  2170. Part.Parent=nil
  2171. end),prt,msh)
  2172. end
  2173.  
  2174. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2175. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2176. prt.Anchored=true
  2177. prt.Material = "Neon"
  2178. prt.CFrame=cframe
  2179. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2180. game:GetService("Debris"):AddItem(prt,5)
  2181. coroutine.resume(coroutine.create(function(Part,Mesh)
  2182. local rtype = rottype
  2183. for i=0,1,delay do
  2184. swait()
  2185. if rtype == 1 then
  2186. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2187. elseif rtype == 2 then
  2188. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2189. end
  2190. prt.Transparency=i
  2191. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2192. end
  2193. Part.Parent=nil
  2194. end),prt,msh)
  2195. end
  2196.  
  2197. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2198. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2199. prt.Anchored=true
  2200. prt.Material = "Neon"
  2201. prt.CFrame=cframe
  2202. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,5)
  2204. coroutine.resume(coroutine.create(function(Part,Mesh)
  2205. local rtype = rottype
  2206. for i=0,1,delay do
  2207. swait()
  2208. if rtype == 1 then
  2209. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2210. elseif rtype == 2 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2212. end
  2213. prt.Transparency=i
  2214. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2215. end
  2216. Part.Parent=nil
  2217. end),prt,msh)
  2218. end
  2219.  
  2220. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2221. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2222. prt.Anchored=true
  2223. prt.Material = "Neon"
  2224. prt.CFrame=cframe
  2225. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2226. game:GetService("Debris"):AddItem(prt,5)
  2227. coroutine.resume(coroutine.create(function(Part,Mesh)
  2228. local rtype = rottype
  2229. for i=0,1,delay do
  2230. swait()
  2231. if rtype == 1 then
  2232. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2233. elseif rtype == 2 then
  2234. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2235. end
  2236. prt.Transparency=i
  2237. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2238. end
  2239. Part.Parent=nil
  2240. end),prt,msh)
  2241. end
  2242.  
  2243. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2244. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2245. prt.Anchored=false
  2246. prt.CFrame=cframe
  2247. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2248. local wld=weld(prt,prt,Parent,cframe)
  2249. game:GetService("Debris"):AddItem(prt,5)
  2250. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2251. for i=0,1,delay do
  2252. wait()
  2253. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2254. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2255. Part.Transparency=i
  2256. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2257. end
  2258. Part.Parent=nil
  2259. end),prt,msh,wld)
  2260. end
  2261.  
  2262. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2263. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2264. prt.Anchored=false
  2265. prt.CFrame=cframe
  2266. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2267. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2268. game:GetService("Debris"):AddItem(prt,5)
  2269. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2270. for i=0,1,delay do
  2271. wait()
  2272. Weld.C0=euler(i*20,0,0)
  2273. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2274. Part.Transparency=i
  2275. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2276. end
  2277. Part.Parent=nil
  2278. end),prt,msh,wld)
  2279. end
  2280.  
  2281. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2282. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2283. prt.Anchored=true
  2284. prt.CFrame=cframe
  2285. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2286. game:GetService("Debris"):AddItem(prt,2)
  2287. coroutine.resume(coroutine.create(function(Part,Mesh)
  2288. for i=0,1,delay do
  2289. wait()
  2290. Part.CFrame=Part.CFrame
  2291. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2292. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2293. prt2.Anchored=true
  2294. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2295. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2296. game:GetService("Debris"):AddItem(prt2,2)
  2297. coroutine.resume(coroutine.create(function(Part,Mesh)
  2298. for i=0,1,0.1 do
  2299. wait()
  2300. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2301. end
  2302. Part.Parent=nil
  2303. end),prt2,msh2)
  2304. end
  2305. for i=0,1,delay*2 do
  2306. wait()
  2307. Part.CFrame=Part.CFrame
  2308. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2309. end
  2310. Part.Parent=nil
  2311. end),prt,msh)
  2312. end
  2313.  
  2314. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2315. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2316. prt.Anchored=true
  2317. prt.CFrame=cframe
  2318. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2319. game:GetService("Debris"):AddItem(prt,2)
  2320. coroutine.resume(coroutine.create(function(Part,Mesh)
  2321. for i=0,1,delay do
  2322. wait()
  2323. Part.CFrame=Part.CFrame
  2324. Part.Transparency=i
  2325. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2326. end
  2327. Part.Parent=nil
  2328. end),prt,msh)
  2329. end
  2330.  
  2331. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2332. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2333. prt.Anchored=true
  2334. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2335. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2336. game:GetService("Debris"):AddItem(prt,2)
  2337. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2338. CF=Part.CFrame
  2339. Numbb=0
  2340. randnumb=math.random()/10
  2341. rand1=math.random()/10
  2342. for i=0,1,rand1 do
  2343. wait()
  2344. CF=CF*cf(0,math.random()/2,0)
  2345. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2346. Part.CFrame=CF*euler(Numbb,0,0)
  2347. Part.Transparency=i
  2348. Numbb=Numbb+randnumb
  2349. end
  2350. Part.Parent=nil
  2351. end),prt,CF,Numbb,randnumb)
  2352. end
  2353.  
  2354. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2355. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2356. prt.Anchored=true
  2357. prt.CFrame=cframe
  2358. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2359. game:GetService("Debris"):AddItem(prt,5)
  2360. coroutine.resume(coroutine.create(function(Part,Mesh)
  2361. for i=0,1,delay do
  2362. wait()
  2363. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2364. Part.Transparency=i
  2365. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2366. end
  2367. Part.Parent=nil
  2368. end),prt,msh)
  2369. end
  2370.  
  2371. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2372. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2373. prt.Anchored=true
  2374. prt.CFrame=cframe
  2375. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2376. game:GetService("Debris"):AddItem(prt,2)
  2377. coroutine.resume(coroutine.create(function(Part,Mesh)
  2378. for i=0,1,delay do
  2379. wait()
  2380. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2381. Part.Transparency=i
  2382. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2383. end
  2384. Part.Parent=nil
  2385. end),prt,msh)
  2386. end
  2387.  
  2388. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2389. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2390. prt.Anchored=true
  2391. prt.CFrame=cframe*cf(x,y,z)
  2392. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2393. game:GetService("Debris"):AddItem(prt,5)
  2394. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2395. local num=math.random()
  2396. local num2=math.random(-3,2)+math.random()
  2397. local numm=0
  2398. for i=0,1,delay*2 do
  2399. swait()
  2400. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2401. Part.Transparency=i
  2402. numm=numm+0.01
  2403. end
  2404. Part.Parent=nil
  2405. Mesh.Parent=nil
  2406. end),prt,msh,x,y,z)
  2407. end
  2408.  
  2409. function dmgstart(dmg,what)
  2410. hitcon = what.Touched:connect(function(hit)
  2411. local hum = hit.Parent:FindFirstChild("Humanoid")
  2412. if hum and not hum:IsDescendantOf(Character) then
  2413. hum:TakeDamage(dmg)
  2414. end
  2415. end)
  2416. end
  2417.  
  2418. function dmgstop()
  2419. hitcon:disconnect()
  2420. end
  2421.  
  2422. function Cloak()
  2423. Face.Parent=nil
  2424. cloaked=true
  2425. for _,v in pairs(Torso.Parent:children()) do
  2426. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2427. coroutine.resume(coroutine.create(function()
  2428. for i=0,1,0.2 do
  2429. wait()
  2430. v.Transparency=i
  2431. end
  2432. v.Transparency=1
  2433. end))
  2434. end
  2435. if v.className=="Hat" then
  2436. hatp=v.Handle
  2437. coroutine.resume(coroutine.create(function(derp)
  2438. for i=0,1,0.2 do
  2439. wait()
  2440. derp.Transparency=i
  2441. end
  2442. derp.Transparency=1
  2443. end),hatp)
  2444. end
  2445. end
  2446. for _,v in pairs(m:children()) do
  2447. if v.className=="Part" then
  2448. coroutine.resume(coroutine.create(function()
  2449. for i=0,1,0.2 do
  2450. wait()
  2451. v.Transparency=i
  2452. end
  2453. v.Transparency=1
  2454. end))
  2455. end
  2456. end
  2457. end
  2458.  
  2459. function UnCloak()
  2460. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2461. Face.Parent=Head
  2462. cloaked=false
  2463. for _,v in pairs(Torso.Parent:children()) do
  2464. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2465. coroutine.resume(coroutine.create(function()
  2466. for i=0,1,0.1 do
  2467. wait()
  2468. v.Transparency=v.Transparency-0.1
  2469. end
  2470. v.Transparency=0
  2471. end))
  2472. end
  2473. if v.className=="Hat" then
  2474. hatp=v.Handle
  2475. coroutine.resume(coroutine.create(function(derp)
  2476. for i=0,1,0.1 do
  2477. wait()
  2478. derp.Transparency=derp.Transparency-0.1
  2479. end
  2480. derp.Transparency=0
  2481. end),hatp)
  2482. end
  2483. end
  2484. for _,v in pairs(m:children()) do
  2485. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2486. coroutine.resume(coroutine.create(function()
  2487. for i=0,1,0.1 do
  2488. wait()
  2489. v.Transparency=v.Transparency-0.1
  2490. end
  2491. v.Transparency=0
  2492. end))
  2493. v.Transparency=0
  2494. end
  2495. end
  2496. end
  2497.  
  2498. local origcolor = BrickColor.new("Pastel light blue")
  2499. ---- This section of explosions.
  2500.  
  2501. ----
  2502.  
  2503.  
  2504. function ring(type,pos,scale,value)
  2505. local type = type
  2506. local rng = Instance.new("Part", char)
  2507. rng.Anchored = true
  2508. rng.BrickColor = origcolor
  2509. rng.CanCollide = false
  2510. rng.FormFactor = 3
  2511. rng.Name = "Ring"
  2512. rng.Size = Vector3.new(1, 1, 1)
  2513. rng.Transparency = 0
  2514. rng.TopSurface = 0
  2515. rng.BottomSurface = 0
  2516. rng.CFrame = pos
  2517. local rngm = Instance.new("SpecialMesh", rng)
  2518. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2519. rngm.Scale = scale
  2520. local scaler2 = 1
  2521. if type == "Add" then
  2522. scaler2 = 1*value
  2523. elseif type == "Divide" then
  2524. scaler2 = 1/value
  2525. end
  2526. coroutine.resume(coroutine.create(function()
  2527. for i = 0,10,0.1 do
  2528. swait()
  2529. if type == "Add" then
  2530. scaler2 = scaler2 - 0.01*value
  2531. elseif type == "Divide" then
  2532. scaler2 = scaler2 - 0.01/value
  2533. end
  2534. rng.Transparency = rng.Transparency + 0.01
  2535. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2536. end
  2537. rng:Destroy()
  2538. end))
  2539. end
  2540.  
  2541.  
  2542. function wave(type,pos,scale,value)
  2543. local type = type
  2544. local rng = Instance.new("Part", char)
  2545. rng.Anchored = true
  2546. rng.BrickColor = origcolor
  2547. rng.CanCollide = false
  2548. rng.FormFactor = 3
  2549. rng.Name = "Ring"
  2550. rng.Size = Vector3.new(1, 1, 1)
  2551. rng.Transparency = 0
  2552. rng.TopSurface = 0
  2553. rng.BottomSurface = 0
  2554. rng.CFrame = pos
  2555. local rngm = Instance.new("SpecialMesh", rng)
  2556. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2557. rngm.Scale = scale
  2558. local scaler2 = 1
  2559. if type == "Add" then
  2560. scaler2 = 1*value
  2561. elseif type == "Divide" then
  2562. scaler2 = 1/value
  2563. end
  2564. coroutine.resume(coroutine.create(function()
  2565. for i = 0,10,0.1 do
  2566. swait()
  2567. if type == "Add" then
  2568. scaler2 = scaler2 - 0.01*value
  2569. elseif type == "Divide" then
  2570. scaler2 = scaler2 - 0.01/value
  2571. end
  2572. rng.Transparency = rng.Transparency + 0.01
  2573. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2574. end
  2575. rng:Destroy()
  2576. end))
  2577. end
  2578.  
  2579. function wind(type,pos,scale,value,speed)
  2580. local type = type
  2581. local rng = Instance.new("Part", char)
  2582. rng.Anchored = true
  2583. rng.BrickColor = origcolor
  2584. rng.CanCollide = false
  2585. rng.FormFactor = 3
  2586. rng.Name = "Ring"
  2587. rng.Size = Vector3.new(1, 1, 1)
  2588. rng.Transparency = 0
  2589. rng.TopSurface = 0
  2590. rng.BottomSurface = 0
  2591. rng.CFrame = pos
  2592. local rngm = Instance.new("SpecialMesh", rng)
  2593. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2594. rngm.Scale = scale
  2595. local scaler2 = 1
  2596. if type == "Add" then
  2597. scaler2 = 1*value
  2598. elseif type == "Divide" then
  2599. scaler2 = 1/value
  2600. end
  2601. coroutine.resume(coroutine.create(function()
  2602. for i = 0,10,0.1 do
  2603. swait()
  2604. if type == "Add" then
  2605. scaler2 = scaler2 - 0.01*value
  2606. elseif type == "Divide" then
  2607. scaler2 = scaler2 - 0.01/value
  2608. end
  2609. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2610. rng.Transparency = rng.Transparency + 0.01
  2611. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2612. end
  2613. rng:Destroy()
  2614. end))
  2615. end
  2616.  
  2617. function groundwind(type,pos,scale,value,speed)
  2618. local type = type
  2619. local rng = Instance.new("Part", char)
  2620. rng.Anchored = true
  2621. rng.BrickColor = origcolor
  2622. rng.CanCollide = false
  2623. rng.FormFactor = 3
  2624. rng.Name = "Ring"
  2625. rng.Size = Vector3.new(1, 1, 1)
  2626. rng.Transparency = 0
  2627. rng.TopSurface = 0
  2628. rng.BottomSurface = 0
  2629. rng.CFrame = pos
  2630. local rngm = Instance.new("SpecialMesh", rng)
  2631. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2632. rngm.Scale = scale
  2633. local scaler2 = 1
  2634. if type == "Add" then
  2635. scaler2 = 1*value
  2636. elseif type == "Divide" then
  2637. scaler2 = 1/value
  2638. end
  2639. coroutine.resume(coroutine.create(function()
  2640. for i = 0,10,0.1 do
  2641. swait()
  2642. if type == "Add" then
  2643. scaler2 = scaler2 - 0.01*value
  2644. elseif type == "Divide" then
  2645. scaler2 = scaler2 - 0.01/value
  2646. end
  2647. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2648. rng.Transparency = rng.Transparency + 0.01
  2649. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2650. end
  2651. rng:Destroy()
  2652. end))
  2653. end
  2654.  
  2655. function CameraManager()
  2656. if TwoD and not CamInterrupt then
  2657. if Humanoid.Health > 0 then
  2658. Camera.CameraSubject = Humanoid
  2659. Camera.CameraType = "Scriptable"
  2660. Humanoid.AutoRotate = false
  2661. if Booleans.GyroUse then
  2662. Directer.MaxTorque = Vec3(0, huge, 0)
  2663. else
  2664. Directer.MaxTorque = Vec3(0, 0, 0)
  2665. end
  2666. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2667. if Booleans.CamFollow then
  2668. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2669. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2670. else
  2671. CPart.Position = RootPart.Position
  2672. end
  2673. else
  2674. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2675. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2676. end
  2677. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2678. else
  2679. Camera.CameraSubject = Humanoid
  2680. Camera.CameraType = "Custom"
  2681. Controller.Disabled = false
  2682. end
  2683. end
  2684. end
  2685.  
  2686. function ring(type,pos,scale,value)
  2687. local type = type
  2688. local rng = Instance.new("Part", char)
  2689. rng.Anchored = true
  2690. rng.BrickColor = origcolor
  2691. rng.CanCollide = false
  2692. rng.FormFactor = 3
  2693. rng.Name = "Ring"
  2694. rng.Size = Vector3.new(1, 1, 1)
  2695. rng.Transparency = 0
  2696. rng.TopSurface = 0
  2697. rng.BottomSurface = 0
  2698. rng.CFrame = pos
  2699. local rngm = Instance.new("SpecialMesh", rng)
  2700. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2701. rngm.Scale = scale
  2702. local scaler2 = 1
  2703. if type == "Add" then
  2704. scaler2 = 1*value
  2705. elseif type == "Divide" then
  2706. scaler2 = 1/value
  2707. end
  2708. coroutine.resume(coroutine.create(function()
  2709. for i = 0,10,0.1 do
  2710. swait()
  2711. if type == "Add" then
  2712. scaler2 = scaler2 - 0.01*value
  2713. elseif type == "Divide" then
  2714. scaler2 = scaler2 - 0.01/value
  2715. end
  2716. rng.Transparency = rng.Transparency + 0.01
  2717. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2718. end
  2719. rng:Destroy()
  2720. end))
  2721. end
  2722.  
  2723.  
  2724. function wave(type,pos,scale,value)
  2725. local type = type
  2726. local rng = Instance.new("Part", char)
  2727. rng.Anchored = true
  2728. rng.BrickColor = origcolor
  2729. rng.CanCollide = false
  2730. rng.FormFactor = 3
  2731. rng.Name = "Ring"
  2732. rng.Size = Vector3.new(1, 1, 1)
  2733. rng.Transparency = 0
  2734. rng.TopSurface = 0
  2735. rng.BottomSurface = 0
  2736. rng.CFrame = pos
  2737. local rngm = Instance.new("SpecialMesh", rng)
  2738. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2739. rngm.Scale = scale
  2740. local scaler2 = 1
  2741. if type == "Add" then
  2742. scaler2 = 1*value
  2743. elseif type == "Divide" then
  2744. scaler2 = 1/value
  2745. end
  2746. coroutine.resume(coroutine.create(function()
  2747. for i = 0,10,0.1 do
  2748. swait()
  2749. if type == "Add" then
  2750. scaler2 = scaler2 - 0.01*value
  2751. elseif type == "Divide" then
  2752. scaler2 = scaler2 - 0.01/value
  2753. end
  2754. rng.Transparency = rng.Transparency + 0.01
  2755. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2756. end
  2757. rng:Destroy()
  2758. end))
  2759. end
  2760.  
  2761. function sphere(bonuspeed,type,pos,scale,value,color)
  2762. local type = type
  2763. local rng = Instance.new("Part", char)
  2764. rng.Anchored = true
  2765. if ModeOfGlitch ~= 9 then
  2766. rng.BrickColor = color
  2767. elseif ModeOfGlitch == 9 then
  2768. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2769. end
  2770. rng.CanCollide = false
  2771. rng.FormFactor = 3
  2772. rng.Name = "Ring"
  2773. rng.Material = "Neon"
  2774. rng.Size = Vector3.new(1, 1, 1)
  2775. rng.Transparency = 0
  2776. rng.TopSurface = 0
  2777. rng.BottomSurface = 0
  2778. rng.CFrame = pos
  2779. local rngm = Instance.new("SpecialMesh", rng)
  2780. rngm.MeshType = "Sphere"
  2781. rngm.Scale = scale
  2782. if rainbowmode == true then
  2783. rng.Color = Color3.new(r/255,g/255,b/255)
  2784. end
  2785. if ModeOfGlitch == 9 then
  2786. coroutine.resume(coroutine.create(function()
  2787. while true do
  2788. swait()
  2789. if rng.Parent ~= nil then
  2790. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2791. else
  2792. break
  2793. end
  2794. end
  2795. end))
  2796. end
  2797. local scaler2 = 1
  2798. if type == "Add" then
  2799. scaler2 = 1*value
  2800. elseif type == "Divide" then
  2801. scaler2 = 1/value
  2802. end
  2803. coroutine.resume(coroutine.create(function()
  2804. for i = 0,10/bonuspeed,0.1 do
  2805. swait()
  2806. if rainbowmode == true then
  2807. rng.Color = Color3.new(r/255,g/255,b/255)
  2808. end
  2809. if type == "Add" then
  2810. scaler2 = scaler2 - 0.01*value/bonuspeed
  2811. elseif type == "Divide" then
  2812. scaler2 = scaler2 - 0.01/value*bonuspeed
  2813. end
  2814. if chaosmode == true then
  2815. rng.BrickColor = BrickColor.random()
  2816. end
  2817. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2818. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2819. end
  2820. rng:Destroy()
  2821. end))
  2822. end
  2823.  
  2824. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2825. local type = type
  2826. local rng = Instance.new("Part", char)
  2827. rng.Anchored = true
  2828. if ModeOfGlitch ~= 9 then
  2829. rng.BrickColor = color
  2830. elseif ModeOfGlitch == 9 then
  2831. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2832. end
  2833. rng.CanCollide = false
  2834. rng.FormFactor = 3
  2835. rng.Name = "Ring"
  2836. rng.Material = "Neon"
  2837. rng.Size = Vector3.new(1, 1, 1)
  2838. rng.Transparency = 0
  2839. rng.TopSurface = 0
  2840. rng.BottomSurface = 0
  2841. rng.CFrame = pos
  2842. local rngm = Instance.new("SpecialMesh", rng)
  2843. rngm.MeshType = "Sphere"
  2844. rngm.Scale = scale
  2845. local scaler2 = 1
  2846. local scaler2b = 1
  2847. local scaler2c = 1
  2848. if type == "Add" then
  2849. scaler2 = 1*value
  2850. scaler2b = 1*value2
  2851. scaler2c = 1*value3
  2852. elseif type == "Divide" then
  2853. scaler2 = 1/value
  2854. scaler2b = 1/value2
  2855. scaler2c = 1/value3
  2856. end
  2857. if ModeOfGlitch == 9 then
  2858. coroutine.resume(coroutine.create(function()
  2859. while true do
  2860. swait()
  2861. if rng.Parent ~= nil then
  2862. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2863. else
  2864. break
  2865. end
  2866. end
  2867. end))
  2868. end
  2869. coroutine.resume(coroutine.create(function()
  2870. for i = 0,10/bonuspeed,0.1 do
  2871. swait()
  2872. if type == "Add" then
  2873. scaler2 = scaler2 - 0.01*value/bonuspeed
  2874. scaler2b = scaler2b - 0.01*value/bonuspeed
  2875. scaler2c = scaler2c - 0.01*value/bonuspeed
  2876. elseif type == "Divide" then
  2877. scaler2 = scaler2 - 0.01/value*bonuspeed
  2878. scaler2b = scaler2b - 0.01/value*bonuspeed
  2879. scaler2c = scaler2c - 0.01/value*bonuspeed
  2880. end
  2881. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2882. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2883. end
  2884. rng:Destroy()
  2885. end))
  2886. end
  2887.  
  2888. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2889. local type = type
  2890. local rotenable = rotatingop
  2891. local rng = Instance.new("Part", char)
  2892. rng.Anchored = true
  2893. rng.BrickColor = color
  2894. rng.CanCollide = false
  2895. rng.FormFactor = 3
  2896. rng.Name = "Ring"
  2897. rng.Material = "Neon"
  2898. rng.Size = Vector3.new(1, 1, 1)
  2899. rng.Transparency = 0
  2900. if typeoftrans == "In" then
  2901. rng.Transparency = 1
  2902. end
  2903. rng.TopSurface = 0
  2904. rng.BottomSurface = 0
  2905. rng.CFrame = pos
  2906. local rngm = Instance.new("SpecialMesh", rng)
  2907. rngm.MeshType = "FileMesh"
  2908. if typeofshape == "Normal" then
  2909. rngm.MeshId = "rbxassetid://662586858"
  2910. elseif typeofshape == "Round" then
  2911. rngm.MeshId = "rbxassetid://662585058"
  2912. end
  2913. rngm.Scale = scale
  2914. local scaler2 = 1/10
  2915. if type == "Add" then
  2916. scaler2 = 1*value/10
  2917. elseif type == "Divide" then
  2918. scaler2 = 1/value/10
  2919. end
  2920. local randomrot = math.random(1,2)
  2921. coroutine.resume(coroutine.create(function()
  2922. for i = 0,10/bonuspeed,0.1 do
  2923. swait()
  2924. if type == "Add" then
  2925. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2926. elseif type == "Divide" then
  2927. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2928. end
  2929. if rotenable == true then
  2930. if randomrot == 1 then
  2931. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2932. elseif randomrot == 2 then
  2933. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2934. end
  2935. end
  2936. if typeoftrans == "Out" then
  2937. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2938. elseif typeoftrans == "In" then
  2939. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2940. end
  2941. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2942. end
  2943. rng:Destroy()
  2944. end))
  2945. end
  2946.  
  2947. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2948. local type = type
  2949. local rng = Instance.new("Part", char)
  2950. rng.Anchored = true
  2951. rng.BrickColor = color
  2952. rng.CanCollide = false
  2953. rng.FormFactor = 3
  2954. rng.Name = "Ring"
  2955. rng.Material = "Neon"
  2956. rng.Size = Vector3.new(1, 1, 1)
  2957. rng.Transparency = 0
  2958. rng.TopSurface = 0
  2959. rng.BottomSurface = 0
  2960. rng.CFrame = pos
  2961. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2962. local rngm = Instance.new("SpecialMesh", rng)
  2963. rngm.MeshType = "Brick"
  2964. rngm.Scale = vt(x1,y1,z1)
  2965. if rainbowmode == true then
  2966. rng.Color = Color3.new(r/255,g/255,b/255)
  2967. end
  2968. local scaler2 = 1
  2969. local speeder = FastSpeed/10
  2970. if type == "Add" then
  2971. scaler2 = 1*value
  2972. elseif type == "Divide" then
  2973. scaler2 = 1/value
  2974. end
  2975. coroutine.resume(coroutine.create(function()
  2976. for i = 0,10/bonuspeed,0.1 do
  2977. swait()
  2978. if rainbowmode == true then
  2979. rng.Color = Color3.new(r/255,g/255,b/255)
  2980. end
  2981. if type == "Add" then
  2982. scaler2 = scaler2 - 0.01*value/bonuspeed
  2983. elseif type == "Divide" then
  2984. scaler2 = scaler2 - 0.01/value*bonuspeed
  2985. end
  2986. if chaosmode == true then
  2987. rng.BrickColor = BrickColor.random()
  2988. end
  2989. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2990. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2991. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2992. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2993. end
  2994. rng:Destroy()
  2995. end))
  2996. end
  2997.  
  2998. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2999. local type = type
  3000. local rng = Instance.new("Part", char)
  3001. rng.Anchored = true
  3002. rng.BrickColor = color
  3003. rng.CanCollide = false
  3004. rng.FormFactor = 3
  3005. rng.Name = "Ring"
  3006. rng.Material = "Neon"
  3007. rng.Size = Vector3.new(1, 1, 1)
  3008. rng.Transparency = 0
  3009. rng.TopSurface = 0
  3010. rng.BottomSurface = 0
  3011. rng.CFrame = pos
  3012. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3013. local rngm = Instance.new("SpecialMesh", rng)
  3014. rngm.MeshType = "Brick"
  3015. rngm.Scale = vt(x1,y1,z1)
  3016. if rainbowmode == true then
  3017. rng.Color = Color3.new(r/255,g/255,b/255)
  3018. end
  3019. local scaler2 = 1
  3020. local speeder = FastSpeed/10
  3021. if type == "Add" then
  3022. scaler2 = 1*value
  3023. elseif type == "Divide" then
  3024. scaler2 = 1/value
  3025. end
  3026. coroutine.resume(coroutine.create(function()
  3027. for i = 0,10/bonuspeed,0.1 do
  3028. swait()
  3029. if rainbowmode == true then
  3030. rng.Color = Color3.new(r/255,g/255,b/255)
  3031. end
  3032. if type == "Add" then
  3033. scaler2 = scaler2 - 0.01*value/bonuspeed
  3034. elseif type == "Divide" then
  3035. scaler2 = scaler2 - 0.01/value*bonuspeed
  3036. end
  3037. if chaosmode == true then
  3038. rng.BrickColor = BrickColor.random()
  3039. end
  3040. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3041. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3042. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3043. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3044. end
  3045. rng:Destroy()
  3046. end))
  3047. end
  3048.  
  3049. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3050. local type = type
  3051. local rng = Instance.new("Part", char)
  3052. rng.Anchored = true
  3053. rng.BrickColor = color
  3054. rng.CanCollide = false
  3055. rng.FormFactor = 3
  3056. rng.Name = "Ring"
  3057. rng.Material = "Neon"
  3058. rng.Size = Vector3.new(1, 1, 1)
  3059. rng.Transparency = 0
  3060. rng.TopSurface = 0
  3061. rng.BottomSurface = 0
  3062. rng.CFrame = pos
  3063. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3064. local rngm = Instance.new("SpecialMesh", rng)
  3065. rngm.MeshType = "Brick"
  3066. rngm.Scale = vt(x1,y1,z1)
  3067. if rainbowmode == true then
  3068. rng.Color = Color3.new(r/255,g/255,b/255)
  3069. end
  3070. local scaler2 = 0
  3071. local speeder = FastSpeed/10
  3072. if type == "Add" then
  3073. scaler2 = 1*value
  3074. elseif type == "Divide" then
  3075. scaler2 = 1/value
  3076. end
  3077. coroutine.resume(coroutine.create(function()
  3078. for i = 0,10/bonuspeed,0.1 do
  3079. swait()
  3080. if rainbowmode == true then
  3081. rng.Color = Color3.new(r/255,g/255,b/255)
  3082. end
  3083. if type == "Add" then
  3084. scaler2 = scaler2 - 0.01*value/bonuspeed
  3085. elseif type == "Divide" then
  3086. scaler2 = scaler2 - 0.01/value*bonuspeed
  3087. end
  3088. if chaosmode == true then
  3089. rng.BrickColor = BrickColor.random()
  3090. end
  3091. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3092. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3093. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3094. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3095. end
  3096. rng:Destroy()
  3097. end))
  3098. end
  3099.  
  3100. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3101. local type = type
  3102. local rng = Instance.new("Part", char)
  3103. rng.Anchored = true
  3104. rng.BrickColor = color
  3105. rng.Color = color3
  3106. rng.CanCollide = false
  3107. rng.FormFactor = 3
  3108. rng.Name = "Ring"
  3109. rng.Material = "Neon"
  3110. rng.Size = Vector3.new(1, 1, 1)
  3111. rng.Transparency = 0
  3112. rng.TopSurface = 0
  3113. rng.BottomSurface = 0
  3114. rng.CFrame = pos
  3115. local rngm = Instance.new("SpecialMesh", rng)
  3116. rngm.MeshType = "Brick"
  3117. rngm.Scale = scale
  3118. local scaler2 = 1
  3119. local scaler2b = 1
  3120. local scaler2c = 1
  3121. if type == "Add" then
  3122. scaler2 = 1*value
  3123. scaler2b = 1*value2
  3124. scaler2c = 1*value3
  3125. elseif type == "Divide" then
  3126. scaler2 = 1/value
  3127. scaler2b = 1/value2
  3128. scaler2c = 1/value3
  3129. end
  3130. coroutine.resume(coroutine.create(function()
  3131. for i = 0,10/bonuspeed,0.1 do
  3132. swait()
  3133. if type == "Add" then
  3134. scaler2 = scaler2 - 0.01*value/bonuspeed
  3135. scaler2b = scaler2b - 0.01*value/bonuspeed
  3136. scaler2c = scaler2c - 0.01*value/bonuspeed
  3137. elseif type == "Divide" then
  3138. scaler2 = scaler2 - 0.01/value*bonuspeed
  3139. scaler2b = scaler2b - 0.01/value*bonuspeed
  3140. scaler2c = scaler2c - 0.01/value*bonuspeed
  3141. end
  3142. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3143. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3144. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3145. end
  3146. rng:Destroy()
  3147. end))
  3148. end
  3149.  
  3150. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3151. local type = type
  3152. local rng = Instance.new("Part", char)
  3153. rng.Anchored = true
  3154. if ModeOfGlitch ~= 9 then
  3155. rng.BrickColor = color
  3156. elseif ModeOfGlitch == 9 then
  3157. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3158. end
  3159. rng.CanCollide = false
  3160. rng.FormFactor = 3
  3161. rng.Name = "Ring"
  3162. rng.Material = "Neon"
  3163. rng.Size = Vector3.new(1, 1, 1)
  3164. rng.Transparency = 0
  3165. rng.TopSurface = 0
  3166. rng.BottomSurface = 0
  3167. rng.CFrame = pos
  3168. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3169. local rngm = Instance.new("SpecialMesh", rng)
  3170. rngm.MeshType = "Sphere"
  3171. rngm.Scale = vt(x1,y1,z1)
  3172. if rainbowmode == true then
  3173. rng.Color = Color3.new(r/255,g/255,b/255)
  3174. end
  3175. if ModeOfGlitch == 9 then
  3176. coroutine.resume(coroutine.create(function()
  3177. while true do
  3178. swait()
  3179. if rng.Parent ~= nil then
  3180. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3181. else
  3182. break
  3183. end
  3184. end
  3185. end))
  3186. end
  3187. local scaler2 = 1
  3188. local speeder = FastSpeed
  3189. if type == "Add" then
  3190. scaler2 = 1*value
  3191. elseif type == "Divide" then
  3192. scaler2 = 1/value
  3193. end
  3194. coroutine.resume(coroutine.create(function()
  3195. for i = 0,10/bonuspeed,0.1 do
  3196. swait()
  3197. if rainbowmode == true then
  3198. rng.Color = Color3.new(r/255,g/255,b/255)
  3199. end
  3200. if type == "Add" then
  3201. scaler2 = scaler2 - 0.01*value/bonuspeed
  3202. elseif type == "Divide" then
  3203. scaler2 = scaler2 - 0.01/value*bonuspeed
  3204. end
  3205. if chaosmode == true then
  3206. rng.BrickColor = BrickColor.random()
  3207. end
  3208. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3209. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3210. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3211. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3212. end
  3213. rng:Destroy()
  3214. end))
  3215. end
  3216.  
  3217.  
  3218. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3219. local type = type
  3220. local rng = Instance.new("Part", char)
  3221. rng.Anchored = true
  3222. if ModeOfGlitch ~= 9 then
  3223. rng.BrickColor = color
  3224. elseif ModeOfGlitch == 9 then
  3225. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3226. end
  3227. rng.CanCollide = false
  3228. rng.FormFactor = 3
  3229. rng.Name = "Ring"
  3230. rng.Material = "Neon"
  3231. rng.Size = Vector3.new(1, 1, 1)
  3232. rng.Transparency = 1
  3233. rng.TopSurface = 0
  3234. rng.BottomSurface = 0
  3235. rng.CFrame = pos
  3236. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3237. local rngm = Instance.new("SpecialMesh", rng)
  3238. rngm.MeshType = "Sphere"
  3239. rngm.Scale = vt(x1,y1,z1)
  3240. if rainbowmode == true then
  3241. rng.Color = Color3.new(r/255,g/255,b/255)
  3242. end
  3243. if ModeOfGlitch == 9 then
  3244. coroutine.resume(coroutine.create(function()
  3245. while true do
  3246. swait()
  3247. if rng.Parent ~= nil then
  3248. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3249. else
  3250. break
  3251. end
  3252. end
  3253. end))
  3254. end
  3255. local scaler2 = 1
  3256. local speeder = FastSpeed
  3257. if type == "Add" then
  3258. scaler2 = 1*value
  3259. elseif type == "Divide" then
  3260. scaler2 = 1/value
  3261. end
  3262. coroutine.resume(coroutine.create(function()
  3263. for i = 0,10/bonuspeed,0.1 do
  3264. swait()
  3265. if rainbowmode == true then
  3266. rng.Color = Color3.new(r/255,g/255,b/255)
  3267. end
  3268. if type == "Add" then
  3269. scaler2 = scaler2 - 0.01*value/bonuspeed
  3270. elseif type == "Divide" then
  3271. scaler2 = scaler2 - 0.01/value*bonuspeed
  3272. end
  3273. if chaosmode == true then
  3274. rng.BrickColor = BrickColor.random()
  3275. end
  3276. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3277. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3278. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3279. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3280. end
  3281. rng:Destroy()
  3282. end))
  3283. end
  3284.  
  3285. function dmg(dude)
  3286. if dude.Name ~= Character then
  3287. local keptcolor = MAINRUINCOLOR
  3288. local bgf = Instance.new("BodyGyro",dude.Head)
  3289. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3290. --[[local val = Instance.new("BoolValue",dude)
  3291. val.Name = "IsHit"]]--
  3292. local ds = coroutine.wrap(function()
  3293. dude:WaitForChild("Head"):BreakJoints()
  3294. for i, v in pairs(dude:GetChildren()) do
  3295. if v:IsA("Part") or v:IsA("MeshPart") then
  3296. v.Name = "DEMINISHED"
  3297. end
  3298. end
  3299. wait(0.5)
  3300. targetted = nil
  3301. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3302. coroutine.resume(coroutine.create(function()
  3303. for i, v in pairs(dude:GetChildren()) do
  3304. if v:IsA("Accessory") then
  3305. v:Destroy()
  3306. end
  3307. if v:IsA("Humanoid") then
  3308. v:Destroy()
  3309. end
  3310. if v:IsA("CharacterMesh") then
  3311. v:Destroy()
  3312. end
  3313. if v:IsA("Model") then
  3314. v:Destroy()
  3315. end
  3316. if v:IsA("Part") or v:IsA("MeshPart") then
  3317. for x, o in pairs(v:GetChildren()) do
  3318. if o:IsA("Decal") then
  3319. o:Destroy()
  3320. end
  3321. end
  3322. coroutine.resume(coroutine.create(function()
  3323. v.Material = "Neon"
  3324. v.CanCollide = false
  3325. v.Anchored = false
  3326. local bld = Instance.new("ParticleEmitter",v)
  3327. bld.LightEmission = 0.75
  3328. bld.Texture = "rbxassetid://363275192" ---284205403
  3329. bld.Color = ColorSequence.new(keptcolor.Color)
  3330. bld.Rate = 500
  3331. bld.Lifetime = NumberRange.new(1)
  3332. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3333. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3334. bld.Speed = NumberRange.new(2,5)
  3335. bld.VelocitySpread = 50000
  3336. bld.Rotation = NumberRange.new(-500,500)
  3337. bld.RotSpeed = NumberRange.new(-500,500)
  3338. local sbs = Instance.new("BodyPosition", v)
  3339. sbs.P = 3000
  3340. sbs.D = 1000
  3341. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3342. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3343. v.Color = keptcolor.Color
  3344. coroutine.resume(coroutine.create(function()
  3345. for i = 0, 49 do
  3346. swait(1)
  3347. v:BreakJoints()
  3348. v.Transparency = v.Transparency + 0.02
  3349. end
  3350. v:BreakJoints()
  3351. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3352. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3353. bld.Speed = NumberRange.new(10,25)
  3354. bld.Drag = 5
  3355. bld.Acceleration = vt(0,2,0)
  3356. wait(0.5)
  3357. bld.Enabled = false
  3358. wait(8)
  3359. v:Destroy()
  3360. dude:Destroy()
  3361. end))
  3362. end))
  3363. end
  3364. end
  3365. end))
  3366. end)
  3367. ds()
  3368. end
  3369. end
  3370.  
  3371.  
  3372. function FindNearestHead(Position, Distance, SinglePlayer)
  3373. if SinglePlayer then
  3374. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3375. end
  3376. local List = {}
  3377. for i, v in pairs(workspace:GetChildren()) do
  3378. if v:IsA("Model") then
  3379. if v:findFirstChild("Head") then
  3380. if v ~= Character then
  3381. if (v.Head.Position - Position).magnitude <= Distance then
  3382. table.insert(List, v)
  3383. end
  3384. end
  3385. end
  3386. end
  3387. end
  3388. return List
  3389. end
  3390.  
  3391. function FaceMouse()
  3392. Cam = workspace.CurrentCamera
  3393. return {
  3394. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3395. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3396. }
  3397. end
  3398.  
  3399. function FaceMouse2()
  3400. Cam = workspace.CurrentCamera
  3401. return {
  3402. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3403. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3404. }
  3405. end
  3406.  
  3407. local ModeOfGlitch = 1
  3408. -- Functions are ready.
  3409. local storehumanoidWS = 16
  3410.  
  3411. function CorruptBlink()
  3412. for i = 0, 14 do
  3413. 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)
  3414. end
  3415. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3416. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3417. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3418. CameraEnshaking(2,10)
  3419. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3420. if v:FindFirstChild('Head') then
  3421. dmg(v)
  3422. end
  3423. end
  3424. for i = 0, 14 do
  3425. 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)
  3426. end
  3427. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3428. end
  3429. function PureBomb()
  3430. attack = true
  3431. hum.WalkSpeed = 0
  3432. local orb = Instance.new("Part", char)
  3433. orb.Anchored = true
  3434. orb.BrickColor = BrickColor.new("Toothpaste")
  3435. orb.CanCollide = false
  3436. orb.FormFactor = 3
  3437. orb.Name = "Ring"
  3438. orb.Material = "Neon"
  3439. orb.Size = Vector3.new(1, 1, 1)
  3440. orb.Transparency = 0
  3441. orb.TopSurface = 0
  3442. orb.BottomSurface = 0
  3443. local orbm = Instance.new("SpecialMesh", orb)
  3444. orbm.MeshType = "Sphere"
  3445. orbm.Name = "SizeMesh"
  3446. orbm.Scale = vt(0,0,0)
  3447. local scaled = 0.1
  3448. local posid = 0
  3449. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3450. for i = 0, 5, 0.1 do
  3451. swait()
  3452. scaled = scaled - 0.001
  3453. posid = posid - scaled
  3454. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3455. local scaled = 0.1
  3456. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3457. 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)
  3458. 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)
  3459. 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)
  3460. 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)
  3461. 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)
  3462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3463. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3464. 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)
  3465. end
  3466. for i = 0, 2, 0.1 do
  3467. swait()
  3468. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3469. 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)
  3470. 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)
  3471. 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)
  3472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3474. 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)
  3475. end
  3476. coroutine.resume(coroutine.create(function()
  3477. orb.Anchored = false
  3478. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3479. local a = Instance.new("Part",workspace)
  3480. a.Name = "Direction"
  3481. a.Anchored = true
  3482. a.BrickColor = bc("Bright red")
  3483. a.Material = "Neon"
  3484. a.Transparency = 1
  3485. a.CanCollide = false
  3486. local ray = Ray.new(
  3487. orb.CFrame.p, -- origin
  3488. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3489. )
  3490. local ignore = orb
  3491. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3492. a.BottomSurface = 10
  3493. a.TopSurface = 10
  3494. local distance = (orb.CFrame.p - position).magnitude
  3495. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3496. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3497. orb.CFrame = a.CFrame
  3498. a:Destroy()
  3499. local bv = Instance.new("BodyVelocity")
  3500. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3501. bv.velocity = orb.CFrame.lookVector*125
  3502. bv.Parent = orb
  3503. local hitted = false
  3504. game:GetService("Debris"):AddItem(orb, 15)
  3505. wait()
  3506. local hit =orb.Touched:connect(function(hit)
  3507. if hitted == false then
  3508. hitted = true
  3509. CameraEnshaking(10,2.5)
  3510. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3511. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3512. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3513. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3514. for i = 0, 49 do
  3515. 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)
  3516. end
  3517. for i = 0, 9 do
  3518. 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)
  3519. 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)
  3520. end
  3521. orb.Anchored = true
  3522. orb.Transparency = 1
  3523. wait(8)
  3524. orb:Destroy()
  3525. end
  3526. end)
  3527. end))
  3528. for i = 0, 1, 0.1 do
  3529. swait()
  3530. 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)
  3531. 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)
  3532. 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)
  3533. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3534. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3535. 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)
  3536. end
  3537. hum.WalkSpeed = storehumanoidWS
  3538. attack = false
  3539. end
  3540.  
  3541. function BanishingOrb()
  3542. attack = true
  3543. hum.WalkSpeed = 0
  3544. local radm = math.random(1,3)
  3545. if radm == 1 then
  3546. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3547. elseif radm == 2 then
  3548. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3549. elseif radm == 3 then
  3550. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3551. end
  3552. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3553. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3554. local orb = Instance.new("Part", char)
  3555. orb.Anchored = true
  3556. orb.BrickColor = BrickColor.new("Lime green")
  3557. orb.CanCollide = false
  3558. orb.FormFactor = 3
  3559. orb.Name = "Ring"
  3560. orb.Material = "Neon"
  3561. orb.Size = Vector3.new(1, 1, 1)
  3562. orb.Transparency = 0
  3563. orb.TopSurface = 0
  3564. orb.BottomSurface = 0
  3565. local orbm = Instance.new("SpecialMesh", orb)
  3566. orbm.MeshType = "Sphere"
  3567. orbm.Name = "SizeMesh"
  3568. orbm.Scale = vt(0,0,0)
  3569. local scaled = 0.1
  3570. local posid = 0
  3571. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3572. for i = 0, 5, 0.1 do
  3573. swait()
  3574. scaled = scaled - 0.001
  3575. posid = posid - scaled
  3576. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3577. local scaled = 0.1
  3578. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3579. 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)
  3580. 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)
  3581. 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)
  3582. 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)
  3583. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3584. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3585. 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)
  3586. end
  3587. for i = 0, 2, 0.1 do
  3588. swait()
  3589. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3590. 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)
  3591. 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)
  3592. 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)
  3593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3594. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3595. 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)
  3596. end
  3597. coroutine.resume(coroutine.create(function()
  3598. orb.Anchored = false
  3599. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3600. local a = Instance.new("Part",workspace)
  3601. a.Name = "Direction"
  3602. a.Anchored = true
  3603. a.BrickColor = bc("Lime green")
  3604. a.Material = "Neon"
  3605. a.Transparency = 1
  3606. a.CanCollide = false
  3607. local ray = Ray.new(
  3608. orb.CFrame.p, -- origin
  3609. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3610. )
  3611. local ignore = orb
  3612. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3613. a.BottomSurface = 10
  3614. a.TopSurface = 10
  3615. local distance = (orb.CFrame.p - position).magnitude
  3616. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3617. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3618. orb.CFrame = a.CFrame
  3619. a:Destroy()
  3620. local bv = Instance.new("BodyVelocity")
  3621. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3622. bv.velocity = orb.CFrame.lookVector*0
  3623. bv.Parent = orb
  3624. local hitted = false
  3625. local rate = 0
  3626. coroutine.resume(coroutine.create(function()
  3627. for i = 0, 24 do
  3628. wait(0.1)
  3629. rate = rate + 0.25
  3630. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3631. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3632. if v:FindFirstChild('Head') then
  3633. dmg(v)
  3634. end
  3635. end
  3636. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3637. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3638. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3639. end
  3640. orb.Anchored = true
  3641. orb.Transparency = 1
  3642. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3643. if v:FindFirstChild('Head') then
  3644. dmg(v)
  3645. end
  3646. end
  3647. local eff = Instance.new("ParticleEmitter",orb)
  3648. eff.Texture = "rbxassetid://296874871"
  3649. eff.LightEmission = 0.95
  3650. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3651. eff.Rate = 1000000000
  3652. eff.Lifetime = NumberRange.new(3)
  3653. 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)})
  3654. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3655. eff.Speed = NumberRange.new(30)
  3656. eff.Acceleration = vt(0,-15,0)
  3657. eff.Rotation = NumberRange.new(-500,500)
  3658. eff.VelocitySpread = 100000
  3659. eff.RotSpeed = NumberRange.new(-500,500)
  3660. coroutine.resume(coroutine.create(function()
  3661. wait(0.6)
  3662. eff.Enabled = false
  3663. end))
  3664. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3665. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3666. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3667. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3668. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3669. game:GetService("Debris"):AddItem(orb, 15)
  3670. end))
  3671. end))
  3672. for i = 0, 1, 0.1 do
  3673. swait()
  3674. 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)
  3675. 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)
  3676. 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)
  3677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3678. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3679. 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)
  3680. end
  3681. hum.WalkSpeed = storehumanoidWS
  3682. attack = false
  3683. end
  3684.  
  3685.  
  3686. function ChaosGroundStrike()
  3687. attack = true
  3688. for i = 0, 2, 0.1 do
  3689. swait()
  3690. 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)
  3691. 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)
  3692. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3693. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3695. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3696. end
  3697. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3698. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3699. CameraEnshaking(4,12)
  3700. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3701. if v:FindFirstChild('Head') then
  3702. dmg(v)
  3703. end
  3704. end
  3705. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3706. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3707. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3708. for i = 0, 2, 0.1 do
  3709. swait()
  3710. 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)
  3711. 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)
  3712. 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)
  3713. 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)
  3714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3718. end
  3719. attack = false
  3720. end
  3721.  
  3722.  
  3723.  
  3724. function Starfall()
  3725. attack = true
  3726. hum.WalkSpeed = 0
  3727. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3728. for i = 0, 5, 0.1 do
  3729. swait()
  3730. 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)
  3731. 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)
  3732. 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)
  3733. 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)
  3734. 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)
  3735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3736. 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)
  3737. 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)
  3738. end
  3739. local Overed = false
  3740. CameraEnshaking(2,20)
  3741. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3742. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3743. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3744. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3745. local orb = Instance.new("Part", char)
  3746. orb.Anchored = true
  3747. orb.BrickColor = BrickColor.new("Toothpaste")
  3748. orb.CanCollide = false
  3749. orb.FormFactor = 3
  3750. orb.Name = "Remenant"
  3751. orb.Material = "Neon"
  3752. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3753. orb.Size = Vector3.new(1, 1, 1)
  3754. orb.Transparency = 1
  3755. orb.TopSurface = 0
  3756. orb.BottomSurface = 0
  3757. hum.WalkSpeed = storehumanoidWS
  3758. coroutine.resume(coroutine.create(function()
  3759. for i = 0, 9 do
  3760. swait(10)
  3761. local lb = Instance.new("Part")
  3762. lb.Color = MAINRUINCOLOR.Color
  3763. lb.CanCollide = false
  3764. lb.Material = "Neon"
  3765. lb.Anchored = true
  3766. lb.TopSurface = 0
  3767. lb.BottomSurface = 0
  3768. lb.Transparency = 0
  3769. lb.Size = vt(1,1,1)
  3770. 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)))
  3771. lb.Anchored = false
  3772. lb.Parent = char
  3773. local thingery = Instance.new("SpecialMesh",lb)
  3774. thingery.MeshType = "Sphere"
  3775. thingery.Scale = vt(20,20,20)
  3776. game:GetService("Debris"):AddItem(lb, 10)
  3777. local bv = Instance.new("BodyVelocity")
  3778. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3779. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3780. bv.Parent = lb
  3781. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3782. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3783. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3784. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3785. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3786. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3787. local hitted = false
  3788. coroutine.resume(coroutine.create(function()
  3789. while true do
  3790. swait(1)
  3791. if lb.Parent ~= nil and hitted == false then
  3792. 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)
  3793. elseif lb.Parent == nil then
  3794. break
  3795. end
  3796. end
  3797. end))
  3798.  
  3799. game:GetService("Debris"):AddItem(a, 0.1)
  3800.  
  3801. coroutine.resume(coroutine.create(function()
  3802. swait(1)
  3803. lb.Touched:connect(function(hit)
  3804. if hitted == false then
  3805. hitted = true
  3806. lb.Transparency = 1
  3807. lb.Anchored = true
  3808. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3809. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3810. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3811. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3812. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3813. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3814. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3815. CameraEnshaking(1,5)
  3816. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3817. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3818. for i = 0, 9 do
  3819. 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)
  3820. end
  3821. for i = 0, 49 do
  3822. swait()
  3823. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3824. 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)
  3825. end
  3826. end
  3827. end)
  3828. end))
  3829. end
  3830. Overed = true
  3831. orb:Destroy()
  3832. end))
  3833.  
  3834. attack = false
  3835. end
  3836.  
  3837. function StarfallEX()
  3838. attack = true
  3839. hum.WalkSpeed = 0
  3840. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3841. for i = 0, 10, 0.1 do
  3842. swait()
  3843. 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)
  3844. 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)
  3845. 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)
  3846. 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)
  3847. 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)
  3848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3849. 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)
  3850. 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)
  3851. end
  3852. local Overed = false
  3853. CameraEnshaking(2,20)
  3854. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3855. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3856. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3857. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3858. local orb = Instance.new("Part", char)
  3859. orb.Anchored = true
  3860. orb.BrickColor = BrickColor.new("Toothpaste")
  3861. orb.CanCollide = false
  3862. orb.FormFactor = 3
  3863. orb.Name = "Remenant"
  3864. orb.Material = "Neon"
  3865. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3866. orb.Size = Vector3.new(1, 1, 1)
  3867. orb.Transparency = 1
  3868. orb.TopSurface = 0
  3869. orb.BottomSurface = 0
  3870. hum.WalkSpeed = storehumanoidWS
  3871. coroutine.resume(coroutine.create(function()
  3872. for i = 0, 4 do
  3873. swait(15)
  3874. local lb = Instance.new("Part")
  3875. lb.Color = MAINRUINCOLOR.Color
  3876. lb.CanCollide = false
  3877. lb.Material = "Neon"
  3878. lb.Anchored = true
  3879. lb.TopSurface = 0
  3880. lb.BottomSurface = 0
  3881. lb.Transparency = 0
  3882. lb.Size = vt(1,1,1)
  3883. 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)))
  3884. lb.Anchored = false
  3885. lb.Parent = char
  3886. local thingery = Instance.new("SpecialMesh",lb)
  3887. thingery.MeshType = "Sphere"
  3888. thingery.Scale = vt(50,50,50)
  3889. game:GetService("Debris"):AddItem(lb, 10)
  3890. local bv = Instance.new("BodyVelocity")
  3891. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3892. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3893. bv.Parent = lb
  3894. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3895. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3896. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3897. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3898. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3899. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3900. local hitted = false
  3901. coroutine.resume(coroutine.create(function()
  3902. while true do
  3903. swait(1)
  3904. if lb.Parent ~= nil and hitted == false then
  3905. 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)
  3906. elseif lb.Parent == nil then
  3907. break
  3908. end
  3909. end
  3910. end))
  3911.  
  3912. game:GetService("Debris"):AddItem(a, 0.1)
  3913.  
  3914. coroutine.resume(coroutine.create(function()
  3915. swait(1)
  3916. lb.Touched:connect(function(hit)
  3917. if hitted == false then
  3918. hitted = true
  3919. lb.Transparency = 1
  3920. lb.Anchored = true
  3921. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3922. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3923. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3924. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3925. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3926. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3927. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3928. CameraEnshaking(1,5)
  3929. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3930. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3931. for i = 0, 9 do
  3932. 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)
  3933. end
  3934. for i = 0, 99 do
  3935. swait()
  3936. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3937. 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)
  3938. end
  3939. end
  3940. end)
  3941. end))
  3942. end
  3943. Overed = true
  3944. orb:Destroy()
  3945. end))
  3946.  
  3947. attack = false
  3948. end
  3949.  
  3950. function DivineBlast()
  3951. attack = true
  3952. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3953. hum.WalkSpeed = 0
  3954. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3955. elocacenter.Anchored = true
  3956. elocacenter.CFrame = sorb.CFrame
  3957. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3958. eloca1.Anchored = true
  3959. eloca1.CFrame = elocacenter.CFrame
  3960. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3961. eloca2.Anchored = true
  3962. eloca2.CFrame = elocacenter.CFrame
  3963. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3964. eloca3.Anchored = true
  3965. eloca3.CFrame = elocacenter.CFrame
  3966. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3967. eloca4.Anchored = true
  3968. eloca4.CFrame = elocacenter.CFrame
  3969. local lookavec = 0
  3970. local speeds = 0
  3971. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3972. for i = 0, 3, 0.1 do
  3973. swait()
  3974. ---
  3975. lookavec = lookavec + 0.1
  3976. speeds = speeds + 10
  3977. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3978. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3979. 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)
  3980.  
  3981. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3982. 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)
  3983.  
  3984. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3985. 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)
  3986.  
  3987. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3988. 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)
  3989. ---
  3990. root.CFrame = FaceMouse()[1]
  3991. 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)
  3992. 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)
  3993. 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)
  3994. 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)
  3995. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3996. 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)
  3997. end
  3998. for i = 0, 3, 0.1 do
  3999. swait()
  4000. ---
  4001. speeds = speeds + 10
  4002. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4003. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4004. 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)
  4005.  
  4006. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4007. 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)
  4008.  
  4009. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4010. 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)
  4011.  
  4012. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4013. 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)
  4014. ---
  4015. root.CFrame = FaceMouse()[1]
  4016. 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)
  4017. 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)
  4018. 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)
  4019. 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)
  4020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4021. 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)
  4022. end
  4023. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4024. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4025. for i = 0, 3, 0.1 do
  4026. swait()
  4027. ---
  4028. speeds = speeds + 10
  4029. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4030. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4031. 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)
  4032.  
  4033. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4034. 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)
  4035.  
  4036. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4037. 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)
  4038.  
  4039. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4040. 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)
  4041. ---
  4042. root.CFrame = FaceMouse()[1]
  4043. 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)
  4044. 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)
  4045. 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)
  4046. 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)
  4047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4048. 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)
  4049. end
  4050. coroutine.resume(coroutine.create(function()
  4051. local a = Instance.new("Part",Character)
  4052. a.Name = "Direction"
  4053. a.Anchored = true
  4054. a.BrickColor = bc("White")
  4055. a.Material = "Neon"
  4056. a.Transparency = 0
  4057. a.Shape = "Cylinder"
  4058. a.CanCollide = false
  4059. local a2 = Instance.new("Part",Character)
  4060. a2.Name = "Direction"
  4061. a2.Anchored = true
  4062. a2.BrickColor = bc("Bright yellow")
  4063. a2.Material = "Neon"
  4064. a2.Transparency = 0
  4065. a2.Shape = "Cylinder"
  4066. a2.CanCollide = false
  4067. local b = Instance.new("Part",Character)
  4068. b.Name = "HitDirect"
  4069. b.Anchored = true
  4070. b.BrickColor = bc("Cool yellow")
  4071. b.Material = "Neon"
  4072. b.Transparency = 1
  4073. b.CanCollide = false
  4074. local ray = Ray.new(
  4075. elocacenter.CFrame.p, -- origin
  4076. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4077. )
  4078. local ignore = Character
  4079. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4080. a.BottomSurface = 10
  4081. a.TopSurface = 10
  4082. a2.BottomSurface = 10
  4083. a2.TopSurface = 10
  4084. local distance = (elocacenter.CFrame.p - position).magnitude
  4085. a.Size = Vector3.new(distance, 1, 1)
  4086. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4087. a2.Size = Vector3.new(distance, 1, 1)
  4088. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4089. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4090. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4091. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4092. game:GetService("Debris"):AddItem(a, 10)
  4093. game:GetService("Debris"):AddItem(a2, 10)
  4094. game:GetService("Debris"):AddItem(b, 10)
  4095. local eff = Instance.new("ParticleEmitter",b)
  4096. eff.Texture = "rbxassetid://2273224484"
  4097. eff.LightEmission = 1
  4098. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4099. eff.Rate = 500000
  4100. eff.Lifetime = NumberRange.new(0.5,2)
  4101. 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)})
  4102. 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)})
  4103. eff.Speed = NumberRange.new(20,250)
  4104. eff.Drag = 5
  4105. eff.Rotation = NumberRange.new(-500,500)
  4106. eff.VelocitySpread = 9000
  4107. eff.RotSpeed = NumberRange.new(-50,50)
  4108. coroutine.resume(coroutine.create(function()
  4109. wait(0.25)
  4110. eff.Enabled = false
  4111. end))
  4112. local msh = Instance.new("SpecialMesh",a)
  4113. msh.MeshType = "Cylinder"
  4114. msh.Scale = vt(1,2,2)
  4115. local msh2 = Instance.new("SpecialMesh",a2)
  4116. msh2.MeshType = "Cylinder"
  4117. msh2.Scale = vt(1,2.5,2.5)
  4118. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4119. coroutine.resume(coroutine.create(function()
  4120. for i = 0,10,0.1 do
  4121. swait()
  4122. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4123. a.Transparency = a.Transparency + 0.025
  4124. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4125. a2.Transparency = a2.Transparency + 0.05
  4126. end
  4127. a:Destroy()
  4128. a2:Destroy()
  4129. end))
  4130. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4131. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4132. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4133. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4134. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4135. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4136. MagniDamage(b, 25, 40,65, 0, "Normal")
  4137. for i = 0, 49 do
  4138. 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)
  4139. 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)
  4140. end
  4141. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4142. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4143. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4144. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4145. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4146. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4147. end))
  4148. game:GetService("Debris"):AddItem(elocacenter, 5)
  4149. hum.WalkSpeed = storehumanoidWS
  4150. attack = false
  4151. end
  4152.  
  4153. function StarDivision()
  4154. attack = true
  4155. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4156. for i = 0, 2, 0.1 do
  4157. swait()
  4158. 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)
  4159. 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)
  4160. 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)
  4161. 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)
  4162. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4163. 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)
  4164. end
  4165. local orb = Instance.new("Part", char)
  4166. orb.BrickColor = MAINRUINCOLOR
  4167. orb.CanCollide = false
  4168. orb.FormFactor = 3
  4169. orb.Name = "Ring"
  4170. orb.Material = "Neon"
  4171. orb.Size = Vector3.new(1, 1, 1)
  4172. orb.Transparency = 0
  4173. orb.TopSurface = 0
  4174. orb.BottomSurface = 0
  4175. local orbm = Instance.new("SpecialMesh", orb)
  4176. orbm.MeshType = "Sphere"
  4177. orbm.Name = "SizeMesh"
  4178. orbm.Scale = vt(2,2,2)
  4179. local a = Instance.new("Part",workspace)
  4180. a.Name = "Direction"
  4181. a.Anchored = true
  4182. a.BrickColor = bc("Bright red")
  4183. a.Material = "Neon"
  4184. a.Transparency = 1
  4185. a.CanCollide = false
  4186. local ray = Ray.new(
  4187. sorb.CFrame.p, -- origin
  4188. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4189. )
  4190. local ignore = sorb
  4191. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4192. a.BottomSurface = 10
  4193. a.TopSurface = 10
  4194. local distance = (sorb.CFrame.p - position).magnitude
  4195. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4196. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4197. orb.CFrame = a.CFrame
  4198. a:Destroy()
  4199. local bv = Instance.new("BodyVelocity")
  4200. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4201. bv.velocity = orb.CFrame.lookVector*100
  4202. bv.Parent = orb
  4203. local hitted = false
  4204. game:GetService("Debris"):AddItem(orb, 10)
  4205. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4206. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4207. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4208. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4209. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4210. coroutine.resume(coroutine.create(function()
  4211. while true do
  4212. swait(1)
  4213. if orb.Parent ~= nil and hitted == false then
  4214. 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)
  4215. elseif orb.Parent == nil then
  4216. break
  4217. end
  4218. end
  4219. end))
  4220. coroutine.resume(coroutine.create(function()
  4221. swait(1)
  4222. orb.Touched:connect(function(hit)
  4223. if hitted == false then
  4224. hitted = true
  4225. game:GetService("Debris"):AddItem(orb, 5)
  4226. orb.Transparency = 1
  4227. orb.Anchored = true
  4228. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4229. elocacenter.Anchored = true
  4230. elocacenter.CFrame = orb.CFrame
  4231. elocacenter.Orientation = vt(0,0,0)
  4232. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4233. eloca1.Anchored = true
  4234. eloca1.CFrame = elocacenter.CFrame
  4235. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4236. eloca2.Anchored = true
  4237. eloca2.CFrame = elocacenter.CFrame
  4238. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4239. eloca3.Anchored = true
  4240. eloca3.CFrame = elocacenter.CFrame
  4241. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4242. eloca4.Anchored = true
  4243. eloca4.CFrame = elocacenter.CFrame
  4244. local lookavec = 0
  4245. local speeds = 0
  4246. CameraEnshaking(1,1)
  4247. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4248. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4249. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4250. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4251. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4252. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4253. for i = 0, 99 do
  4254. swait()
  4255. lookavec = lookavec + 1
  4256. speeds = speeds + 0.1
  4257. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4258. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4259. 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)
  4260.  
  4261. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4262. 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)
  4263.  
  4264. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4265. 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)
  4266.  
  4267. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4268. 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)
  4269. end
  4270.  
  4271. for i = 0, 149 do
  4272. swait()
  4273. speeds = speeds + 0.1
  4274. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4275. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4276. 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)
  4277.  
  4278. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4279. 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)
  4280.  
  4281. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4282. 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)
  4283.  
  4284. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4285. 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)
  4286. end
  4287. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4288. if v:FindFirstChild('Head') then
  4289. dmg(v)
  4290. end
  4291. end
  4292. CameraEnshaking(7,30)
  4293. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4294. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4295. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4296. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4297. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4298. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4299. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4300. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4301. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4302. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4303. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4304. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4305. for i = 0, 24 do
  4306. 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)
  4307. 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)
  4308. 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)
  4309. 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)
  4310. end
  4311. coroutine.resume(coroutine.create(function()
  4312. for i = 0, 499 do
  4313. swait(1)
  4314. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4315. 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)
  4316. end
  4317. elocacenter:Destroy()
  4318. eloca1:Destroy()
  4319. eloca2:Destroy()
  4320. eloca3:Destroy()
  4321. eloca4:Destroy()
  4322. end))
  4323. end
  4324. end)
  4325. end))
  4326. attack = false
  4327. end
  4328.  
  4329.  
  4330. function THE_TRUE_POWER_OF_VIOLENCE()
  4331. attack = true
  4332. hum.WalkSpeed = 0
  4333. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4334. for i = 0, 10, 0.1 do
  4335. swait()
  4336. 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)
  4337. 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)
  4338. 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)
  4339. 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)
  4340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4341. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4342. 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)
  4343. end
  4344. local orb = Instance.new("Part", char)
  4345. orb.BrickColor = MAINRUINCOLOR
  4346. orb.CanCollide = false
  4347. orb.FormFactor = 3
  4348. orb.Name = "Ring"
  4349. orb.Material = "Neon"
  4350. orb.Size = Vector3.new(1, 1, 1)
  4351. orb.Transparency = 0
  4352. orb.TopSurface = 0
  4353. orb.BottomSurface = 0
  4354. orb.CFrame = sorb.CFrame
  4355. local orbm = Instance.new("SpecialMesh", orb)
  4356. orbm.MeshType = "Sphere"
  4357. orbm.Name = "SizeMesh"
  4358. orbm.Scale = vt(0,0,0)
  4359. local sbs = Instance.new("BodyPosition", orb)
  4360. sbs.P = 3000
  4361. sbs.D = 1000
  4362. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4363. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4364. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4365. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4366. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4367. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4368. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4369. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4370. for i = 0, 10, 0.1 do
  4371. swait()
  4372. 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)
  4373. 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)
  4374. 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)
  4375. 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)
  4376. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4377. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4378. 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)
  4379. end
  4380. orb.Anchored = true
  4381. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4382. elocacenter.Anchored = true
  4383. elocacenter.CFrame = orb.CFrame
  4384. elocacenter.Orientation = vt(0,0,0)
  4385. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4386. eloca1.Anchored = true
  4387. eloca1.CFrame = elocacenter.CFrame
  4388. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4389. eloca2.Anchored = true
  4390. eloca2.CFrame = elocacenter.CFrame
  4391. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4392. eloca3.Anchored = true
  4393. eloca3.CFrame = elocacenter.CFrame
  4394. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4395. eloca4.Anchored = true
  4396. eloca4.CFrame = elocacenter.CFrame
  4397. local lookavec = 0
  4398. local speeds = 0
  4399. CameraEnshaking(1,1)
  4400. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4401. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4402. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4403. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4404. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4405. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4406. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4407. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4408. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4409. for i = 0, 99 do
  4410. swait()
  4411. lookavec = lookavec + 2.5
  4412. speeds = speeds + 0.25
  4413. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4414. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4415. 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)
  4416.  
  4417. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4418. 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)
  4419.  
  4420. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4421. 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)
  4422.  
  4423. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4424. 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)
  4425. end
  4426.  
  4427. for i = 0, 149 do
  4428. swait()
  4429. speeds = speeds + 0.25
  4430. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4431. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4432. 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)
  4433.  
  4434. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4435. 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)
  4436.  
  4437. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4438. 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)
  4439.  
  4440. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4441. 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)
  4442. end
  4443. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4444. for i = 0, 99 do
  4445. swait()
  4446. lookavec = lookavec - 2.5
  4447. speeds = speeds + 0.25
  4448. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4449. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4450. 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)
  4451.  
  4452. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4453. 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)
  4454.  
  4455. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4456. 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)
  4457.  
  4458. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4459. 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)
  4460. end
  4461. local scaled = 0.1*75
  4462. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4463. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4464. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4465. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4466. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4467. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4468. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473.  
  4474. for i = 0, 10, 0.1 do
  4475. swait()
  4476. scaled = scaled - 0.001*75
  4477. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4478. 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)
  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. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4487. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4488. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4489. for x = 0, 4 do
  4490. for i = 0, 9 do
  4491. 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)
  4492. end
  4493. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4494. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4495. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4496. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4497. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4498. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4499. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4500. for i = 0, 5, 0.1 do
  4501. swait()
  4502. 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)
  4503. 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)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4509. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4510. end
  4511. end
  4512. local speedearn = 0
  4513. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4514. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4515. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4516. for i = 0, 30, 0.1 do
  4517. swait()
  4518. scaled = scaled - 0.001*75/10
  4519. speedearn = speedearn + 0.5
  4520. for i = 0, 4 do
  4521. 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)
  4522. end
  4523. 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)
  4524. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4525. 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)
  4526. 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)
  4527. 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)
  4528. 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)
  4529. 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)
  4530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4531. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4532. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4533. end
  4534. orb.Transparency = 1
  4535. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4536. if v:FindFirstChild('Head') then
  4537. dmg(v)
  4538. end
  4539. end
  4540. CameraEnshaking(7,30)
  4541. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4542. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4543. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4544. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4545. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4546. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4547. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4548. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4549. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4550. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4551. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4552. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4553. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4554. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4555. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4556. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4557. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4558. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4559. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4560. for i = 0, 99 do
  4561. 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)
  4562. 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)
  4563. end
  4564. for i = 0, 24 do
  4565. 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)
  4566. 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)
  4567. 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)
  4568. 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)
  4569. 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)
  4570. end
  4571. game:GetService("Debris"):AddItem(orb, 10)
  4572. hum.WalkSpeed = storehumanoidWS
  4573. attack = false
  4574. end
  4575.  
  4576.  
  4577. function ViolentRing()
  4578. attack = true
  4579. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4580. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4581. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4582. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4583. for i = 0, 2, 0.1 do
  4584. swait()
  4585. local snap = math.random(1,10)
  4586. if snap == 1 then
  4587. 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)
  4588. end
  4589. 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)
  4590. 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)
  4591. 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)
  4592. 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)
  4593. 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)
  4594. 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)
  4595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4597. 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)
  4598. RootPart.CFrame = FaceMouse()[1]
  4599. end
  4600. local orb = Instance.new("Part", char)
  4601. orb.BrickColor = MAINRUINCOLOR
  4602. orb.CanCollide = false
  4603. orb.FormFactor = 3
  4604. orb.Name = "Ring"
  4605. orb.Material = "Neon"
  4606. orb.Size = Vector3.new(1, 1, 1)
  4607. orb.Transparency = 0
  4608. orb.TopSurface = 0
  4609. orb.BottomSurface = 0
  4610. local orbm = Instance.new("SpecialMesh", orb)
  4611. orbm.MeshType = "Sphere"
  4612. orbm.Name = "SizeMesh"
  4613. orbm.Scale = vt(2,2,2)
  4614. orb.CFrame = mouse.Hit
  4615. local bv = Instance.new("BodyVelocity")
  4616. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4617. bv.velocity = orb.CFrame.lookVector*100
  4618. bv.Parent = orb
  4619. local hitted = false
  4620. coroutine.resume(coroutine.create(function()
  4621. game:GetService("Debris"):AddItem(orb, 5)
  4622. orb.Transparency = 1
  4623. orb.Anchored = true
  4624. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4625. elocacenter.Anchored = true
  4626. elocacenter.CFrame = orb.CFrame
  4627. elocacenter.Orientation = vt(0,0,0)
  4628. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4629. eloca1.Anchored = true
  4630. eloca1.CFrame = elocacenter.CFrame
  4631. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4632. eloca2.Anchored = true
  4633. eloca2.CFrame = elocacenter.CFrame
  4634. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4635. eloca3.Anchored = true
  4636. eloca3.CFrame = elocacenter.CFrame
  4637. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4638. eloca4.Anchored = true
  4639. eloca4.CFrame = elocacenter.CFrame
  4640. local lookavec = 0
  4641. local speeds = 0
  4642. CameraEnshaking(1,1)
  4643. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4644. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4645. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4646. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4647. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4648. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4649. for i = 0, 24 do
  4650. swait()
  4651. lookavec = lookavec + 3.5
  4652. speeds = speeds + 1
  4653. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4654. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4655. 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)
  4656.  
  4657. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4658. 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)
  4659.  
  4660. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4661. 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)
  4662.  
  4663. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4664. 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)
  4665. end
  4666.  
  4667. local risen = 0
  4668. for i = 0, 49 do
  4669. swait()
  4670. risen = risen + 0.05
  4671. speeds = speeds + 0.1
  4672. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4673. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4674. 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)
  4675.  
  4676. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4677. 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)
  4678.  
  4679. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4680. 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)
  4681.  
  4682. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4683. 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)
  4684. end
  4685. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4686. if v:FindFirstChild('Head') then
  4687. dmg(v)
  4688. end
  4689. end
  4690. CameraEnshaking(4,10)
  4691. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4692. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4693. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4694. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4695. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4696. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4697. local eff = Instance.new("ParticleEmitter",elocacenter)
  4698. eff.Texture = "rbxassetid://2273224484"
  4699. eff.LightEmission = 1
  4700. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4701. eff.Rate = 1000000
  4702. eff.Lifetime = NumberRange.new(0.5,2)
  4703. 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)})
  4704. 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)})
  4705. eff.Speed = NumberRange.new(20,250)
  4706. eff.Drag = 5
  4707. eff.Rotation = NumberRange.new(-500,500)
  4708. eff.VelocitySpread = 5000000
  4709. eff.RotSpeed = NumberRange.new(-50,50)
  4710. coroutine.resume(coroutine.create(function()
  4711. wait(1)
  4712. eff.Enabled = false
  4713. end))
  4714. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4715. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4716. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4717. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4718. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4719. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4720. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4721. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4722. for i = 0, 24 do
  4723. 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)
  4724. 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)
  4725. 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)
  4726. 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)
  4727. end
  4728. coroutine.resume(coroutine.create(function()
  4729. wait(10)
  4730. elocacenter:Destroy()
  4731. eloca1:Destroy()
  4732. eloca2:Destroy()
  4733. eloca3:Destroy()
  4734. eloca4:Destroy()
  4735. end))
  4736. end))
  4737. attack = false
  4738. end
  4739.  
  4740. function UniversalCollapse()
  4741. attack = true
  4742. local speedearn = 0
  4743. hum.WalkSpeed = 0
  4744. local sbs = Instance.new("BodyPosition", root)
  4745. sbs.P = 3000
  4746. sbs.D = 1000
  4747. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4748. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4749. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4750. for i = 0, 85, 0.1 do
  4751. swait()
  4752. speedearn = speedearn + 0.1
  4753. 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)
  4754. 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)
  4755. 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)
  4756. 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)
  4757. 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)
  4758. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4759. 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)
  4760. 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)
  4761. 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)
  4762. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4763. 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)
  4764. 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)
  4765. end
  4766. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4767. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4768. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4769. for i = 0, 25, 0.1 do
  4770. swait()
  4771. speedearn = speedearn + 0.1
  4772. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4773. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4774. 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)
  4775. 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)
  4776. 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)
  4777. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4778. 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)
  4779. 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)
  4780. 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)
  4781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4782. 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)
  4783. 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)
  4784. end
  4785. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4786. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4787. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4788. CameraEnshaking(5,50)
  4789. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4790. for i = 0, 2 do
  4791. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4792. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4793. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4794. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4795. end
  4796. for i = 0, 49 do
  4797. 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)
  4798. 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)
  4799. 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)
  4800. 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)
  4801. end
  4802. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4803. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4804. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4805. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4806. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4807. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4808. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4809. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4810. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4811. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4812. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4813. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4814. for i = 0, 99 do
  4815. 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)
  4816. 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)
  4817. end
  4818. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4819. if v:FindFirstChild('Head') then
  4820. dmg(v)
  4821. end
  4822. end
  4823. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4824. sbs:Destroy()
  4825. hum.WalkSpeed = storehumanoidWS
  4826. attack = false
  4827. end
  4828.  
  4829.  
  4830. function ChaosEND()
  4831. attack = true
  4832. local speedearn = 0
  4833. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4834. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4835. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4836. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4837. for i = 0, 15, 0.1 do
  4838. swait()
  4839. speedearn = speedearn + 0.25
  4840. 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)
  4841. 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)
  4842. 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)
  4843. 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)
  4844. 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)
  4845. 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)
  4846. 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)
  4847. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4849. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4850. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4851. end
  4852. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4853. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4854. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4855. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4856. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4857. CameraEnshaking(5,25)
  4858. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4859. if v:FindFirstChild('Head') then
  4860. dmg(v)
  4861. end
  4862. end
  4863. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4864. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4865. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4866. for i = 0, 3, 0.1 do
  4867. swait()
  4868. 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)
  4869. 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)
  4870. 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)
  4871. 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)
  4872. 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)
  4873. 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)
  4874. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4876. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4877. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4878. end
  4879. attack = false
  4880. end
  4881.  
  4882. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4883. local orb = Instance.new("Part", char)
  4884. orb.Anchored = true
  4885. orb.BrickColor = color
  4886. orb.CanCollide = false
  4887. orb.FormFactor = 3
  4888. orb.Name = "Ring"
  4889. orb.Material = "Neon"
  4890. orb.Size = Vector3.new(1, 1, 1)
  4891. orb.Transparency = 0
  4892. orb.TopSurface = 0
  4893. orb.BottomSurface = 0
  4894. local orbm = Instance.new("SpecialMesh", orb)
  4895. orbm.MeshType = "Sphere"
  4896. orb.CFrame = positted
  4897. orbm.Name = "SizeMesh"
  4898. orbm.Scale = vt(1,1,1)
  4899. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4900. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4901. --[[for i = 0, 2 do
  4902. 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)
  4903. end]]--
  4904. coroutine.resume(coroutine.create(function()
  4905. wait(timer)
  4906. CameraEnshaking(3,ShakePower)
  4907. orb.Transparency = 1
  4908. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4909. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4910. --[[for i = 0, 4 do
  4911. 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)
  4912. end]]--
  4913. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4914. wait(3)
  4915. orb:Destroy()
  4916. end))
  4917. end
  4918.  
  4919. function orb_spawn(positted,timer)
  4920. local randomcol = math.random(1,2)
  4921. local orb = Instance.new("Part", char)
  4922. orb.Anchored = true
  4923. if randomcol == 1 then
  4924. orb.BrickColor = BrickColor.new("White")
  4925. elseif randomcol == 2 then
  4926. orb.BrickColor = BrickColor.new("Really black")
  4927. end
  4928. orb.CanCollide = false
  4929. orb.FormFactor = 3
  4930. orb.Name = "Ring"
  4931. orb.Material = "Neon"
  4932. orb.Size = Vector3.new(1, 1, 1)
  4933. orb.Transparency = 0
  4934. orb.TopSurface = 0
  4935. orb.BottomSurface = 0
  4936. local orbm = Instance.new("SpecialMesh", orb)
  4937. orbm.MeshType = "Sphere"
  4938. orb.CFrame = positted
  4939. orbm.Name = "SizeMesh"
  4940. orbm.Scale = vt(1,1,1)
  4941. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4942. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4943. for i = 0, 2 do
  4944. 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)
  4945. end
  4946. coroutine.resume(coroutine.create(function()
  4947. wait(timer)
  4948. CameraEnshaking(3,2)
  4949. orb.Transparency = 1
  4950. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4951. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4952. for i = 0, 4 do
  4953. 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)
  4954. end
  4955. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4956. wait(3)
  4957. orb:Destroy()
  4958. end))
  4959. end
  4960.  
  4961. function scattercorrupt()
  4962. attack = true
  4963. hum.WalkSpeed = 0
  4964. for i = 0, 2, 0.1 do
  4965. swait()
  4966. 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)
  4967. 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)
  4968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4971. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4972. end
  4973. local rot = 0
  4974. local randomrotations = math.random(1,2)
  4975. local lookv = 2.5
  4976. local power = 7
  4977. local radm = math.random(1,3)
  4978. if radm == 1 then
  4979. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4980. elseif radm == 2 then
  4981. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4982. elseif radm == 3 then
  4983. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4984. end
  4985. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4986. for i = 0, 1, 0.1 do
  4987. swait()
  4988. 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)
  4989. 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)
  4990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4994. end
  4995. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4996. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4997. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4998. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4999. for i = 0, 9 do
  5000. 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)
  5001. end
  5002. local hite = Instance.new("Part", char)
  5003. hite.Anchored = true
  5004. hite.CanCollide = false
  5005. hite.FormFactor = 3
  5006. hite.Name = "Ring"
  5007. hite.Material = "Neon"
  5008. hite.Size = Vector3.new(1, 1, 1)
  5009. hite.Transparency = 1
  5010. hite.TopSurface = 0
  5011. hite.BottomSurface = 0
  5012. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5013. local rem = Instance.new("Part", char)
  5014. rem.Anchored = true
  5015. rem.CanCollide = false
  5016. rem.FormFactor = 3
  5017. rem.Name = "Ring"
  5018. rem.Material = "Neon"
  5019. rem.Size = Vector3.new(1, 1, 1)
  5020. rem.Transparency = 1
  5021. rem.TopSurface = 0
  5022. rem.BottomSurface = 0
  5023. rem.CFrame = hite.CFrame
  5024. local rem2 = rem:Clone()
  5025. rem2.Parent = char
  5026. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5027. local rem3 = rem:Clone()
  5028. rem3.Parent = char
  5029. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5030. local rem4 = rem:Clone()
  5031. rem4.Parent = char
  5032. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5033. hite:Destroy()
  5034. coroutine.resume(coroutine.create(function()
  5035. for i = 0, 24 do
  5036. swait(1)
  5037. if randomrotations == 1 then
  5038. rot = rot + 1
  5039. elseif randomrotations == 2 then
  5040. rot = rot - 1
  5041. end
  5042. power = power + 0.5
  5043. lookv = lookv + 7.5
  5044. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5045. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5046. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5047. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5048. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5049. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5050. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5051. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5052. end
  5053. end))
  5054. wait(2)
  5055. hum.WalkSpeed = storehumanoidWS
  5056. attack = false
  5057. end
  5058. function yinyangi()
  5059. attack = true
  5060. for i = 0, 2, 0.1 do
  5061. swait()
  5062. 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)
  5063. 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)
  5064. 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)
  5065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5068. end
  5069. local bv = Instance.new("BodyVelocity")
  5070. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5071. bv.velocity = root.CFrame.lookVector*175
  5072. bv.Parent = root
  5073. for Rotations = 0, 9 do
  5074. for i = 0, 1, 0.5 do
  5075. swait()
  5076. bv.velocity = root.CFrame.lookVector*175
  5077. 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)
  5078. 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)
  5079. 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)
  5080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5081. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5082. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5083. end
  5084. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5085. for i = 0, 1, 0.5 do
  5086. swait()
  5087. bv.velocity = root.CFrame.lookVector*175
  5088. 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)
  5089. 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)
  5090. 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)
  5091. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5092. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5093. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5094. end
  5095. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5096. for i = 0, 1, 0.5 do
  5097. swait()
  5098. bv.velocity = root.CFrame.lookVector*175
  5099. 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)
  5100. 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)
  5101. 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)
  5102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5104. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5105. end
  5106. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5107. for i = 0, 1, 0.5 do
  5108. swait()
  5109. bv.velocity = root.CFrame.lookVector*175
  5110. 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)
  5111. 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)
  5112. 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)
  5113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5116. end
  5117. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5118. end
  5119. bv:Destroy()
  5120. attack = false
  5121. end
  5122.  
  5123. function createBGCircle(size,parent,color)
  5124. local bgui = Instance.new("BillboardGui",parent)
  5125. bgui.Size = UDim2.new(size, 0, size, 0)
  5126. local imgc = Instance.new("ImageLabel",bgui)
  5127. imgc.BackgroundTransparency = 1
  5128. imgc.ImageTransparency = 0
  5129. imgc.Size = UDim2.new(1,0,1,0)
  5130. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5131. imgc.ImageColor3 = color
  5132. return bgui,imgc
  5133. end
  5134.  
  5135. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5136. local bgui,imgc = createBGCircle(size,guipar,color)
  5137. bgui.AlwaysOnTop = true
  5138. imgc.Image = "rbxassetid://" ..img
  5139. local rrot = math.random(1,2)
  5140. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5141. coroutine.resume(coroutine.create(function()
  5142. for i = 0, 24*delay do
  5143. swait()
  5144. if rotationenabled == true then
  5145. if rrot == 1 then
  5146. imgc.Rotation = imgc.Rotation + rotsp
  5147. elseif rrot == 2 then
  5148. imgc.Rotation = imgc.Rotation - rotsp
  5149. end
  5150. end
  5151. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5152. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5153. end
  5154. bgui:Destroy()
  5155. end))
  5156. end
  5157. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5158. for i, v in pairs(mw2:GetChildren()) do
  5159. if v:IsA("Part") then
  5160. v.BrickColor = one
  5161. v.Material = "Neon"
  5162. end
  5163. end
  5164. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5165. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5166. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5167. tr1.Color = ColorSequence.new(one.Color)
  5168. tr2.Color = ColorSequence.new(one.Color)
  5169. tr3.Color = ColorSequence.new(one.Color)
  5170. for i, v in pairs(mw1:GetChildren()) do
  5171. if v:IsA("Part") then
  5172. if secondaryenabled == false then
  5173. v.Transparency = 1
  5174. elseif secondaryenabled == true then
  5175. v.Transparency = 0
  5176. end
  5177. v.BrickColor = two
  5178. v.Material = "Neon"
  5179. end
  5180. end
  5181. if secondaryenabled == false then
  5182. tl1.Enabled = false
  5183. tl2.Enabled = false
  5184. tl3.Enabled = false
  5185. elseif secondaryenabled == true then
  5186. tl1.Enabled = true
  5187. tl2.Enabled = true
  5188. tl3.Enabled = true
  5189. end
  5190. tl1.Color = ColorSequence.new(two.Color)
  5191. tl2.Color = ColorSequence.new(two.Color)
  5192. tl3.Color = ColorSequence.new(two.Color)
  5193. for i, v in pairs(m:GetChildren()) do
  5194. if v:IsA("Part") then
  5195. v.BrickColor = three
  5196. v.Material = "Ice"
  5197. end
  5198. end
  5199. for i, v in pairs(m2:GetChildren()) do
  5200. if v:IsA("Part") then
  5201. v.BrickColor = four
  5202. v.Material = "Ice"
  5203. end
  5204. end
  5205. for i, v in pairs(m3:GetChildren()) do
  5206. if v:IsA("Part") then
  5207. v.BrickColor = five
  5208. v.Material = "Neon"
  5209. end
  5210. end
  5211. for i, v in pairs(extrawingmod1:GetChildren()) do
  5212. if v:IsA("Part") then
  5213. v.Transparency = exonetran
  5214. v.BrickColor = exone
  5215. v.Material = "Neon"
  5216. end
  5217. end
  5218. for i, v in pairs(extrawingmod2:GetChildren()) do
  5219. if v:IsA("Part") then
  5220. v.Transparency = extwotran
  5221. v.BrickColor = extwo
  5222. v.Material = "Neon"
  5223. end
  5224. end
  5225. end
  5226.  
  5227.  
  5228. function normalmog()
  5229. attack = true
  5230. hum.WalkSpeed = 0
  5231. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5232. for i = 0,6,0.1 do
  5233. swait()
  5234. 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)
  5235. 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)
  5236. 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)
  5237. 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)
  5238. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5239. 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)
  5240. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5241. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5242. end
  5243. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5244. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5245. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5246. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5247. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5248. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5249. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5250. rainbowmode = false
  5251. chaosmode = false
  5252. ModeOfGlitch = 1
  5253. storehumanoidWS = 16
  5254. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5255. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5256. CameraEnshaking(5,2.5)
  5257. MAINRUINCOLOR = BrickColor.new("Really red")
  5258. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5259. for i = 0, 49 do
  5260. 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)
  5261. end
  5262. for i = 0, 24 do
  5263. 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)
  5264. 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"))
  5265. end
  5266. for i = 0,3,0.1 do
  5267. 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)
  5268. end
  5269. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5270. for i = 0,2,0.1 do
  5271. swait()
  5272. 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)
  5273. 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)
  5274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5275. 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)
  5276. 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)
  5277. 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)
  5278. end
  5279. hum.WalkSpeed = storehumanoidWS
  5280. attack = false
  5281. end
  5282.  
  5283. function attackone()
  5284. attack = true
  5285. local keptcolor = MAINRUINCOLOR
  5286. for i = 0,1,0.1 do
  5287. swait()
  5288. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5289. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5290. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5291. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5292. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5293. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5294. end
  5295. local distlook = 5
  5296. coroutine.resume(coroutine.create(function()
  5297. for i = 0, 4 do
  5298. swait(2)
  5299. CameraEnshaking(2,3)
  5300. local hite = Instance.new("Part", char)
  5301. hite.Anchored = true
  5302. hite.CanCollide = false
  5303. hite.FormFactor = 3
  5304. hite.Name = "Ring"
  5305. hite.Material = "Neon"
  5306. hite.Size = Vector3.new(1, 1, 1)
  5307. hite.Transparency = 1
  5308. hite.TopSurface = 0
  5309. hite.BottomSurface = 0
  5310. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5311. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5312. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5313. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5314. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5315. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5316. for i = 0, 14 do
  5317. local rsiz = math.random(5,20)
  5318. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5319. end
  5320. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5321. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5322. game:GetService("Debris"):AddItem(hite, 5)
  5323. distlook = distlook + 10
  5324. end
  5325. end))
  5326. for i = 0,1,0.1 do
  5327. swait()
  5328. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5329. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5330. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5331. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5332. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5333. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5334. end
  5335. attack = false
  5336. end
  5337.  
  5338. function attacktwo()
  5339. attack = true
  5340. hum.WalkSpeed = 2
  5341. local keptcolor = MAINRUINCOLOR
  5342. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5343. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5344. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5345. for i = 0, 14 do
  5346. PixelBlock(1,math.random(1,3),"Add",rarm.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,keptcolor,0)
  5347. end
  5348. for i = 0,1,0.1 do
  5349. swait()
  5350. 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)
  5351. 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)
  5352. 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)
  5353. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5354. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5355. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5356. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5357. end
  5358. for i = 0, 1 do
  5359. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5360. for i = 0,1,0.6 do
  5361. swait()
  5362. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5363. 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"))
  5364. 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)
  5365. 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)
  5366. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5367. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5368. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5369. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5370. end
  5371. for i = 0,1,0.6 do
  5372. swait()
  5373. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5374. 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"))
  5375. 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)
  5376. 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)
  5377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5379. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5380. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5381. end
  5382. for i = 0,1,0.6 do
  5383. swait()
  5384. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5385. 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"))
  5386. 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)
  5387. 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)
  5388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5390. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5391. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5392. end
  5393. for i = 0,1,0.6 do
  5394. swait()
  5395. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5396. 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"))
  5397. 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)
  5398. 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)
  5399. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5401. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5402. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5403. end
  5404. local rot = 0
  5405. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5406. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5407. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5408. CreateMesh(dis,"Sphere",10,1,10)
  5409. local at1 = Instance.new("Attachment",dis)
  5410. at1.Position = vt(-5,0,0)
  5411. local at2 = Instance.new("Attachment",dis)
  5412. at2.Position = vt(5,0,0)
  5413. local trl = Instance.new('Trail',wed)
  5414. trl.Attachment0 = at1
  5415. trl.Attachment1 = at2
  5416. trl.Texture = "rbxassetid://1049219073"
  5417. trl.LightEmission = 1
  5418. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5419. trl.Color = ColorSequence.new(dis.Color)
  5420. trl.Lifetime = 0.6
  5421. local a = Instance.new("Part",workspace)
  5422. a.Name = "Direction"
  5423. a.Anchored = true
  5424. a.BrickColor = bc("Bright red")
  5425. a.Material = "Neon"
  5426. a.Transparency = 1
  5427. a.CanCollide = false
  5428. local ray = Ray.new(
  5429. dis.CFrame.p, -- origin
  5430. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5431. )
  5432. local ignore = dis
  5433. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5434. a.BottomSurface = 10
  5435. a.TopSurface = 10
  5436. local distance = (dis.CFrame.p - position).magnitude
  5437. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5438. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5439. dis.CFrame = a.CFrame
  5440. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5441. a:Destroy()
  5442. local bv = Instance.new("BodyVelocity")
  5443. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5444. bv.velocity = dis.CFrame.lookVector*250
  5445. bv.Parent = dis
  5446. game:GetService("Debris"):AddItem(dis, 5)
  5447. local hitted = false
  5448. coroutine.resume(coroutine.create(function()
  5449. dis.Touched:connect(function(hit)
  5450. if hitted == false and hit.Parent ~= char then
  5451. hitted = true
  5452. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5453. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5454. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5455. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5456. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5457. coroutine.resume(coroutine.create(function()
  5458. for i = 0, 9 do
  5459. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5460. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5461. local at1 = Instance.new("Attachment",disr)
  5462. at1.Position = vt(-5,0,0)
  5463. local at2 = Instance.new("Attachment",disr)
  5464. at2.Position = vt(5,0,0)
  5465. local trl = Instance.new('Trail',disr)
  5466. trl.Attachment0 = at1
  5467. trl.FaceCamera = true
  5468. trl.Attachment1 = at2
  5469. trl.Texture = "rbxassetid://2342682798"
  5470. trl.LightEmission = 1
  5471. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5472. trl.Color = ColorSequence.new(keptcolor.Color)
  5473. trl.Lifetime = 0.5
  5474. local bv = Instance.new("BodyVelocity")
  5475. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5476. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5477. bv.Parent = disr
  5478. local val = 0
  5479. coroutine.resume(coroutine.create(function()
  5480. swait(30)
  5481. for i = 0, 9 do
  5482. swait()
  5483. val = val + 0.1
  5484. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5485. end
  5486. game:GetService("Debris"):AddItem(disr, 3)
  5487. end))
  5488. end
  5489. local eff = Instance.new("ParticleEmitter",dis)
  5490. eff.Texture = "rbxassetid://2273224484"
  5491. eff.LightEmission = 1
  5492. eff.Color = ColorSequence.new(keptcolor.Color)
  5493. eff.Rate = 500000
  5494. eff.Lifetime = NumberRange.new(0.5,2)
  5495. 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)})
  5496. 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)})
  5497. eff.Speed = NumberRange.new(20,250)
  5498. eff.Drag = 5
  5499. eff.Rotation = NumberRange.new(-500,500)
  5500. eff.VelocitySpread = 9000
  5501. eff.RotSpeed = NumberRange.new(-50,50)
  5502. wait(0.25)
  5503. eff.Enabled = false
  5504. end))
  5505. for i = 0, 9 do
  5506. 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"))
  5507. end
  5508. for i = 0, 19 do
  5509. 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,keptcolor,0)
  5510. end
  5511. coroutine.resume(coroutine.create(function()
  5512. for i = 0, 19 do
  5513. swait()
  5514. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5515. end
  5516. hum.CameraOffset = vt(0,0,0)
  5517. end))
  5518. dis.Anchored = true
  5519. dis.Transparency = 1
  5520. wait(8)
  5521. dis:Destroy()
  5522. end
  5523. end)
  5524. end))
  5525. rot = rot - 15
  5526. end
  5527. for i = 0,2,0.1 do
  5528. swait()
  5529. 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)
  5530. 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)
  5531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5532. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5533. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5534. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5535. end
  5536. attack = false
  5537. hum.WalkSpeed = storehumanoidWS
  5538. end
  5539.  
  5540. function attackthree()
  5541. attack = true
  5542. local keptcolor = MAINRUINCOLOR
  5543. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5544. for i = 0,2,0.1 do
  5545. swait()
  5546. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5547. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5548. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5549. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5550. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5551. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5552. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5553. end
  5554. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5555. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5556. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5557. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5558. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5559. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5560. for i = 0, 24 do
  5561. 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(50,200)/250,BrickColor.new("White"))
  5562. end
  5563. for i = 0,4,0.1 do
  5564. swait()
  5565. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5566. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5567. CreateMesh(dis,"Sphere",1,1,1)
  5568. dis.Anchored = true
  5569. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5570. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5571. coroutine.resume(coroutine.create(function()
  5572. swait(30)
  5573. dis.Transparency = 1
  5574. coroutine.resume(coroutine.create(function()
  5575. for i = 0, 19 do
  5576. swait()
  5577. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5578. end
  5579. hum.CameraOffset = vt(0,0,0)
  5580. end))
  5581. coroutine.resume(coroutine.create(function()
  5582. local eff = Instance.new("ParticleEmitter",dis)
  5583. eff.Texture = "rbxassetid://2273224484"
  5584. eff.LightEmission = 1
  5585. eff.Color = ColorSequence.new(dis.Color)
  5586. eff.Rate = 500000
  5587. eff.Lifetime = NumberRange.new(0.5,2)
  5588. 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)})
  5589. 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)})
  5590. eff.Speed = NumberRange.new(50,450)
  5591. eff.Drag = 5
  5592. eff.Rotation = NumberRange.new(-500,500)
  5593. eff.VelocitySpread = 9000
  5594. eff.RotSpeed = NumberRange.new(-50,50)
  5595. wait(0.125)
  5596. eff.Enabled = false
  5597. end))
  5598. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5599. for i = 0, 2 do
  5600. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5601. end
  5602. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5603. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5604. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5605. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5606. end))
  5607. game:GetService("Debris"):AddItem(dis, 5)
  5608. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5609. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5610. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5611. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5612. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5613. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5614. end
  5615. attack = false
  5616. end
  5617. ----------------------------------- Abilities
  5618.  
  5619. function ExtinctiveHeartbreak()
  5620. local targetted = nil
  5621. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5622. targetted = mouse.Target.Parent
  5623. end
  5624. if targetted ~= nil then
  5625. attack = true
  5626. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5627. for i = 0, 9 do
  5628. 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)
  5629. end
  5630. for i = 0, 24 do
  5631. 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)
  5632. end
  5633. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5634. local originalpos = root.CFrame
  5635. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5636. for i = 0, 9 do
  5637. 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)
  5638. end
  5639. for i = 0, 24 do
  5640. 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)
  5641. end
  5642. hum.WalkSpeed = 0
  5643. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5644. local radm = math.random(1,3)
  5645. if radm == 1 then
  5646. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5647. elseif radm == 2 then
  5648. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5649. elseif radm == 3 then
  5650. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5651. end
  5652. for i = 0,2,0.1 do
  5653. swait()
  5654. 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)
  5655. 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)
  5656. 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)
  5657. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5658. 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)
  5659. 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)
  5660. end
  5661. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5662. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5663. for i = 0,2,0.1 do
  5664. swait()
  5665. coroutine.resume(coroutine.create(function()
  5666. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5667. for i,v in pairs(targetted:GetChildren()) do
  5668. if v:IsA("Part") or v:IsA("MeshPart") then
  5669. v.Velocity = vt(0,0,0)
  5670. end
  5671. end
  5672. end))
  5673. 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)
  5674. 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)
  5675. 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)
  5676. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5677. 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)
  5678. 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)
  5679. end
  5680. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5681. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5682. for i = 0, 1 do
  5683. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5684. end
  5685. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5686. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5687. for i = 0,4,0.1 do
  5688. swait()
  5689. coroutine.resume(coroutine.create(function()
  5690. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5691. 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)))
  5692. local at1 = Instance.new("Attachment",dis)
  5693. at1.Position = vt(-25000,0,0)
  5694. local at2 = Instance.new("Attachment",dis)
  5695. at2.Position = vt(25000,0,0)
  5696. local trl = Instance.new('Trail',dis)
  5697. trl.Attachment0 = at1
  5698. trl.FaceCamera = true
  5699. trl.Attachment1 = at2
  5700. trl.Texture = "rbxassetid://1049219073"
  5701. trl.LightEmission = 1
  5702. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5703. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5704. trl.Lifetime = 5
  5705. local bv = Instance.new("BodyVelocity")
  5706. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5707. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5708. bv.Parent = dis
  5709. game:GetService("Debris"):AddItem(dis, 5)
  5710. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5711. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5712. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5713. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5714. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5715. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5716. 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)
  5717. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5718. for i = 0, 2 do
  5719. 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"))
  5720. end
  5721. 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)
  5722. for i,v in pairs(targetted:GetChildren()) do
  5723. if v:IsA("Part") or v:IsA("MeshPart") then
  5724. v.Velocity = vt(0,0,0)
  5725. end
  5726. end
  5727. end))
  5728. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5729. 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)
  5730. 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)
  5731. 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)
  5732. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5733. 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)
  5734. 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)
  5735. end
  5736. hum.CameraOffset = vt(0,0,0)
  5737. for i = 0, 49 do
  5738. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5739. 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)))
  5740. local at1 = Instance.new("Attachment",dis)
  5741. at1.Position = vt(-50000,0,0)
  5742. local at2 = Instance.new("Attachment",dis)
  5743. at2.Position = vt(50000,0,0)
  5744. local trl = Instance.new('Trail',dis)
  5745. trl.Attachment0 = at1
  5746. trl.FaceCamera = true
  5747. trl.Attachment1 = at2
  5748. trl.Texture = "rbxassetid://1049219073"
  5749. trl.LightEmission = 1
  5750. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5751. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5752. trl.Lifetime = 5
  5753. local bv = Instance.new("BodyVelocity")
  5754. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5755. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5756. bv.Parent = dis
  5757. game:GetService("Debris"):AddItem(dis, 5)
  5758. end
  5759. for i = 0, 49 do
  5760. 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)
  5761. 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"))
  5762. end
  5763. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5764. for i = 0, 1 do
  5765. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5766. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5767. end
  5768. for i = 0, 4 do
  5769. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5770. end
  5771. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5772. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5773. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5774. dmg(targetted)
  5775. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5776. for i = 0, 9 do
  5777. 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)
  5778. end
  5779. for i = 0, 24 do
  5780. 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)
  5781. end
  5782. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5783. root.CFrame = originalpos
  5784. for i = 0, 9 do
  5785. 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)
  5786. end
  5787. for i = 0, 24 do
  5788. 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)
  5789. end
  5790. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5791. attack = false
  5792. hum.WalkSpeed = storehumanoidWS
  5793. end
  5794. end
  5795.  
  5796. function CorruptionEvent()
  5797. attack = true
  5798. hum.WalkSpeed = 0
  5799. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5800. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5801. local keptcolor = MAINRUINCOLOR
  5802. for i = 0,4,0.1 do
  5803. swait()
  5804. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5805. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5806. 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)
  5807. 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)
  5808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5810. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5811. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5812. end
  5813. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5814. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5815. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5816. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5817. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5818. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5819. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5820. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5821. hum.CameraOffset = vt(0,0,0)
  5822. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5823. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5824. for i = 0, 24 do
  5825. 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"))
  5826. end
  5827. local rrot = 0
  5828. coroutine.resume(coroutine.create(function()
  5829. for i = 0, 4 do
  5830. rrot = rrot + 45
  5831. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5832. xa.Anchored = true
  5833. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5834. xb.Anchored = true
  5835. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5836. xc.Anchored = true
  5837. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5838. xd.Anchored = true
  5839. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5840. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5841. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5842. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5843. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5844. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5845. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5846. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5847. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5848. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5849. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5850. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5851. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5852. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5853. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5854. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5855. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5856. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5857. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5858. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5859. for i = 0, 9 do
  5860. 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"))
  5861. 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"))
  5862. 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"))
  5863. 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"))
  5864. end
  5865. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5866. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5867. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5868. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5869. 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)
  5870. 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)
  5871. 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)
  5872. 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)
  5873. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5874. 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))
  5875. 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))
  5876. 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))
  5877. game:GetService("Debris"):AddItem(xa, 5)
  5878. game:GetService("Debris"):AddItem(xb, 5)
  5879. game:GetService("Debris"):AddItem(xc, 5)
  5880. game:GetService("Debris"):AddItem(xd, 5)
  5881. coroutine.resume(coroutine.create(function()
  5882. for i = 0, 19 do
  5883. swait()
  5884. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5885. end
  5886. hum.CameraOffset = vt(0,0,0)
  5887. end))
  5888. swait(9)
  5889. end
  5890. end))
  5891. for i = 0,2,0.1 do
  5892. swait()
  5893. 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)
  5894. 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)
  5895. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5896. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5897. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5898. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5899. end
  5900. attack = false
  5901. hum.WalkSpeed = storehumanoidWS
  5902. end
  5903.  
  5904. function EndGROUND()
  5905. attack = true
  5906. hum.WalkSpeed = 0
  5907. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5908. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5909. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5910. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5911. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5912. local keptcolor = MAINRUINCOLOR
  5913. for i = 0,4,0.1 do
  5914. swait()
  5915. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5916. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5917. 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"))
  5918. 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)
  5919. 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)
  5920. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5921. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5922. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5923. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5924. end
  5925. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5926. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5927. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5928. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5929. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5930. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5931. coroutine.resume(coroutine.create(function()
  5932. local shval = 10
  5933. for i = 0, 99 do
  5934. swait()
  5935. shval = shval - 0.1
  5936. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5937. end
  5938. hum.CameraOffset = vt(0,0,0)
  5939. end))
  5940. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5941. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5942. for i = 0, 24 do
  5943. 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"))
  5944. end
  5945. local rrot = 0
  5946. local xam = 1
  5947. coroutine.resume(coroutine.create(function()
  5948. for i = 0, 14 do
  5949. --swait()
  5950. rrot = rrot + 40*xam
  5951. xam = xam + 0.25
  5952. local bonus = xam
  5953. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5954. xa.Anchored = true
  5955. xa.Color = Color3.new(0,0,0)
  5956. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5957. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5958. local xc = 0
  5959. coroutine.resume(coroutine.create(function()
  5960. for i = 0, 99 do
  5961. swait()
  5962. xc = xc + 0.01
  5963. xa.Color = Color3.new(xc,0,0)
  5964. end
  5965. xa.Transparency = 1
  5966. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5967. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5968. for i = 0, 9 do
  5969. 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"))
  5970. end
  5971. 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)
  5972. 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)
  5973. 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))
  5974. game:GetService("Debris"):AddItem(xa, 5)
  5975. coroutine.resume(coroutine.create(function()
  5976. for i = 0, 19 do
  5977. swait()
  5978. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5979. end
  5980. hum.CameraOffset = vt(0,0,0)
  5981. end))
  5982. end))
  5983. end
  5984. end))
  5985. for i = 0,2,0.1 do
  5986. swait()
  5987. 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)
  5988. 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)
  5989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5991. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5992. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5993. end
  5994. attack = false
  5995. hum.WalkSpeed = storehumanoidWS
  5996. end
  5997.  
  5998. function HeavenlyDisk()
  5999. attack = true
  6000. hum.WalkSpeed = 2
  6001. local keptcolor = MAINRUINCOLOR
  6002. local radm = math.random(1,3)
  6003. if radm == 1 then
  6004. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6005. elseif radm == 2 then
  6006. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6007. elseif radm == 3 then
  6008. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6009. end
  6010. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6011. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6012. 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)
  6013. 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)
  6014. for i = 0, 14 do
  6015. 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("Toothpaste"),0)
  6016. end
  6017. for i = 0,2,0.1 do
  6018. swait()
  6019. 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)
  6020. 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)
  6021. 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)
  6022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6025. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6026. end
  6027. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6028. for i = 0,1,0.6 do
  6029. swait()
  6030. 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)
  6031. 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"))
  6032. 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)
  6033. 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)
  6034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6036. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6037. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6038. end
  6039. for i = 0,1,0.6 do
  6040. swait()
  6041. 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)
  6042. 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"))
  6043. 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)
  6044. 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)
  6045. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6048. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6049. end
  6050. for i = 0,1,0.6 do
  6051. swait()
  6052. 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)
  6053. 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"))
  6054. 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)
  6055. 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)
  6056. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6057. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6058. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6059. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6060. end
  6061. for i = 0,1,0.6 do
  6062. swait()
  6063. 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)
  6064. 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"))
  6065. 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)
  6066. 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)
  6067. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6069. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6070. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6071. end
  6072. local rot = 15
  6073. for i = 0, 2 do
  6074. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6075. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6076. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6077. CreateMesh(dis,"Sphere",10,1,10)
  6078. local at1 = Instance.new("Attachment",dis)
  6079. at1.Position = vt(-5,0,0)
  6080. local at2 = Instance.new("Attachment",dis)
  6081. at2.Position = vt(5,0,0)
  6082. local trl = Instance.new('Trail',wed)
  6083. trl.Attachment0 = at1
  6084. trl.Attachment1 = at2
  6085. trl.Texture = "rbxassetid://1049219073"
  6086. trl.LightEmission = 1
  6087. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6088. trl.Color = ColorSequence.new(dis.Color)
  6089. trl.Lifetime = 0.6
  6090. local a = Instance.new("Part",workspace)
  6091. a.Name = "Direction"
  6092. a.Anchored = true
  6093. a.BrickColor = bc("Bright red")
  6094. a.Material = "Neon"
  6095. a.Transparency = 1
  6096. a.CanCollide = false
  6097. local ray = Ray.new(
  6098. dis.CFrame.p, -- origin
  6099. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6100. )
  6101. local ignore = dis
  6102. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6103. a.BottomSurface = 10
  6104. a.TopSurface = 10
  6105. local distance = (dis.CFrame.p - position).magnitude
  6106. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6107. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6108. dis.CFrame = a.CFrame
  6109. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6110. a:Destroy()
  6111. local bv = Instance.new("BodyVelocity")
  6112. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6113. bv.velocity = dis.CFrame.lookVector*250
  6114. bv.Parent = dis
  6115. game:GetService("Debris"):AddItem(dis, 5)
  6116. local hitted = false
  6117. coroutine.resume(coroutine.create(function()
  6118. dis.Touched:connect(function(hit)
  6119. if hitted == false and hit.Parent ~= char then
  6120. hitted = true
  6121. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6122. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6123. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6124. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6125. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6126. coroutine.resume(coroutine.create(function()
  6127. for i = 0, 9 do
  6128. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6129. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6130. local at1 = Instance.new("Attachment",disr)
  6131. at1.Position = vt(-2,0,0)
  6132. local at2 = Instance.new("Attachment",disr)
  6133. at2.Position = vt(2,0,0)
  6134. local trl = Instance.new('Trail',disr)
  6135. trl.Attachment0 = at1
  6136. trl.FaceCamera = true
  6137. trl.Attachment1 = at2
  6138. trl.Texture = "rbxassetid://2342682798"
  6139. trl.LightEmission = 1
  6140. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6141. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6142. trl.Lifetime = 0.5
  6143. local bv = Instance.new("BodyVelocity")
  6144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6145. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6146. bv.Parent = disr
  6147. local val = 0
  6148. coroutine.resume(coroutine.create(function()
  6149. swait(30)
  6150. for i = 0, 9 do
  6151. swait()
  6152. val = val + 0.1
  6153. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6154. end
  6155. game:GetService("Debris"):AddItem(disr, 3)
  6156. end))
  6157. end
  6158. local eff = Instance.new("ParticleEmitter",dis)
  6159. eff.Texture = "rbxassetid://2273224484"
  6160. eff.LightEmission = 1
  6161. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6162. eff.Rate = 500000
  6163. eff.Lifetime = NumberRange.new(0.5,2)
  6164. 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)})
  6165. 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)})
  6166. eff.Speed = NumberRange.new(20,250)
  6167. eff.Drag = 5
  6168. eff.Rotation = NumberRange.new(-500,500)
  6169. eff.VelocitySpread = 9000
  6170. eff.RotSpeed = NumberRange.new(-50,50)
  6171. wait(0.25)
  6172. eff.Enabled = false
  6173. end))
  6174. for i = 0, 9 do
  6175. 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"))
  6176. end
  6177. for i = 0, 19 do
  6178. 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)
  6179. end
  6180. coroutine.resume(coroutine.create(function()
  6181. for i = 0, 19 do
  6182. swait()
  6183. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6184. end
  6185. hum.CameraOffset = vt(0,0,0)
  6186. end))
  6187. dis.Anchored = true
  6188. dis.Transparency = 1
  6189. wait(8)
  6190. dis:Destroy()
  6191. end
  6192. end)
  6193. end))
  6194. rot = rot - 15
  6195. end
  6196. for i = 0,2,0.1 do
  6197. swait()
  6198. 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)
  6199. 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)
  6200. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6201. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6202. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6203. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6204. end
  6205. attack = false
  6206. hum.WalkSpeed = storehumanoidWS
  6207. end
  6208.  
  6209.  
  6210. function RapidBurst()
  6211. attack = true
  6212. hum.WalkSpeed = 0
  6213. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6214. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6215. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6216. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6217. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6218. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6219. local keptcolor = MAINRUINCOLOR
  6220. for i = 0,8,0.1 do
  6221. swait()
  6222. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6223. 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())
  6224. 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)
  6225. 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)
  6226. 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)
  6227. 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)
  6228. 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)
  6229. 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)
  6230. 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)
  6231. end
  6232. for i = 0, 99 do
  6233. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6234. 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)))
  6235. local at1 = Instance.new("Attachment",dis)
  6236. at1.Position = vt(-25000,0,0)
  6237. local at2 = Instance.new("Attachment",dis)
  6238. at2.Position = vt(25000,0,0)
  6239. local trl = Instance.new('Trail',dis)
  6240. trl.Attachment0 = at1
  6241. trl.FaceCamera = true
  6242. trl.Attachment1 = at2
  6243. trl.Texture = "rbxassetid://1049219073"
  6244. trl.LightEmission = 1
  6245. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6246. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6247. trl.Lifetime = 5
  6248. local bv = Instance.new("BodyVelocity")
  6249. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6250. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6251. bv.Parent = dis
  6252. game:GetService("Debris"):AddItem(dis, 5)
  6253. end
  6254. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6255. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6256. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6257. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6258. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6259. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6260. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6261. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6262. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6263. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6264. hum.CameraOffset = vt(0,0,0)
  6265. for i = 0, 24 do
  6266. 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())
  6267. end
  6268. local distam = 0
  6269. coroutine.resume(coroutine.create(function()
  6270. for i = 0, 99 do
  6271. wait()
  6272. distam = distam + 1
  6273. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6274. xa.Anchored = true
  6275. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6276. game:GetService("Debris"):AddItem(xa, 5)
  6277. for i = 0, 4 do
  6278. 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())
  6279. end
  6280. coroutine.resume(coroutine.create(function()
  6281. local eff = Instance.new("ParticleEmitter",xa)
  6282. eff.Texture = "rbxassetid://2273224484"
  6283. eff.LightEmission = 1
  6284. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6285. eff.Rate = 500000
  6286. eff.Lifetime = NumberRange.new(1,3)
  6287. 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)})
  6288. 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)})
  6289. eff.Speed = NumberRange.new(50,500)
  6290. eff.Drag = 5
  6291. eff.Rotation = NumberRange.new(-500,500)
  6292. eff.VelocitySpread = 9000
  6293. eff.RotSpeed = NumberRange.new(-50,50)
  6294. wait(0.25)
  6295. eff.Enabled = false
  6296. end))
  6297. coroutine.resume(coroutine.create(function()
  6298. for i = 0, 19 do
  6299. swait()
  6300. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6301. end
  6302. hum.CameraOffset = vt(0,0,0)
  6303. end))
  6304. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6305. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6306. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6307. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6308. end
  6309. end))
  6310. attack = false
  6311. hum.WalkSpeed = storehumanoidWS
  6312. end
  6313.  
  6314. function InsaneBeam()
  6315. attack = true
  6316. hum.WalkSpeed = 0
  6317. local keptcolor = MAINRUINCOLOR
  6318. local orb = Instance.new("Part", char)
  6319. orb.BrickColor = keptcolor
  6320. orb.CanCollide = false
  6321. orb.FormFactor = 3
  6322. orb.Name = "Ring"
  6323. orb.Material = "Neon"
  6324. orb.Size = Vector3.new(1, 1, 1)
  6325. orb.Transparency = 1
  6326. orb.TopSurface = 0
  6327. orb.BottomSurface = 0
  6328. local orbm = Instance.new("SpecialMesh", orb)
  6329. orbm.MeshType = "Sphere"
  6330. orbm.Name = "SizeMesh"
  6331. orbm.Scale = vt(22.5,10000,22.5)
  6332. orb.CFrame = mouse.Hit
  6333. orb.Anchored = true
  6334. orb.Orientation = vt(0,0,0)
  6335. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  6336. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  6337. coroutine.resume(coroutine.create(function()
  6338. coroutine.resume(coroutine.create(function()
  6339. for i = 0, 399 do
  6340. swait()
  6341. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  6342. orb.Transparency = orb.Transparency - 0.0025
  6343. end
  6344. end))
  6345. wait(9)
  6346. coroutine.resume(coroutine.create(function()
  6347. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  6348. if hfr ~= nil then
  6349. for i = 0, 49 do
  6350. local deb = Instance.new("Part", char)
  6351. deb.Anchored = true
  6352. deb.CanCollide = false
  6353. deb.FormFactor = 3
  6354. deb.Name = "Ring"
  6355. deb.Material = hitfloor.Material
  6356. deb.Color = hitfloor.Color
  6357. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  6358. deb.Transparency = 0
  6359. deb.TopSurface = 0
  6360. deb.BottomSurface = 0
  6361. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6362. local deb2 = Instance.new("Part", char)
  6363. deb2.CanCollide = false
  6364. deb2.FormFactor = 3
  6365. deb2.Name = "Ring"
  6366. deb2.Material = hitfloor.Material
  6367. deb2.Color = hitfloor.Color
  6368. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  6369. deb2.Transparency = 0
  6370. deb2.TopSurface = 0
  6371. deb2.BottomSurface = 0
  6372. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  6373. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6374. local eff = Instance.new("ParticleEmitter",deb)
  6375. eff.Texture = "rbxassetid://363275192"
  6376. eff.LightEmission = 0.95
  6377. eff.Color = ColorSequence.new(keptcolor.Color)
  6378. eff.Rate = 100
  6379. eff.Lifetime = NumberRange.new(1)
  6380. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  6381. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6382. eff.Speed = NumberRange.new(0,5)
  6383. eff.Rotation = NumberRange.new(-500,500)
  6384. eff.VelocitySpread = 9000
  6385. eff.RotSpeed = NumberRange.new(-10,10)
  6386. local at1 = Instance.new('Attachment',deb2)
  6387. at1.Position = vt(0,15,0)
  6388. local at2 = Instance.new('Attachment',deb2)
  6389. at2.Position = vt(0,-15,0)
  6390. local tl = Instance.new('Trail',deb2)
  6391. tl.Attachment0 = at1
  6392. tl.Attachment1 = at2
  6393. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6394. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  6395. tl.Lifetime = 1
  6396. game:GetService("Debris"):AddItem(deb,30)
  6397. game:GetService("Debris"):AddItem(deb2,30)
  6398. coroutine.resume(coroutine.create(function()
  6399. wait(15)
  6400. eff.Enabled = false
  6401. for i = 0, 49 do
  6402. swait()
  6403. deb.Transparency = deb.Transparency + 0.02
  6404. end
  6405. wait(1)
  6406. deb:Destroy()
  6407. end))
  6408. end
  6409. end
  6410. end))
  6411. for i = 0, 199 do
  6412. swait(1.5)
  6413. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  6414. if v:FindFirstChild('Head') then
  6415. dmg(v)
  6416. end
  6417. end
  6418. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  6419. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  6420. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  6421. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  6422. end
  6423. orb:Destroy()
  6424. end))
  6425. hum.WalkSpeed = storehumanoidWS
  6426. attack = false
  6427. end
  6428.  
  6429. function InsaneDrop()
  6430. attack = true
  6431. hum.WalkSpeed = 0
  6432. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6433. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6434. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6435. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6436. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6437. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6438. local keptcolor = MAINRUINCOLOR
  6439. for i = 0,8,0.1 do
  6440. swait()
  6441. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6442. 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())
  6443. 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)
  6444. 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)
  6445. 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)
  6446. 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)
  6447. 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)
  6448. 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)
  6449. 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)
  6450. end
  6451. for i = 0, 99 do
  6452. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6453. 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)))
  6454. local at1 = Instance.new("Attachment",dis)
  6455. at1.Position = vt(-25000,0,0)
  6456. local at2 = Instance.new("Attachment",dis)
  6457. at2.Position = vt(25000,0,0)
  6458. local trl = Instance.new('Trail',dis)
  6459. trl.Attachment0 = at1
  6460. trl.FaceCamera = true
  6461. trl.Attachment1 = at2
  6462. trl.Texture = "rbxassetid://1049219073"
  6463. trl.LightEmission = 1
  6464. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6465. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6466. trl.Lifetime = 5
  6467. local bv = Instance.new("BodyVelocity")
  6468. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6469. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6470. bv.Parent = dis
  6471. game:GetService("Debris"):AddItem(dis, 5)
  6472. end
  6473. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6474. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6475. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6476. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6477. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6478. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6479. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6480. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6481. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6482. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6483. hum.CameraOffset = vt(0,0,0)
  6484. for i = 0, 24 do
  6485. 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())
  6486. end
  6487. local distam = 0
  6488. coroutine.resume(coroutine.create(function()
  6489. for i = 0, 99 do
  6490. wait()
  6491. distam = distam + 1
  6492. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6493. xa.Anchored = true
  6494. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6495. game:GetService("Debris"):AddItem(xa, 5)
  6496. for i = 0, 4 do
  6497. 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())
  6498. end
  6499. coroutine.resume(coroutine.create(function()
  6500. local eff = Instance.new("ParticleEmitter",xa)
  6501. eff.Texture = "rbxassetid://2273224484"
  6502. eff.LightEmission = 1
  6503. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6504. eff.Rate = 500000
  6505. eff.Lifetime = NumberRange.new(1,3)
  6506. 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)})
  6507. 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)})
  6508. eff.Speed = NumberRange.new(50,500)
  6509. eff.Drag = 5
  6510. eff.Rotation = NumberRange.new(-500,500)
  6511. eff.VelocitySpread = 9000
  6512. eff.RotSpeed = NumberRange.new(-50,50)
  6513. wait(0.25)
  6514. eff.Enabled = false
  6515. end))
  6516. coroutine.resume(coroutine.create(function()
  6517. for i = 0, 19 do
  6518. swait()
  6519. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6520. end
  6521. hum.CameraOffset = vt(0,0,0)
  6522. end))
  6523. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6524. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6525. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6526. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6527. end
  6528. end))
  6529. attack = false
  6530. hum.WalkSpeed = storehumanoidWS
  6531. end
  6532.  
  6533. function FallenOrbs()
  6534. attack = true
  6535. hum.WalkSpeed = 2
  6536. local keptcolor = MAINRUINCOLOR
  6537. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6538. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6539. local radm = math.random(1,3)
  6540. if radm == 1 then
  6541. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6542. elseif radm == 2 then
  6543. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6544. elseif radm == 3 then
  6545. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6546. end
  6547. coroutine.resume(coroutine.create(function()
  6548. for i = 0, 29 do
  6549. swait(2)
  6550. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6551. dis.Anchored = true
  6552. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6553. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6554. CreateMesh(dis,"Sphere",2,2,2)
  6555. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6556. 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"))
  6557. coroutine.resume(coroutine.create(function()
  6558. wait(0.5)
  6559. dis.Anchored = false
  6560. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6561. local at1 = Instance.new("Attachment",dis)
  6562. at1.Position = vt(-1,0,0)
  6563. local at2 = Instance.new("Attachment",dis)
  6564. at2.Position = vt(1,0,0)
  6565. local trl = Instance.new('Trail',dis)
  6566. trl.Attachment0 = at1
  6567. trl.FaceCamera = true
  6568. trl.Attachment1 = at2
  6569. trl.Texture = "rbxassetid://1049219073"
  6570. trl.LightEmission = 1
  6571. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6572. trl.Color = ColorSequence.new(dis.Color)
  6573. trl.Lifetime = 0.6
  6574. local a = Instance.new("Part",workspace)
  6575. a.Name = "Direction"
  6576. a.Anchored = true
  6577. a.BrickColor = bc("Bright red")
  6578. a.Material = "Neon"
  6579. a.Transparency = 1
  6580. a.CanCollide = false
  6581. local ray = Ray.new(
  6582. dis.CFrame.p, -- origin
  6583. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6584. )
  6585. local ignore = dis
  6586. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6587. a.BottomSurface = 10
  6588. a.TopSurface = 10
  6589. local distance = (dis.CFrame.p - position).magnitude
  6590. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6591. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6592. dis.CFrame = a.CFrame
  6593. a:Destroy()
  6594. local bv = Instance.new("BodyVelocity")
  6595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6596. bv.velocity = dis.CFrame.lookVector*500
  6597. bv.Parent = dis
  6598. game:GetService("Debris"):AddItem(dis, 5)
  6599. local hitted = false
  6600. coroutine.resume(coroutine.create(function()
  6601. dis.Touched:connect(function(hit)
  6602. if hitted == false and hit.Parent ~= char then
  6603. hitted = true
  6604. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6605. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6606. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6607. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6608. coroutine.resume(coroutine.create(function()
  6609. for i = 0, 4 do
  6610. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6611. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6612. local at1 = Instance.new("Attachment",disr)
  6613. at1.Position = vt(-10,0,0)
  6614. local at2 = Instance.new("Attachment",disr)
  6615. at2.Position = vt(10,0,0)
  6616. local trl = Instance.new('Trail',disr)
  6617. trl.Attachment0 = at1
  6618. trl.FaceCamera = true
  6619. trl.Attachment1 = at2
  6620. trl.Texture = "rbxassetid://2342682798"
  6621. trl.LightEmission = 1
  6622. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6623. trl.Color = ColorSequence.new(disr.Color)
  6624. trl.Lifetime = 0.5
  6625. local bv = Instance.new("BodyVelocity")
  6626. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6627. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6628. bv.Parent = disr
  6629. local val = 0
  6630. coroutine.resume(coroutine.create(function()
  6631. swait(30)
  6632. for i = 0, 9 do
  6633. swait()
  6634. val = val + 0.1
  6635. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6636. end
  6637. game:GetService("Debris"):AddItem(disr, 3)
  6638. end))
  6639. end
  6640. local eff = Instance.new("ParticleEmitter",dis)
  6641. eff.Texture = "rbxassetid://1049219073"
  6642. eff.LightEmission = 1
  6643. eff.Color = ColorSequence.new(dis.Color)
  6644. eff.Rate = 500000
  6645. eff.Lifetime = NumberRange.new(0.5,2)
  6646. 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)})
  6647. 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)})
  6648. eff.Speed = NumberRange.new(20,250)
  6649. eff.Drag = 5
  6650. eff.Rotation = NumberRange.new(-500,500)
  6651. eff.VelocitySpread = 9000
  6652. eff.RotSpeed = NumberRange.new(-50,50)
  6653. wait(0.5)
  6654. eff.Enabled = false
  6655. end))
  6656. for i = 0, 4 do
  6657. 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"))
  6658. end
  6659. coroutine.resume(coroutine.create(function()
  6660. for i = 0, 19 do
  6661. swait()
  6662. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6663. end
  6664. hum.CameraOffset = vt(0,0,0)
  6665. end))
  6666. dis.Anchored = true
  6667. dis.Transparency = 1
  6668. wait(8)
  6669. dis:Destroy()
  6670. end
  6671. end)
  6672. end))
  6673. end))
  6674. end
  6675. end))
  6676. for i = 0,9,0.1 do
  6677. swait()
  6678. 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)
  6679. 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)
  6680. 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)
  6681. 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)
  6682. 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)
  6683. 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)
  6684. 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)
  6685. end
  6686. attack = false
  6687. hum.WalkSpeed = storehumanoidWS
  6688. end
  6689.  
  6690. function CyberSlash()
  6691. local posit = -2
  6692. attack = true
  6693. hum.WalkSpeed = 5
  6694. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6695. local radm = math.random(1,3)
  6696. if radm == 1 then
  6697. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6698. elseif radm == 2 then
  6699. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6700. elseif radm == 3 then
  6701. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6702. end
  6703. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6704. for i = 0,2,0.1 do
  6705. swait()
  6706. 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)
  6707. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6708. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6709. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6710. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6711. 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)
  6712. 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)
  6713. end
  6714. for i = 0, 2 do
  6715. CameraEnshaking(1,2)
  6716. local hite = Instance.new("Part", char)
  6717. hite.Anchored = true
  6718. hite.CanCollide = false
  6719. hite.FormFactor = 3
  6720. hite.Name = "Ring"
  6721. hite.Material = "Neon"
  6722. hite.Size = Vector3.new(1, 1, 1)
  6723. hite.Transparency = 1
  6724. hite.TopSurface = 0
  6725. hite.BottomSurface = 0
  6726. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6727. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6728. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6729. coroutine.resume(coroutine.create(function()
  6730. for i = 0, 1 do
  6731. swait()
  6732. 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)
  6733. 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)
  6734. 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)
  6735. end
  6736. end))
  6737. 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)
  6738. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6739. game:GetService("Debris"):AddItem(hite, 5)
  6740. posit = posit + 2
  6741. end
  6742. for i = 0,1,0.1 do
  6743. swait()
  6744. 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)
  6745. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6746. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6747. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6748. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6749. 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)
  6750. 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)
  6751. end
  6752. for i = 0,1,0.1 do
  6753. swait()
  6754. 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)
  6755. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6756. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6757. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6758. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6759. 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)
  6760. 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)
  6761. end
  6762. posit = -6
  6763. for i = 0, 6 do
  6764. CameraEnshaking(1,3)
  6765. local hite = Instance.new("Part", char)
  6766. hite.Anchored = true
  6767. hite.CanCollide = false
  6768. hite.FormFactor = 3
  6769. hite.Name = "Ring"
  6770. hite.Material = "Neon"
  6771. hite.Size = Vector3.new(1, 1, 1)
  6772. hite.Transparency = 1
  6773. hite.TopSurface = 0
  6774. hite.BottomSurface = 0
  6775. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6776. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6777. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6778. 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)
  6779. coroutine.resume(coroutine.create(function()
  6780. for i = 0, 2 do
  6781. swait()
  6782. 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)
  6783. 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)
  6784. 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)
  6785. end
  6786. end))
  6787. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6788. game:GetService("Debris"):AddItem(hite, 5)
  6789. posit = posit + 2
  6790. end
  6791. for i = 0,1,0.1 do
  6792. swait()
  6793. 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)
  6794. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6795. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6796. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6797. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6798. 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)
  6799. 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)
  6800. end
  6801. hum.WalkSpeed = storehumanoidWS
  6802. attack = false
  6803. end
  6804.  
  6805. function EquinoxOrbs()
  6806. hum.WalkSpeed = 0
  6807. attack = true
  6808. local radm = math.random(1,3)
  6809. if radm == 1 then
  6810. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6811. elseif radm == 2 then
  6812. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6813. elseif radm == 3 then
  6814. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6815. end
  6816. for i = 0,1,0.1 do
  6817. swait()
  6818. 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)
  6819. 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)
  6820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6822. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6824. end
  6825. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6826. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6827. for i = 0, 24 do
  6828. 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"))
  6829. end
  6830. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6831. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6832. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6833. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6834. for i = 0,4,0.1 do
  6835. swait()
  6836. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6837. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6838. CreateMesh(dis,"Sphere",1,1,1)
  6839. dis.Anchored = true
  6840. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6841. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6842. CreateMesh(dis2,"Sphere",1,1,1)
  6843. dis2.Anchored = true
  6844. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6845. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6846. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6847. coroutine.resume(coroutine.create(function()
  6848. swait(60)
  6849. dis.Transparency = 1
  6850. dis2.Transparency = 1
  6851. coroutine.resume(coroutine.create(function()
  6852. for i = 0, 19 do
  6853. swait()
  6854. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6855. end
  6856. hum.CameraOffset = vt(0,0,0)
  6857. end))
  6858. coroutine.resume(coroutine.create(function()
  6859. local eff = Instance.new("ParticleEmitter",dis)
  6860. eff.Texture = "rbxassetid://2273224484"
  6861. eff.LightEmission = 1
  6862. eff.Color = ColorSequence.new(dis.Color)
  6863. eff.Rate = 500000
  6864. eff.Lifetime = NumberRange.new(0.5,2)
  6865. 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)})
  6866. 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)})
  6867. eff.Speed = NumberRange.new(50,450)
  6868. eff.Drag = 5
  6869. eff.Rotation = NumberRange.new(-500,500)
  6870. eff.VelocitySpread = 9000
  6871. eff.RotSpeed = NumberRange.new(-50,50)
  6872. local eff2 = eff:Clone()
  6873. eff2.Parent = dis2
  6874. eff2.LightEmission = 0
  6875. eff2.Color = ColorSequence.new(dis2.Color)
  6876. wait(0.25)
  6877. eff.Enabled = false
  6878. eff2.Enabled = false
  6879. end))
  6880. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6881. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6882. for i = 0, 2 do
  6883. 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)
  6884. 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)
  6885. end
  6886. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6887. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6888. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6889. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6890. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6891. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6892. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6893. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6894. end))
  6895. game:GetService("Debris"):AddItem(dis, 5)
  6896. game:GetService("Debris"):AddItem(dis2, 5)
  6897. 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)
  6898. 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)
  6899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6901. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6902. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6903. end
  6904. attack = false
  6905. hum.WalkSpeed = storehumanoidWS
  6906. end
  6907. function FallenDEMISE()
  6908. attack = true
  6909. hum.WalkSpeed = 0
  6910. local keptcolor = MAINRUINCOLOR
  6911. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6912. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6913. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6914. for i = 0, 15, 0.1 do
  6915. swait()
  6916. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6917. 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)))
  6918. local at1 = Instance.new("Attachment",dis)
  6919. at1.Position = vt(-25000,0,0)
  6920. local at2 = Instance.new("Attachment",dis)
  6921. at2.Position = vt(25000,0,0)
  6922. local trl = Instance.new('Trail',dis)
  6923. trl.Attachment0 = at1
  6924. trl.FaceCamera = true
  6925. trl.Attachment1 = at2
  6926. trl.Texture = "rbxassetid://1049219073"
  6927. trl.LightEmission = 1
  6928. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6929. trl.Color = ColorSequence.new(dis.Color)
  6930. trl.Lifetime = 5
  6931. local bv = Instance.new("BodyVelocity")
  6932. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6933. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6934. bv.Parent = dis
  6935. game:GetService("Debris"):AddItem(dis, 1)
  6936. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6937. 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"))
  6938. 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"))
  6939. 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)
  6940. 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)
  6941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6943. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6944. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6945. end
  6946. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6947. for i = 0, 30, 0.1 do
  6948. swait()
  6949. coroutine.resume(coroutine.create(function()
  6950. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6951. if v:FindFirstChild('Head') then
  6952. dmg(v)
  6953. end
  6954. end
  6955. end))
  6956. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6957. 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)))
  6958. local at1 = Instance.new("Attachment",dis)
  6959. at1.Position = vt(-50000,0,0)
  6960. local at2 = Instance.new("Attachment",dis)
  6961. at2.Position = vt(50000,0,0)
  6962. local trl = Instance.new('Trail',dis)
  6963. trl.Attachment0 = at1
  6964. trl.FaceCamera = true
  6965. trl.Attachment1 = at2
  6966. trl.Texture = "rbxassetid://1049219073"
  6967. trl.LightEmission = 1
  6968. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6969. trl.Color = ColorSequence.new(dis.Color)
  6970. trl.Lifetime = 10
  6971. local bv = Instance.new("BodyVelocity")
  6972. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6973. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6974. bv.Parent = dis
  6975. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6976. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6977. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6978. 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"))
  6979. 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"))
  6980. 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"))
  6981. 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"))
  6982. for i = 0, 2 do
  6983. 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)
  6984. end
  6985. 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)
  6986. 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)
  6987. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6988. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6989. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6990. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6991. end
  6992. attack = false
  6993. hum.WalkSpeed = storehumanoidWS
  6994. end
  6995.  
  6996. function SpeedDrop()
  6997. attack = true
  6998. hum.WalkSpeed = 0
  6999. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7000. local poste = 3
  7001. local rotation = 0
  7002. local rate = 0
  7003. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7004. for i = 0, 124 do
  7005. swait()
  7006. rotation = rotation + rate
  7007. poste = poste + 0.1
  7008. rate = rate + 0.1
  7009. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7010. 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)
  7011. 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)
  7012. 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)
  7013. 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)
  7014. 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)
  7015. 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)
  7016. 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)
  7017. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7020. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7021. end
  7022. CameraEnshaking(3,7)
  7023. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7024. local loc = Instance.new("Part", char)
  7025. loc.BrickColor = MAINRUINCOLOR
  7026. loc.CanCollide = false
  7027. loc.FormFactor = 3
  7028. loc.Name = "Ring"
  7029. loc.Material = "Neon"
  7030. loc.Size = Vector3.new(1, 1, 1)
  7031. loc.Transparency = 1
  7032. loc.TopSurface = 0
  7033. loc.BottomSurface = 0
  7034. loc.Anchored = true
  7035. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7036. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7037. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7038. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7039. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7040. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7041. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7042. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7043. coroutine.resume(coroutine.create(function()
  7044. local eff = Instance.new("ParticleEmitter",loc)
  7045. eff.Texture = "rbxassetid://363275192"
  7046. eff.LightEmission = 0.95
  7047. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7048. eff.Rate = 10000
  7049. eff.Lifetime = NumberRange.new(1)
  7050. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7051. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7052. eff.Speed = NumberRange.new(100,500)
  7053. eff.Drag = 5
  7054. eff.Rotation = NumberRange.new(-500,500)
  7055. eff.VelocitySpread = 9000
  7056. eff.RotSpeed = NumberRange.new(-50,50)
  7057. wait(0.5)
  7058. eff.Enabled = false
  7059. end))
  7060. for i = 0, 49 do
  7061. 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)
  7062. end
  7063. for i = 0, 9 do
  7064. 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)
  7065. end
  7066. game:GetService("Debris"):AddItem(loc, 5)
  7067. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7068. hum.WalkSpeed = storehumanoidWS
  7069. attack = false
  7070. end
  7071.  
  7072. function cutesigh()
  7073. attack = true
  7074. hum.WalkSpeed = 0
  7075. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7076. local blush = Instance.new("Decal",hed)
  7077. blush.Texture = "rbxassetid://898404027"
  7078. blush.Face = "Front"
  7079. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7080. for i = 0, 9, 0.1 do
  7081. swait()
  7082. 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)
  7083. 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)
  7084. 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)
  7085. 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)
  7086. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 5 * math.cos(sine / 51))),.1)
  7087. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 73)),math.rad(2 - 3 * math.cos(sine / 53)),math.rad(-33 - 5 * math.cos(sine / 51))),.1)
  7088. end
  7089. coroutine.resume(coroutine.create(function()
  7090. for i = 0, 49 do
  7091. swait()
  7092. blush.Transparency = blush.Transparency + 0.02
  7093. end
  7094. blush:Destroy()
  7095. end))
  7096. hum.WalkSpeed = storehumanoidWS
  7097. attack = false
  7098. end
  7099.  
  7100. function smiter()
  7101. local targetted = nil
  7102. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7103. targetted = mouse.Target.Parent
  7104. end
  7105. if targetted ~= nil then
  7106. RootPart.CFrame = FaceMouse()[1]
  7107. attack = true
  7108. local radm = math.random(1,3)
  7109. if radm == 1 then
  7110. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7111. elseif radm == 2 then
  7112. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7113. elseif radm == 3 then
  7114. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7115. end
  7116. hum.WalkSpeed = 0
  7117. coroutine.resume(coroutine.create(function()
  7118. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7119. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7120. local vel = Instance.new("BodyPosition", targetted.Head)
  7121. vel.P = 12500
  7122. vel.D = 1000
  7123. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7124. vel.position = targetted.Head.CFrame.p
  7125. end))
  7126. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7127. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7128. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7129. for i = 0,4,0.1 do
  7130. swait()
  7131. 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)
  7132. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7133. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7134. 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)
  7135. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7136. 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)
  7137. 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)
  7138. end
  7139. coroutine.resume(coroutine.create(function()
  7140. CameraEnshaking(6,5)
  7141. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7142. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7143. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7144. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7145. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7146. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7147. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7148. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7149. coroutine.resume(coroutine.create(function()
  7150. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7151. eff.Texture = "rbxassetid://2273224484"
  7152. eff.LightEmission = 1
  7153. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7154. eff.Rate = 500000
  7155. eff.Lifetime = NumberRange.new(0.5,2)
  7156. 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)})
  7157. 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)})
  7158. eff.Speed = NumberRange.new(20,250)
  7159. eff.Drag = 5
  7160. eff.Rotation = NumberRange.new(-500,500)
  7161. eff.VelocitySpread = 9000
  7162. eff.RotSpeed = NumberRange.new(-50,50)
  7163. wait(0.25)
  7164. eff.Enabled = false
  7165. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7166. eff.Texture = "rbxassetid://363275192"
  7167. eff.LightEmission = 0.95
  7168. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7169. eff.Rate = 10000
  7170. eff.Lifetime = NumberRange.new(1.5)
  7171. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7172. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7173. eff.Speed = NumberRange.new(25,150)
  7174. eff.Drag = 5
  7175. eff.Rotation = NumberRange.new(-500,500)
  7176. eff.VelocitySpread = 9000
  7177. eff.RotSpeed = NumberRange.new(-50,50)
  7178. local eff2 = eff:Clone()
  7179. eff2.Parent = targetted.Head
  7180. eff2.Texture = "rbxassetid://284205403"
  7181. eff2.Rate = 10000
  7182. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7183. eff2.Drag = 5
  7184. eff2.Rotation = NumberRange.new(-500,500)
  7185. eff2.VelocitySpread = 9000
  7186. wait(0.5)
  7187. eff2.Enabled = false
  7188. eff.Enabled = false
  7189. end))
  7190. for i = 0, 9 do
  7191. 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)
  7192. end
  7193. for i = 0, 49 do
  7194. local rsiz = math.random(10,50)
  7195. 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)
  7196. end
  7197. game:GetService("Debris"):AddItem(vel,1)
  7198. dmg(targetted)
  7199. end))
  7200. for i = 0,1,0.1 do
  7201. swait()
  7202. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7203. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7204. 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)
  7205. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7206. 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)
  7207. 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)
  7208. end
  7209. attack = false
  7210. hum.WalkSpeed = storehumanoidWS
  7211. end
  7212. end
  7213.  
  7214. function shytaunty()
  7215. attack = true
  7216. hum.WalkSpeed = 0
  7217. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7218. local blush = Instance.new("Decal",hed)
  7219. blush.Texture = "rbxassetid://898404027"
  7220. blush.Face = "Front"
  7221. for i = 0, 13, 0.1 do
  7222. swait()
  7223. 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)
  7224. 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)
  7225. 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)
  7226. 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)
  7227. 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)
  7228. 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)
  7229. end
  7230. coroutine.resume(coroutine.create(function()
  7231. for i = 0, 49 do
  7232. swait()
  7233. blush.Transparency = blush.Transparency + 0.02
  7234. end
  7235. blush:Destroy()
  7236. end))
  7237. hum.WalkSpeed = storehumanoidWS
  7238. attack = false
  7239. end
  7240.  
  7241. function PureBomb()
  7242. attack = true
  7243. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7244. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7245. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7246. local orb = Instance.new("Part", char)
  7247. orb.Anchored = true
  7248. orb.BrickColor = BrickColor.new("Toothpaste")
  7249. orb.CanCollide = false
  7250. orb.FormFactor = 3
  7251. orb.Name = "Ring"
  7252. orb.Material = "Neon"
  7253. orb.Size = Vector3.new(1, 1, 1)
  7254. orb.Transparency = 0
  7255. orb.TopSurface = 0
  7256. orb.BottomSurface = 0
  7257. local orbm = Instance.new("SpecialMesh", orb)
  7258. orbm.MeshType = "Sphere"
  7259. orbm.Name = "SizeMesh"
  7260. orbm.Scale = vt(0,0,0)
  7261. local scaled = 0.1
  7262. local posid = 0
  7263. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7264. for i = 0, 5, 0.1 do
  7265. swait()
  7266. scaled = scaled - 0.001
  7267. posid = posid - scaled
  7268. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7269. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7270. 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)
  7271. 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)
  7272. 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)
  7273. 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)
  7274. 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)
  7275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7277. 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)
  7278. end
  7279. for i = 0, 2, 0.1 do
  7280. swait()
  7281. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7282. 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)
  7283. 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)
  7284. 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)
  7285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7286. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7287. 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)
  7288. end
  7289. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7290. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7291. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7292. coroutine.resume(coroutine.create(function()
  7293. orb.Anchored = false
  7294. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7295. local a = Instance.new("Part",workspace)
  7296. a.Name = "Direction"
  7297. a.Anchored = true
  7298. a.BrickColor = bc("Bright red")
  7299. a.Material = "Neon"
  7300. a.Transparency = 1
  7301. a.CanCollide = false
  7302. local ray = Ray.new(
  7303. orb.CFrame.p, -- origin
  7304. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7305. )
  7306. local ignore = orb
  7307. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7308. a.BottomSurface = 10
  7309. a.TopSurface = 10
  7310. local distance = (orb.CFrame.p - position).magnitude
  7311. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7312. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7313. orb.CFrame = a.CFrame
  7314. a:Destroy()
  7315. local bv = Instance.new("BodyVelocity")
  7316. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7317. bv.velocity = orb.CFrame.lookVector*125
  7318. bv.Parent = orb
  7319. local hitted = false
  7320. game:GetService("Debris"):AddItem(orb, 15)
  7321. wait()
  7322. local hit =orb.Touched:connect(function(hit)
  7323. if hitted == false then
  7324. hitted = true
  7325. CameraEnshaking(10,2.5)
  7326. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7327. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7328. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7329. for i = 0, 49 do
  7330. 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)
  7331. end
  7332. local eff = Instance.new("ParticleEmitter",orb)
  7333. eff.Texture = "rbxassetid://2273224484"
  7334. eff.LightEmission = 1
  7335. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7336. eff.Rate = 500000
  7337. eff.Lifetime = NumberRange.new(0.5,2)
  7338. 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)})
  7339. 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)})
  7340. eff.Speed = NumberRange.new(20,250)
  7341. eff.Drag = 5
  7342. eff.Rotation = NumberRange.new(-500,500)
  7343. eff.VelocitySpread = 9000
  7344. eff.RotSpeed = NumberRange.new(-50,50)
  7345. coroutine.resume(coroutine.create(function()
  7346. wait(0.25)
  7347. eff.Enabled = false
  7348. end))
  7349. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7350. for i = 0, 9 do
  7351. 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)
  7352. 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)
  7353. end
  7354. orb.Anchored = true
  7355. orb.Transparency = 1
  7356. local eff = Instance.new("ParticleEmitter",orb)
  7357. eff.Texture = "rbxassetid://2273224484"
  7358. eff.LightEmission = 1
  7359. eff.Color = ColorSequence.new(Color3.new(M))
  7360. eff.Rate = 500000
  7361. eff.Lifetime = NumberRange.new(0.5,2)
  7362. 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)})
  7363. 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)})
  7364. eff.Speed = NumberRange.new(20,250)
  7365. eff.Drag = 5
  7366. eff.Rotation = NumberRange.new(-500,500)
  7367. eff.VelocitySpread = 9000
  7368. eff.RotSpeed = NumberRange.new(-50,50)
  7369. coroutine.resume(coroutine.create(function()
  7370. wait(1)
  7371. eff.Enabled = false
  7372. end))
  7373. wait(8)
  7374. orb:Destroy()
  7375. end
  7376. end)
  7377. end))
  7378. for i = 0, 1, 0.1 do
  7379. swait()
  7380. 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)
  7381. 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)
  7382. 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)
  7383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7385. 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)
  7386. end
  7387. attack = false
  7388. end
  7389.  
  7390.  
  7391. function BeamOfDeath()
  7392. coroutine.resume(coroutine.create(function()
  7393. attack = true
  7394. hum.WalkSpeed = 0
  7395. for i = 0, 11, 0.1 do
  7396. swait()
  7397. 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)
  7398. 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)
  7399. 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(-16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7400. 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)
  7401. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(125 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7402. 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)
  7403. end
  7404. for i = 0, 1, 0.1 do
  7405. swait()
  7406. 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)
  7407. 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)
  7408. 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(16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7409. 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)
  7410. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(-5 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7411. 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)
  7412. end
  7413. hum.WalkSpeed = storehumanoidWS
  7414. attack = false
  7415. end))
  7416. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7417. local radm = math.random(1,3)
  7418. if radm == 1 then
  7419. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7420. elseif radm == 2 then
  7421. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7422. elseif radm == 3 then
  7423. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7424. end
  7425. local keptcolor = MAINRUINCOLOR
  7426. local orb = Instance.new("Part", char)
  7427. orb.BrickColor = keptcolor
  7428. orb.CanCollide = false
  7429. orb.FormFactor = 3
  7430. orb.Name = "Ring"
  7431. orb.Material = "Neon"
  7432. orb.Size = Vector3.new(1, 1, 1)
  7433. orb.Transparency = 1
  7434. orb.TopSurface = 0
  7435. orb.BottomSurface = 0
  7436. local orbm = Instance.new("SpecialMesh", orb)
  7437. orbm.MeshType = "Sphere"
  7438. orbm.Name = "SizeMesh"
  7439. orbm.Scale = vt(22.5,10000,22.5)
  7440. orb.CFrame = mouse.Hit
  7441. orb.Anchored = true
  7442. orb.Orientation = vt(0,0,0)
  7443. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7444. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7445. coroutine.resume(coroutine.create(function()
  7446. coroutine.resume(coroutine.create(function()
  7447. for i = 0, 175 do
  7448. swait()
  7449. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7450. orb.Transparency = orb.Transparency - 0.005
  7451. end
  7452. end))
  7453. wait(2)
  7454. coroutine.resume(coroutine.create(function()
  7455. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7456. if hfr ~= nil then
  7457. for i = 0, 24.5 do
  7458. local deb = Instance.new("Part", char)
  7459. deb.Anchored = true
  7460. deb.CanCollide = false
  7461. deb.FormFactor = 3
  7462. deb.Name = "Ring"
  7463. deb.Material = hitfloor.Material
  7464. deb.Color = hitfloor.Color
  7465. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7466. deb.Transparency = 0
  7467. deb.TopSurface = 0
  7468. deb.BottomSurface = 0
  7469. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7470. local deb2 = Instance.new("Part", char)
  7471. deb2.CanCollide = false
  7472. deb2.FormFactor = 3
  7473. deb2.Name = "Ring"
  7474. deb2.Material = hitfloor.Material
  7475. deb2.Color = hitfloor.Color
  7476. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7477. deb2.Transparency = 0
  7478. deb2.TopSurface = 0
  7479. deb2.BottomSurface = 0
  7480. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7481. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7482. local eff = Instance.new("ParticleEmitter",deb)
  7483. eff.Texture = "rbxassetid://363275192"
  7484. eff.LightEmission = 0.95
  7485. eff.Color = ColorSequence.new(keptcolor.Color)
  7486. eff.Rate = 100
  7487. eff.Lifetime = NumberRange.new(1)
  7488. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7489. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7490. eff.Speed = NumberRange.new(0,5)
  7491. eff.Rotation = NumberRange.new(-500,500)
  7492. eff.VelocitySpread = 9000
  7493. eff.RotSpeed = NumberRange.new(-10,10)
  7494. local at1 = Instance.new('Attachment',deb2)
  7495. at1.Position = vt(0,15,0)
  7496. local at2 = Instance.new('Attachment',deb2)
  7497. at2.Position = vt(0,-15,0)
  7498. local tl = Instance.new('Trail',deb2)
  7499. tl.Attachment0 = at1
  7500. tl.Attachment1 = at2
  7501. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7502. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7503. tl.Lifetime = 1
  7504. game:GetService("Debris"):AddItem(deb,30)
  7505. game:GetService("Debris"):AddItem(deb2,30)
  7506. coroutine.resume(coroutine.create(function()
  7507. wait(15)
  7508. eff.Enabled = false
  7509. for i = 0, 49 do
  7510. swait()
  7511. deb.Transparency = deb.Transparency + 0.02
  7512. end
  7513. wait(1)
  7514. deb:Destroy()
  7515. end))
  7516. end
  7517. end
  7518. end))
  7519. for i = 0, 199 do
  7520. swait(1.5)
  7521. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7522. if v:FindFirstChild('Head') then
  7523. dmg(v)
  7524. end
  7525. end
  7526. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7527. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  7528. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  7529. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  7530. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7531. end
  7532. orb:Destroy()
  7533. end))
  7534. end
  7535.  
  7536. function Beams()
  7537. attack = true
  7538. hum.WalkSpeed = 0
  7539. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7540. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7541. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7542. local keptcolor = MAINRUINCOLOR
  7543. coroutine.resume(coroutine.create(function()
  7544. for i = 0, 96 do
  7545. swait(5)
  7546. local orb = Instance.new("Part", char)
  7547. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7548. orb.BrickColor = keptcolor
  7549. orb.CanCollide = false
  7550. orb.FormFactor = 3
  7551. orb.Name = "Ring"
  7552. orb.Material = "Neon"
  7553. orb.Size = Vector3.new(1, 1, 1)
  7554. orb.Transparency = 0
  7555. orb.TopSurface = 0
  7556. orb.BottomSurface = 0
  7557. orb.Anchored = true
  7558. local orbm = Instance.new("SpecialMesh", orb)
  7559. orbm.MeshType = "Sphere"
  7560. orbm.Name = "SizeMesh"
  7561. orbm.Scale = vt(1.25,1.25,1.25)
  7562. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7563. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7564. coroutine.resume(coroutine.create(function()
  7565. wait(0.5)
  7566. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7567. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7568. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7569. orb.Transparency = 1
  7570. local a = Instance.new("Part",char)
  7571. a.Name = "Direction"
  7572. a.Anchored = true
  7573. a.BrickColor = keptcolor
  7574. a.Material = "Neon"
  7575. a.Transparency = 0.25
  7576. a.Shape = "Cylinder"
  7577. local ht = Instance.new("Part",char)
  7578. ht.Name = "DirectionHit"
  7579. ht.Anchored = true
  7580. ht.BrickColor = keptcolor
  7581. ht.CanCollide = false
  7582. ht.Transparency = 1
  7583. ht.Size = vt(0.1,0.1,0.1)
  7584. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7585. a.CanCollide = false
  7586. local ray = Ray.new(
  7587. orb.CFrame.p, -- origin
  7588. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7589. )
  7590. local ignore = char
  7591. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7592. a.BottomSurface = 10
  7593. a.TopSurface = 10
  7594. local distance = (orb.CFrame.p - position).magnitude
  7595. a.Size = Vector3.new(distance,1,1)
  7596. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7597. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7598. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7599. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7600. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7601. coroutine.resume(coroutine.create(function()
  7602. local eff = Instance.new("ParticleEmitter",ht)
  7603. eff.Texture = "rbxassetid://284205403"
  7604. eff.LightEmission = 0.95
  7605. eff.Color = ColorSequence.new(keptcolor.Color)
  7606. eff.Rate = 500
  7607. eff.Lifetime = NumberRange.new(0.5)
  7608. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7609. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7610. eff.Speed = NumberRange.new(10,50)
  7611. eff.Drag = 5
  7612. eff.Rotation = NumberRange.new(-500,500)
  7613. eff.VelocitySpread = 9000
  7614. eff.RotSpeed = NumberRange.new(-500,500)
  7615. wait(0.25)
  7616. eff.Enabled = false
  7617. end))
  7618. for i = 0, 4 do
  7619. 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)
  7620. 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)
  7621. local rsiz = math.random(10,30)
  7622. 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)
  7623. end
  7624. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7625. local msh = Instance.new("SpecialMesh",a)
  7626. msh.MeshType = "Cylinder"
  7627. msh.Scale = vt(1,1,1)
  7628. for i = 0, 49 do
  7629. swait()
  7630. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7631. a.Transparency = a.Transparency + 0.02
  7632. end
  7633. orb:Destroy()
  7634. a:Destroy()
  7635. ht:Destroy()
  7636. end))
  7637. game:GetService("Debris"):AddItem(orb, 10)
  7638. end
  7639. end))
  7640. for i = 0,6,0.1 do
  7641. swait()
  7642. 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)
  7643. 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)
  7644. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7645. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7646. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7647. 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)
  7648. 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)
  7649. end
  7650. hum.WalkSpeed = storehumanoidWS
  7651. attack = false
  7652. end
  7653.  
  7654. function CalamityTrans()
  7655. attack = true
  7656. rainbowmode = false
  7657. chaosmode = false
  7658. ModeOfGlitch = 8889
  7659. hum.WalkSpeed = 0
  7660. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7661. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7662. elocacenter.Anchored = true
  7663. elocacenter.CFrame = root.CFrame
  7664. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7665. eloca1.Anchored = true
  7666. eloca1.CFrame = elocacenter.CFrame
  7667. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7668. eloca2.Anchored = true
  7669. eloca2.CFrame = elocacenter.CFrame
  7670. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7671. eloca3.Anchored = true
  7672. eloca3.CFrame = elocacenter.CFrame
  7673. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7674. eloca4.Anchored = true
  7675. eloca4.CFrame = elocacenter.CFrame
  7676. local lookavec = 0
  7677. local speeds = 0
  7678. CameraEnshaking(3,2.5)
  7679. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7680. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7681. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7682. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7683. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7684. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7685. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7686. for i = 0, 5, 0.1 do
  7687. swait()
  7688. ---
  7689. lookavec = lookavec + 1
  7690. speeds = speeds + 10
  7691. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7692. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7693. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7694. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7695. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7696. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7697. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7698. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7699. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7700. ---
  7701. 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)
  7702. 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)
  7703. 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)
  7704. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7705. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7706. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7707. end
  7708. for i = 0, 5, 0.1 do
  7709. swait()
  7710. ---
  7711. speeds = speeds + 10
  7712. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7713. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7714. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7715. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7716. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7717. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7718. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7719. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7720. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7721. ---
  7722. 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)
  7723. 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)
  7724. 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)
  7725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7726. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7727. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7728. end
  7729. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7730. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7731. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7732. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7733. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7734. CameraEnshaking(1,3)
  7735. for i = 0, 24 do
  7736. PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7737. PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7738. PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7739. PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7740. end
  7741. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7742. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7743. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7744. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7745. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7746. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7747. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7748. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7749. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7750. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7751. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7752. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7753. for i = 0, 5, 0.1 do
  7754. swait()
  7755. ---
  7756. lookavec = lookavec - 1
  7757. speeds = speeds + 10
  7758. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7759. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7760. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7761. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7762. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7763. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7764. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7765. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7766. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7767. ---
  7768. 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)
  7769. 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)
  7770. 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)
  7771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7772. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7773. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7774. end
  7775. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7776. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7777. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7778. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7779. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7780. for i = 0, 49 do
  7781. PixelBlock(1,math.random(8,16),"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)
  7782. PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0)
  7783. end
  7784. CameraEnshaking(5,6)
  7785. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7786. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7787. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7788. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7789. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7790. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7791. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7792. storehumanoidWS = 100
  7793. hum.WalkSpeed = 100
  7794. rainbowmode = false
  7795. chaosmode = false
  7796. tl1.Enabled = true
  7797. tl2.Enabled = true
  7798. tl3.Enabled = true
  7799. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7800. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7801. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7802. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7803. for i, v in pairs(mw2:GetChildren()) do
  7804. if v:IsA("Part") then
  7805. v.BrickColor = MAINRUINCOLOR
  7806. v.Material = "Neon"
  7807. end
  7808. end
  7809. for i, v in pairs(mw1:GetChildren()) do
  7810. if v:IsA("Part") then
  7811. v.Transparency = 0
  7812. v.BrickColor = MAINRUINCOLOR
  7813. v.Material = "Neon"
  7814. end
  7815. end
  7816. for i, v in pairs(m:GetChildren()) do
  7817. if v:IsA("Part") then
  7818. v.Color = Color3.new(0.5,0,1)
  7819. v.Material = "Neon"
  7820. end
  7821. end
  7822. for i, v in pairs(m2:GetChildren()) do
  7823. if v:IsA("Part") then
  7824. v.Color = Color3.new(0.25,0,1)
  7825. v.Material = "Neon"
  7826. end
  7827. end
  7828. for i, v in pairs(m3:GetChildren()) do
  7829. if v:IsA("Part") then
  7830. v.Color = Color3.new(0.45,0,1)
  7831. v.Material = "Neon"
  7832. end
  7833. end
  7834. for i, v in pairs(extrawingmod1:GetChildren()) do
  7835. if v:IsA("Part") then
  7836. v.Transparency = 0.75
  7837. v.Color = Color3.new(0.25,0,1)
  7838. v.Material = "Neon"
  7839. end
  7840. end
  7841. for i, v in pairs(extrawingmod2:GetChildren()) do
  7842. if v:IsA("Part") then
  7843. v.Transparency = 0.75
  7844. v.Color = Color3.new(0.5,0,1)
  7845. v.Material = "Neon"
  7846. end
  7847. end
  7848. attack = false
  7849. end
  7850.  
  7851. function InsaneTrans()
  7852. attack = true
  7853. rainbowmode = false
  7854. chaosmode = false
  7855. ModeOfGlitch = 8889
  7856. hum.WalkSpeed = 0
  7857. newThemeCust("rbxassetid://183142252",1,1,10)
  7858. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7859. elocacenter.Anchored = true
  7860. elocacenter.CFrame = root.CFrame
  7861. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7862. eloca1.Anchored = true
  7863. eloca1.CFrame = elocacenter.CFrame
  7864. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7865. eloca2.Anchored = true
  7866. eloca2.CFrame = elocacenter.CFrame
  7867. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7868. eloca3.Anchored = true
  7869. eloca3.CFrame = elocacenter.CFrame
  7870. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7871. eloca4.Anchored = true
  7872. eloca4.CFrame = elocacenter.CFrame
  7873. local lookavec = 0
  7874. local speeds = 0
  7875. CameraEnshaking(3,2.5)
  7876. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7877. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7878. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7879. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7880. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7881. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7882. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7883. for i = 0, 5, 0.1 do
  7884. swait()
  7885. ---
  7886. lookavec = lookavec + 1
  7887. speeds = speeds + 10
  7888. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7889. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7890. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7891. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7892. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7893. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7894. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7895. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7896. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7897. ---
  7898. 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)
  7899. 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)
  7900. 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)
  7901. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7902. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7903. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7904. end
  7905. for i = 0, 5, 0.1 do
  7906. swait()
  7907. ---
  7908. speeds = speeds + 10
  7909. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7910. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7911. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7912. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7913. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7914. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7915. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7916. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7917. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7918. ---
  7919. 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)
  7920. 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)
  7921. 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)
  7922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7923. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7924. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7925. end
  7926. MAINRUINCOLOR = BrickColor.new("Really black")
  7927. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7928. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7929. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7930. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7931. CameraEnshaking(1,3)
  7932. for i = 0, 24 do
  7933. PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7934. PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7935. PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7936. PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7937. end
  7938. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7939. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7940. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7941. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7942. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7943. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7944. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7945. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7946. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7947. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7948. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7949. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7950. for i = 0, 5, 0.1 do
  7951. swait()
  7952. ---
  7953. lookavec = lookavec - 1
  7954. speeds = speeds + 10
  7955. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7956. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7957. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7958. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7959. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7960. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7961. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7962. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7963. 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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7964. ---
  7965. 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)
  7966. 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)
  7967. 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)
  7968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7969. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7970. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7971. end
  7972. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7973. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7974. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7975. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7976. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7977. for i = 0, 49 do
  7978. PixelBlock(1,math.random(8,16),"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)
  7979. PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0)
  7980. end
  7981. CameraEnshaking(5,6)
  7982. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7983. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7984. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7985. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7986. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7987. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7988. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7989. storehumanoidWS = 100
  7990. hum.WalkSpeed = 100
  7991. rainbowmode = false
  7992. chaosmode = false
  7993. tl1.Enabled = true
  7994. tl2.Enabled = true
  7995. tl3.Enabled = true
  7996. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7997. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7998. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7999. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8000. for i, v in pairs(mw2:GetChildren()) do
  8001. if v:IsA("Part") then
  8002. v.BrickColor = MAINRUINCOLOR
  8003. v.Material = "Neon"
  8004. end
  8005. end
  8006. for i, v in pairs(mw1:GetChildren()) do
  8007. if v:IsA("Part") then
  8008. v.Transparency = 0
  8009. v.BrickColor = MAINRUINCOLOR
  8010. v.Material = "Neon"
  8011. end
  8012. end
  8013. for i, v in pairs(m:GetChildren()) do
  8014. if v:IsA("Part") then
  8015. v.Color = Color3.new(170,0,0)
  8016. v.Material = "Neon"
  8017. end
  8018. end
  8019. for i, v in pairs(m2:GetChildren()) do
  8020. if v:IsA("Part") then
  8021. v.Color = Color3.new(0,0,0)
  8022. v.Material = "Neon"
  8023. end
  8024. end
  8025. for i, v in pairs(m3:GetChildren()) do
  8026. if v:IsA("Part") then
  8027. v.Color = Color3.new(0,0,0)
  8028. v.Material = "Neon"
  8029. end
  8030. end
  8031. for i, v in pairs(extrawingmod1:GetChildren()) do
  8032. if v:IsA("Part") then
  8033. v.Transparency = 0.75
  8034. v.Color = Color3.new(0,0,0)
  8035. v.Material = "Neon"
  8036. end
  8037. end
  8038. for i, v in pairs(extrawingmod2:GetChildren()) do
  8039. if v:IsA("Part") then
  8040. v.Transparency = 0.75
  8041. v.Color = Color3.new(0,0,0)
  8042. v.Material = "Neon"
  8043. end
  8044. end
  8045. attack = false
  8046. end
  8047.  
  8048. function GleamingBeam()
  8049. attack = true
  8050. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  8051. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8052. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8053. local rsiz = math.random(1,15)
  8054. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8055. hb.Anchored = true
  8056. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8057. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8058. for i = 0, 16, 0.1 do
  8059. swait()
  8060. rsiz = math.random(5,15)
  8061. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8062. 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)
  8063. 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)
  8064. 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)
  8065. 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)
  8066. 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)
  8067. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8069. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8070. end
  8071. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8072. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8073. for i = 0, 2 do
  8074. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8075. end
  8076. 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)
  8077. 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)
  8078. 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)
  8079. for i = 0, 49 do
  8080. local rsiza = math.random(1,15)
  8081. 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)
  8082. end
  8083. local a = Instance.new("Part",Character)
  8084. a.Name = "Direction"
  8085. a.Anchored = true
  8086. a.BrickColor = MAINRUINCOLOR
  8087. a.Material = "Neon"
  8088. a.Transparency = 0
  8089. a.Shape = "Cylinder"
  8090. a.CanCollide = false
  8091. local ba = Instance.new("Part",Character)
  8092. ba.Name = "HitDirect"
  8093. ba.Anchored = true
  8094. ba.BrickColor = bc("Cool yellow")
  8095. ba.Material = "Neon"
  8096. ba.Transparency = 1
  8097. ba.CanCollide = false
  8098. local ray = Ray.new(
  8099. hb.CFrame.p, -- origin
  8100. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8101. )
  8102. local ignore = Character
  8103. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8104. a.BottomSurface = 10
  8105. a.TopSurface = 10
  8106. local distance = (hb.CFrame.p - position).magnitude
  8107. a.Size = Vector3.new(distance, 1, 1)
  8108. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8109. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8110. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8111. local msh = Instance.new("SpecialMesh",a)
  8112. msh.MeshType = "Cylinder"
  8113. msh.Scale = vt(1,4,4)
  8114. game:GetService("Debris"):AddItem(a, 30)
  8115. game:GetService("Debris"):AddItem(ba, 30)
  8116. for i = 0, 25, 0.1 do
  8117. swait()
  8118. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8119. ray = Ray.new(
  8120. hb.CFrame.p, -- origin
  8121. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8122. )
  8123. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8124. distance = (hb.CFrame.p - position).magnitude
  8125. a.Size = Vector3.new(distance, 1, 1)
  8126. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8127. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8128. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8129. rsiz = math.random(5,25)
  8130. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8131. 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)
  8132. for c = 0, 2 do
  8133. 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)
  8134. end
  8135. 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)
  8136. 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)
  8137. 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)
  8138. 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)
  8139. 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)
  8140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8141. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8142. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8143. end
  8144. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8145. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8146. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8147. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8148. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8149. 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)
  8150. 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)
  8151. 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)
  8152. 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)
  8153. 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)
  8154. 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)
  8155. for i = 0, 49 do
  8156. local rsiza = math.random(1,15)
  8157. 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)
  8158. end
  8159. for i = 0, 49 do
  8160. rsiz = math.random(1,8)
  8161. 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)
  8162. end
  8163. coroutine.resume(coroutine.create(function()
  8164. for i = 0, 99 do
  8165. swait()
  8166. a.Transparency = a.Transparency + 0.01
  8167. end
  8168. a:Destroy()
  8169. ba:Destroy()
  8170. end))
  8171. hb:Destroy()
  8172. attack = false
  8173. end
  8174.  
  8175. function DualGleamingBeam()
  8176. attack = true
  8177. hum.WalkSpeed = 0
  8178. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8179. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8180. local radm = math.random(1,3)
  8181. if radm == 1 then
  8182. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8183. elseif radm == 2 then
  8184. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8185. elseif radm == 3 then
  8186. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8187. end
  8188. local rsiz = math.random(1,15)
  8189. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8190. hb.Anchored = true
  8191. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8192. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8193. hb2.Anchored = true
  8194. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8195. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8196. for i = 0, 14, 0.1 do
  8197. swait()
  8198. rsiz = math.random(5,15)
  8199. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8200. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8201. 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)
  8202. 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)
  8203. 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)
  8204. 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"))
  8205. 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)
  8206. 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)
  8207. 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)
  8208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8209. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8210. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8211. end
  8212. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8213. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8214. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8215. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8216. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8217. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8218. 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)
  8219. 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)
  8220. 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)
  8221. 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"))
  8222. 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"))
  8223. 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"))
  8224. for i = 0, 49 do
  8225. local rsiza = math.random(1,15)
  8226. 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)
  8227. 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)
  8228. end
  8229. local a = Instance.new("Part",Character)
  8230. a.Name = "Direction"
  8231. a.Anchored = true
  8232. a.BrickColor = MAINRUINCOLOR
  8233. a.Material = "Neon"
  8234. a.Transparency = 0
  8235. a.Shape = "Cylinder"
  8236. a.CanCollide = false
  8237. local a2 = Instance.new("Part",Character)
  8238. a2.Name = "Direction"
  8239. a2.Anchored = true
  8240. a2.BrickColor = MAINRUINCOLOR
  8241. a2.Material = "Neon"
  8242. a2.Transparency = 0
  8243. a2.Shape = "Cylinder"
  8244. a2.CanCollide = false
  8245. local ba = Instance.new("Part",Character)
  8246. ba.Name = "HitDirect"
  8247. ba.Anchored = true
  8248. ba.BrickColor = MAINRUINCOLOR
  8249. ba.Material = "Neon"
  8250. ba.Transparency = 1
  8251. ba.CanCollide = false
  8252. local ba2 = Instance.new("Part",Character)
  8253. ba2.Name = "HitDirect"
  8254. ba2.Anchored = true
  8255. ba2.BrickColor = MAINRUINCOLOR
  8256. ba2.Material = "Neon"
  8257. ba2.Transparency = 1
  8258. ba2.CanCollide = false
  8259. local ray = Ray.new(
  8260. hb.CFrame.p, -- origin
  8261. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8262. )
  8263. local ignore = Character
  8264. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8265. local ray2 = Ray.new(
  8266. hb2.CFrame.p, -- origin
  8267. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8268. )
  8269. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8270. local distance2 = (hb2.CFrame.p - position).magnitude
  8271.  
  8272. a.BottomSurface = 10
  8273. a.TopSurface = 10
  8274. local distance = (hb.CFrame.p - position).magnitude
  8275. a.Size = Vector3.new(distance, 1, 1)
  8276. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8277. a2.BottomSurface = 10
  8278. a2.TopSurface = 10
  8279. a2.Size = Vector3.new(distance2, 1, 1)
  8280. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8281. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8282. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8283. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8284. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8285. local msh = Instance.new("SpecialMesh",a)
  8286. msh.MeshType = "Cylinder"
  8287. msh.Scale = vt(1,4,4)
  8288. local msh2 = Instance.new("SpecialMesh",a2)
  8289. msh2.MeshType = "Cylinder"
  8290. msh2.Scale = vt(1,4,4)
  8291. game:GetService("Debris"):AddItem(a, 30)
  8292. game:GetService("Debris"):AddItem(a2, 30)
  8293. game:GetService("Debris"):AddItem(ba, 30)
  8294. game:GetService("Debris"):AddItem(ba2, 30)
  8295. for i = 0, 20, 0.1 do
  8296. swait()
  8297. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8298. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8299. ray = Ray.new(
  8300. hb.CFrame.p, -- origin
  8301. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8302. )
  8303. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8304. distance = (hb.CFrame.p - position).magnitude
  8305. ray2 = Ray.new(
  8306. hb2.CFrame.p, -- origin
  8307. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8308. )
  8309. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8310. distance2 = (hb2.CFrame.p - position).magnitude
  8311. a.Size = Vector3.new(distance, 1, 1)
  8312. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8313. a2.Size = Vector3.new(distance2, 1, 1)
  8314. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8315. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8316. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8317. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8318. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8319. rsiz = math.random(5,25)
  8320. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8321. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8322. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8323. if v:FindFirstChild('Head') then
  8324. dmg(v)
  8325. end
  8326. end
  8327. coroutine.resume(coroutine.create(function()
  8328. local bx = Instance.new("Part",Character)
  8329. bx.Name = "Location"
  8330. bx.Anchored = true
  8331. bx.BrickColor = MAINRUINCOLOR
  8332. bx.Material = "Neon"
  8333. bx.Transparency = 1
  8334. bx.CanCollide = false
  8335. bx.Position = ba.Position
  8336. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8337. wait(math.random(1,2))
  8338. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8339. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8340. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8341. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8342. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8343. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8344. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8345. if v:FindFirstChild('Head') then
  8346. dmg(v)
  8347. end
  8348. end
  8349. wait(5)
  8350. bx:Destroy()
  8351. end))
  8352. 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)
  8353. 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)
  8354. for c = 0, 2 do
  8355. 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)
  8356. end
  8357. 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)
  8358. 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)
  8359. 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)
  8360. 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)
  8361. 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)
  8362. 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)
  8363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8364. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8365. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8366. end
  8367. for i = 0, 1 do
  8368. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8369. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8370. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8371. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8372. end
  8373. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8374. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8375. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8376. if v:FindFirstChild('Head') then
  8377. dmg(v)
  8378. end
  8379. end
  8380. 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)
  8381. 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)
  8382. 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)
  8383. 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)
  8384. 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)
  8385. 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)
  8386. 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"))
  8387. 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"))
  8388. 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"))
  8389. for i = 0, 49 do
  8390. local rsiza = math.random(1,15)
  8391. 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)
  8392. 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)
  8393. end
  8394. for i = 0, 49 do
  8395. rsiz = math.random(1,8)
  8396. 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)
  8397. end
  8398. coroutine.resume(coroutine.create(function()
  8399. for i = 0, 99 do
  8400. swait()
  8401. a.Transparency = a.Transparency + 0.01
  8402. a2.Transparency = a2.Transparency + 0.01
  8403. end
  8404. a:Destroy()
  8405. ba:Destroy()
  8406. a2:Destroy()
  8407. ba2:Destroy()
  8408. end))
  8409. hum.WalkSpeed = storehumanoidWS
  8410. hb:Destroy()
  8411. hb2:Destroy()
  8412. attack = false
  8413. end
  8414.  
  8415. function dragin()
  8416. local targetted = nil
  8417. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8418. targetted = mouse.Target.Parent
  8419. end
  8420. if targetted ~= nil then
  8421. RootPart.CFrame = FaceMouse()[1]
  8422. attack = true
  8423. hum.WalkSpeed = 0
  8424. for x = 0, 1 do
  8425. for i = 0,1,0.5 do
  8426. swait()
  8427. 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)
  8428. 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)
  8429. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8430. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8431. 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)
  8432. 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)
  8433. end
  8434. for i = 0,1,0.5 do
  8435. swait()
  8436. 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)
  8437. 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)
  8438. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8439. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8440. 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)
  8441. 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)
  8442. end
  8443. for i = 0,1,0.5 do
  8444. swait()
  8445. 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)
  8446. 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)
  8447. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8449. 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)
  8450. 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)
  8451. end
  8452. for i = 0,1,0.5 do
  8453. swait()
  8454. 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)
  8455. 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)
  8456. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8457. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8458. 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)
  8459. 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)
  8460. end
  8461. end
  8462. coroutine.resume(coroutine.create(function()
  8463. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8464. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8465. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8466. end))
  8467. local A1 = Instance.new("Attachment",targetted.Head)
  8468. local A2 = Instance.new("Attachment",sorb)
  8469. local Beem = Instance.new("Beam",tors)
  8470. Beem.Attachment0 = A1
  8471. Beem.Attachment1 = A2
  8472. Beem.Texture = "rbxassetid://897585362"
  8473. Beem.LightEmission = 0.75
  8474. Beem.FaceCamera = true
  8475. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8476. Beem.Width0 = 1
  8477. Beem.Width1 = 1
  8478. Beem.TextureMode = "Wrap"
  8479. Beem.TextureLength = 1
  8480. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8481. 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)
  8482. 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)
  8483. for x = 0, 24 do
  8484. local rsiz = math.random(5,15)
  8485. 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)
  8486. end
  8487.  
  8488. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8489. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8490. local radm = math.random(1,2)
  8491. if radm == 1 then
  8492. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8493. elseif radm == 2 then
  8494. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8495. end
  8496. for i = 0,3,0.1 do
  8497. swait()
  8498. coroutine.resume(coroutine.create(function()
  8499. local rsiz = math.random(5,15)
  8500. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8501. 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)
  8502. end))
  8503. 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)
  8504. 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)
  8505. 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)
  8506. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8508. 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)
  8509. 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)
  8510. end
  8511. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8512. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8513. local vel = Instance.new("BodyPosition", targetted.Head)
  8514. vel.P = 12500
  8515. vel.D = 1000
  8516. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8517. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8518. for i = 0,4,0.1 do
  8519. swait()
  8520. coroutine.resume(coroutine.create(function()
  8521. local rsiz = math.random(5,15)
  8522. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8523. 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)
  8524. end))
  8525. 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)
  8526. 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)
  8527. 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)
  8528. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8530. 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)
  8531. 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)
  8532. end
  8533. local visibility = 0
  8534. coroutine.resume(coroutine.create(function()
  8535. for i = 0, 49 do
  8536. swait()
  8537. visibility = visibility + 0.02
  8538. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8539. end
  8540. Beem:Destroy()
  8541. A1:Destroy()
  8542. A2:Destroy()
  8543. end))
  8544. game:GetService("Debris"):AddItem(vel,0.75)
  8545. attack = false
  8546. hum.WalkSpeed = storehumanoidWS
  8547.  
  8548. end
  8549. end
  8550.  
  8551. function hugg()
  8552. attack = true
  8553. hum.WalkSpeed = 5
  8554. local rsiz = math.random(5,15)
  8555. for i = 0, 2, 0.1 do
  8556. swait()
  8557. 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)
  8558. 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)
  8559. 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)
  8560. 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)
  8561. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8562. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8563. end
  8564. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8565. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8566. hb.Anchored = true
  8567. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8568. local huggedperson = nil
  8569. local act = false
  8570. local alreadydid = false
  8571. for i = 0, 3, 0.1 do
  8572. swait()
  8573. if act == false then
  8574. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8575. if v:FindFirstChild('Head') then
  8576. if alreadydid == false then
  8577. huggedperson = v
  8578. hum.WalkSpeed = 0
  8579. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8580. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8581. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8582. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8583. local radm = math.random(1,3)
  8584. if radm == 1 then
  8585. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8586. elseif radm == 2 then
  8587. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8588. elseif radm == 3 then
  8589. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8590. end
  8591. root.Anchored = true
  8592. coroutine.resume(coroutine.create(function()
  8593. huggedperson.Humanoid.WalkSpeed = 0
  8594. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8595. end))
  8596. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8597. alreadydid = true
  8598. act = true
  8599. print(huggedperson.Name)
  8600. end
  8601. end
  8602. end
  8603. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8604. 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)
  8605. elseif act == true then
  8606. coroutine.resume(coroutine.create(function()
  8607. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8608. end))
  8609. rsiz = math.random(5,15)
  8610. 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)
  8611. 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)
  8612. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8613. end
  8614. 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)
  8615. 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)
  8616. 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)
  8617. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8618. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8619. end
  8620. hb:Destroy()
  8621. if act == true then
  8622. for x = 0, 2 do
  8623. for i = 0, 2, 0.1 do
  8624. swait()
  8625. coroutine.resume(coroutine.create(function()
  8626. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8627. end))
  8628. rsiz = math.random(5,15)
  8629. 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)
  8630. 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)
  8631. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8632. 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)
  8633. 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)
  8634. 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)
  8635. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8636. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8637. end
  8638. for i = 0, 2, 0.1 do
  8639. swait()
  8640. coroutine.resume(coroutine.create(function()
  8641. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8642. end))
  8643. rsiz = math.random(5,15)
  8644. 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)
  8645. 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)
  8646. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8647. 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)
  8648. 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)
  8649. 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)
  8650. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8651. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8652. end
  8653. end
  8654. end
  8655. hum.WalkSpeed = storehumanoidWS
  8656. root.Anchored = false
  8657. if act == true then
  8658. coroutine.resume(coroutine.create(function()
  8659. huggedperson.Humanoid.WalkSpeed = 16
  8660. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8661. end))
  8662. end
  8663. hum.WalkSpeed = storehumanoidWS
  8664. attack = false
  8665. end
  8666.  
  8667. function Counter()
  8668. hum.WalkSpeed = 0
  8669. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8670. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8671. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8672. attack = true
  8673. for i = 0,1,0.1 do
  8674. swait()
  8675. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8676. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8677. 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)
  8678. 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)
  8679. 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)
  8680. 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)
  8681. end
  8682. CameraEnshaking(3,4)
  8683. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8684. 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)
  8685. 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)
  8686. 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)
  8687. coroutine.resume(coroutine.create(function()
  8688. local eff = Instance.new("ParticleEmitter",root)
  8689. eff.Texture = "rbxassetid://363275192"
  8690. eff.LightEmission = 0.95
  8691. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8692. eff.Rate = 10000
  8693. eff.Lifetime = NumberRange.new(1)
  8694. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8695. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8696. eff.Speed = NumberRange.new(10,125)
  8697. eff.Drag = 5
  8698. eff.Rotation = NumberRange.new(-500,500)
  8699. eff.VelocitySpread = 9000
  8700. eff.RotSpeed = NumberRange.new(-50,50)
  8701. local eff2 = eff:Clone()
  8702. eff2.Parent = root
  8703. eff2.Texture = "rbxassetid://284205403"
  8704. eff2.Rate = 10000
  8705. 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)})
  8706. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8707. eff2.Drag = 5
  8708. eff2.Speed = NumberRange.new(10,50)
  8709. eff2.Rotation = NumberRange.new(-500,500)
  8710. eff2.VelocitySpread = 9000
  8711. wait(0.25)
  8712. eff2.Enabled = false
  8713. eff.Enabled = false
  8714. wait(3)
  8715. eff2:Destroy()
  8716. eff:Destroy()
  8717. end))
  8718. for i = 0, 9 do
  8719. 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)
  8720. end
  8721. for i = 0, 24 do
  8722. local rsiz = math.random(5,20)
  8723. 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)
  8724. end
  8725. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8726. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8727. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8728. for i = 0,2,0.1 do
  8729. swait()
  8730. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8731. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8732. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8733. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8734. 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)
  8735. 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)
  8736. end
  8737. hum.WalkSpeed = storehumanoidWS
  8738. attack = false
  8739. end
  8740.  
  8741. function superjump()
  8742. attack = true
  8743. hum.WalkSpeed = 0
  8744. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8745. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8746. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8747. for i = 0, 2, 0.1 do
  8748. swait()
  8749. root.Velocity = vt(0,0,0)
  8750. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White"))
  8751. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  8752. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4)
  8753. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8754. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8755. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8756. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8757. end
  8758. MagniDamage(root, 28, 25,50, 25, "Normal")
  8759. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8760. hum.Jump = true
  8761. swait()
  8762. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8763. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8764. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8765. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8766. for i = 0, 3, 0.1 do
  8767. swait()
  8768. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  8769. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4)
  8770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8772. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8773. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8774. end
  8775. attack = false
  8776. if equipped == false then
  8777. hum.WalkSpeed = 16
  8778. else
  8779. hum.WalkSpeed = 24
  8780. end
  8781. end
  8782.  
  8783.  
  8784. -------------------------------------
  8785.  
  8786.  
  8787.  
  8788. Humanoid.Animator.Parent = nil
  8789.  
  8790.  
  8791.  
  8792. -------------------------------------
  8793.  
  8794. local attacktype = 1
  8795. mouse.Button1Down:connect(function()
  8796. if attack == false and attacktype == 1 then
  8797. attacktype = 2
  8798. attackone()
  8799. elseif attack == false and attacktype == 2 then
  8800. attacktype = 3
  8801. attacktwo()
  8802. elseif attack == false and attacktype == 3 then
  8803. attacktype = 1
  8804. attackthree()
  8805. elseif attack == false and attacktype == 4 then
  8806. attacktype = 1
  8807. --attackfour()
  8808. end
  8809. end)
  8810. mouse.KeyDown:connect(function(k)
  8811. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8812. --normalmog()
  8813. ModeOfGlitch = 1
  8814. storehumanoidWS = 16
  8815. hum.WalkSpeed = 16
  8816. rainbowmode = false
  8817. chaosmode = false
  8818. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8819. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8820. MAINRUINCOLOR = BrickColor.new("Really red")
  8821. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8822. end
  8823. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8824. ModeOfGlitch = 2
  8825. storehumanoidWS = 16
  8826. hum.WalkSpeed = 16
  8827. rainbowmode = false
  8828. chaosmode = false
  8829. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8830. newTheme("rbxassetid://1539245059",0,1,0.85)
  8831. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8832. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8833. end
  8834. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8835. ModeOfGlitch = 3
  8836. storehumanoidWS = 14
  8837. hum.WalkSpeed = 14
  8838. rainbowmode = false
  8839. chaosmode = false
  8840. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8841. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8842. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8843. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8844. end
  8845. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8846. ModeOfGlitch = 4
  8847. storehumanoidWS = 14
  8848. hum.WalkSpeed = 14
  8849. rainbowmode = false
  8850. chaosmode = true
  8851. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8852. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8853. MAINRUINCOLOR = BrickColor.new("Crimson")
  8854. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8855. end
  8856. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8857. ModeOfGlitch = 5
  8858. storehumanoidWS = 14
  8859. hum.WalkSpeed = 14
  8860. rainbowmode = false
  8861. chaosmode = false
  8862. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8863. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8864. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8865. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8866. end
  8867. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8868. ModeOfGlitch = 6
  8869. storehumanoidWS = 65
  8870. hum.WalkSpeed = 65
  8871. rainbowmode = false
  8872. chaosmode = false
  8873. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8874. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8875. MAINRUINCOLOR = BrickColor.new("White")
  8876. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8877. end
  8878. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8879. ModeOfGlitch = 8
  8880. storehumanoidWS = 100
  8881. hum.WalkSpeed = 100
  8882. rainbowmode = false
  8883. chaosmode = false
  8884. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8885. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8886. MAINRUINCOLOR = BrickColor.new("Alder")
  8887. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8888. end
  8889. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8890. ModeOfGlitch = 9
  8891. storehumanoidWS = 85
  8892. hum.WalkSpeed = 85
  8893. rainbowmode = false
  8894. chaosmode = false
  8895. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8896. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8897. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8898. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8899. end
  8900. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8901. ModeOfGlitch = 5555
  8902. storehumanoidWS = 30
  8903. hum.WalkSpeed = 30
  8904. rainbowmode = false
  8905. chaosmode = false
  8906. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8907. newTheme("rbxassetid://736003449",0,1,1.25)
  8908. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8909. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8910. end
  8911. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8912. CalamityTrans()
  8913. end
  8914. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8915. InsaneTrans()
  8916. end
  8917. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8918. ModeOfGlitch = 55469696922
  8919. storehumanoidWS = 95
  8920. hum.WalkSpeed = 95
  8921. rainbowmode = false
  8922. chaosmode = false
  8923. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8924. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8925. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8926. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8927. end
  8928. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8929. ModeOfGlitch = 4367677813
  8930. storehumanoidWS = 75
  8931. hum.WalkSpeed = 75
  8932. rainbowmode = false
  8933. chaosmode = false
  8934. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8935. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8936. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8937. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8938. end
  8939. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8940. ModeOfGlitch = 9999999921111
  8941. storehumanoidWS = 145
  8942. hum.WalkSpeed = 145
  8943. rainbowmode = false
  8944. chaosmode = false
  8945. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8946. newTheme("rbxassetid://643309199",0,1.01,1)
  8947. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8948. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8949. end
  8950. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8951. ModeOfGlitch = 999999999556
  8952. storehumanoidWS = 115
  8953. hum.WalkSpeed = 115
  8954. rainbowmode = false
  8955. chaosmode = false
  8956. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8957. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8958. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8959. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8960. end
  8961. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8962. ModeOfGlitch = 12
  8963. storehumanoidWS = 19
  8964. hum.WalkSpeed = 19
  8965. rainbowmode = false
  8966. chaosmode = false
  8967. print'Mode was meant for Vengeful Program or those other fans out there'
  8968. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8969. newTheme("rbxassetid://1873219898",0,1,1.7)
  8970. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8971. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8972. end
  8973.  
  8974. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8975. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8976. for i = 0, 49 do
  8977. 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))),8,8,8,0.16,BrickColor.new("Institutional white"),0)
  8978. end
  8979. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8980. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8981. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8982. hum.WalkSpeed = storehumanoidWS
  8983. attack = false
  8984. ModeOfGlitch = 50
  8985. storehumanoidWS = 18
  8986. hum.WalkSpeed = 18
  8987. rainbowmode = false
  8988. chaosmode = false
  8989. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8990. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8991. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8992. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8993. end
  8994.  
  8995. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8996. hum.WalkSpeed = 0
  8997. attack = true
  8998. for i = 0,1,0.1 do
  8999. swait()
  9000. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  9001. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  9002. 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)
  9003. 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)
  9004. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9005. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9006. end
  9007. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9008. for i = 0, 148 do
  9009. 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))),1,1,1,0.02,MAINRUINCOLOR,0)
  9010. end
  9011. for i = 0,3,0.1 do
  9012. 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)
  9013. end
  9014. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9015. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9016. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9017. hum.WalkSpeed = storehumanoidWS
  9018. attack = false
  9019. ModeOfGlitch = 66
  9020. storehumanoidWS = 16
  9021. hum.WalkSpeed = 16
  9022. rainbowmode = false
  9023. chaosmode = false
  9024. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  9025. MAINRUINCOLOR = BrickColor.new("Really black")
  9026. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9027. for i = 0,2,0.1 do
  9028. swait()
  9029. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9030. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9033. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9035. end
  9036. end
  9037.  
  9038. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  9039. hum.WalkSpeed = 0
  9040. attack = true
  9041. for i = 0,1,0.1 do
  9042. swait()
  9043. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  9044. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  9045. 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)
  9046. 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)
  9047. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9048. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9049. end
  9050. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9051. for i = 0, 49 do
  9052. 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)
  9053. end
  9054. for i = 0,3,0.1 do
  9055. 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)
  9056. end
  9057. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9058. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9059. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9060. hum.WalkSpeed = storehumanoidWS
  9061. attack = false
  9062. ModeOfGlitch = 13
  9063. storehumanoidWS = 45
  9064. hum.WalkSpeed = 45
  9065. rainbowmode = false
  9066. chaosmode = false
  9067. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  9068. newTheme("rbxassetid://190845741",0,1,1.35)
  9069. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9070. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9071. for i = 0,2,0.1 do
  9072. swait()
  9073. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9074. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9075. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9076. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9077. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9078. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9079. end
  9080. end
  9081. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9082. ModeOfGlitch = 1002
  9083. storehumanoidWS = 45
  9084. hum.WalkSpeed = 45
  9085. rainbowmode = false
  9086. chaosmode = false
  9087. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9088. newTheme("rbxassetid://2027652726",0,1,0.85)
  9089. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9090. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9091. end
  9092. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9093. ModeOfGlitch = 1003
  9094. storehumanoidWS = 90
  9095. hum.WalkSpeed = 90
  9096. rainbowmode = false
  9097. chaosmode = false
  9098. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9099. newTheme("rbxassetid://257453119",0,1,0.85)
  9100. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9101. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9102. end
  9103. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9104. ModeOfGlitch = 1264532489
  9105. storehumanoidWS = 175
  9106. hum.WalkSpeed = 175
  9107. rainbowmode = false
  9108. chaosmode = false
  9109. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9110. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9111. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9112. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9113. end
  9114. if k == "l" and mutedtog == false then
  9115. mutedtog = true
  9116. kan.Volume = 0.85
  9117. elseif k == "l" and mutedtog == true then
  9118. mutedtog = false
  9119. kan.Volume = 0.85
  9120. end
  9121. if k == "p" and toggleTag == false then
  9122. toggleTag = true
  9123. modet.TextTransparency = 0
  9124. modet.TextStrokeTransparency = 0
  9125. elseif k == "p" and toggleTag == true then
  9126. toggleTag = false
  9127. modet.TextTransparency = 1
  9128. modet.TextStrokeTransparency = 1
  9129. end
  9130. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9131. ExtinctiveHeartbreak()
  9132. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9133. HeavenlyDisk()
  9134. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9135. DualGleamingBeam()
  9136. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9137. BanishingOrb()
  9138. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9139. hugg()
  9140. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9141. cutesigh()
  9142. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9143. Counter()
  9144. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9145. superjump()
  9146. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9147. dragin()
  9148. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9149. UniversalCollapse()
  9150. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9151. PureBomb()
  9152. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9153. Beams()
  9154. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9155. BeamOfDeath()
  9156. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9157. THE_TRUE_POWER_OF_VIOLENCE()
  9158. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9159. GleamingBeam()
  9160. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9161. ViolentRing()
  9162. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9163. CorruptionEvent()
  9164. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9165. CorruptBlink()
  9166. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9167. scattercorrupt()
  9168. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9169. shytaunty()
  9170. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9171. InsaneBeam()
  9172. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9173. RapidBurst()
  9174. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9175. InsaneDrop()
  9176. wait(2)
  9177. ChaosEND()
  9178. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9179. ChaosEND()
  9180. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9181. CyberSlash()
  9182. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9183. smiter()
  9184. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9185. SpeedDrop()
  9186. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9187. --DivineLights()
  9188. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9189. DivineBlast()
  9190. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9191. EquinoxOrbs()
  9192. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9193. yinyangi()
  9194. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9195. FallenOrbs()
  9196. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9197. StarfallEX()
  9198. end
  9199. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9200. FallenDEMISE()
  9201. end
  9202. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9203. EndGROUND()
  9204. end
  9205. end)
  9206.  
  9207. coroutine.resume(coroutine.create(function()
  9208. while true do
  9209. swait()
  9210. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9211. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
  9212. end
  9213. if ModeOfGlitch == 5555 then
  9214. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  9215. end
  9216. end
  9217. end))
  9218. --[[coroutine.resume(coroutine.create(function()
  9219. while true do
  9220. swait(2)
  9221. if chaosmode == true then
  9222. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9223. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9224. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9225. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9226. for i, v in pairs(mw1:GetChildren()) do
  9227. if v:IsA("Part") then
  9228. v.Transparency = 0.75
  9229. v.BrickColor = BrickColor.random()
  9230. v.Material = "Neon"
  9231. end
  9232. end
  9233. for i, v in pairs(m2:GetChildren()) do
  9234. if v:IsA("Part") then
  9235. v.BrickColor = BrickColor.random()
  9236. v.Material = "Neon"
  9237. end
  9238. end
  9239. end
  9240. end
  9241. end))]]
  9242.  
  9243.  
  9244.  
  9245. ff = Instance.new("ForceField",char)
  9246. ff.Visible = false
  9247. hum.Name = "Base"
  9248. hum.MaxHealth = 1.0E298
  9249. hum.Health = 1.0E298
  9250. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9251. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9252. hum.MaxHealth = 1.0E298
  9253. hum.Health = 1.0E298
  9254. end
  9255. end)
  9256.  
  9257. local Hair = Instance.new("Part", char)
  9258. Hair.Name = "Hair"
  9259. Hair.CanCollide = false
  9260. Hair.BrickColor = BrickColor.new("Institutional white")
  9261. Hair.Transparency = 0
  9262. Hair.Material = "Plastic"
  9263. Hair.Size = Vector3.new(1, 1, 2)
  9264. Hair.TopSurface = Enum.SurfaceType.Smooth
  9265. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9266.  
  9267.  
  9268. local bguis = Instance.new("BillboardGui",tors)
  9269. bguis.Size = UDim2.new(25, 0, 25, 0)
  9270. local imgca = Instance.new("ImageLabel",bguis)
  9271. imgca.BackgroundTransparency = 1
  9272. imgca.ImageTransparency = 1
  9273. imgca.Size = UDim2.new(1,0,1,0)
  9274. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9275. imgca.ImageColor3 = Color3.new(0,0,0)
  9276.  
  9277.  
  9278. local bguis2 = Instance.new("BillboardGui",tors)
  9279. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9280. local imgca2 = Instance.new("ImageLabel",bguis)
  9281. imgca2.BackgroundTransparency = 1
  9282. imgca2.ImageTransparency = 1
  9283. imgca2.Size = UDim2.new(1,0,1,0)
  9284. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9285. imgca2.ImageColor3 = Color3.new(0,0,0)
  9286.  
  9287.  
  9288.  
  9289. idleanim=.4
  9290. while true do
  9291. if mutedtog == false then
  9292. kan.Volume = currentVol
  9293. elseif mutedtog == true then
  9294. kan.Volume = 0
  9295. end
  9296. kan.PlaybackSpeed = currentPitch
  9297. kan.Pitch = currentPitch
  9298. kan.SoundId = currentThemePlaying
  9299. kan.Looped = true
  9300. kan.Parent = char
  9301. kan:Resume()
  9302. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9303. imgca.ImageTransparency = 1
  9304. imgca2.ImageTransparency = 1
  9305. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9306. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9307. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9308. elseif ModeOfGlitch == 13 then
  9309. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9310. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9311. end
  9312. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9313. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9314. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9315. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9316. coroutine.resume(coroutine.create(function()
  9317. if chaosmode == true then
  9318. for i, v in pairs(mw1:GetChildren()) do
  9319. if v:IsA("Part") then
  9320. v.Transparency = 0
  9321. v.BrickColor = BrickColor.random()
  9322. v.Material = "Neon"
  9323. end
  9324. end
  9325. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9326. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9327. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9328. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9329. end
  9330. end))
  9331. coroutine.resume(coroutine.create(function()
  9332. if ModeOfGlitch == 66 then
  9333. for i, v in pairs(m:GetChildren()) do
  9334. if v:IsA("Part") then
  9335. v.Transparency = 0
  9336. v.BrickColor = BrickColor.random()
  9337. v.Material = "Neon"
  9338. end
  9339. end
  9340. for i, v in pairs(m2:GetChildren()) do
  9341. if v:IsA("Part") then
  9342. v.Transparency = 0
  9343. v.BrickColor = BrickColor.random()
  9344. v.Material = "Neon"
  9345. end
  9346. end
  9347. for i, v in pairs(mw1:GetChildren()) do
  9348. if v:IsA("Part") then
  9349. v.Transparency = 0
  9350. v.BrickColor = BrickColor.random()
  9351. v.Material = "Neon"
  9352. end
  9353. end
  9354. for i, v in pairs(extrawingmod1:GetChildren()) do
  9355. if v:IsA("Part") then
  9356. v.Transparency = 0.5
  9357. v.BrickColor = BrickColor.random()
  9358. v.Material = "Neon"
  9359. end
  9360. end
  9361. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9362. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9363. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9364. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9365. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9366. end
  9367. end))
  9368.  
  9369. coroutine.resume(coroutine.create(function()
  9370. if ModeOfGlitch == 66 then
  9371. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9372. end
  9373. end))
  9374.  
  9375. if chaosmode == false then
  9376. modet.Position = UDim2.new(0,0,0,0)
  9377. modet.Rotation = -5 * math.cos(sine / 32)
  9378. techc.Rotation = techc.Rotation + 1
  9379. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9380. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9381. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9382. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9383. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9384. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9385. else
  9386. techc.Rotation = techc.Rotation + 1
  9387. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9388. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9389. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9390. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9391. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9392. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9393. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9394. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9395. end
  9396. CameraManager()
  9397. swait()
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408. 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)
  9409. 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)
  9410. sine = sine + change
  9411. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9412. local velderp=RootPart.Velocity.y
  9413. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9414. coroutine.resume(coroutine.create(function()
  9415. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then
  9416. if hitfloor ~= nil then
  9417. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("White"))
  9418. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9419. slash(math.random(75,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(0.01,0.01,0.01),math.random(5,150)/250,MAINRUINCOLOR)
  9420. end
  9421. end
  9422. end
  9423. end))
  9424. if equipped==true or equipped==false then
  9425. if attack==false then
  9426. idle=idle+1
  9427. else
  9428. idle=0
  9429. end
  9430. if idle>=500 then
  9431. if attack==false then
  9432. --Sheath()
  9433. end
  9434. end
  9435. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9436. Anim="Jump"
  9437. if attack==false then
  9438. 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)
  9439. 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)
  9440. 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)
  9441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9442. 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)
  9443. 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)
  9444. end
  9445. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9446. Anim="Fall"
  9447. if attack==false then
  9448. 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)
  9449. 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)
  9450. 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)
  9451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9452. 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)
  9453. 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)
  9454. end
  9455. elseif torvel<1 and hitfloor~=nil then
  9456. Anim="Idle"
  9457. if attack==false then
  9458. if ModeOfGlitch == 1 then
  9459. local snap = math.random(1,10)
  9460. if snap == 1 then
  9461. 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)
  9462. end
  9463. 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)
  9464. 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)
  9465. 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)
  9466. 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)
  9467. 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)
  9468. 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)
  9469. elseif ModeOfGlitch == 2 then
  9470. 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)
  9471. 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)
  9472. 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)
  9473. 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)
  9474. 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)
  9475. 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)
  9476. elseif ModeOfGlitch == 2 then
  9477. RH.C0=clerp(RH.C0,cf(1,-0.5 - 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)
  9478. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 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)
  9479. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),-1 + 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)
  9480. 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)
  9481. 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)
  9482. 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)
  9483. elseif ModeOfGlitch == 50 then
  9484. 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 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  9485. 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(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  9486. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,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),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  9487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  9488. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  9489. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  9490. elseif ModeOfGlitch == 5555 then --5555
  9491. 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)
  9492. 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)
  9493. 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)
  9494. 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)
  9495. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  9496. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  9497. elseif ModeOfGlitch == 1002 then
  9498. 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)
  9499. 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)
  9500. 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)
  9501. 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)
  9502. 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)
  9503. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9504. elseif ModeOfGlitch == 12 then
  9505. 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)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. elseif ModeOfGlitch == 3 then
  9512. local snap = math.random(1,32)
  9513. if snap == 1 then
  9514. 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)
  9515. end
  9516. 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)
  9517. 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)
  9518. 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)
  9519. 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)
  9520. 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)
  9521. 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)
  9522. elseif ModeOfGlitch == 4 then
  9523. local snap = math.random(1,5)
  9524. if snap == 1 then
  9525. 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)
  9526. 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)
  9527. 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)
  9528. end
  9529. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  9530. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  9531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9532. 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)
  9533. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  9534. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  9535. elseif ModeOfGlitch == 66 then
  9536. local snap = math.random(1,2)
  9537. if snap == 1 then
  9538. 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)
  9539. 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)
  9540. 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)
  9541. end
  9542. 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)
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. elseif ModeOfGlitch == 5 then
  9549. 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)
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. 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)
  9555. elseif ModeOfGlitch == 6 then
  9556. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9557. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9558. 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)
  9559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9560. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  9561. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  9562. elseif ModeOfGlitch == 13 then
  9563. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9564. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9565. 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)
  9566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9567. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 1 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9568. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9569. elseif ModeOfGlitch == 8 then
  9570. 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)
  9571. 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)
  9572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  9573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  9574. 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)
  9575. 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)
  9576. elseif ModeOfGlitch == 9 then
  9577. 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)
  9578. 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("Lime green"),Color3.new(0,1,0))
  9579. 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)
  9580. 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)
  9581. 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)
  9582. 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)
  9583. 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)
  9584. 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)
  9585. elseif ModeOfGlitch == 1003 then
  9586. 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)
  9587. 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)
  9588. 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)
  9589. 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)
  9590. 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)
  9591. 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)
  9592.  
  9593. elseif ModeOfGlitch == 8889 then
  9594. 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)
  9595. 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)
  9596. 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)
  9597. 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)
  9598. 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)
  9599. 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)
  9600. elseif ModeOfGlitch == 1264532489 then
  9601. 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)
  9602. 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)
  9603. 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)
  9604. 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)
  9605. 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)
  9606. 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)
  9607. 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)
  9608. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9609. 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)
  9610. 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)
  9611. 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)
  9612. 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)
  9613. 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)
  9614. 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)
  9615. elseif ModeOfGlitch == 4367677813 then
  9616. 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)
  9617. 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)
  9618. 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)
  9619. 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)
  9620. 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)
  9621. 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)
  9622. elseif ModeOfGlitch == 55469696922 then --5555
  9623. 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)
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. 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)
  9629. elseif ModeOfGlitch == 999999999556 then
  9630. 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)
  9631. 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)
  9632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  9633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  9634. 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)
  9635. 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)
  9636. end
  9637. end
  9638. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9639. Anim="Walk"
  9640. if attack==false and ModeOfGlitch ~= 66 then
  9641. 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)
  9642. 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)
  9643. 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)
  9644. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  9645. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9646. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9647. elseif attack==false and ModeOfGlitch == 66 then
  9648. 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)
  9649. 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)
  9650. 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)
  9651. 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)
  9652. 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)
  9653. 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)
  9654. end
  9655. elseif torvel>=22 and hitfloor~=nil then
  9656. Anim="Run"
  9657. if attack==false then
  9658. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 5555 and ModeOfGlitch ~= 1003 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  9659. 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)
  9660. 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)
  9661. 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)
  9662. 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)
  9663. 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)
  9664. 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)
  9665. if ModeOfGlitch == 12 then
  9666. 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 + 45 * math.cos(sine / 8))),.1)
  9667. 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 + 45 * math.cos(sine / 8))),.1)
  9668. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(1.5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  9669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 8))),.1)
  9670. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9671. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9672. end
  9673. if ModeOfGlitch == 9 then
  9674. 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)
  9675. 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("Lime green"),Color3.new(0,1,0))
  9676. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  9677. end
  9678. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9679. 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)
  9680. 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)
  9681. 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)
  9682. 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)
  9683. 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)
  9684. 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)
  9685. elseif ModeOfGlitch == 13 then
  9686. 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)
  9687. 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)
  9688. 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(40),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  9689. 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)
  9690. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 3 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9691. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 5 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9692. end
  9693. end
  9694. end
  9695. end
  9696. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement