Advertisement
DarkScriptZEditors

Untitled

Nov 26th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 469.62 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. wait(0.2)
  137.  
  138. Created, Reworked by NoobyGames12
  139. Edited by GodzPlaysRB
  140. Edited by wanTH092 (Gam_Filano CH)
  141. SpectrumGlitcher Developers ^^^
  142. ]])
  143.  
  144.  
  145. ------------- ORIGINAL WIELDER OC: Velnorum
  146. print([[Icons:
  147. ! = New
  148. ? = Spoilers
  149. * = Exclusivity
  150. C = Changes
  151.  
  152. ]])
  153. warn([[V 8.0 Update Log:
  154. C: TEST BUILD
  155. ]])
  156. --- its obs smooth af do not touch
  157. ---- Sources and functions might be taken from others
  158. plr = game:GetService("Players").SincereProdeadZ
  159. char = plr.Character
  160. hum = char.Humanoid
  161. local cam = game.Workspace.CurrentCamera
  162. Camera = cam
  163. local CamInterrupt = false
  164. local TwoD = false
  165. local TargetInfo = {nil, nil}
  166. cam.CameraType = "Custom"
  167. t = char.Torso
  168. h = char.Head
  169. ra = char["Right Arm"]
  170. la = char["Left Arm"]
  171. rl = char["Right Leg"]
  172. ll = char["Left Leg"]
  173. tors = char.Torso
  174. lleg = char["Left Leg"]
  175. root = char.HumanoidRootPart
  176. hed = char.Head
  177. rleg = char["Right Leg"]
  178. rarm = char["Right Arm"]
  179. larm = char["Left Arm"]
  180. radian = math.rad
  181. random = math.random
  182. Vec3 = Vector3.new
  183. Inst = Instance.new
  184. cFrame = CFrame.new
  185. Euler = CFrame.fromEulerAnglesXYZ
  186. vt = Vector3.new
  187. bc = BrickColor.new
  188. br = BrickColor.random
  189. it = Instance.new
  190. cf = CFrame.new
  191. local Player_Size = 0
  192. cam = game.Workspace.CurrentCamera
  193. CF = CFrame.new
  194. angles = CFrame.Angles
  195. attack = false
  196. Euler = CFrame.fromEulerAnglesXYZ
  197. Rad = math.rad
  198. IT = Instance.new
  199. BrickC = BrickColor.new
  200. Cos = math.cos
  201. Acos = math.acos
  202. Sin = math.sin
  203. Asin = math.asin
  204. Abs = math.abs
  205. Mrandom = math.random
  206. Floor = math.floor
  207. IT = Instance.new
  208. CF = CFrame.new
  209. VT = Vector3.new
  210. RAD = math.rad
  211. C3 = Color3.new
  212. UD2 = UDim2.new
  213. BRICKC = BrickColor.new
  214. ANGLES = CFrame.Angles
  215. EULER = CFrame.fromEulerAnglesXYZ
  216. COS = math.cos
  217. ACOS = math.acos
  218. SIN = math.sin
  219. ASIN = math.asin
  220. ABS = math.abs
  221. MRANDOM = math.random
  222. FLOOR = math.floor
  223. local SINE = 0
  224.  
  225. local Booleans = {
  226. CamFollow = true,
  227. GyroUse = true
  228. }
  229.  
  230. function lerp(object, newCFrame, alpha)
  231. return object:lerp(newCFrame, alpha)
  232. end
  233.  
  234. local Directer = Inst("BodyGyro", root)
  235. Directer.MaxTorque = Vec3(0, 0, 0)
  236. Directer.P = 600000
  237. local CPart = Inst("Part")
  238. CPart.Anchored = true
  239. CPart.CanCollide = false
  240. CPart.Locked = true
  241. CPart.Transparency = 1
  242.  
  243. local rainbowmode = false
  244. local chaosmode = false
  245.  
  246. local kan = Instance.new("Sound",tors)
  247. kan.Volume = 0.85
  248. kan.TimePosition = 0
  249. kan.PlaybackSpeed = 1
  250. kan.Pitch = 1
  251. kan.SoundId = "rbxassetid://1255569288"
  252. kan.Name = "wrecked"
  253. kan.Looped = true
  254. kan:Play()
  255.  
  256. local currentThemePlaying = kan.SoundId
  257. local currentPitch = kan.Pitch
  258. local currentVol = kan.Volume
  259. function newTheme(ID,timepos,pitch,vol)
  260. local kanz = kan
  261. --kanz:Stop()
  262. kanz.Volume = vol
  263. --kanz.TimePosition = timepos
  264. kanz.PlaybackSpeed = pitch
  265. kanz.Pitch = pitch
  266. kanz.SoundId = ID
  267. kanz.Name = "wrecked"
  268. kanz.Looped = true
  269. currentThemePlaying = kanz.SoundId
  270. currentVol = kanz.Volume
  271. currentPitch = kanz.Pitch
  272. --kanz:Play()
  273. --coroutine.resume(coroutine.create(function()
  274. --wait(0.05)
  275. --end))
  276. end
  277.  
  278.  
  279. function newThemeCust(ID,timepos,pitch,vol)
  280. local kanz = kan
  281. kanz:Stop()
  282. kanz.Volume = vol
  283. kanz.TimePosition = timepos
  284. kanz.PlaybackSpeed = pitch
  285. kanz.Pitch = pitch
  286. kanz.SoundId = ID
  287. kanz.Name = "wrecked"
  288. kanz.Looped = true
  289. currentThemePlaying = kanz.SoundId
  290. currentVol = kanz.Volume
  291. currentPitch = kanz.Pitch
  292. kanz:Play()
  293. coroutine.resume(coroutine.create(function()
  294. wait(0.05)
  295. end))
  296. end
  297.  
  298. local mutedtog = false
  299.  
  300. function CameraEnshaking(Length,Intensity)
  301. coroutine.resume(coroutine.create(function()
  302. local intensity = 1*Intensity
  303. local rotM = 0.01*Intensity
  304. for i = 0, Length, 0.1 do
  305. swait()
  306. intensity = intensity - 0.05*Intensity/Length
  307. rotM = rotM - 0.0005*Intensity/Length
  308. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  309. 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)
  310. end
  311. Humanoid.CameraOffset = Vec3(0, 0, 0)
  312. end))
  313. end
  314. CamShake=function(Part,Distan,Power,Times)
  315. local de=Part.Position
  316. for i,v in pairs(workspace:children()) do
  317. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  318. for _,c in pairs(v:children()) do
  319. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  320. local Noob=v.Humanoid
  321. if Noob~=nil then
  322. coroutine.resume(coroutine.create(function()
  323. FV = Instance.new("BoolValue", Noob)
  324. FV.Name = "CameraShake"
  325. for ShakeNum=1,Times do
  326. swait()
  327. local ef=Power
  328. if ef>=1 then
  329. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  330. else
  331. ef=Power*10
  332. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  333. end
  334. end
  335. Humanoid.CameraOffset = Vector3.new(0,0,0)
  336. FV:Destroy()
  337. end))
  338. CameraShake(Times, Power, Noob)
  339. end
  340. end
  341. end
  342. end
  343. end
  344. end
  345.  
  346. local toggleTag = true
  347. local bilguit = Instance.new("BillboardGui", hed)
  348. bilguit.Adornee = nil
  349. bilguit.Name = "ModeName"
  350. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  351. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  352. local modet = Instance.new("TextLabel", bilguit)
  353. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  354. modet.FontSize = "Size8"
  355. modet.TextScaled = true
  356. modet.TextTransparency = 0
  357. modet.BackgroundTransparency = 1
  358. modet.TextTransparency = 0
  359. modet.TextStrokeTransparency = 0
  360. modet.Font = "Antique"
  361. modet.TextStrokeColor3 = Color3.new(1,0,0)
  362. modet.TextColor3 = Color3.new(0.25,0,0)
  363. modet.Text = "Hopeless Guest"
  364.  
  365.  
  366. function chatfunc(text,color,typet,font,timeex)
  367. local chat = coroutine.wrap(function()
  368. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  369. Character:FindFirstChild("TalkingBillBoard"):destroy()
  370. end
  371. local naeeym2 = Instance.new("BillboardGui",Character)
  372. naeeym2.Size = UDim2.new(0,100,0,40)
  373. naeeym2.StudsOffset = Vector3.new(0,3,0)
  374. naeeym2.Adornee = Character.Head
  375. naeeym2.Name = "TalkingBillBoard"
  376. local tecks2 = Instance.new("TextLabel",naeeym2)
  377. tecks2.BackgroundTransparency = 1
  378. tecks2.BorderSizePixel = 0
  379. tecks2.Text = ""
  380. tecks2.Font = font
  381. tecks2.TextSize = 30
  382. tecks2.TextStrokeTransparency = 0
  383. tecks2.TextColor3 = color
  384. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  385. tecks2.Size = UDim2.new(1,0,0.5,0)
  386. local tecks3 = Instance.new("TextLabel",naeeym2)
  387. tecks3.BackgroundTransparency = 1
  388. tecks3.BorderSizePixel = 0
  389. tecks3.Text = ""
  390. tecks3.Font = font
  391. tecks3.TextSize = 30
  392. tecks3.TextStrokeTransparency = 0
  393. if typet == "Inverted" then
  394. tecks3.TextColor3 = Color3.new(0,0,0)
  395. tecks3.TextStrokeColor3 = color
  396. elseif typet == "Normal" then
  397. tecks3.TextColor3 = color
  398. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  399. end
  400. tecks3.Size = UDim2.new(1,0,0.5,0)
  401. coroutine.resume(coroutine.create(function()
  402. while true do
  403. swait(1)
  404. if chaosmode == true then
  405. tecks2.TextColor3 = BrickColor.random().Color
  406. tecks3.TextStrokeColor3 = BrickColor.random().Color
  407. end
  408. end
  409. end))
  410. modet.TextTransparency = modet.TextTransparency + 1
  411. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  412. for i = 0, 74*timeex do
  413. swait()
  414. modet.TextTransparency = 1
  415. modet.TextStrokeTransparency = 1
  416. tecks2.Text = text
  417. tecks3.Text = text
  418. end
  419. local randomrot = math.random(1,2)
  420. if randomrot == 1 then
  421. for i = 1, 50 do
  422. swait()
  423. tecks2.Text = text
  424. tecks3.Text = text
  425. modet.TextTransparency = modet.TextTransparency - .02
  426. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  427. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  428. tecks2.TextTransparency = tecks2.TextTransparency + .04
  429. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  430. tecks3.TextTransparency = tecks2.TextTransparency + .04
  431. end
  432. elseif randomrot == 2 then
  433. for i = 1, 50 do
  434. swait()
  435. tecks2.Text = text
  436. tecks3.Text = text
  437. modet.TextTransparency = modet.TextTransparency - .02
  438. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  439. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  440. tecks2.TextTransparency = tecks2.TextTransparency + .04
  441. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  442. tecks3.TextTransparency = tecks2.TextTransparency + .04
  443. end
  444. end
  445. modet.TextTransparency = 0
  446. modet.TextStrokeTransparency = 0
  447. if toggleTag == false then
  448. modet.TextTransparency = 1
  449. modet.TextStrokeTransparency = 1
  450. end
  451. naeeym2:Destroy()
  452. end)
  453. chat()
  454. end
  455.  
  456. function bosschatfunc(text,color,watval)
  457. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  458. coroutine.resume(coroutine.create(function()
  459. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  460. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  461. end
  462. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  463. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  464. scrg.Name = "Dialog"
  465. local txtlb = Instance.new("TextLabel",scrg)
  466. txtlb.Text = ""
  467. txtlb.Font = "Bodoni"
  468. txtlb.TextColor3 = Color3.new(0,0,0)
  469. txtlb.TextStrokeTransparency = 0
  470. txtlb.BackgroundTransparency = 0.75
  471. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  472. txtlb.TextStrokeColor3 = color
  473. txtlb.TextScaled = true
  474. txtlb.Size = UDim2.new(1,0,0.25,0)
  475. txtlb.TextXAlignment = "Left"
  476. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  477. local txtlb2 = Instance.new("TextLabel",scrg)
  478. txtlb2.Text = plr.Name.." The Guest:"
  479. txtlb2.Font = "Antique"
  480. txtlb2.TextColor3 = Color3.new(0,0,0)
  481. txtlb2.TextStrokeTransparency = 0
  482. txtlb2.BackgroundTransparency = 1
  483. txtlb2.TextStrokeColor3 = color
  484. txtlb2.TextSize = 40
  485. txtlb2.Size = UDim2.new(1,0,0.25,0)
  486. txtlb2.TextXAlignment = "Left"
  487. txtlb2.Position = UDim2.new(0,0,1,0)
  488. local fvalen = 0.55
  489. local fval = -0.49
  490. coroutine.resume(coroutine.create(function()
  491. while true do
  492. swait()
  493. if chaosmode == true then
  494. txtlb.Rotation = math.random(-1,1)
  495. txtlb2.Rotation = math.random(-1,1)
  496. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  497. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  498. txtlb.TextStrokeColor3 = BrickColor.random().Color
  499. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  500. end
  501. end
  502. end))
  503. coroutine.resume(coroutine.create(function()
  504. while true do
  505. swait()
  506. if scrg.Parent ~= nil then
  507. fvalen = fvalen - 0.0001
  508. elseif scrg.Parent == nil then
  509. break
  510. end
  511. end
  512. end))
  513. local flol = 1.75
  514. local flil = 1.6
  515. coroutine.resume(coroutine.create(function()
  516. for i = 0, 9 do
  517. swait()
  518. fval = fval + 0.05
  519. flol = flol - 0.1
  520. flil = flil - 0.1
  521. txtlb.Text = ""
  522. txtlb.Position = UDim2.new(0,0,flol,0)
  523. txtlb2.Position = UDim2.new(0,0,flil,0)
  524. end
  525. txtlb.Text = text
  526. wait(watval)
  527. local valinc = 0
  528. for i = 0, 99 do
  529. swait()
  530. valinc = valinc + 0.0001
  531. flol = flol + valinc
  532. flil = flil + valinc
  533. txtlb.Rotation = txtlb.Rotation + valinc*20
  534. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  535. txtlb.Position = UDim2.new(0,0,flol,0)
  536. txtlb2.Position = UDim2.new(0,0,flil,0)
  537. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  538. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  539. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  540. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  541. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  542. end
  543. scrg:Destroy()
  544. end))
  545. end))
  546. end
  547. end
  548.  
  549.  
  550. local Create = LoadLibrary("RbxUtility").Create
  551.  
  552. CFuncs = {
  553. ["Part"] = {
  554. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  555. local Part = Create("Part"){
  556. Parent = Parent,
  557. Reflectance = Reflectance,
  558. Transparency = Transparency,
  559. CanCollide = false,
  560. Locked = true,
  561. BrickColor = BrickColor.new(tostring(BColor)),
  562. Name = Name,
  563. Size = Size,
  564. Material = Material,
  565. }
  566. RemoveOutlines(Part)
  567. return Part
  568. end;
  569. };
  570.  
  571. ["Mesh"] = {
  572. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  573. local Msh = Create(Mesh){
  574. Parent = Part,
  575. Offset = OffSet,
  576. Scale = Scale,
  577. }
  578. if Mesh == "SpecialMesh" then
  579. Msh.MeshType = MeshType
  580. Msh.MeshId = MeshId
  581. end
  582. return Msh
  583. end;
  584. };
  585.  
  586. ["Mesh"] = {
  587. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  588. local Msh = Create(Mesh){
  589. Parent = Part,
  590. Offset = OffSet,
  591. Scale = Scale,
  592. }
  593. if Mesh == "SpecialMesh" then
  594. Msh.MeshType = MeshType
  595. Msh.MeshId = MeshId
  596. end
  597. return Msh
  598. end;
  599. };
  600.  
  601. ["Weld"] = {
  602. Create = function(Parent, Part0, Part1, C0, C1)
  603. local Weld = Create("Weld"){
  604. Parent = Parent,
  605. Part0 = Part0,
  606. Part1 = Part1,
  607. C0 = C0,
  608. C1 = C1,
  609. }
  610. return Weld
  611. end;
  612. };
  613.  
  614. ["Sound"] = {
  615. Create = function(id, par, vol, pit)
  616. coroutine.resume(coroutine.create(function()
  617. local S = Create("Sound"){
  618. Volume = vol,
  619. Name = "EffectSoundo",
  620. Pitch = pit or 1,
  621. SoundId = id,
  622. Parent = par or workspace,
  623. }
  624. wait()
  625. S:play()
  626. game:GetService("Debris"):AddItem(S, 10)
  627. end))
  628. end;
  629. };
  630.  
  631. ["TimeSound"] = {
  632. Create = function(id, par, vol, pit, timepos)
  633. coroutine.resume(coroutine.create(function()
  634. local S = Create("Sound"){
  635. Volume = vol,
  636. Name = "EffectSoundo",
  637. Pitch = pit or 1,
  638. SoundId = id,
  639. TimePosition = timepos,
  640. Parent = par or workspace,
  641. }
  642. wait()
  643. S:play()
  644. game:GetService("Debris"):AddItem(S, 10)
  645. end))
  646. end;
  647. };
  648. ["EchoSound"] = {
  649. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  650. coroutine.resume(coroutine.create(function()
  651. local Sas = Create("Sound"){
  652. Volume = vol,
  653. Name = "EffectSoundo",
  654. Pitch = pit or 1,
  655. SoundId = id,
  656. TimePosition = timepos,
  657. Parent = par or workspace,
  658. }
  659. local E = Create("EchoSoundEffect"){
  660. Delay = echodelay,
  661. Name = "Echo",
  662. Feedback = fedb,
  663. DryLevel = dryl,
  664. Parent = Sas,
  665. }
  666. wait()
  667. Sas:play()
  668. game:GetService("Debris"):AddItem(Sas, delays)
  669. end))
  670. end;
  671. };
  672.  
  673. ["LongSound"] = {
  674. Create = function(id, par, vol, pit)
  675. coroutine.resume(coroutine.create(function()
  676. local S = Create("Sound"){
  677. Volume = vol,
  678. Pitch = pit or 1,
  679. SoundId = id,
  680. Parent = par or workspace,
  681. }
  682. wait()
  683. S:play()
  684. game:GetService("Debris"):AddItem(S, 60)
  685. end))
  686. end;
  687. };
  688.  
  689. ["ParticleEmitter"] = {
  690. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  691. local fp = Create("ParticleEmitter"){
  692. Parent = Parent,
  693. Color = ColorSequence.new(Color1, Color2),
  694. LightEmission = LightEmission,
  695. Size = Size,
  696. Texture = Texture,
  697. Transparency = Transparency,
  698. ZOffset = ZOffset,
  699. Acceleration = Accel,
  700. Drag = Drag,
  701. LockedToPart = LockedToPart,
  702. VelocityInheritance = VelocityInheritance,
  703. EmissionDirection = EmissionDirection,
  704. Enabled = Enabled,
  705. Lifetime = LifeTime,
  706. Rate = Rate,
  707. Rotation = Rotation,
  708. RotSpeed = RotSpeed,
  709. Speed = Speed,
  710. VelocitySpread = VelocitySpread,
  711. }
  712. return fp
  713. end;
  714. };
  715.  
  716. CreateTemplate = {
  717.  
  718. };
  719. }
  720.  
  721.  
  722.  
  723. New = function(Object, Parent, Name, Data)
  724. local Object = Instance.new(Object)
  725. for Index, Value in pairs(Data or {}) do
  726. Object[Index] = Value
  727. end
  728. Object.Parent = Parent
  729. Object.Name = Name
  730. return Object
  731. end
  732. local halocolor = BrickColor.new("Pastel light blue")
  733. local halocolor2 = BrickColor.new("Cool yellow")
  734. local starcolor = BrickColor.new("Bright yellow")
  735. local lunacolor = BrickColor.new("Navy blue")
  736. local lunacolor2 = BrickColor.new("Bright blue")
  737. local wepcolor = BrickColor.new("Really black")
  738. local maincolor = BrickColor.new("Really black")
  739. local m = Instance.new("Model",char)
  740. local m2 = Instance.new("Model",char)
  741. local m3 = Instance.new("Model",char)
  742. local mw1 = Instance.new("Model",char)
  743. local mw2 = Instance.new("Model",char)
  744.  
  745.  
  746. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  747. local gui = it(GuiType)
  748. gui.Parent = parent
  749. gui.Text = text
  750. gui.BackgroundTransparency = backtrans
  751. gui.BackgroundColor3 = backcol
  752. gui.SizeConstraint = "RelativeXY"
  753. gui.TextXAlignment = "Center"
  754. gui.TextYAlignment = "Center"
  755. gui.Position = pos
  756. gui.Size = size
  757. gui.Font = "SourceSans"
  758. gui.FontSize = "Size14"
  759. gui.TextWrapped = false
  760. gui.TextStrokeTransparency = 0
  761. gui.TextColor = BrickColor.new("White")
  762. return gui
  763. end
  764. --------------------------- GUI STUFF
  765. local basgui = it("GuiMain")
  766. basgui.Parent = plr.PlayerGui
  767. basgui.Name = "VISgui"
  768. local fullscreenz = it("Frame")
  769. fullscreenz.Parent = basgui
  770. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  771. fullscreenz.BackgroundTransparency = 1
  772. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  773. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  774. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  775. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  776. imgl2.BackgroundTransparency = 1
  777. imgl2.BorderSizePixel = 0
  778. imgl2.ImageTransparency = 0.5
  779. imgl2.ImageColor3 = Color3.new(1,0,0)
  780. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  781. imgl2.Size = UDim2.new(0,1000,0,1000)
  782. imgl2.Image = "rbxassetid://2325939897"
  783. local techc = imgl2:Clone()
  784. techc.Parent = fullscreenz
  785. techc.ImageTransparency = 0
  786. techc.Size = UDim2.new(0,900,0,900)
  787. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  788. techc.ImageColor3 = Color3.new(1,0,0)
  789. techc.Image = "rbxassetid://2273224484"
  790. local circl = imgl2:Clone()
  791. circl.Parent = fullscreenz
  792. circl.ImageTransparency = 0
  793. circl.Size = UDim2.new(0,550,0,550)
  794. circl.Position = UDim2.new(0.75,25,0.55,25)
  795. circl.ImageColor3 = Color3.new(0,0,0)
  796. circl.Image = "rbxassetid://2312119891"
  797. local circl2 = imgl2:Clone()
  798. circl2.Parent = fullscreenz
  799. circl2.ImageTransparency = 0
  800. circl2.Size = UDim2.new(0,700,0,700)
  801. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  802. circl2.ImageColor3 = Color3.new(1,0,0)
  803. circl2.Image = "rbxassetid://2312119891"
  804. local imgl2b = imgl2:Clone()
  805. imgl2b.Parent = fullscreenz
  806. imgl2b.ImageTransparency = 0
  807. imgl2b.Size = UDim2.new(0,800,0,800)
  808. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  809. imgl2b.ImageColor3 = Color3.new(0,0,0)
  810. local ned = Instance.new("TextLabel",fullscreenz)
  811. ned.ZIndex = 2
  812. ned.Font = "Arcade"
  813. ned.BackgroundTransparency = 1
  814. ned.BorderSizePixel = 0.65
  815. ned.Size = UDim2.new(0.3,0,0.2,0)
  816. ned.Position = UDim2.new(0.7,0,0.8,0)
  817. ned.TextColor3 = BrickColor.new("Really red").Color
  818. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  819. ned.TextScaled = true
  820. ned.TextStrokeTransparency = 0
  821. ned.Text = "Hopeless Guest"
  822. ned.TextSize = 24
  823. ned.Rotation = 1
  824. ned.TextXAlignment = "Right"
  825. ned.TextYAlignment = "Bottom"
  826.  
  827. local extrawingmod1 = Instance.new("Model",char)
  828. local extrawingmod2 = Instance.new("Model",char)
  829.  
  830. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  831. local p = Instance.new("Part")
  832. p.TopSurface = 0
  833. p.BottomSurface = 0
  834. p.Parent = parent
  835. p.Size = Vector3.new(0.1,0.1,0.1)
  836. p.Transparency = transparency
  837. p.Reflectance = reflectance
  838. p.CanCollide = false
  839. p.Locked = true
  840. p.BrickColor = brickcolor
  841. p.Material = material
  842. return p
  843. end
  844.  
  845. function CreateMesh(parent,meshtype,x1,y1,z1)
  846. local mesh = Instance.new("SpecialMesh",parent)
  847. mesh.MeshType = meshtype
  848. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  849. return mesh
  850. end
  851.  
  852. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  853. local mesh = Instance.new("SpecialMesh",parent)
  854. mesh.MeshType = "FileMesh"
  855. mesh.MeshId = meshid
  856. mesh.Scale = Vector3.new(x1,y1,z1)
  857. return mesh
  858. end
  859.  
  860.  
  861. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  862. local mesh = Instance.new("SpecialMesh",parent)
  863. mesh.MeshType = "FileMesh"
  864. mesh.MeshId = meshid
  865. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  866. mesh.Scale = Vector3.new(x1,y1,z1)
  867. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  868. return mesh
  869. end
  870.  
  871. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  872. local weld = Instance.new("Weld")
  873. weld.Parent = parent
  874. weld.Part0 = part0
  875. weld.Part1 = part1
  876. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  877. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  878. return weld
  879. end
  880.  
  881.  
  882. --------------
  883. --------------
  884. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  885. 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))
  886. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  887. 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))
  888.  
  889. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  890. CreateMesh(handle,"Brick",0,0,0)
  891. 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))
  892. local valuaring = 10
  893. for i = 0, 49 do
  894. valuaring = valuaring + 10
  895. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  896. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  897. 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))
  898. end
  899.  
  900. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  901. CreateMesh(handle,"Brick",0,0,0)
  902. 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))
  903. local valuaring = 10
  904. for i = 0, 49 do
  905. valuaring = valuaring + 10
  906. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  907. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  908. 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))
  909. end
  910.  
  911.  
  912. local handle = CreateParta(m,1,1,"Neon",maincolor)
  913. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  914. 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))
  915.  
  916. --- Left wing.
  917.  
  918. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  919. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  920. 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))
  921.  
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. 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))
  925. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  927. 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))
  928. A0 = Instance.new('Attachment',wed)
  929. A0.Position = vt(0,0.25,0.25)
  930. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,3)
  932. 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))
  933. A1 = Instance.new('Attachment',wed)
  934. A1.Position = vt(0,-0.25,-2)
  935. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,3,0.5)
  937. 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))
  938.  
  939. tl1 = Instance.new('Trail',wed)
  940. tl1.Attachment0 = A1
  941. tl1.Attachment1 = A0
  942. tl1.Texture = "rbxassetid://2108945559"
  943. tl1.LightEmission = 1
  944. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  945. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  946. tl1.Lifetime = 0.6
  947.  
  948.  
  949. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  950. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  951. 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))
  952.  
  953. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. 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))
  956. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  958. 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))
  959. A0 = Instance.new('Attachment',wed)
  960. A0.Position = vt(0,0.25,0.25)
  961. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  963. 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))
  964. A1 = Instance.new('Attachment',wed)
  965. A1.Position = vt(0,-0.25,-2)
  966. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  967. CreateMesh(wed,"Wedge",0.05,3,0.5)
  968. 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))
  969.  
  970. tl2 = Instance.new('Trail',wed)
  971. tl2.Attachment0 = A1
  972. tl2.Attachment1 = A0
  973. tl2.Texture = "rbxassetid://2108945559"
  974. tl2.LightEmission = 1
  975. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  976. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  977. tl2.Lifetime = 0.6
  978.  
  979. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  980. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  981. 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))
  982.  
  983. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  985. 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))
  986. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  988. 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))
  989. A0 = Instance.new('Attachment',wed)
  990. A0.Position = vt(0,0.25,0.25)
  991. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  992. CreateMesh(wed,"Wedge",0.05,0.5,3)
  993. 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))
  994. A1 = Instance.new('Attachment',wed)
  995. A1.Position = vt(0,-0.25,-2)
  996. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,3,0.5)
  998. 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))
  999.  
  1000. tl3 = Instance.new('Trail',wed)
  1001. tl3.Attachment0 = A1
  1002. tl3.Attachment1 = A0
  1003. tl3.Texture = "rbxassetid://2108945559"
  1004. tl3.LightEmission = 1
  1005. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1006. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1007. tl3.Lifetime = 0.6
  1008.  
  1009. tl1.Enabled = false
  1010. tl2.Enabled = false
  1011. tl3.Enabled = false
  1012. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1013. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1014. 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))
  1015.  
  1016. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1018. 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))
  1019. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1021. 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))
  1022. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1023. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1024. 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))
  1025. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1026. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1027. 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))
  1028.  
  1029. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1030. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1031. 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))
  1032.  
  1033. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1035. 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))
  1036. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1038. 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))
  1039. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1041. 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))
  1042. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1044. 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))
  1045.  
  1046. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1047. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1048. 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))
  1049.  
  1050. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1052. 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))
  1053. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1055. 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))
  1056. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1058. 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))
  1059. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1060. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1061. 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))
  1062.  
  1063. -- Right wing.
  1064.  
  1065. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1066. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1067. 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))
  1068.  
  1069. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1071. 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))
  1072. A0 = Instance.new('Attachment',wed)
  1073. A0.Position = vt(0,0.25,0.25)
  1074. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1076. CreateWeld(wed,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))
  1077. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1079. 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))
  1080. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1081. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1082. 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))
  1083. A1 = Instance.new('Attachment',wed)
  1084. A1.Position = vt(0,2,0.25)
  1085.  
  1086. tr1 = Instance.new('Trail',wed)
  1087. tr1.Attachment0 = A1
  1088. tr1.Attachment1 = A0
  1089. tr1.Texture = "rbxassetid://2108945559"
  1090. tr1.LightEmission = 1
  1091. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1092. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1093. tr1.Lifetime = 0.6
  1094.  
  1095. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1096. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1097. 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))
  1098.  
  1099. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. 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))
  1102. A0 = Instance.new('Attachment',wed)
  1103. A0.Position = vt(0,0.25,0.25)
  1104. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1106. 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))
  1107. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1109. 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))
  1110. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1112. 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))
  1113. A1 = Instance.new('Attachment',wed)
  1114. A1.Position = vt(0,2,0.25)
  1115.  
  1116. tr2 = Instance.new('Trail',wed)
  1117. tr2.Attachment0 = A1
  1118. tr2.Attachment1 = A0
  1119. tr2.Texture = "rbxassetid://2108945559"
  1120. tr2.LightEmission = 1
  1121. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1122. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1123. tr2.Lifetime = 0.6
  1124.  
  1125. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1126. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1127. 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))
  1128.  
  1129. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1130. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1131. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1132. A0 = Instance.new('Attachment',wed)
  1133. A0.Position = vt(0,0.25,0.25)
  1134. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1136. 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))
  1137. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1139. 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))
  1140. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1142. 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))
  1143. A1 = Instance.new('Attachment',wed)
  1144. A1.Position = vt(0,2,0.25)
  1145.  
  1146. tr3 = Instance.new('Trail',wed)
  1147. tr3.Attachment0 = A1
  1148. tr3.Attachment1 = A0
  1149. tr3.Texture = "rbxassetid://2108945559"
  1150. tr3.LightEmission = 1
  1151. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1152. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1153. tr3.Lifetime = 0.6
  1154.  
  1155.  
  1156. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1157. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1158. 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))
  1159.  
  1160. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1162. 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))
  1163. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1164. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1165. 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))
  1166. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1167. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1168. 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))
  1169. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1170. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1171. 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))
  1172.  
  1173. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1174. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1175. 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))
  1176.  
  1177. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1178. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1179. 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))
  1180. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1181. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1182. 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))
  1183. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1184. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1185. 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))
  1186. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1187. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1188. 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))
  1189.  
  1190. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1191. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1192. 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))
  1193.  
  1194. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1195. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1196. 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))
  1197. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1198. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1199. 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))
  1200. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1201. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1202. 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))
  1203. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1204. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1205. 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))
  1206.  
  1207. --HERES THE RING
  1208.  
  1209.  
  1210. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1211. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1212. 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))
  1213. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1214. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1215. 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))
  1216. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1217. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1218. 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))
  1219.  
  1220.  
  1221. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1222. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1223. 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))
  1224.  
  1225. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1226. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1227. 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))
  1228.  
  1229.  
  1230.  
  1231. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1232. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1233. 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))
  1234.  
  1235. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1236. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1237. 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))
  1238.  
  1239. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1240. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1241. 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))
  1242.  
  1243. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1244. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1245. 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))
  1246. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1247. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1248. 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))]]--
  1249.  
  1250. --- second ring
  1251.  
  1252.  
  1253. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1254. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1255. 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))
  1256.  
  1257. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1258. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1259. 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))
  1260.  
  1261.  
  1262.  
  1263. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1264. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1265. 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))
  1266.  
  1267. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1268. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1269. 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))
  1270.  
  1271. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1272. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1273. 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))
  1274.  
  1275. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1276. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1277. 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))
  1278. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1279. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1280. 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))
  1281.  
  1282.  
  1283.  
  1284. for i, v in pairs(m:GetChildren()) do
  1285. if v:IsA("Part") then
  1286. v.BrickColor = BrickColor.new("Really black")
  1287. v.Material = "Glass"
  1288. end
  1289. end
  1290. for i, v in pairs(m2:GetChildren()) do
  1291. if v:IsA("Part") then
  1292. v.BrickColor = BrickColor.new("Crimson")
  1293. v.Material = "Granite"
  1294. end
  1295. end
  1296. for i, v in pairs(m3:GetChildren()) do
  1297. if v:IsA("Part") then
  1298. v.BrickColor = BrickColor.new("Really red")
  1299. v.Material = "Neon"
  1300. end
  1301. end
  1302. for i, v in pairs(mw2:GetChildren()) do
  1303. if v:IsA("Part") then
  1304. v.BrickColor = BrickColor.new("Really red")
  1305. v.Material = "Neon"
  1306. end
  1307. end
  1308. for i, v in pairs(mw1:GetChildren()) do
  1309. if v:IsA("Part") then
  1310. v.Transparency = 1
  1311. v.BrickColor = BrickColor.new("Really red")
  1312. v.Material = "Neon"
  1313. end
  1314. end
  1315. for i, v in pairs(extrawingmod1:GetChildren()) do
  1316. if v:IsA("Part") then
  1317. v.Transparency = 1
  1318. v.BrickColor = BrickColor.new("White")
  1319. v.Material = "Neon"
  1320. end
  1321. end
  1322. for i, v in pairs(extrawingmod2:GetChildren()) do
  1323. if v:IsA("Part") then
  1324. v.Transparency = 1
  1325. v.BrickColor = BrickColor.new("White")
  1326. v.Material = "Neon"
  1327. end
  1328. end
  1329. local MAINRUINCOLOR = BrickColor.new("Really red")
  1330. ------
  1331.  
  1332.  
  1333. function RemoveOutlines(part)
  1334. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1335. end
  1336. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1337. local Part = Create("Part")({
  1338. Parent = Parent,
  1339. Reflectance = Reflectance,
  1340. Transparency = Transparency,
  1341. CanCollide = false,
  1342. Locked = true,
  1343. BrickColor = BrickColor.new(tostring(BColor)),
  1344. Name = Name,
  1345. Size = Size,
  1346. Material = Material
  1347. })
  1348. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1349. RemoveOutlines(Part)
  1350. return Part
  1351. end
  1352. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1353. local Msh = Create(Mesh)({
  1354. Parent = Part,
  1355. Offset = OffSet,
  1356. Scale = Scale
  1357. })
  1358. if Mesh == "SpecialMesh" then
  1359. Msh.MeshType = MeshType
  1360. Msh.MeshId = MeshId
  1361. end
  1362. return Msh
  1363. end
  1364. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1365. local Weld = Create("Weld")({
  1366. Parent = Parent,
  1367. Part0 = Part0,
  1368. Part1 = Part1,
  1369. C0 = C0,
  1370. C1 = C1
  1371. })
  1372. return Weld
  1373. end
  1374.  
  1375. Player = plr
  1376. Character=Player.Character
  1377. PlayerGui=Player.PlayerGui
  1378. Backpack=Player.Backpack
  1379. Torso=Character.Torso
  1380. Head=Character.Head
  1381. Humanoid=Character.Humanoid
  1382. m=Instance.new('Model',Character)
  1383. LeftArm=Character["Left Arm"]
  1384. LeftLeg=Character["Left Leg"]
  1385. RightArm=Character["Right Arm"]
  1386. RightLeg=Character["Right Leg"]
  1387. LS=Torso["Left Shoulder"]
  1388. LH=Torso["Left Hip"]
  1389. RS=Torso["Right Shoulder"]
  1390. RH=Torso["Right Hip"]
  1391. Face = Head.face
  1392. Neck=Torso.Neck
  1393. it=Instance.new
  1394. attacktype=1
  1395. vt=Vector3.new
  1396. cf=CFrame.new
  1397. euler=CFrame.fromEulerAnglesXYZ
  1398. angles=CFrame.Angles
  1399. cloaked=false
  1400. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1401. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1402. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1403. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1404. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1405. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1406. RootPart=Character.HumanoidRootPart
  1407. RootJoint=RootPart.RootJoint
  1408. RootCF=euler(-1.57,0,3.14)
  1409. attack = false
  1410. attackdebounce = false
  1411. deb=false
  1412. equipped=true
  1413. hand=false
  1414. combo=0
  1415. mana=0
  1416. trispeed=.2
  1417. attackmode='none'
  1418. local idle=0
  1419. local Anim="Idle"
  1420. local Effects={}
  1421. local gun=false
  1422. local shoot=false
  1423. local sine = 0
  1424. local change = 1
  1425.  
  1426. function RecolorTextAndRename(name,col1,col2,font)
  1427. modet.TextStrokeColor3 = col2
  1428. modet.TextColor3 = col1
  1429. modet.Font = font
  1430. modet.Text = name
  1431. techc.ImageColor3 = col2
  1432. circl.ImageColor3 = col2
  1433. circl2.ImageColor3 = col1
  1434. imgl2.ImageColor3 = col1
  1435. imgl2b.ImageColor3 = col2
  1436. ned.Text = name
  1437. ned.TextColor3 = col1
  1438. ned.TextStrokeColor3 = col2
  1439. end
  1440. --save shoulders
  1441. RSH, LSH=nil, nil
  1442. --welds
  1443. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1444. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1445. LH=Torso["Left Hip"]
  1446. RH=Torso["Right Hip"]
  1447. TorsoColor=Torso.BrickColor
  1448. function NoOutline(Part)
  1449. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1450. end
  1451. ch=Character
  1452. RSH=ch.Torso["Right Shoulder"]
  1453. LSH=ch.Torso["Left Shoulder"]
  1454. --
  1455. RSH.Parent=nil
  1456. LSH.Parent=nil
  1457. --
  1458. RW.Name="Right Shoulder"
  1459. RW.Part0=ch.Torso
  1460. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1461. RW.C1=cf(0, 0.5, 0)
  1462. RW.Part1=ch["Right Arm"]
  1463. RW.Parent=ch.Torso
  1464. --
  1465. LW.Name="Left Shoulder"
  1466. LW.Part0=ch.Torso
  1467. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1468. LW.C1=cf(0, 0.5, 0)
  1469. LW.Part1=ch["Left Arm"]
  1470. LW.Parent=ch.Torso
  1471.  
  1472. local Stats=Instance.new("BoolValue")
  1473. Stats.Name="Stats"
  1474. Stats.Parent=Character
  1475. local Atk=Instance.new("NumberValue")
  1476. Atk.Name="Damage"
  1477. Atk.Parent=Stats
  1478. Atk.Value=1
  1479. local Def=Instance.new("NumberValue")
  1480. Def.Name="Defense"
  1481. Def.Parent=Stats
  1482. Def.Value=1
  1483. local Speed=Instance.new("NumberValue")
  1484. Speed.Name="Speed"
  1485. Speed.Parent=Stats
  1486. Speed.Value=1
  1487. local Mvmt=Instance.new("NumberValue")
  1488. Mvmt.Name="Movement"
  1489. Mvmt.Parent=Stats
  1490. Mvmt.Value=1
  1491.  
  1492. local donum=0
  1493. local ast = {744586075,385254610}
  1494.  
  1495. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1496. local fp=it("Part")
  1497. fp.formFactor=formfactor
  1498. fp.Parent=parent
  1499. fp.Reflectance=reflectance
  1500. fp.Transparency=transparency
  1501. fp.CanCollide=false
  1502. fp.Locked=true
  1503. fp.BrickColor=brickcolor
  1504. fp.Name=name
  1505. fp.Size=size
  1506. fp.Position=Torso.Position
  1507. NoOutline(fp)
  1508. fp.Material="SmoothPlastic"
  1509. fp:BreakJoints()
  1510. return fp
  1511. end
  1512.  
  1513. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1514. local mesh=it(Mesh)
  1515. mesh.Parent=part
  1516. if Mesh=="SpecialMesh" then
  1517. mesh.MeshType=meshtype
  1518. if meshid~="nil" then
  1519. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1520. end
  1521. end
  1522. mesh.Offset=offset
  1523. mesh.Scale=scale
  1524. return mesh
  1525. end
  1526.  
  1527. function weld(parent,part0,part1,c0)
  1528. local weld=it("Weld")
  1529. weld.Parent=parent
  1530. weld.Part0=part0
  1531. weld.Part1=part1
  1532. weld.C0=c0
  1533. return weld
  1534. end
  1535.  
  1536. local Color1=Torso.BrickColor
  1537.  
  1538. local bodvel=Instance.new("BodyVelocity")
  1539. local bg=Instance.new("BodyGyro")
  1540.  
  1541. --------- SazEreno's Artificial HB --------------
  1542. ArtificialHB = Instance.new("BindableEvent", script)
  1543. ArtificialHB.Name = "ArtificialHB"
  1544.  
  1545. script:WaitForChild("ArtificialHB")
  1546. Frame_Speed = 1 / 60
  1547. frame = Frame_Speed
  1548. tf = 0
  1549. allowframeloss = false
  1550. tossremainder = false
  1551. lastframe = tick()
  1552. script.ArtificialHB:Fire()
  1553.  
  1554. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1555. tf = tf + s
  1556. if tf >= frame then
  1557. if allowframeloss then
  1558. script.ArtificialHB:Fire()
  1559. lastframe = tick()
  1560. else
  1561. for i = 1, math.floor(tf / frame) do
  1562. script.ArtificialHB:Fire()
  1563. end
  1564. lastframe = tick()
  1565. end
  1566. if tossremainder then
  1567. tf = 0
  1568. else
  1569. tf = tf - frame * math.floor(tf / frame)
  1570. end
  1571. end
  1572. end)
  1573.  
  1574. ------------------
  1575. function swait(num)
  1576. if num == 0 or num == nil then
  1577. ArtificialHB.Event:wait()
  1578. else
  1579. for i = 1, num do
  1580. ArtificialHB.Event:wait()
  1581. end
  1582. end
  1583. end
  1584. -------- RAINBOW LEAVE IT TO ME
  1585. local r = 255
  1586. local g = 0
  1587. local b = 0
  1588. coroutine.resume(coroutine.create(function()
  1589. while wait() do
  1590. for i = 0, 254/5 do
  1591. swait()
  1592. g = g + 5
  1593. end
  1594. for i = 0, 254/5 do
  1595. swait()
  1596. r = r - 5
  1597. end
  1598. for i = 0, 254/5 do
  1599. swait()
  1600. b = b + 5
  1601. end
  1602. for i = 0, 254/5 do
  1603. swait()
  1604. g = g - 5
  1605. end
  1606. for i = 0, 254/5 do
  1607. swait()
  1608. r = r + 5
  1609. end
  1610. for i = 0, 254/5 do
  1611. swait()
  1612. b = b - 5
  1613. end
  1614. end
  1615. end))
  1616.  
  1617.  
  1618. so = function(id,par,vol,pit)
  1619. coroutine.resume(coroutine.create(function()
  1620. local sou = Instance.new("Sound",par or workspace)
  1621. sou.Volume=vol
  1622. sou.Pitch=pit or 1
  1623. sou.SoundId=id
  1624. swait()
  1625. sou:play()
  1626. game:GetService("Debris"):AddItem(sou,6)
  1627. end))
  1628. end
  1629.  
  1630. function clerp(a,b,t)
  1631. local qa = {QuaternionFromCFrame(a)}
  1632. local qb = {QuaternionFromCFrame(b)}
  1633. local ax, ay, az = a.x, a.y, a.z
  1634. local bx, by, bz = b.x, b.y, b.z
  1635. local _t = 1-t
  1636. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1637. end
  1638.  
  1639. function QuaternionFromCFrame(cf)
  1640. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1641. local trace = m00 + m11 + m22
  1642. if trace > 0 then
  1643. local s = math.sqrt(1 + trace)
  1644. local recip = 0.5/s
  1645. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1646. else
  1647. local i = 0
  1648. if m11 > m00 then
  1649. i = 1
  1650. end
  1651. if m22 > (i == 0 and m00 or m11) then
  1652. i = 2
  1653. end
  1654. if i == 0 then
  1655. local s = math.sqrt(m00-m11-m22+1)
  1656. local recip = 0.5/s
  1657. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1658. elseif i == 1 then
  1659. local s = math.sqrt(m11-m22-m00+1)
  1660. local recip = 0.5/s
  1661. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1662. elseif i == 2 then
  1663. local s = math.sqrt(m22-m00-m11+1)
  1664. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1665. end
  1666. end
  1667. end
  1668.  
  1669. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1670. local xs, ys, zs = x + x, y + y, z + z
  1671. local wx, wy, wz = w*xs, w*ys, w*zs
  1672. local xx = x*xs
  1673. local xy = x*ys
  1674. local xz = x*zs
  1675. local yy = y*ys
  1676. local yz = y*zs
  1677. local zz = z*zs
  1678. 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))
  1679. end
  1680.  
  1681. function QuaternionSlerp(a, b, t)
  1682. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1683. local startInterp, finishInterp;
  1684. if cosTheta >= 0.0001 then
  1685. if (1 - cosTheta) > 0.0001 then
  1686. local theta = math.acos(cosTheta)
  1687. local invSinTheta = 1/math.sin(theta)
  1688. startInterp = math.sin((1-t)*theta)*invSinTheta
  1689. finishInterp = math.sin(t*theta)*invSinTheta
  1690. else
  1691. startInterp = 1-t
  1692. finishInterp = t
  1693. end
  1694. else
  1695. if (1+cosTheta) > 0.0001 then
  1696. local theta = math.acos(-cosTheta)
  1697. local invSinTheta = 1/math.sin(theta)
  1698. startInterp = math.sin((t-1)*theta)*invSinTheta
  1699. finishInterp = math.sin(t*theta)*invSinTheta
  1700. else
  1701. startInterp = t-1
  1702. finishInterp = t
  1703. end
  1704. end
  1705. 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
  1706. end
  1707.  
  1708. local function CFrameFromTopBack(at, top, back)
  1709. local right = top:Cross(back)
  1710. return CFrame.new(at.x, at.y, at.z,
  1711. right.x, top.x, back.x,
  1712. right.y, top.y, back.y,
  1713. right.z, top.z, back.z)
  1714. end
  1715.  
  1716. function Triangle(a, b, c)
  1717. local edg1 = (c-a):Dot((b-a).unit)
  1718. local edg2 = (a-b):Dot((c-b).unit)
  1719. local edg3 = (b-c):Dot((a-c).unit)
  1720. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1721. a, b, c = a, b, c
  1722. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1723. a, b, c = b, c, a
  1724. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1725. a, b, c = c, a, b
  1726. else
  1727. assert(false, "unreachable")
  1728. end
  1729.  
  1730. local len1 = (c-a):Dot((b-a).unit)
  1731. local len2 = (b-a).magnitude - len1
  1732. local width = (a + (b-a).unit*len1 - c).magnitude
  1733.  
  1734. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1735.  
  1736. local list = {}
  1737.  
  1738. if len1 > 0.01 then
  1739. local w1 = Instance.new('WedgePart', m)
  1740. game:GetService("Debris"):AddItem(w1,5)
  1741. w1.Material = "SmoothPlastic"
  1742. w1.FormFactor = 'Custom'
  1743. w1.BrickColor = BrickColor.new("Really red")
  1744. w1.Transparency = 0
  1745. w1.Reflectance = 0
  1746. w1.Material = "SmoothPlastic"
  1747. w1.CanCollide = false
  1748. local l1 = Instance.new("PointLight",w1)
  1749. l1.Color = Color3.new(170,0,0)
  1750. NoOutline(w1)
  1751. local sz = Vector3.new(0.2, width, len1)
  1752. w1.Size = sz
  1753. local sp = Instance.new("SpecialMesh",w1)
  1754. sp.MeshType = "Wedge"
  1755. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1756. w1:BreakJoints()
  1757. w1.Anchored = true
  1758. w1.Parent = workspace
  1759. w1.Transparency = 0.7
  1760. table.insert(Effects,{w1,"Disappear",.01})
  1761. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1762. table.insert(list,w1)
  1763. end
  1764.  
  1765. if len2 > 0.01 then
  1766. local w2 = Instance.new('WedgePart', m)
  1767. game:GetService("Debris"):AddItem(w2,5)
  1768. w2.Material = "SmoothPlastic"
  1769. w2.FormFactor = 'Custom'
  1770. w2.BrickColor = BrickColor.new("Really red")
  1771. w2.Transparency = 0
  1772. w2.Reflectance = 0
  1773. w2.Material = "SmoothPlastic"
  1774. w2.CanCollide = false
  1775. local l2 = Instance.new("PointLight",w2)
  1776. l2.Color = Color3.new(170,0,0)
  1777. NoOutline(w2)
  1778. local sz = Vector3.new(0.2, width, len2)
  1779. w2.Size = sz
  1780. local sp = Instance.new("SpecialMesh",w2)
  1781. sp.MeshType = "Wedge"
  1782. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1783. w2:BreakJoints()
  1784. w2.Anchored = true
  1785. w2.Parent = workspace
  1786. w2.Transparency = 0.7
  1787. table.insert(Effects,{w2,"Disappear",.01})
  1788. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1789. table.insert(list,w2)
  1790. end
  1791. return unpack(list)
  1792. end
  1793.  
  1794.  
  1795. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1796. if hit.Parent == nil then
  1797. return
  1798. end
  1799. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1800. for _, v in pairs(hit.Parent:children()) do
  1801. if v:IsA("Humanoid") then
  1802. h = v
  1803. end
  1804. end
  1805. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1806. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1807. return
  1808. end
  1809. local c = Create("ObjectValue")({
  1810. Name = "creator",
  1811. Value = game:GetService("Players").SincereProdeadZ,
  1812. Parent = h
  1813. })
  1814. game:GetService("Debris"):AddItem(c, 0.5)
  1815. if HitSound ~= nil and HitPitch ~= nil then
  1816. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1817. end
  1818. local Damage = math.random(minim, maxim)
  1819. local blocked = false
  1820. local block = hit.Parent:findFirstChild("Block")
  1821. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1822. blocked = true
  1823. block.Value = block.Value - 1
  1824. print(block.Value)
  1825. end
  1826. if blocked == false then
  1827. HitHealth = h.Health
  1828. h.MaxHealth = 100
  1829. h.Health = h.Health - Damage
  1830. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1831. print("gained kill")
  1832. dmg(h.Parent)
  1833. end
  1834. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1835. else
  1836. h.Health = h.Health - Damage / 2
  1837. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1838. end
  1839. if Type == "Knockdown" then
  1840. local hum = hit.Parent.Humanoid
  1841. hum.PlatformStand = true
  1842. coroutine.resume(coroutine.create(function(HHumanoid)
  1843. swait(1)
  1844. HHumanoid.PlatformStand = false
  1845. end), hum)
  1846. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1847. local bodvol = Create("BodyVelocity")({
  1848. velocity = angle * knockback,
  1849. P = 5000,
  1850. maxForce = Vector3.new(8000, 8000, 8000),
  1851. Parent = hit
  1852. })
  1853. local rl = Create("BodyAngularVelocity")({
  1854. P = 3000,
  1855. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1856. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1857. Parent = hit
  1858. })
  1859. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1860. game:GetService("Debris"):AddItem(rl, 0.5)
  1861. elseif Type == "Normal" then
  1862. local vp = Create("BodyVelocity")({
  1863. P = 500,
  1864. maxForce = Vector3.new(math.huge, 0, math.huge),
  1865. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1866. })
  1867. if knockback > 0 then
  1868. vp.Parent = hit.Parent.Head
  1869. end
  1870. game:GetService("Debris"):AddItem(vp, 0.5)
  1871. elseif Type == "Up" then
  1872. local bodyVelocity = Create("BodyVelocity")({
  1873. velocity = Vector3.new(0, 20, 0),
  1874. P = 5000,
  1875. maxForce = Vector3.new(8000, 8000, 8000),
  1876. Parent = hit
  1877. })
  1878. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1879. local bodyVelocity = Create("BodyVelocity")({
  1880. velocity = Vector3.new(0, 20, 0),
  1881. P = 5000,
  1882. maxForce = Vector3.new(8000, 8000, 8000),
  1883. Parent = hit
  1884. })
  1885. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1886. elseif Type == "Leech" then
  1887. local hum = hit.Parent.Humanoid
  1888. if hum ~= nil then
  1889. for i = 0, 2 do
  1890. 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)
  1891. end
  1892. Humanoid.Health = Humanoid.Health + 10
  1893. end
  1894. elseif Type == "UpKnock" then
  1895. local hum = hit.Parent.Humanoid
  1896. hum.PlatformStand = true
  1897. if hum ~= nil then
  1898. hitr = true
  1899. end
  1900. coroutine.resume(coroutine.create(function(HHumanoid)
  1901. swait(5)
  1902. HHumanoid.PlatformStand = false
  1903. hitr = false
  1904. end), hum)
  1905. local bodyVelocity = Create("BodyVelocity")({
  1906. velocity = Vector3.new(0, 20, 0),
  1907. P = 5000,
  1908. maxForce = Vector3.new(8000, 8000, 8000),
  1909. Parent = hit
  1910. })
  1911. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1912. local bodyVelocity = Create("BodyVelocity")({
  1913. velocity = Vector3.new(0, 20, 0),
  1914. P = 5000,
  1915. maxForce = Vector3.new(8000, 8000, 8000),
  1916. Parent = hit
  1917. })
  1918. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1919. elseif Type == "Snare" then
  1920. local bp = Create("BodyPosition")({
  1921. P = 2000,
  1922. D = 100,
  1923. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1924. position = hit.Parent.Torso.Position,
  1925. Parent = hit.Parent.Torso
  1926. })
  1927. game:GetService("Debris"):AddItem(bp, 1)
  1928. elseif Type == "Slashnare" then
  1929. 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)
  1930. for i = 1, math.random(4, 5) do
  1931. 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)
  1932. end
  1933. local bp = Create("BodyPosition")({
  1934. P = 2000,
  1935. D = 100,
  1936. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1937. position = hit.Parent.Torso.Position,
  1938. Parent = hit.Parent.Torso
  1939. })
  1940. game:GetService("Debris"):AddItem(bp, 1)
  1941. elseif Type == "Spike" then
  1942. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1943. local bp = Create("BodyPosition")({
  1944. P = 2000,
  1945. D = 100,
  1946. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1947. position = hit.Parent.Torso.Position,
  1948. Parent = hit.Parent.Torso
  1949. })
  1950. game:GetService("Debris"):AddItem(bp, 1)
  1951. elseif Type == "Freeze" then
  1952. local BodPos = Create("BodyPosition")({
  1953. P = 50000,
  1954. D = 1000,
  1955. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1956. position = hit.Parent.Torso.Position,
  1957. Parent = hit.Parent.Torso
  1958. })
  1959. local BodGy = Create("BodyGyro")({
  1960. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1961. P = 20000,
  1962. Parent = hit.Parent.Torso,
  1963. cframe = hit.Parent.Torso.CFrame
  1964. })
  1965. hit.Parent.Torso.Anchored = true
  1966. coroutine.resume(coroutine.create(function(Part)
  1967. swait(1.5)
  1968. Part.Anchored = false
  1969. end), hit.Parent.Torso)
  1970. game:GetService("Debris"):AddItem(BodPos, 3)
  1971. game:GetService("Debris"):AddItem(BodGy, 3)
  1972. end
  1973. local debounce = Create("BoolValue")({
  1974. Name = "DebounceHit",
  1975. Parent = hit.Parent,
  1976. Value = true
  1977. })
  1978. game:GetService("Debris"):AddItem(debounce, Delay)
  1979. c = Instance.new("ObjectValue")
  1980. c.Name = "creator"
  1981. c.Value = Player
  1982. c.Parent = h
  1983. game:GetService("Debris"):AddItem(c, 0.5)
  1984. end
  1985. end
  1986. function ShowDamage(Pos, Text, Time, Color)
  1987. local Rate = 0.03333333333333333
  1988. local Pos = Pos or Vector3.new(0, 0, 0)
  1989. local Text = Text or ""
  1990. local Time = Time or 2
  1991. local Color = Color or Color3.new(1, 0, 1)
  1992. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1993. EffectPart.Anchored = true
  1994. local BillboardGui = Create("BillboardGui")({
  1995. Size = UDim2.new(3, 0, 3, 0),
  1996. Adornee = EffectPart,
  1997. Parent = EffectPart
  1998. })
  1999. local TextLabel = Create("TextLabel")({
  2000. BackgroundTransparency = 1,
  2001. Size = UDim2.new(1, 0, 1, 0),
  2002. Text = Text,
  2003. TextColor3 = Color,
  2004. TextScaled = true,
  2005. Font = Enum.Font.ArialBold,
  2006. Parent = BillboardGui
  2007. })
  2008. game.Debris:AddItem(EffectPart, Time + 0.1)
  2009. EffectPart.Parent = game:GetService("Workspace")
  2010. delay(0, function()
  2011. local Frames = Time / Rate
  2012. for Frame = 1, Frames do
  2013. wait(Rate)
  2014. local Percent = Frame / Frames
  2015. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2016. TextLabel.TextTransparency = Percent
  2017. end
  2018. if EffectPart and EffectPart.Parent then
  2019. EffectPart:Destroy()
  2020. end
  2021. end)
  2022. end
  2023. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2024. for _, c in pairs(workspace:children()) do
  2025. local hum = c:findFirstChildOfClass("Humanoid")
  2026. if hum ~= nil then
  2027. local head = c:findFirstChild("Head")
  2028. if head ~= nil then
  2029. local targ = head.Position - Part.Position
  2030. local mag = targ.magnitude
  2031. if magni >= mag and c.Name ~= Player.Name then
  2032. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2033. end
  2034. end
  2035. end
  2036. end
  2037. end
  2038.  
  2039. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2040. for _, c in pairs(workspace:children()) do
  2041. local hum = c:findFirstChild("Humanoid")
  2042. if hum ~= nil then
  2043. local head = c:findFirstChild("Torso")
  2044. if head ~= nil then
  2045. local targ = head.Position - Part.Position
  2046. local mag = targ.magnitude
  2047. if magni >= mag and c.Name ~= Player.Name then
  2048. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2049. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2050. end
  2051. end
  2052. end
  2053. end
  2054. end
  2055.  
  2056. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2057. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2058. end
  2059.  
  2060. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2061. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2062. prt.Anchored=true
  2063. prt.CFrame=cframe
  2064. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2065. --http://www.roblox.com/asset/?id=4770560
  2066. game:GetService("Debris"):AddItem(prt,2)
  2067. CF=prt.CFrame
  2068. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2069. for i=0,1,0.2 do
  2070. wait()
  2071. Part.CFrame=CF*cf(0,0,-0.4)
  2072. end
  2073. for i=0,1,delay do
  2074. wait()
  2075. --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)
  2076. Mesh.Scale=Mesh.Scale
  2077. end
  2078. for i=0,1,0.1 do
  2079. wait()
  2080. Part.Transparency=i
  2081. end
  2082. Part.Parent=nil
  2083. end),prt,msh,CF)
  2084. end
  2085.  
  2086. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2087. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2088. prt.Anchored=true
  2089. prt.Material = "Neon"
  2090. prt.CFrame=cframe
  2091. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2092. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2093. game:GetService("Debris"):AddItem(prt,5)
  2094. coroutine.resume(coroutine.create(function(Part,Mesh)
  2095. for i=0,1,delay do
  2096. swait()
  2097. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2098. Part.Transparency=i
  2099. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2100. end
  2101. Part.Parent=nil
  2102. end),prt,msh)
  2103. end
  2104.  
  2105. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2106. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2107. prt.Anchored=true
  2108. prt.Material = "Neon"
  2109. prt.CFrame=cframe
  2110. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2111. game:GetService("Debris"):AddItem(prt,5)
  2112. coroutine.resume(coroutine.create(function(Part,Mesh)
  2113. local rtype = rottype
  2114. for i=0,1,delay do
  2115. swait()
  2116. if rtype == 1 then
  2117. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2118. elseif rtype == 2 then
  2119. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2120. end
  2121. Part.Transparency=i
  2122. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2123. end
  2124. Part.Parent=nil
  2125. end),prt,msh)
  2126. end
  2127.  
  2128. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2129. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2130. prt.Anchored=true
  2131. prt.CFrame=cframe
  2132. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2133. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2134. game:GetService("Debris"):AddItem(prt,5)
  2135. coroutine.resume(coroutine.create(function(Part,Mesh)
  2136. for i=0,1,delay do
  2137. wait()
  2138. Part.Transparency=i
  2139. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2140. end
  2141. Part.Parent=nil
  2142. end),prt,msh)
  2143. end
  2144.  
  2145. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2146. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2147. prt.Anchored=true
  2148. prt.Material = "Neon"
  2149. prt.CFrame=cframe
  2150. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2151. game:GetService("Debris"):AddItem(prt,5)
  2152. coroutine.resume(coroutine.create(function(Part,Mesh)
  2153. local rtype = rottype
  2154. for i=0,1,delay do
  2155. swait()
  2156. if rtype == 1 then
  2157. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2158. elseif rtype == 2 then
  2159. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2160. end
  2161. Part.Transparency=i
  2162. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2163. end
  2164. Part.Parent=nil
  2165. end),prt,msh)
  2166. end
  2167.  
  2168. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2169. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2170. prt.Anchored=true
  2171. prt.Material = "Neon"
  2172. prt.CFrame=cframe
  2173. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2174. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2175. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2176. game:GetService("Debris"):AddItem(prt,5)
  2177. coroutine.resume(coroutine.create(function(Part,Mesh)
  2178. local rtype = rottype
  2179. for i=0,1,delay do
  2180. swait()
  2181. if rtype == 1 then
  2182. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2183. elseif rtype == 2 then
  2184. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2185. end
  2186. dec.Transparency=i
  2187. dec2.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh)
  2192. end
  2193.  
  2194. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202. local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. prt.Transparency=i
  2211. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2212. end
  2213. Part.Parent=nil
  2214. end),prt,msh)
  2215. end
  2216.  
  2217. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2218. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2219. prt.Anchored=true
  2220. prt.Material = "Neon"
  2221. prt.CFrame=cframe
  2222. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2223. game:GetService("Debris"):AddItem(prt,5)
  2224. coroutine.resume(coroutine.create(function(Part,Mesh)
  2225. local rtype = rottype
  2226. for i=0,1,delay do
  2227. swait()
  2228. if rtype == 1 then
  2229. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2230. elseif rtype == 2 then
  2231. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2232. end
  2233. prt.Transparency=i
  2234. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2235. end
  2236. Part.Parent=nil
  2237. end),prt,msh)
  2238. end
  2239.  
  2240. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2241. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2242. prt.Anchored=true
  2243. prt.Material = "Neon"
  2244. prt.CFrame=cframe
  2245. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2246. game:GetService("Debris"):AddItem(prt,5)
  2247. coroutine.resume(coroutine.create(function(Part,Mesh)
  2248. local rtype = rottype
  2249. for i=0,1,delay do
  2250. swait()
  2251. if rtype == 1 then
  2252. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2253. elseif rtype == 2 then
  2254. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2255. end
  2256. prt.Transparency=i
  2257. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2258. end
  2259. Part.Parent=nil
  2260. end),prt,msh)
  2261. end
  2262.  
  2263. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2264. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2265. prt.Anchored=true
  2266. prt.Material = "Neon"
  2267. prt.CFrame=cframe
  2268. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2269. game:GetService("Debris"):AddItem(prt,5)
  2270. coroutine.resume(coroutine.create(function(Part,Mesh)
  2271. local rtype = rottype
  2272. for i=0,1,delay do
  2273. swait()
  2274. if rtype == 1 then
  2275. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2276. elseif rtype == 2 then
  2277. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2278. end
  2279. prt.Transparency=i
  2280. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2281. end
  2282. Part.Parent=nil
  2283. end),prt,msh)
  2284. end
  2285.  
  2286. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2287. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2288. prt.Anchored=false
  2289. prt.CFrame=cframe
  2290. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2291. local wld=weld(prt,prt,Parent,cframe)
  2292. game:GetService("Debris"):AddItem(prt,5)
  2293. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2294. for i=0,1,delay do
  2295. wait()
  2296. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2297. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2298. Part.Transparency=i
  2299. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2300. end
  2301. Part.Parent=nil
  2302. end),prt,msh,wld)
  2303. end
  2304.  
  2305. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2306. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2307. prt.Anchored=false
  2308. prt.CFrame=cframe
  2309. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2310. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2311. game:GetService("Debris"):AddItem(prt,5)
  2312. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2313. for i=0,1,delay do
  2314. wait()
  2315. Weld.C0=euler(i*20,0,0)
  2316. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2317. Part.Transparency=i
  2318. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2319. end
  2320. Part.Parent=nil
  2321. end),prt,msh,wld)
  2322. end
  2323.  
  2324. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2325. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2326. prt.Anchored=true
  2327. prt.CFrame=cframe
  2328. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2329. game:GetService("Debris"):AddItem(prt,2)
  2330. coroutine.resume(coroutine.create(function(Part,Mesh)
  2331. for i=0,1,delay do
  2332. wait()
  2333. Part.CFrame=Part.CFrame
  2334. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2335. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2336. prt2.Anchored=true
  2337. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2338. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2339. game:GetService("Debris"):AddItem(prt2,2)
  2340. coroutine.resume(coroutine.create(function(Part,Mesh)
  2341. for i=0,1,0.1 do
  2342. wait()
  2343. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2344. end
  2345. Part.Parent=nil
  2346. end),prt2,msh2)
  2347. end
  2348. for i=0,1,delay*2 do
  2349. wait()
  2350. Part.CFrame=Part.CFrame
  2351. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2352. end
  2353. Part.Parent=nil
  2354. end),prt,msh)
  2355. end
  2356.  
  2357. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2358. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2359. prt.Anchored=true
  2360. prt.CFrame=cframe
  2361. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2362. game:GetService("Debris"):AddItem(prt,2)
  2363. coroutine.resume(coroutine.create(function(Part,Mesh)
  2364. for i=0,1,delay do
  2365. wait()
  2366. Part.CFrame=Part.CFrame
  2367. Part.Transparency=i
  2368. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2369. end
  2370. Part.Parent=nil
  2371. end),prt,msh)
  2372. end
  2373.  
  2374. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2375. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2376. prt.Anchored=true
  2377. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2378. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2379. game:GetService("Debris"):AddItem(prt,2)
  2380. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2381. CF=Part.CFrame
  2382. Numbb=0
  2383. randnumb=math.random()/10
  2384. rand1=math.random()/10
  2385. for i=0,1,rand1 do
  2386. wait()
  2387. CF=CF*cf(0,math.random()/2,0)
  2388. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2389. Part.CFrame=CF*euler(Numbb,0,0)
  2390. Part.Transparency=i
  2391. Numbb=Numbb+randnumb
  2392. end
  2393. Part.Parent=nil
  2394. end),prt,CF,Numbb,randnumb)
  2395. end
  2396.  
  2397. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2398. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2399. prt.Anchored=true
  2400. prt.CFrame=cframe
  2401. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2402. game:GetService("Debris"):AddItem(prt,5)
  2403. coroutine.resume(coroutine.create(function(Part,Mesh)
  2404. for i=0,1,delay do
  2405. wait()
  2406. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2407. Part.Transparency=i
  2408. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2409. end
  2410. Part.Parent=nil
  2411. end),prt,msh)
  2412. end
  2413.  
  2414. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2415. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2416. prt.Anchored=true
  2417. prt.CFrame=cframe
  2418. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2419. game:GetService("Debris"):AddItem(prt,2)
  2420. coroutine.resume(coroutine.create(function(Part,Mesh)
  2421. for i=0,1,delay do
  2422. wait()
  2423. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2424. Part.Transparency=i
  2425. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2426. end
  2427. Part.Parent=nil
  2428. end),prt,msh)
  2429. end
  2430.  
  2431. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2432. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2433. prt.Anchored=true
  2434. prt.CFrame=cframe*cf(x,y,z)
  2435. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2436. game:GetService("Debris"):AddItem(prt,5)
  2437. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2438. local num=math.random()
  2439. local num2=math.random(-3,2)+math.random()
  2440. local numm=0
  2441. for i=0,1,delay*2 do
  2442. swait()
  2443. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2444. Part.Transparency=i
  2445. numm=numm+0.01
  2446. end
  2447. Part.Parent=nil
  2448. Mesh.Parent=nil
  2449. end),prt,msh,x,y,z)
  2450. end
  2451.  
  2452. function dmgstart(dmg,what)
  2453. hitcon = what.Touched:connect(function(hit)
  2454. local hum = hit.Parent:FindFirstChild("Humanoid")
  2455. if hum and not hum:IsDescendantOf(Character) then
  2456. hum:TakeDamage(dmg)
  2457. end
  2458. end)
  2459. end
  2460.  
  2461. function dmgstop()
  2462. hitcon:disconnect()
  2463. end
  2464.  
  2465. function Cloak()
  2466. Face.Parent=nil
  2467. cloaked=true
  2468. for _,v in pairs(Torso.Parent:children()) do
  2469. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2470. coroutine.resume(coroutine.create(function()
  2471. for i=0,1,0.2 do
  2472. wait()
  2473. v.Transparency=i
  2474. end
  2475. v.Transparency=1
  2476. end))
  2477. end
  2478. if v.className=="Hat" then
  2479. hatp=v.Handle
  2480. coroutine.resume(coroutine.create(function(derp)
  2481. for i=0,1,0.2 do
  2482. wait()
  2483. derp.Transparency=i
  2484. end
  2485. derp.Transparency=1
  2486. end),hatp)
  2487. end
  2488. end
  2489. for _,v in pairs(m:children()) do
  2490. if v.className=="Part" then
  2491. coroutine.resume(coroutine.create(function()
  2492. for i=0,1,0.2 do
  2493. wait()
  2494. v.Transparency=i
  2495. end
  2496. v.Transparency=1
  2497. end))
  2498. end
  2499. end
  2500. end
  2501.  
  2502. function UnCloak()
  2503. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2504. Face.Parent=Head
  2505. cloaked=false
  2506. for _,v in pairs(Torso.Parent:children()) do
  2507. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2508. coroutine.resume(coroutine.create(function()
  2509. for i=0,1,0.1 do
  2510. wait()
  2511. v.Transparency=v.Transparency-0.1
  2512. end
  2513. v.Transparency=0
  2514. end))
  2515. end
  2516. if v.className=="Hat" then
  2517. hatp=v.Handle
  2518. coroutine.resume(coroutine.create(function(derp)
  2519. for i=0,1,0.1 do
  2520. wait()
  2521. derp.Transparency=derp.Transparency-0.1
  2522. end
  2523. derp.Transparency=0
  2524. end),hatp)
  2525. end
  2526. end
  2527. for _,v in pairs(m:children()) do
  2528. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2529. coroutine.resume(coroutine.create(function()
  2530. for i=0,1,0.1 do
  2531. wait()
  2532. v.Transparency=v.Transparency-0.1
  2533. end
  2534. v.Transparency=0
  2535. end))
  2536. v.Transparency=0
  2537. end
  2538. end
  2539. end
  2540.  
  2541. local origcolor = BrickColor.new("Pastel light blue")
  2542. ---- This section of explosions.
  2543.  
  2544. ----
  2545.  
  2546.  
  2547. function ring(type,pos,scale,value)
  2548. local type = type
  2549. local rng = Instance.new("Part", char)
  2550. rng.Anchored = true
  2551. rng.BrickColor = origcolor
  2552. rng.CanCollide = false
  2553. rng.FormFactor = 3
  2554. rng.Name = "Ring"
  2555. rng.Size = Vector3.new(1, 1, 1)
  2556. rng.Transparency = 0
  2557. rng.TopSurface = 0
  2558. rng.BottomSurface = 0
  2559. rng.CFrame = pos
  2560. local rngm = Instance.new("SpecialMesh", rng)
  2561. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2562. rngm.Scale = scale
  2563. local scaler2 = 1
  2564. if type == "Add" then
  2565. scaler2 = 1*value
  2566. elseif type == "Divide" then
  2567. scaler2 = 1/value
  2568. end
  2569. coroutine.resume(coroutine.create(function()
  2570. for i = 0,10,0.1 do
  2571. swait()
  2572. if type == "Add" then
  2573. scaler2 = scaler2 - 0.01*value
  2574. elseif type == "Divide" then
  2575. scaler2 = scaler2 - 0.01/value
  2576. end
  2577. rng.Transparency = rng.Transparency + 0.01
  2578. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2579. end
  2580. rng:Destroy()
  2581. end))
  2582. end
  2583.  
  2584.  
  2585. function wave(type,pos,scale,value)
  2586. local type = type
  2587. local rng = Instance.new("Part", char)
  2588. rng.Anchored = true
  2589. rng.BrickColor = origcolor
  2590. rng.CanCollide = false
  2591. rng.FormFactor = 3
  2592. rng.Name = "Ring"
  2593. rng.Size = Vector3.new(1, 1, 1)
  2594. rng.Transparency = 0
  2595. rng.TopSurface = 0
  2596. rng.BottomSurface = 0
  2597. rng.CFrame = pos
  2598. local rngm = Instance.new("SpecialMesh", rng)
  2599. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2600. rngm.Scale = scale
  2601. local scaler2 = 1
  2602. if type == "Add" then
  2603. scaler2 = 1*value
  2604. elseif type == "Divide" then
  2605. scaler2 = 1/value
  2606. end
  2607. coroutine.resume(coroutine.create(function()
  2608. for i = 0,10,0.1 do
  2609. swait()
  2610. if type == "Add" then
  2611. scaler2 = scaler2 - 0.01*value
  2612. elseif type == "Divide" then
  2613. scaler2 = scaler2 - 0.01/value
  2614. end
  2615. rng.Transparency = rng.Transparency + 0.01
  2616. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2617. end
  2618. rng:Destroy()
  2619. end))
  2620. end
  2621.  
  2622. function wind(type,pos,scale,value,speed)
  2623. local type = type
  2624. local rng = Instance.new("Part", char)
  2625. rng.Anchored = true
  2626. rng.BrickColor = origcolor
  2627. rng.CanCollide = false
  2628. rng.FormFactor = 3
  2629. rng.Name = "Ring"
  2630. rng.Size = Vector3.new(1, 1, 1)
  2631. rng.Transparency = 0
  2632. rng.TopSurface = 0
  2633. rng.BottomSurface = 0
  2634. rng.CFrame = pos
  2635. local rngm = Instance.new("SpecialMesh", rng)
  2636. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2637. rngm.Scale = scale
  2638. local scaler2 = 1
  2639. if type == "Add" then
  2640. scaler2 = 1*value
  2641. elseif type == "Divide" then
  2642. scaler2 = 1/value
  2643. end
  2644. coroutine.resume(coroutine.create(function()
  2645. for i = 0,10,0.1 do
  2646. swait()
  2647. if type == "Add" then
  2648. scaler2 = scaler2 - 0.01*value
  2649. elseif type == "Divide" then
  2650. scaler2 = scaler2 - 0.01/value
  2651. end
  2652. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2653. rng.Transparency = rng.Transparency + 0.01
  2654. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2655. end
  2656. rng:Destroy()
  2657. end))
  2658. end
  2659.  
  2660. function groundwind(type,pos,scale,value,speed)
  2661. local type = type
  2662. local rng = Instance.new("Part", char)
  2663. rng.Anchored = true
  2664. rng.BrickColor = origcolor
  2665. rng.CanCollide = false
  2666. rng.FormFactor = 3
  2667. rng.Name = "Ring"
  2668. rng.Size = Vector3.new(1, 1, 1)
  2669. rng.Transparency = 0
  2670. rng.TopSurface = 0
  2671. rng.BottomSurface = 0
  2672. rng.CFrame = pos
  2673. local rngm = Instance.new("SpecialMesh", rng)
  2674. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2675. rngm.Scale = scale
  2676. local scaler2 = 1
  2677. if type == "Add" then
  2678. scaler2 = 1*value
  2679. elseif type == "Divide" then
  2680. scaler2 = 1/value
  2681. end
  2682. coroutine.resume(coroutine.create(function()
  2683. for i = 0,10,0.1 do
  2684. swait()
  2685. if type == "Add" then
  2686. scaler2 = scaler2 - 0.01*value
  2687. elseif type == "Divide" then
  2688. scaler2 = scaler2 - 0.01/value
  2689. end
  2690. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2691. rng.Transparency = rng.Transparency + 0.01
  2692. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2693. end
  2694. rng:Destroy()
  2695. end))
  2696. end
  2697.  
  2698. function CameraManager()
  2699. if TwoD and not CamInterrupt then
  2700. if Humanoid.Health > 0 then
  2701. Camera.CameraSubject = Humanoid
  2702. Camera.CameraType = "Scriptable"
  2703. Humanoid.AutoRotate = false
  2704. if Booleans.GyroUse then
  2705. Directer.MaxTorque = Vec3(0, huge, 0)
  2706. else
  2707. Directer.MaxTorque = Vec3(0, 0, 0)
  2708. end
  2709. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2710. if Booleans.CamFollow then
  2711. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2712. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2713. else
  2714. CPart.Position = RootPart.Position
  2715. end
  2716. else
  2717. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2718. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2719. end
  2720. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2721. else
  2722. Camera.CameraSubject = Humanoid
  2723. Camera.CameraType = "Custom"
  2724. Controller.Disabled = false
  2725. end
  2726. end
  2727. end
  2728.  
  2729. function ring(type,pos,scale,value)
  2730. local type = type
  2731. local rng = Instance.new("Part", char)
  2732. rng.Anchored = true
  2733. rng.BrickColor = origcolor
  2734. rng.CanCollide = false
  2735. rng.FormFactor = 3
  2736. rng.Name = "Ring"
  2737. rng.Size = Vector3.new(1, 1, 1)
  2738. rng.Transparency = 0
  2739. rng.TopSurface = 0
  2740. rng.BottomSurface = 0
  2741. rng.CFrame = pos
  2742. local rngm = Instance.new("SpecialMesh", rng)
  2743. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2744. rngm.Scale = scale
  2745. local scaler2 = 1
  2746. if type == "Add" then
  2747. scaler2 = 1*value
  2748. elseif type == "Divide" then
  2749. scaler2 = 1/value
  2750. end
  2751. coroutine.resume(coroutine.create(function()
  2752. for i = 0,10,0.1 do
  2753. swait()
  2754. if type == "Add" then
  2755. scaler2 = scaler2 - 0.01*value
  2756. elseif type == "Divide" then
  2757. scaler2 = scaler2 - 0.01/value
  2758. end
  2759. rng.Transparency = rng.Transparency + 0.01
  2760. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2761. end
  2762. rng:Destroy()
  2763. end))
  2764. end
  2765.  
  2766.  
  2767. function wave(type,pos,scale,value)
  2768. local type = type
  2769. local rng = Instance.new("Part", char)
  2770. rng.Anchored = true
  2771. rng.BrickColor = origcolor
  2772. rng.CanCollide = false
  2773. rng.FormFactor = 3
  2774. rng.Name = "Ring"
  2775. rng.Size = Vector3.new(1, 1, 1)
  2776. rng.Transparency = 0
  2777. rng.TopSurface = 0
  2778. rng.BottomSurface = 0
  2779. rng.CFrame = pos
  2780. local rngm = Instance.new("SpecialMesh", rng)
  2781. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2782. rngm.Scale = scale
  2783. local scaler2 = 1
  2784. if type == "Add" then
  2785. scaler2 = 1*value
  2786. elseif type == "Divide" then
  2787. scaler2 = 1/value
  2788. end
  2789. coroutine.resume(coroutine.create(function()
  2790. for i = 0,10,0.1 do
  2791. swait()
  2792. if type == "Add" then
  2793. scaler2 = scaler2 - 0.01*value
  2794. elseif type == "Divide" then
  2795. scaler2 = scaler2 - 0.01/value
  2796. end
  2797. rng.Transparency = rng.Transparency + 0.01
  2798. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2799. end
  2800. rng:Destroy()
  2801. end))
  2802. end
  2803.  
  2804. function sphere(bonuspeed,type,pos,scale,value,color)
  2805. local type = type
  2806. local rng = Instance.new("Part", char)
  2807. rng.Anchored = true
  2808. if ModeOfGlitch ~= 9 then
  2809. rng.BrickColor = color
  2810. elseif ModeOfGlitch == 9 then
  2811. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2812. end
  2813. rng.CanCollide = false
  2814. rng.FormFactor = 3
  2815. rng.Name = "Ring"
  2816. rng.Material = "Neon"
  2817. rng.Size = Vector3.new(1, 1, 1)
  2818. rng.Transparency = 0
  2819. rng.TopSurface = 0
  2820. rng.BottomSurface = 0
  2821. rng.CFrame = pos
  2822. local rngm = Instance.new("SpecialMesh", rng)
  2823. rngm.MeshType = "Sphere"
  2824. rngm.Scale = scale
  2825. if rainbowmode == true then
  2826. rng.Color = Color3.new(r/255,g/255,b/255)
  2827. end
  2828. if ModeOfGlitch == 9 then
  2829. coroutine.resume(coroutine.create(function()
  2830. while true do
  2831. swait()
  2832. if rng.Parent ~= nil then
  2833. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2834. else
  2835. break
  2836. end
  2837. end
  2838. end))
  2839. end
  2840. local scaler2 = 1
  2841. if type == "Add" then
  2842. scaler2 = 1*value
  2843. elseif type == "Divide" then
  2844. scaler2 = 1/value
  2845. end
  2846. coroutine.resume(coroutine.create(function()
  2847. for i = 0,10/bonuspeed,0.1 do
  2848. swait()
  2849. if rainbowmode == true then
  2850. rng.Color = Color3.new(r/255,g/255,b/255)
  2851. end
  2852. if type == "Add" then
  2853. scaler2 = scaler2 - 0.01*value/bonuspeed
  2854. elseif type == "Divide" then
  2855. scaler2 = scaler2 - 0.01/value*bonuspeed
  2856. end
  2857. if chaosmode == true then
  2858. rng.BrickColor = BrickColor.random()
  2859. end
  2860. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2861. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2862. end
  2863. rng:Destroy()
  2864. end))
  2865. end
  2866.  
  2867. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2868. local type = type
  2869. local rng = Instance.new("Part", char)
  2870. rng.Anchored = true
  2871. if ModeOfGlitch ~= 9 then
  2872. rng.BrickColor = color
  2873. elseif ModeOfGlitch == 9 then
  2874. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2875. end
  2876. rng.CanCollide = false
  2877. rng.FormFactor = 3
  2878. rng.Name = "Ring"
  2879. rng.Material = "Neon"
  2880. rng.Size = Vector3.new(1, 1, 1)
  2881. rng.Transparency = 0
  2882. rng.TopSurface = 0
  2883. rng.BottomSurface = 0
  2884. rng.CFrame = pos
  2885. local rngm = Instance.new("SpecialMesh", rng)
  2886. rngm.MeshType = "Sphere"
  2887. rngm.Scale = scale
  2888. local scaler2 = 1
  2889. local scaler2b = 1
  2890. local scaler2c = 1
  2891. if type == "Add" then
  2892. scaler2 = 1*value
  2893. scaler2b = 1*value2
  2894. scaler2c = 1*value3
  2895. elseif type == "Divide" then
  2896. scaler2 = 1/value
  2897. scaler2b = 1/value2
  2898. scaler2c = 1/value3
  2899. end
  2900. if ModeOfGlitch == 9 then
  2901. coroutine.resume(coroutine.create(function()
  2902. while true do
  2903. swait()
  2904. if rng.Parent ~= nil then
  2905. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2906. else
  2907. break
  2908. end
  2909. end
  2910. end))
  2911. end
  2912. coroutine.resume(coroutine.create(function()
  2913. for i = 0,10/bonuspeed,0.1 do
  2914. swait()
  2915. if type == "Add" then
  2916. scaler2 = scaler2 - 0.01*value/bonuspeed
  2917. scaler2b = scaler2b - 0.01*value/bonuspeed
  2918. scaler2c = scaler2c - 0.01*value/bonuspeed
  2919. elseif type == "Divide" then
  2920. scaler2 = scaler2 - 0.01/value*bonuspeed
  2921. scaler2b = scaler2b - 0.01/value*bonuspeed
  2922. scaler2c = scaler2c - 0.01/value*bonuspeed
  2923. end
  2924. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2925. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2926. end
  2927. rng:Destroy()
  2928. end))
  2929. end
  2930.  
  2931. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2932. local type = type
  2933. local rotenable = rotatingop
  2934. local rng = Instance.new("Part", char)
  2935. rng.Anchored = true
  2936. rng.BrickColor = color
  2937. rng.CanCollide = false
  2938. rng.FormFactor = 3
  2939. rng.Name = "Ring"
  2940. rng.Material = "Neon"
  2941. rng.Size = Vector3.new(1, 1, 1)
  2942. rng.Transparency = 0
  2943. if typeoftrans == "In" then
  2944. rng.Transparency = 1
  2945. end
  2946. rng.TopSurface = 0
  2947. rng.BottomSurface = 0
  2948. rng.CFrame = pos
  2949. local rngm = Instance.new("SpecialMesh", rng)
  2950. rngm.MeshType = "FileMesh"
  2951. if typeofshape == "Normal" then
  2952. rngm.MeshId = "rbxassetid://662586858"
  2953. elseif typeofshape == "Round" then
  2954. rngm.MeshId = "rbxassetid://662585058"
  2955. end
  2956. rngm.Scale = scale
  2957. local scaler2 = 1/10
  2958. if type == "Add" then
  2959. scaler2 = 1*value/10
  2960. elseif type == "Divide" then
  2961. scaler2 = 1/value/10
  2962. end
  2963. local randomrot = math.random(1,2)
  2964. coroutine.resume(coroutine.create(function()
  2965. for i = 0,10/bonuspeed,0.1 do
  2966. swait()
  2967. if type == "Add" then
  2968. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2969. elseif type == "Divide" then
  2970. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2971. end
  2972. if rotenable == true then
  2973. if randomrot == 1 then
  2974. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2975. elseif randomrot == 2 then
  2976. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2977. end
  2978. end
  2979. if typeoftrans == "Out" then
  2980. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2981. elseif typeoftrans == "In" then
  2982. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2983. end
  2984. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2985. end
  2986. rng:Destroy()
  2987. end))
  2988. end
  2989.  
  2990. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2991. local type = type
  2992. local rng = Instance.new("Part", char)
  2993. rng.Anchored = true
  2994. rng.BrickColor = color
  2995. rng.CanCollide = false
  2996. rng.FormFactor = 3
  2997. rng.Name = "Ring"
  2998. rng.Material = "Neon"
  2999. rng.Size = Vector3.new(1, 1, 1)
  3000. rng.Transparency = 0
  3001. rng.TopSurface = 0
  3002. rng.BottomSurface = 0
  3003. rng.CFrame = pos
  3004. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3005. local rngm = Instance.new("SpecialMesh", rng)
  3006. rngm.MeshType = "Brick"
  3007. rngm.Scale = vt(x1,y1,z1)
  3008. if rainbowmode == true then
  3009. rng.Color = Color3.new(r/255,g/255,b/255)
  3010. end
  3011. local scaler2 = 1
  3012. local speeder = FastSpeed/10
  3013. if type == "Add" then
  3014. scaler2 = 1*value
  3015. elseif type == "Divide" then
  3016. scaler2 = 1/value
  3017. end
  3018. coroutine.resume(coroutine.create(function()
  3019. for i = 0,10/bonuspeed,0.1 do
  3020. swait()
  3021. if rainbowmode == true then
  3022. rng.Color = Color3.new(r/255,g/255,b/255)
  3023. end
  3024. if type == "Add" then
  3025. scaler2 = scaler2 - 0.01*value/bonuspeed
  3026. elseif type == "Divide" then
  3027. scaler2 = scaler2 - 0.01/value*bonuspeed
  3028. end
  3029. if chaosmode == true then
  3030. rng.BrickColor = BrickColor.random()
  3031. end
  3032. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3033. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3034. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3035. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3036. end
  3037. rng:Destroy()
  3038. end))
  3039. end
  3040.  
  3041. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3042. local type = type
  3043. local rng = Instance.new("Part", char)
  3044. rng.Anchored = true
  3045. rng.BrickColor = color
  3046. rng.CanCollide = false
  3047. rng.FormFactor = 3
  3048. rng.Name = "Ring"
  3049. rng.Material = "Neon"
  3050. rng.Size = Vector3.new(1, 1, 1)
  3051. rng.Transparency = 0
  3052. rng.TopSurface = 0
  3053. rng.BottomSurface = 0
  3054. rng.CFrame = pos
  3055. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3056. local rngm = Instance.new("SpecialMesh", rng)
  3057. rngm.MeshType = "Brick"
  3058. rngm.Scale = vt(x1,y1,z1)
  3059. if rainbowmode == true then
  3060. rng.Color = Color3.new(r/255,g/255,b/255)
  3061. end
  3062. local scaler2 = 1
  3063. local speeder = FastSpeed/10
  3064. if type == "Add" then
  3065. scaler2 = 1*value
  3066. elseif type == "Divide" then
  3067. scaler2 = 1/value
  3068. end
  3069. coroutine.resume(coroutine.create(function()
  3070. for i = 0,10/bonuspeed,0.1 do
  3071. swait()
  3072. if rainbowmode == true then
  3073. rng.Color = Color3.new(r/255,g/255,b/255)
  3074. end
  3075. if type == "Add" then
  3076. scaler2 = scaler2 - 0.01*value/bonuspeed
  3077. elseif type == "Divide" then
  3078. scaler2 = scaler2 - 0.01/value*bonuspeed
  3079. end
  3080. if chaosmode == true then
  3081. rng.BrickColor = BrickColor.random()
  3082. end
  3083. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3084. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3085. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3086. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3087. end
  3088. rng:Destroy()
  3089. end))
  3090. end
  3091.  
  3092. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3093. local type = type
  3094. local rng = Instance.new("Part", char)
  3095. rng.Anchored = true
  3096. rng.BrickColor = color
  3097. rng.CanCollide = false
  3098. rng.FormFactor = 3
  3099. rng.Name = "Ring"
  3100. rng.Material = "Neon"
  3101. rng.Size = Vector3.new(1, 1, 1)
  3102. rng.Transparency = 0
  3103. rng.TopSurface = 0
  3104. rng.BottomSurface = 0
  3105. rng.CFrame = pos
  3106. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3107. local rngm = Instance.new("SpecialMesh", rng)
  3108. rngm.MeshType = "Brick"
  3109. rngm.Scale = vt(x1,y1,z1)
  3110. if rainbowmode == true then
  3111. rng.Color = Color3.new(r/255,g/255,b/255)
  3112. end
  3113. local scaler2 = 0
  3114. local speeder = FastSpeed/10
  3115. if type == "Add" then
  3116. scaler2 = 1*value
  3117. elseif type == "Divide" then
  3118. scaler2 = 1/value
  3119. end
  3120. coroutine.resume(coroutine.create(function()
  3121. for i = 0,10/bonuspeed,0.1 do
  3122. swait()
  3123. if rainbowmode == true then
  3124. rng.Color = Color3.new(r/255,g/255,b/255)
  3125. end
  3126. if type == "Add" then
  3127. scaler2 = scaler2 - 0.01*value/bonuspeed
  3128. elseif type == "Divide" then
  3129. scaler2 = scaler2 - 0.01/value*bonuspeed
  3130. end
  3131. if chaosmode == true then
  3132. rng.BrickColor = BrickColor.random()
  3133. end
  3134. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3135. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3136. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3137. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3138. end
  3139. rng:Destroy()
  3140. end))
  3141. end
  3142.  
  3143. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3144. local type = type
  3145. local rng = Instance.new("Part", char)
  3146. rng.Anchored = true
  3147. rng.BrickColor = color
  3148. rng.Color = color3
  3149. rng.CanCollide = false
  3150. rng.FormFactor = 3
  3151. rng.Name = "Ring"
  3152. rng.Material = "Neon"
  3153. rng.Size = Vector3.new(1, 1, 1)
  3154. rng.Transparency = 0
  3155. rng.TopSurface = 0
  3156. rng.BottomSurface = 0
  3157. rng.CFrame = pos
  3158. local rngm = Instance.new("SpecialMesh", rng)
  3159. rngm.MeshType = "Brick"
  3160. rngm.Scale = scale
  3161. local scaler2 = 1
  3162. local scaler2b = 1
  3163. local scaler2c = 1
  3164. if type == "Add" then
  3165. scaler2 = 1*value
  3166. scaler2b = 1*value2
  3167. scaler2c = 1*value3
  3168. elseif type == "Divide" then
  3169. scaler2 = 1/value
  3170. scaler2b = 1/value2
  3171. scaler2c = 1/value3
  3172. end
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0,10/bonuspeed,0.1 do
  3175. swait()
  3176. if type == "Add" then
  3177. scaler2 = scaler2 - 0.01*value/bonuspeed
  3178. scaler2b = scaler2b - 0.01*value/bonuspeed
  3179. scaler2c = scaler2c - 0.01*value/bonuspeed
  3180. elseif type == "Divide" then
  3181. scaler2 = scaler2 - 0.01/value*bonuspeed
  3182. scaler2b = scaler2b - 0.01/value*bonuspeed
  3183. scaler2c = scaler2c - 0.01/value*bonuspeed
  3184. end
  3185. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3186. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3187. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3188. end
  3189. rng:Destroy()
  3190. end))
  3191. end
  3192.  
  3193. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3194. local type = type
  3195. local rng = Instance.new("Part", char)
  3196. rng.Anchored = true
  3197. if ModeOfGlitch ~= 9 then
  3198. rng.BrickColor = color
  3199. elseif ModeOfGlitch == 9 then
  3200. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3201. end
  3202. rng.CanCollide = false
  3203. rng.FormFactor = 3
  3204. rng.Name = "Ring"
  3205. rng.Material = "Neon"
  3206. rng.Size = Vector3.new(1, 1, 1)
  3207. rng.Transparency = 0
  3208. rng.TopSurface = 0
  3209. rng.BottomSurface = 0
  3210. rng.CFrame = pos
  3211. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3212. local rngm = Instance.new("SpecialMesh", rng)
  3213. rngm.MeshType = "Sphere"
  3214. rngm.Scale = vt(x1,y1,z1)
  3215. if rainbowmode == true then
  3216. rng.Color = Color3.new(r/255,g/255,b/255)
  3217. end
  3218. if ModeOfGlitch == 9 then
  3219. coroutine.resume(coroutine.create(function()
  3220. while true do
  3221. swait()
  3222. if rng.Parent ~= nil then
  3223. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3224. else
  3225. break
  3226. end
  3227. end
  3228. end))
  3229. end
  3230. local scaler2 = 1
  3231. local speeder = FastSpeed
  3232. if type == "Add" then
  3233. scaler2 = 1*value
  3234. elseif type == "Divide" then
  3235. scaler2 = 1/value
  3236. end
  3237. coroutine.resume(coroutine.create(function()
  3238. for i = 0,10/bonuspeed,0.1 do
  3239. swait()
  3240. if rainbowmode == true then
  3241. rng.Color = Color3.new(r/255,g/255,b/255)
  3242. end
  3243. if type == "Add" then
  3244. scaler2 = scaler2 - 0.01*value/bonuspeed
  3245. elseif type == "Divide" then
  3246. scaler2 = scaler2 - 0.01/value*bonuspeed
  3247. end
  3248. if chaosmode == true then
  3249. rng.BrickColor = BrickColor.random()
  3250. end
  3251. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3252. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3253. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3254. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3255. end
  3256. rng:Destroy()
  3257. end))
  3258. end
  3259.  
  3260.  
  3261. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3262. local type = type
  3263. local rng = Instance.new("Part", char)
  3264. rng.Anchored = true
  3265. if ModeOfGlitch ~= 9 then
  3266. rng.BrickColor = color
  3267. elseif ModeOfGlitch == 9 then
  3268. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3269. end
  3270. rng.CanCollide = false
  3271. rng.FormFactor = 3
  3272. rng.Name = "Ring"
  3273. rng.Material = "Neon"
  3274. rng.Size = Vector3.new(1, 1, 1)
  3275. rng.Transparency = 1
  3276. rng.TopSurface = 0
  3277. rng.BottomSurface = 0
  3278. rng.CFrame = pos
  3279. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3280. local rngm = Instance.new("SpecialMesh", rng)
  3281. rngm.MeshType = "Sphere"
  3282. rngm.Scale = vt(x1,y1,z1)
  3283. if rainbowmode == true then
  3284. rng.Color = Color3.new(r/255,g/255,b/255)
  3285. end
  3286. if ModeOfGlitch == 9 then
  3287. coroutine.resume(coroutine.create(function()
  3288. while true do
  3289. swait()
  3290. if rng.Parent ~= nil then
  3291. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3292. else
  3293. break
  3294. end
  3295. end
  3296. end))
  3297. end
  3298. local scaler2 = 1
  3299. local speeder = FastSpeed
  3300. if type == "Add" then
  3301. scaler2 = 1*value
  3302. elseif type == "Divide" then
  3303. scaler2 = 1/value
  3304. end
  3305. coroutine.resume(coroutine.create(function()
  3306. for i = 0,10/bonuspeed,0.1 do
  3307. swait()
  3308. if rainbowmode == true then
  3309. rng.Color = Color3.new(r/255,g/255,b/255)
  3310. end
  3311. if type == "Add" then
  3312. scaler2 = scaler2 - 0.01*value/bonuspeed
  3313. elseif type == "Divide" then
  3314. scaler2 = scaler2 - 0.01/value*bonuspeed
  3315. end
  3316. if chaosmode == true then
  3317. rng.BrickColor = BrickColor.random()
  3318. end
  3319. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3320. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3321. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3322. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3323. end
  3324. rng:Destroy()
  3325. end))
  3326. end
  3327.  
  3328. function dmg(dude)
  3329. if dude.Name ~= Character then
  3330. local keptcolor = MAINRUINCOLOR
  3331. local bgf = Instance.new("BodyGyro",dude.Head)
  3332. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3333. --[[local val = Instance.new("BoolValue",dude)
  3334. val.Name = "IsHit"]]--
  3335. local ds = coroutine.wrap(function()
  3336. dude:WaitForChild("Head"):BreakJoints()
  3337. for i, v in pairs(dude:GetChildren()) do
  3338. if v:IsA("Part") or v:IsA("MeshPart") then
  3339. v.Name = "DEMINISHED"
  3340. end
  3341. end
  3342. wait(0.5)
  3343. targetted = nil
  3344. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3345. coroutine.resume(coroutine.create(function()
  3346. for i, v in pairs(dude:GetChildren()) do
  3347. if v:IsA("Accessory") then
  3348. v:Destroy()
  3349. end
  3350. if v:IsA("Humanoid") then
  3351. v:Destroy()
  3352. end
  3353. if v:IsA("CharacterMesh") then
  3354. v:Destroy()
  3355. end
  3356. if v:IsA("Model") then
  3357. v:Destroy()
  3358. end
  3359. if v:IsA("Part") or v:IsA("MeshPart") then
  3360. for x, o in pairs(v:GetChildren()) do
  3361. if o:IsA("Decal") then
  3362. o:Destroy()
  3363. end
  3364. end
  3365. coroutine.resume(coroutine.create(function()
  3366. v.Material = "Neon"
  3367. v.CanCollide = false
  3368. v.Anchored = false
  3369. local bld = Instance.new("ParticleEmitter",v)
  3370. bld.LightEmission = 0.75
  3371. bld.Texture = "rbxassetid://363275192" ---284205403
  3372. bld.Color = ColorSequence.new(keptcolor.Color)
  3373. bld.Rate = 500
  3374. bld.Lifetime = NumberRange.new(1)
  3375. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3376. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3377. bld.Speed = NumberRange.new(2,5)
  3378. bld.VelocitySpread = 50000
  3379. bld.Rotation = NumberRange.new(-500,500)
  3380. bld.RotSpeed = NumberRange.new(-500,500)
  3381. local sbs = Instance.new("BodyPosition", v)
  3382. sbs.P = 3000
  3383. sbs.D = 1000
  3384. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3385. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3386. v.Color = keptcolor.Color
  3387. coroutine.resume(coroutine.create(function()
  3388. for i = 0, 49 do
  3389. swait(1)
  3390. v:BreakJoints()
  3391. v.Transparency = v.Transparency + 0.02
  3392. end
  3393. v:BreakJoints()
  3394. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3395. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3396. bld.Speed = NumberRange.new(10,25)
  3397. bld.Drag = 5
  3398. bld.Acceleration = vt(0,2,0)
  3399. wait(0.5)
  3400. bld.Enabled = false
  3401. wait(8)
  3402. v:Destroy()
  3403. dude:Destroy()
  3404. end))
  3405. end))
  3406. end
  3407. end
  3408. end))
  3409. end)
  3410. ds()
  3411. end
  3412. end
  3413.  
  3414.  
  3415. function FindNearestHead(Position, Distance, SinglePlayer)
  3416. if SinglePlayer then
  3417. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3418. end
  3419. local List = {}
  3420. for i, v in pairs(workspace:GetChildren()) do
  3421. if v:IsA("Model") then
  3422. if v:findFirstChild("Head") then
  3423. if v ~= Character then
  3424. if (v.Head.Position - Position).magnitude <= Distance then
  3425. table.insert(List, v)
  3426. end
  3427. end
  3428. end
  3429. end
  3430. end
  3431. return List
  3432. end
  3433.  
  3434. function FaceMouse()
  3435. Cam = workspace.CurrentCamera
  3436. return {
  3437. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3438. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3439. }
  3440. end
  3441.  
  3442. function FaceMouse2()
  3443. Cam = workspace.CurrentCamera
  3444. return {
  3445. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3446. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3447. }
  3448. end
  3449.  
  3450. local ModeOfGlitch = 1
  3451. -- Functions are ready.
  3452. local storehumanoidWS = 16
  3453.  
  3454. function CorruptBlink()
  3455. for i = 0, 14 do
  3456. 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)
  3457. end
  3458. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3459. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3460. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3461. CameraEnshaking(2,10)
  3462. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3463. if v:FindFirstChild('Head') then
  3464. dmg(v)
  3465. end
  3466. end
  3467. for i = 0, 14 do
  3468. 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)
  3469. end
  3470. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3471. end
  3472. function PureBomb()
  3473. attack = true
  3474. hum.WalkSpeed = 0
  3475. local orb = Instance.new("Part", char)
  3476. orb.Anchored = true
  3477. orb.BrickColor = BrickColor.new("Toothpaste")
  3478. orb.CanCollide = false
  3479. orb.FormFactor = 3
  3480. orb.Name = "Ring"
  3481. orb.Material = "Neon"
  3482. orb.Size = Vector3.new(1, 1, 1)
  3483. orb.Transparency = 0
  3484. orb.TopSurface = 0
  3485. orb.BottomSurface = 0
  3486. local orbm = Instance.new("SpecialMesh", orb)
  3487. orbm.MeshType = "Sphere"
  3488. orbm.Name = "SizeMesh"
  3489. orbm.Scale = vt(0,0,0)
  3490. local scaled = 0.1
  3491. local posid = 0
  3492. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3493. for i = 0, 5, 0.1 do
  3494. swait()
  3495. scaled = scaled - 0.001
  3496. posid = posid - scaled
  3497. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3498. local scaled = 0.1
  3499. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3500. 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)
  3501. 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)
  3502. 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)
  3503. 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)
  3504. 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)
  3505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3506. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3507. 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)
  3508. end
  3509. for i = 0, 2, 0.1 do
  3510. swait()
  3511. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3512. 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)
  3513. 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)
  3514. 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)
  3515. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3516. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3517. 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)
  3518. end
  3519. coroutine.resume(coroutine.create(function()
  3520. orb.Anchored = false
  3521. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3522. local a = Instance.new("Part",workspace)
  3523. a.Name = "Direction"
  3524. a.Anchored = true
  3525. a.BrickColor = bc("Bright red")
  3526. a.Material = "Neon"
  3527. a.Transparency = 1
  3528. a.CanCollide = false
  3529. local ray = Ray.new(
  3530. orb.CFrame.p, -- origin
  3531. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3532. )
  3533. local ignore = orb
  3534. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3535. a.BottomSurface = 10
  3536. a.TopSurface = 10
  3537. local distance = (orb.CFrame.p - position).magnitude
  3538. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3539. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3540. orb.CFrame = a.CFrame
  3541. a:Destroy()
  3542. local bv = Instance.new("BodyVelocity")
  3543. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3544. bv.velocity = orb.CFrame.lookVector*125
  3545. bv.Parent = orb
  3546. local hitted = false
  3547. game:GetService("Debris"):AddItem(orb, 15)
  3548. wait()
  3549. local hit =orb.Touched:connect(function(hit)
  3550. if hitted == false then
  3551. hitted = true
  3552. CameraEnshaking(10,2.5)
  3553. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3554. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3555. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3556. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3557. for i = 0, 49 do
  3558. 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)
  3559. end
  3560. for i = 0, 9 do
  3561. 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)
  3562. 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)
  3563. end
  3564. orb.Anchored = true
  3565. orb.Transparency = 1
  3566. wait(8)
  3567. orb:Destroy()
  3568. end
  3569. end)
  3570. end))
  3571. for i = 0, 1, 0.1 do
  3572. swait()
  3573. 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)
  3574. 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)
  3575. 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)
  3576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3577. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3578. 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)
  3579. end
  3580. hum.WalkSpeed = storehumanoidWS
  3581. attack = false
  3582. end
  3583.  
  3584. function BanishingOrb()
  3585. attack = true
  3586. hum.WalkSpeed = 0
  3587. local radm = math.random(1,3)
  3588. if radm == 1 then
  3589. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3590. elseif radm == 2 then
  3591. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3592. elseif radm == 3 then
  3593. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3594. end
  3595. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3596. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3597. local orb = Instance.new("Part", char)
  3598. orb.Anchored = true
  3599. orb.BrickColor = BrickColor.new("Lime green")
  3600. orb.CanCollide = false
  3601. orb.FormFactor = 3
  3602. orb.Name = "Ring"
  3603. orb.Material = "Neon"
  3604. orb.Size = Vector3.new(1, 1, 1)
  3605. orb.Transparency = 0
  3606. orb.TopSurface = 0
  3607. orb.BottomSurface = 0
  3608. local orbm = Instance.new("SpecialMesh", orb)
  3609. orbm.MeshType = "Sphere"
  3610. orbm.Name = "SizeMesh"
  3611. orbm.Scale = vt(0,0,0)
  3612. local scaled = 0.1
  3613. local posid = 0
  3614. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3615. for i = 0, 5, 0.1 do
  3616. swait()
  3617. scaled = scaled - 0.001
  3618. posid = posid - scaled
  3619. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3620. local scaled = 0.1
  3621. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3622. 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)
  3623. 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)
  3624. 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)
  3625. 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)
  3626. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3627. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3628. 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)
  3629. end
  3630. for i = 0, 2, 0.1 do
  3631. swait()
  3632. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3633. 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)
  3634. 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)
  3635. 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)
  3636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3638. 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)
  3639. end
  3640. coroutine.resume(coroutine.create(function()
  3641. orb.Anchored = false
  3642. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3643. local a = Instance.new("Part",workspace)
  3644. a.Name = "Direction"
  3645. a.Anchored = true
  3646. a.BrickColor = bc("Lime green")
  3647. a.Material = "Neon"
  3648. a.Transparency = 1
  3649. a.CanCollide = false
  3650. local ray = Ray.new(
  3651. orb.CFrame.p, -- origin
  3652. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3653. )
  3654. local ignore = orb
  3655. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3656. a.BottomSurface = 10
  3657. a.TopSurface = 10
  3658. local distance = (orb.CFrame.p - position).magnitude
  3659. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3660. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3661. orb.CFrame = a.CFrame
  3662. a:Destroy()
  3663. local bv = Instance.new("BodyVelocity")
  3664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3665. bv.velocity = orb.CFrame.lookVector*0
  3666. bv.Parent = orb
  3667. local hitted = false
  3668. local rate = 0
  3669. coroutine.resume(coroutine.create(function()
  3670. for i = 0, 24 do
  3671. wait(0.1)
  3672. rate = rate + 0.25
  3673. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3674. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3675. if v:FindFirstChild('Head') then
  3676. dmg(v)
  3677. end
  3678. end
  3679. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3680. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3681. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3682. end
  3683. orb.Anchored = true
  3684. orb.Transparency = 1
  3685. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3686. if v:FindFirstChild('Head') then
  3687. dmg(v)
  3688. end
  3689. end
  3690. local eff = Instance.new("ParticleEmitter",orb)
  3691. eff.Texture = "rbxassetid://296874871"
  3692. eff.LightEmission = 0.95
  3693. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3694. eff.Rate = 1000000000
  3695. eff.Lifetime = NumberRange.new(3)
  3696. 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)})
  3697. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3698. eff.Speed = NumberRange.new(30)
  3699. eff.Acceleration = vt(0,-15,0)
  3700. eff.Rotation = NumberRange.new(-500,500)
  3701. eff.VelocitySpread = 100000
  3702. eff.RotSpeed = NumberRange.new(-500,500)
  3703. coroutine.resume(coroutine.create(function()
  3704. wait(0.6)
  3705. eff.Enabled = false
  3706. end))
  3707. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3708. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3709. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3710. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3711. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3712. game:GetService("Debris"):AddItem(orb, 15)
  3713. end))
  3714. end))
  3715. for i = 0, 1, 0.1 do
  3716. swait()
  3717. 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)
  3718. 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)
  3719. 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)
  3720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3721. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3722. 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)
  3723. end
  3724. hum.WalkSpeed = storehumanoidWS
  3725. attack = false
  3726. end
  3727.  
  3728.  
  3729. function ChaosGroundStrike()
  3730. attack = true
  3731. for i = 0, 2, 0.1 do
  3732. swait()
  3733. 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)
  3734. 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)
  3735. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3737. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3738. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3739. end
  3740. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3741. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3742. CameraEnshaking(4,12)
  3743. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3744. if v:FindFirstChild('Head') then
  3745. dmg(v)
  3746. end
  3747. end
  3748. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3749. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3750. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3751. for i = 0, 2, 0.1 do
  3752. swait()
  3753. 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)
  3754. 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)
  3755. 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)
  3756. 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)
  3757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3759. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3760. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3761. end
  3762. attack = false
  3763. end
  3764.  
  3765.  
  3766.  
  3767. function Starfall()
  3768. attack = true
  3769. hum.WalkSpeed = 0
  3770. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3771. for i = 0, 5, 0.1 do
  3772. swait()
  3773. 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)
  3774. 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)
  3775. 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)
  3776. 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)
  3777. 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)
  3778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3779. 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)
  3780. 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)
  3781. end
  3782. local Overed = false
  3783. CameraEnshaking(2,20)
  3784. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3785. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3786. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3787. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3788. local orb = Instance.new("Part", char)
  3789. orb.Anchored = true
  3790. orb.BrickColor = BrickColor.new("Toothpaste")
  3791. orb.CanCollide = false
  3792. orb.FormFactor = 3
  3793. orb.Name = "Remenant"
  3794. orb.Material = "Neon"
  3795. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3796. orb.Size = Vector3.new(1, 1, 1)
  3797. orb.Transparency = 1
  3798. orb.TopSurface = 0
  3799. orb.BottomSurface = 0
  3800. hum.WalkSpeed = storehumanoidWS
  3801. coroutine.resume(coroutine.create(function()
  3802. for i = 0, 9 do
  3803. swait(10)
  3804. local lb = Instance.new("Part")
  3805. lb.Color = MAINRUINCOLOR.Color
  3806. lb.CanCollide = false
  3807. lb.Material = "Neon"
  3808. lb.Anchored = true
  3809. lb.TopSurface = 0
  3810. lb.BottomSurface = 0
  3811. lb.Transparency = 0
  3812. lb.Size = vt(1,1,1)
  3813. 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)))
  3814. lb.Anchored = false
  3815. lb.Parent = char
  3816. local thingery = Instance.new("SpecialMesh",lb)
  3817. thingery.MeshType = "Sphere"
  3818. thingery.Scale = vt(20,20,20)
  3819. game:GetService("Debris"):AddItem(lb, 10)
  3820. local bv = Instance.new("BodyVelocity")
  3821. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3822. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3823. bv.Parent = lb
  3824. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3825. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3826. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3827. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3828. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3829. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3830. local hitted = false
  3831. coroutine.resume(coroutine.create(function()
  3832. while true do
  3833. swait(1)
  3834. if lb.Parent ~= nil and hitted == false then
  3835. 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)
  3836. elseif lb.Parent == nil then
  3837. break
  3838. end
  3839. end
  3840. end))
  3841.  
  3842. game:GetService("Debris"):AddItem(a, 0.1)
  3843.  
  3844. coroutine.resume(coroutine.create(function()
  3845. swait(1)
  3846. lb.Touched:connect(function(hit)
  3847. if hitted == false then
  3848. hitted = true
  3849. lb.Transparency = 1
  3850. lb.Anchored = true
  3851. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3852. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3853. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3854. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3855. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3856. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3857. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3858. CameraEnshaking(1,5)
  3859. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3860. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3861. for i = 0, 9 do
  3862. 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)
  3863. end
  3864. for i = 0, 49 do
  3865. swait()
  3866. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3867. 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)
  3868. end
  3869. end
  3870. end)
  3871. end))
  3872. end
  3873. Overed = true
  3874. orb:Destroy()
  3875. end))
  3876.  
  3877. attack = false
  3878. end
  3879.  
  3880. function StarfallEX()
  3881. attack = true
  3882. hum.WalkSpeed = 0
  3883. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3884. for i = 0, 10, 0.1 do
  3885. swait()
  3886. 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)
  3887. 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)
  3888. 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)
  3889. 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)
  3890. 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)
  3891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3892. 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)
  3893. 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)
  3894. end
  3895. local Overed = false
  3896. CameraEnshaking(2,20)
  3897. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3898. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3899. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3900. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3901. local orb = Instance.new("Part", char)
  3902. orb.Anchored = true
  3903. orb.BrickColor = BrickColor.new("Toothpaste")
  3904. orb.CanCollide = false
  3905. orb.FormFactor = 3
  3906. orb.Name = "Remenant"
  3907. orb.Material = "Neon"
  3908. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3909. orb.Size = Vector3.new(1, 1, 1)
  3910. orb.Transparency = 1
  3911. orb.TopSurface = 0
  3912. orb.BottomSurface = 0
  3913. hum.WalkSpeed = storehumanoidWS
  3914. coroutine.resume(coroutine.create(function()
  3915. for i = 0, 4 do
  3916. swait(15)
  3917. local lb = Instance.new("Part")
  3918. lb.Color = MAINRUINCOLOR.Color
  3919. lb.CanCollide = false
  3920. lb.Material = "Neon"
  3921. lb.Anchored = true
  3922. lb.TopSurface = 0
  3923. lb.BottomSurface = 0
  3924. lb.Transparency = 0
  3925. lb.Size = vt(1,1,1)
  3926. 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)))
  3927. lb.Anchored = false
  3928. lb.Parent = char
  3929. local thingery = Instance.new("SpecialMesh",lb)
  3930. thingery.MeshType = "Sphere"
  3931. thingery.Scale = vt(50,50,50)
  3932. game:GetService("Debris"):AddItem(lb, 10)
  3933. local bv = Instance.new("BodyVelocity")
  3934. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3935. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3936. bv.Parent = lb
  3937. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3938. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3939. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3940. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3941. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3942. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3943. local hitted = false
  3944. coroutine.resume(coroutine.create(function()
  3945. while true do
  3946. swait(1)
  3947. if lb.Parent ~= nil and hitted == false then
  3948. 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)
  3949. elseif lb.Parent == nil then
  3950. break
  3951. end
  3952. end
  3953. end))
  3954.  
  3955. game:GetService("Debris"):AddItem(a, 0.1)
  3956.  
  3957. coroutine.resume(coroutine.create(function()
  3958. swait(1)
  3959. lb.Touched:connect(function(hit)
  3960. if hitted == false then
  3961. hitted = true
  3962. lb.Transparency = 1
  3963. lb.Anchored = true
  3964. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3965. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3966. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3967. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3968. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3969. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3970. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3971. CameraEnshaking(1,5)
  3972. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3973. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3974. for i = 0, 9 do
  3975. 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)
  3976. end
  3977. for i = 0, 99 do
  3978. swait()
  3979. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3980. 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)
  3981. end
  3982. end
  3983. end)
  3984. end))
  3985. end
  3986. Overed = true
  3987. orb:Destroy()
  3988. end))
  3989.  
  3990. attack = false
  3991. end
  3992.  
  3993. function DivineBlast()
  3994. attack = true
  3995. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3996. hum.WalkSpeed = 0
  3997. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3998. elocacenter.Anchored = true
  3999. elocacenter.CFrame = sorb.CFrame
  4000. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4001. eloca1.Anchored = true
  4002. eloca1.CFrame = elocacenter.CFrame
  4003. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4004. eloca2.Anchored = true
  4005. eloca2.CFrame = elocacenter.CFrame
  4006. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4007. eloca3.Anchored = true
  4008. eloca3.CFrame = elocacenter.CFrame
  4009. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4010. eloca4.Anchored = true
  4011. eloca4.CFrame = elocacenter.CFrame
  4012. local lookavec = 0
  4013. local speeds = 0
  4014. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4015. for i = 0, 3, 0.1 do
  4016. swait()
  4017. ---
  4018. lookavec = lookavec + 0.1
  4019. speeds = speeds + 10
  4020. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4021. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4022. 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)
  4023.  
  4024. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4025. 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)
  4026.  
  4027. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4028. 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)
  4029.  
  4030. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4031. 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)
  4032. ---
  4033. root.CFrame = FaceMouse()[1]
  4034. 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)
  4035. 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)
  4036. 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)
  4037. 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)
  4038. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4039. 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)
  4040. end
  4041. for i = 0, 3, 0.1 do
  4042. swait()
  4043. ---
  4044. speeds = speeds + 10
  4045. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4046. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4047. 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)
  4048.  
  4049. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4050. 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)
  4051.  
  4052. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4053. 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)
  4054.  
  4055. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4056. 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)
  4057. ---
  4058. root.CFrame = FaceMouse()[1]
  4059. 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)
  4060. 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)
  4061. 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)
  4062. 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)
  4063. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4064. 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)
  4065. end
  4066. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4067. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4068. for i = 0, 3, 0.1 do
  4069. swait()
  4070. ---
  4071. speeds = speeds + 10
  4072. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4073. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4074. 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)
  4075.  
  4076. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4077. 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)
  4078.  
  4079. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4080. 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)
  4081.  
  4082. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4083. 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)
  4084. ---
  4085. root.CFrame = FaceMouse()[1]
  4086. 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)
  4087. 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)
  4088. 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)
  4089. 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)
  4090. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4091. 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)
  4092. end
  4093. coroutine.resume(coroutine.create(function()
  4094. local a = Instance.new("Part",Character)
  4095. a.Name = "Direction"
  4096. a.Anchored = true
  4097. a.BrickColor = bc("White")
  4098. a.Material = "Neon"
  4099. a.Transparency = 0
  4100. a.Shape = "Cylinder"
  4101. a.CanCollide = false
  4102. local a2 = Instance.new("Part",Character)
  4103. a2.Name = "Direction"
  4104. a2.Anchored = true
  4105. a2.BrickColor = bc("Bright yellow")
  4106. a2.Material = "Neon"
  4107. a2.Transparency = 0
  4108. a2.Shape = "Cylinder"
  4109. a2.CanCollide = false
  4110. local b = Instance.new("Part",Character)
  4111. b.Name = "HitDirect"
  4112. b.Anchored = true
  4113. b.BrickColor = bc("Cool yellow")
  4114. b.Material = "Neon"
  4115. b.Transparency = 1
  4116. b.CanCollide = false
  4117. local ray = Ray.new(
  4118. elocacenter.CFrame.p, -- origin
  4119. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4120. )
  4121. local ignore = Character
  4122. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4123. a.BottomSurface = 10
  4124. a.TopSurface = 10
  4125. a2.BottomSurface = 10
  4126. a2.TopSurface = 10
  4127. local distance = (elocacenter.CFrame.p - position).magnitude
  4128. a.Size = Vector3.new(distance, 1, 1)
  4129. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4130. a2.Size = Vector3.new(distance, 1, 1)
  4131. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4132. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4133. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4134. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4135. game:GetService("Debris"):AddItem(a, 10)
  4136. game:GetService("Debris"):AddItem(a2, 10)
  4137. game:GetService("Debris"):AddItem(b, 10)
  4138. local eff = Instance.new("ParticleEmitter",b)
  4139. eff.Texture = "rbxassetid://2273224484"
  4140. eff.LightEmission = 1
  4141. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4142. eff.Rate = 500000
  4143. eff.Lifetime = NumberRange.new(0.5,2)
  4144. 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)})
  4145. 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)})
  4146. eff.Speed = NumberRange.new(20,250)
  4147. eff.Drag = 5
  4148. eff.Rotation = NumberRange.new(-500,500)
  4149. eff.VelocitySpread = 9000
  4150. eff.RotSpeed = NumberRange.new(-50,50)
  4151. coroutine.resume(coroutine.create(function()
  4152. wait(0.25)
  4153. eff.Enabled = false
  4154. end))
  4155. local msh = Instance.new("SpecialMesh",a)
  4156. msh.MeshType = "Cylinder"
  4157. msh.Scale = vt(1,2,2)
  4158. local msh2 = Instance.new("SpecialMesh",a2)
  4159. msh2.MeshType = "Cylinder"
  4160. msh2.Scale = vt(1,2.5,2.5)
  4161. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4162. coroutine.resume(coroutine.create(function()
  4163. for i = 0,10,0.1 do
  4164. swait()
  4165. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4166. a.Transparency = a.Transparency + 0.025
  4167. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4168. a2.Transparency = a2.Transparency + 0.05
  4169. end
  4170. a:Destroy()
  4171. a2:Destroy()
  4172. end))
  4173. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4174. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4175. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4176. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4177. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4178. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4179. MagniDamage(b, 25, 40,65, 0, "Normal")
  4180. for i = 0, 49 do
  4181. 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)
  4182. 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)
  4183. end
  4184. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4185. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4186. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4187. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4188. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4189. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4190. end))
  4191. game:GetService("Debris"):AddItem(elocacenter, 5)
  4192. hum.WalkSpeed = storehumanoidWS
  4193. attack = false
  4194. end
  4195.  
  4196. function StarDivision()
  4197. attack = true
  4198. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4199. for i = 0, 2, 0.1 do
  4200. swait()
  4201. 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)
  4202. 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)
  4203. 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)
  4204. 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)
  4205. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4206. 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)
  4207. end
  4208. local orb = Instance.new("Part", char)
  4209. orb.BrickColor = MAINRUINCOLOR
  4210. orb.CanCollide = false
  4211. orb.FormFactor = 3
  4212. orb.Name = "Ring"
  4213. orb.Material = "Neon"
  4214. orb.Size = Vector3.new(1, 1, 1)
  4215. orb.Transparency = 0
  4216. orb.TopSurface = 0
  4217. orb.BottomSurface = 0
  4218. local orbm = Instance.new("SpecialMesh", orb)
  4219. orbm.MeshType = "Sphere"
  4220. orbm.Name = "SizeMesh"
  4221. orbm.Scale = vt(2,2,2)
  4222. local a = Instance.new("Part",workspace)
  4223. a.Name = "Direction"
  4224. a.Anchored = true
  4225. a.BrickColor = bc("Bright red")
  4226. a.Material = "Neon"
  4227. a.Transparency = 1
  4228. a.CanCollide = false
  4229. local ray = Ray.new(
  4230. sorb.CFrame.p, -- origin
  4231. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4232. )
  4233. local ignore = sorb
  4234. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4235. a.BottomSurface = 10
  4236. a.TopSurface = 10
  4237. local distance = (sorb.CFrame.p - position).magnitude
  4238. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4239. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4240. orb.CFrame = a.CFrame
  4241. a:Destroy()
  4242. local bv = Instance.new("BodyVelocity")
  4243. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4244. bv.velocity = orb.CFrame.lookVector*100
  4245. bv.Parent = orb
  4246. local hitted = false
  4247. game:GetService("Debris"):AddItem(orb, 10)
  4248. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4249. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4250. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4251. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4252. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4253. coroutine.resume(coroutine.create(function()
  4254. while true do
  4255. swait(1)
  4256. if orb.Parent ~= nil and hitted == false then
  4257. 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)
  4258. elseif orb.Parent == nil then
  4259. break
  4260. end
  4261. end
  4262. end))
  4263. coroutine.resume(coroutine.create(function()
  4264. swait(1)
  4265. orb.Touched:connect(function(hit)
  4266. if hitted == false then
  4267. hitted = true
  4268. game:GetService("Debris"):AddItem(orb, 5)
  4269. orb.Transparency = 1
  4270. orb.Anchored = true
  4271. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4272. elocacenter.Anchored = true
  4273. elocacenter.CFrame = orb.CFrame
  4274. elocacenter.Orientation = vt(0,0,0)
  4275. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4276. eloca1.Anchored = true
  4277. eloca1.CFrame = elocacenter.CFrame
  4278. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4279. eloca2.Anchored = true
  4280. eloca2.CFrame = elocacenter.CFrame
  4281. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4282. eloca3.Anchored = true
  4283. eloca3.CFrame = elocacenter.CFrame
  4284. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4285. eloca4.Anchored = true
  4286. eloca4.CFrame = elocacenter.CFrame
  4287. local lookavec = 0
  4288. local speeds = 0
  4289. CameraEnshaking(1,1)
  4290. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4291. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4292. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4293. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4294. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4295. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4296. for i = 0, 99 do
  4297. swait()
  4298. lookavec = lookavec + 1
  4299. speeds = speeds + 0.1
  4300. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4301. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4302. 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)
  4303.  
  4304. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4305. 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)
  4306.  
  4307. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4308. 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)
  4309.  
  4310. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4311. 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)
  4312. end
  4313.  
  4314. for i = 0, 149 do
  4315. swait()
  4316. speeds = speeds + 0.1
  4317. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4318. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4319. 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)
  4320.  
  4321. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4322. 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)
  4323.  
  4324. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4325. 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)
  4326.  
  4327. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4328. 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)
  4329. end
  4330. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4331. if v:FindFirstChild('Head') then
  4332. dmg(v)
  4333. end
  4334. end
  4335. CameraEnshaking(7,30)
  4336. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4337. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4338. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4339. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4340. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4341. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4342. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4343. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4344. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4345. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4346. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4347. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4348. for i = 0, 24 do
  4349. 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)
  4350. 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)
  4351. 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)
  4352. 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)
  4353. end
  4354. coroutine.resume(coroutine.create(function()
  4355. for i = 0, 499 do
  4356. swait(1)
  4357. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4358. 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)
  4359. end
  4360. elocacenter:Destroy()
  4361. eloca1:Destroy()
  4362. eloca2:Destroy()
  4363. eloca3:Destroy()
  4364. eloca4:Destroy()
  4365. end))
  4366. end
  4367. end)
  4368. end))
  4369. attack = false
  4370. end
  4371.  
  4372.  
  4373. function THE_TRUE_POWER_OF_VIOLENCE()
  4374. attack = true
  4375. hum.WalkSpeed = 0
  4376. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4377. for i = 0, 10, 0.1 do
  4378. swait()
  4379. 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)
  4380. 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)
  4381. 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)
  4382. 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)
  4383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4385. 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)
  4386. end
  4387. local orb = Instance.new("Part", char)
  4388. orb.BrickColor = MAINRUINCOLOR
  4389. orb.CanCollide = false
  4390. orb.FormFactor = 3
  4391. orb.Name = "Ring"
  4392. orb.Material = "Neon"
  4393. orb.Size = Vector3.new(1, 1, 1)
  4394. orb.Transparency = 0
  4395. orb.TopSurface = 0
  4396. orb.BottomSurface = 0
  4397. orb.CFrame = sorb.CFrame
  4398. local orbm = Instance.new("SpecialMesh", orb)
  4399. orbm.MeshType = "Sphere"
  4400. orbm.Name = "SizeMesh"
  4401. orbm.Scale = vt(0,0,0)
  4402. local sbs = Instance.new("BodyPosition", orb)
  4403. sbs.P = 3000
  4404. sbs.D = 1000
  4405. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4406. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4407. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4408. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4409. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4410. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4411. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4412. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4413. for i = 0, 10, 0.1 do
  4414. swait()
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4421. 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)
  4422. end
  4423. orb.Anchored = true
  4424. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4425. elocacenter.Anchored = true
  4426. elocacenter.CFrame = orb.CFrame
  4427. elocacenter.Orientation = vt(0,0,0)
  4428. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4429. eloca1.Anchored = true
  4430. eloca1.CFrame = elocacenter.CFrame
  4431. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4432. eloca2.Anchored = true
  4433. eloca2.CFrame = elocacenter.CFrame
  4434. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4435. eloca3.Anchored = true
  4436. eloca3.CFrame = elocacenter.CFrame
  4437. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4438. eloca4.Anchored = true
  4439. eloca4.CFrame = elocacenter.CFrame
  4440. local lookavec = 0
  4441. local speeds = 0
  4442. CameraEnshaking(1,1)
  4443. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4444. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4445. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4446. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4447. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4448. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4449. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4450. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4451. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4452. for i = 0, 99 do
  4453. swait()
  4454. lookavec = lookavec + 2.5
  4455. speeds = speeds + 0.25
  4456. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4457. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4458. 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)
  4459.  
  4460. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4461. 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)
  4462.  
  4463. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4464. 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)
  4465.  
  4466. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4467. 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)
  4468. end
  4469.  
  4470. for i = 0, 149 do
  4471. swait()
  4472. speeds = speeds + 0.25
  4473. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4474. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4475. 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)
  4476.  
  4477. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4478. 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)
  4479.  
  4480. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4481. 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)
  4482.  
  4483. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4484. 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)
  4485. end
  4486. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4487. for i = 0, 99 do
  4488. swait()
  4489. lookavec = lookavec - 2.5
  4490. speeds = speeds + 0.25
  4491. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4492. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4493. 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)
  4494.  
  4495. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4496. 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)
  4497.  
  4498. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4499. 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)
  4500.  
  4501. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4502. 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)
  4503. end
  4504. local scaled = 0.1*75
  4505. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4506. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4507. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4508. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4509. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4510. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4511. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4512. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4513. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4514. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4515. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4516.  
  4517. for i = 0, 10, 0.1 do
  4518. swait()
  4519. scaled = scaled - 0.001*75
  4520. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4521. 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)
  4522. 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)
  4523. 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)
  4524. 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)
  4525. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4526. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4527. 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)
  4528. end
  4529. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4530. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4531. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4532. for x = 0, 4 do
  4533. for i = 0, 9 do
  4534. 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)
  4535. end
  4536. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4537. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4538. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4540. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4541. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4542. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4543. for i = 0, 5, 0.1 do
  4544. swait()
  4545. 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)
  4546. 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)
  4547. 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)
  4548. 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)
  4549. 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)
  4550. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4551. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4552. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4553. end
  4554. end
  4555. local speedearn = 0
  4556. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4557. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4558. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4559. for i = 0, 30, 0.1 do
  4560. swait()
  4561. scaled = scaled - 0.001*75/10
  4562. speedearn = speedearn + 0.5
  4563. for i = 0, 4 do
  4564. 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)
  4565. end
  4566. 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)
  4567. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4568. 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)
  4569. 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)
  4570. 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)
  4571. 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)
  4572. 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)
  4573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4574. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4575. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4576. end
  4577. orb.Transparency = 1
  4578. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4579. if v:FindFirstChild('Head') then
  4580. dmg(v)
  4581. end
  4582. end
  4583. CameraEnshaking(7,30)
  4584. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4585. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4586. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4587. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4588. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4589. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4590. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4591. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4592. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4593. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4594. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4595. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4596. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4597. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4598. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4599. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4600. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4601. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4602. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4603. for i = 0, 99 do
  4604. 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)
  4605. 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)
  4606. end
  4607. for i = 0, 24 do
  4608. 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)
  4609. 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)
  4610. 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)
  4611. 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)
  4612. 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)
  4613. end
  4614. game:GetService("Debris"):AddItem(orb, 10)
  4615. hum.WalkSpeed = storehumanoidWS
  4616. attack = false
  4617. end
  4618.  
  4619.  
  4620. function ViolentRing()
  4621. attack = true
  4622. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4623. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4624. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4625. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4626. for i = 0, 2, 0.1 do
  4627. swait()
  4628. local snap = math.random(1,10)
  4629. if snap == 1 then
  4630. 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)
  4631. end
  4632. 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)
  4633. 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)
  4634. 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)
  4635. 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)
  4636. 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)
  4637. 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)
  4638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4640. 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)
  4641. RootPart.CFrame = FaceMouse()[1]
  4642. end
  4643. local orb = Instance.new("Part", char)
  4644. orb.BrickColor = MAINRUINCOLOR
  4645. orb.CanCollide = false
  4646. orb.FormFactor = 3
  4647. orb.Name = "Ring"
  4648. orb.Material = "Neon"
  4649. orb.Size = Vector3.new(1, 1, 1)
  4650. orb.Transparency = 0
  4651. orb.TopSurface = 0
  4652. orb.BottomSurface = 0
  4653. local orbm = Instance.new("SpecialMesh", orb)
  4654. orbm.MeshType = "Sphere"
  4655. orbm.Name = "SizeMesh"
  4656. orbm.Scale = vt(2,2,2)
  4657. orb.CFrame = mouse.Hit
  4658. local bv = Instance.new("BodyVelocity")
  4659. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4660. bv.velocity = orb.CFrame.lookVector*100
  4661. bv.Parent = orb
  4662. local hitted = false
  4663. coroutine.resume(coroutine.create(function()
  4664. game:GetService("Debris"):AddItem(orb, 5)
  4665. orb.Transparency = 1
  4666. orb.Anchored = true
  4667. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4668. elocacenter.Anchored = true
  4669. elocacenter.CFrame = orb.CFrame
  4670. elocacenter.Orientation = vt(0,0,0)
  4671. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4672. eloca1.Anchored = true
  4673. eloca1.CFrame = elocacenter.CFrame
  4674. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4675. eloca2.Anchored = true
  4676. eloca2.CFrame = elocacenter.CFrame
  4677. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4678. eloca3.Anchored = true
  4679. eloca3.CFrame = elocacenter.CFrame
  4680. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4681. eloca4.Anchored = true
  4682. eloca4.CFrame = elocacenter.CFrame
  4683. local lookavec = 0
  4684. local speeds = 0
  4685. CameraEnshaking(1,1)
  4686. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4687. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4688. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4689. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4690. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4691. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4692. for i = 0, 24 do
  4693. swait()
  4694. lookavec = lookavec + 3.5
  4695. speeds = speeds + 1
  4696. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4697. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4698. 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)
  4699.  
  4700. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4701. 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)
  4702.  
  4703. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4704. 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)
  4705.  
  4706. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4707. 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)
  4708. end
  4709.  
  4710. local risen = 0
  4711. for i = 0, 49 do
  4712. swait()
  4713. risen = risen + 0.05
  4714. speeds = speeds + 0.1
  4715. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4716. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4717. 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)
  4718.  
  4719. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4720. 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)
  4721.  
  4722. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4723. 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)
  4724.  
  4725. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4726. 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)
  4727. end
  4728. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4729. if v:FindFirstChild('Head') then
  4730. dmg(v)
  4731. end
  4732. end
  4733. CameraEnshaking(4,10)
  4734. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4735. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4736. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4737. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4738. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4739. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4740. local eff = Instance.new("ParticleEmitter",elocacenter)
  4741. eff.Texture = "rbxassetid://2273224484"
  4742. eff.LightEmission = 1
  4743. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4744. eff.Rate = 1000000
  4745. eff.Lifetime = NumberRange.new(0.5,2)
  4746. 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)})
  4747. 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)})
  4748. eff.Speed = NumberRange.new(20,250)
  4749. eff.Drag = 5
  4750. eff.Rotation = NumberRange.new(-500,500)
  4751. eff.VelocitySpread = 5000000
  4752. eff.RotSpeed = NumberRange.new(-50,50)
  4753. coroutine.resume(coroutine.create(function()
  4754. wait(1)
  4755. eff.Enabled = false
  4756. end))
  4757. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4758. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4759. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4760. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4761. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4762. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4763. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4764. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4765. for i = 0, 24 do
  4766. 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)
  4767. 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)
  4768. 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)
  4769. 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)
  4770. end
  4771. coroutine.resume(coroutine.create(function()
  4772. wait(10)
  4773. elocacenter:Destroy()
  4774. eloca1:Destroy()
  4775. eloca2:Destroy()
  4776. eloca3:Destroy()
  4777. eloca4:Destroy()
  4778. end))
  4779. end))
  4780. attack = false
  4781. end
  4782.  
  4783. function UniversalCollapse()
  4784. attack = true
  4785. local speedearn = 0
  4786. hum.WalkSpeed = 0
  4787. local sbs = Instance.new("BodyPosition", root)
  4788. sbs.P = 3000
  4789. sbs.D = 1000
  4790. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4791. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4792. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4793. for i = 0, 85, 0.1 do
  4794. swait()
  4795. speedearn = speedearn + 0.1
  4796. 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)
  4797. 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)
  4798. 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)
  4799. 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)
  4800. 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)
  4801. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4802. 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)
  4803. 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)
  4804. 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)
  4805. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4806. 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)
  4807. 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)
  4808. end
  4809. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4810. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4811. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4812. for i = 0, 25, 0.1 do
  4813. swait()
  4814. speedearn = speedearn + 0.1
  4815. 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)
  4816. 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)
  4817. 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)
  4818. 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)
  4819. 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)
  4820. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4821. 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)
  4822. 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)
  4823. 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)
  4824. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4825. 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)
  4826. 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)
  4827. end
  4828. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4829. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4830. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4831. CameraEnshaking(5,50)
  4832. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4833. for i = 0, 2 do
  4834. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4835. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4836. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4837. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4838. end
  4839. for i = 0, 49 do
  4840. 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)
  4841. 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)
  4842. 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)
  4843. 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)
  4844. end
  4845. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4846. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4847. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4848. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4849. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4850. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4851. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4852. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4853. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4854. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4855. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4856. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4857. for i = 0, 99 do
  4858. 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)
  4859. 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)
  4860. end
  4861. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4862. if v:FindFirstChild('Head') then
  4863. dmg(v)
  4864. end
  4865. end
  4866. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4867. sbs:Destroy()
  4868. hum.WalkSpeed = storehumanoidWS
  4869. attack = false
  4870. end
  4871.  
  4872.  
  4873. function ChaosEND()
  4874. attack = true
  4875. local speedearn = 0
  4876. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4877. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4878. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4879. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4880. for i = 0, 15, 0.1 do
  4881. swait()
  4882. speedearn = speedearn + 0.25
  4883. 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)
  4884. 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)
  4885. 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)
  4886. 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)
  4887. 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)
  4888. 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)
  4889. 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)
  4890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4892. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4893. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4894. end
  4895. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4896. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4897. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4898. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4899. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4900. CameraEnshaking(5,25)
  4901. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4902. if v:FindFirstChild('Head') then
  4903. dmg(v)
  4904. end
  4905. end
  4906. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4907. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4908. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4909. for i = 0, 3, 0.1 do
  4910. swait()
  4911. 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)
  4912. 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)
  4913. 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)
  4914. 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)
  4915. 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)
  4916. 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)
  4917. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4918. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4919. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4920. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4921. end
  4922. attack = false
  4923. end
  4924.  
  4925. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4926. local orb = Instance.new("Part", char)
  4927. orb.Anchored = true
  4928. orb.BrickColor = color
  4929. orb.CanCollide = false
  4930. orb.FormFactor = 3
  4931. orb.Name = "Ring"
  4932. orb.Material = "Neon"
  4933. orb.Size = Vector3.new(1, 1, 1)
  4934. orb.Transparency = 0
  4935. orb.TopSurface = 0
  4936. orb.BottomSurface = 0
  4937. local orbm = Instance.new("SpecialMesh", orb)
  4938. orbm.MeshType = "Sphere"
  4939. orb.CFrame = positted
  4940. orbm.Name = "SizeMesh"
  4941. orbm.Scale = vt(1,1,1)
  4942. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4943. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4944. --[[for i = 0, 2 do
  4945. 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)
  4946. end]]--
  4947. coroutine.resume(coroutine.create(function()
  4948. wait(timer)
  4949. CameraEnshaking(3,ShakePower)
  4950. orb.Transparency = 1
  4951. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4952. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4953. --[[for i = 0, 4 do
  4954. 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)
  4955. end]]--
  4956. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4957. wait(3)
  4958. orb:Destroy()
  4959. end))
  4960. end
  4961.  
  4962. function orb_spawn(positted,timer)
  4963. local randomcol = math.random(1,2)
  4964. local orb = Instance.new("Part", char)
  4965. orb.Anchored = true
  4966. if randomcol == 1 then
  4967. orb.BrickColor = BrickColor.new("White")
  4968. elseif randomcol == 2 then
  4969. orb.BrickColor = BrickColor.new("Really black")
  4970. end
  4971. orb.CanCollide = false
  4972. orb.FormFactor = 3
  4973. orb.Name = "Ring"
  4974. orb.Material = "Neon"
  4975. orb.Size = Vector3.new(1, 1, 1)
  4976. orb.Transparency = 0
  4977. orb.TopSurface = 0
  4978. orb.BottomSurface = 0
  4979. local orbm = Instance.new("SpecialMesh", orb)
  4980. orbm.MeshType = "Sphere"
  4981. orb.CFrame = positted
  4982. orbm.Name = "SizeMesh"
  4983. orbm.Scale = vt(1,1,1)
  4984. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4985. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4986. for i = 0, 2 do
  4987. 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)
  4988. end
  4989. coroutine.resume(coroutine.create(function()
  4990. wait(timer)
  4991. CameraEnshaking(3,2)
  4992. orb.Transparency = 1
  4993. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4994. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4995. for i = 0, 4 do
  4996. 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)
  4997. end
  4998. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4999. wait(3)
  5000. orb:Destroy()
  5001. end))
  5002. end
  5003.  
  5004. function scattercorrupt()
  5005. attack = true
  5006. hum.WalkSpeed = 0
  5007. for i = 0, 2, 0.1 do
  5008. swait()
  5009. 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)
  5010. 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)
  5011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5013. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5015. end
  5016. local rot = 0
  5017. local randomrotations = math.random(1,2)
  5018. local lookv = 2.5
  5019. local power = 7
  5020. local radm = math.random(1,3)
  5021. if radm == 1 then
  5022. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5023. elseif radm == 2 then
  5024. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5025. elseif radm == 3 then
  5026. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5027. end
  5028. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5029. for i = 0, 1, 0.1 do
  5030. swait()
  5031. 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)
  5032. 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)
  5033. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5036. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5037. end
  5038. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5039. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5040. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5041. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5042. for i = 0, 9 do
  5043. 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)
  5044. end
  5045. local hite = Instance.new("Part", char)
  5046. hite.Anchored = true
  5047. hite.CanCollide = false
  5048. hite.FormFactor = 3
  5049. hite.Name = "Ring"
  5050. hite.Material = "Neon"
  5051. hite.Size = Vector3.new(1, 1, 1)
  5052. hite.Transparency = 1
  5053. hite.TopSurface = 0
  5054. hite.BottomSurface = 0
  5055. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5056. local rem = Instance.new("Part", char)
  5057. rem.Anchored = true
  5058. rem.CanCollide = false
  5059. rem.FormFactor = 3
  5060. rem.Name = "Ring"
  5061. rem.Material = "Neon"
  5062. rem.Size = Vector3.new(1, 1, 1)
  5063. rem.Transparency = 1
  5064. rem.TopSurface = 0
  5065. rem.BottomSurface = 0
  5066. rem.CFrame = hite.CFrame
  5067. local rem2 = rem:Clone()
  5068. rem2.Parent = char
  5069. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5070. local rem3 = rem:Clone()
  5071. rem3.Parent = char
  5072. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5073. local rem4 = rem:Clone()
  5074. rem4.Parent = char
  5075. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5076. hite:Destroy()
  5077. coroutine.resume(coroutine.create(function()
  5078. for i = 0, 24 do
  5079. swait(1)
  5080. if randomrotations == 1 then
  5081. rot = rot + 1
  5082. elseif randomrotations == 2 then
  5083. rot = rot - 1
  5084. end
  5085. power = power + 0.5
  5086. lookv = lookv + 7.5
  5087. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5088. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5089. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5090. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5091. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5092. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5093. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5094. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5095. end
  5096. end))
  5097. wait(2)
  5098. hum.WalkSpeed = storehumanoidWS
  5099. attack = false
  5100. end
  5101. function yinyangi()
  5102. attack = true
  5103. for i = 0, 2, 0.1 do
  5104. swait()
  5105. 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)
  5106. 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)
  5107. 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)
  5108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5109. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5111. end
  5112. local bv = Instance.new("BodyVelocity")
  5113. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5114. bv.velocity = root.CFrame.lookVector*175
  5115. bv.Parent = root
  5116. for Rotations = 0, 9 do
  5117. for i = 0, 1, 0.5 do
  5118. swait()
  5119. bv.velocity = root.CFrame.lookVector*175
  5120. 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)
  5121. 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)
  5122. 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)
  5123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5125. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5126. end
  5127. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5128. for i = 0, 1, 0.5 do
  5129. swait()
  5130. bv.velocity = root.CFrame.lookVector*175
  5131. 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)
  5132. 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)
  5133. 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)
  5134. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5136. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5137. end
  5138. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5139. for i = 0, 1, 0.5 do
  5140. swait()
  5141. bv.velocity = root.CFrame.lookVector*175
  5142. 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)
  5143. 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)
  5144. 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)
  5145. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5147. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5148. end
  5149. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5150. for i = 0, 1, 0.5 do
  5151. swait()
  5152. bv.velocity = root.CFrame.lookVector*175
  5153. 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)
  5154. 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)
  5155. 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)
  5156. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5157. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5158. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5159. end
  5160. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5161. end
  5162. bv:Destroy()
  5163. attack = false
  5164. end
  5165.  
  5166. function createBGCircle(size,parent,color)
  5167. local bgui = Instance.new("BillboardGui",parent)
  5168. bgui.Size = UDim2.new(size, 0, size, 0)
  5169. local imgc = Instance.new("ImageLabel",bgui)
  5170. imgc.BackgroundTransparency = 1
  5171. imgc.ImageTransparency = 0
  5172. imgc.Size = UDim2.new(1,0,1,0)
  5173. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5174. imgc.ImageColor3 = color
  5175. return bgui,imgc
  5176. end
  5177.  
  5178. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5179. local bgui,imgc = createBGCircle(size,guipar,color)
  5180. bgui.AlwaysOnTop = true
  5181. imgc.Image = "rbxassetid://" ..img
  5182. local rrot = math.random(1,2)
  5183. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5184. coroutine.resume(coroutine.create(function()
  5185. for i = 0, 24*delay do
  5186. swait()
  5187. if rotationenabled == true then
  5188. if rrot == 1 then
  5189. imgc.Rotation = imgc.Rotation + rotsp
  5190. elseif rrot == 2 then
  5191. imgc.Rotation = imgc.Rotation - rotsp
  5192. end
  5193. end
  5194. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5195. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5196. end
  5197. bgui:Destroy()
  5198. end))
  5199. end
  5200. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5201. for i, v in pairs(mw2:GetChildren()) do
  5202. if v:IsA("Part") then
  5203. v.BrickColor = one
  5204. v.Material = "Neon"
  5205. end
  5206. end
  5207. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5208. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5209. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5210. tr1.Color = ColorSequence.new(one.Color)
  5211. tr2.Color = ColorSequence.new(one.Color)
  5212. tr3.Color = ColorSequence.new(one.Color)
  5213. for i, v in pairs(mw1:GetChildren()) do
  5214. if v:IsA("Part") then
  5215. if secondaryenabled == false then
  5216. v.Transparency = 1
  5217. elseif secondaryenabled == true then
  5218. v.Transparency = 0
  5219. end
  5220. v.BrickColor = two
  5221. v.Material = "Neon"
  5222. end
  5223. end
  5224. if secondaryenabled == false then
  5225. tl1.Enabled = false
  5226. tl2.Enabled = false
  5227. tl3.Enabled = false
  5228. elseif secondaryenabled == true then
  5229. tl1.Enabled = true
  5230. tl2.Enabled = true
  5231. tl3.Enabled = true
  5232. end
  5233. tl1.Color = ColorSequence.new(two.Color)
  5234. tl2.Color = ColorSequence.new(two.Color)
  5235. tl3.Color = ColorSequence.new(two.Color)
  5236. for i, v in pairs(m:GetChildren()) do
  5237. if v:IsA("Part") then
  5238. v.BrickColor = three
  5239. v.Material = "Ice"
  5240. end
  5241. end
  5242. for i, v in pairs(m2:GetChildren()) do
  5243. if v:IsA("Part") then
  5244. v.BrickColor = four
  5245. v.Material = "Ice"
  5246. end
  5247. end
  5248. for i, v in pairs(m3:GetChildren()) do
  5249. if v:IsA("Part") then
  5250. v.BrickColor = five
  5251. v.Material = "Neon"
  5252. end
  5253. end
  5254. for i, v in pairs(extrawingmod1:GetChildren()) do
  5255. if v:IsA("Part") then
  5256. v.Transparency = exonetran
  5257. v.BrickColor = exone
  5258. v.Material = "Neon"
  5259. end
  5260. end
  5261. for i, v in pairs(extrawingmod2:GetChildren()) do
  5262. if v:IsA("Part") then
  5263. v.Transparency = extwotran
  5264. v.BrickColor = extwo
  5265. v.Material = "Neon"
  5266. end
  5267. end
  5268. end
  5269.  
  5270.  
  5271. function normalmog()
  5272. attack = true
  5273. hum.WalkSpeed = 0
  5274. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5275. for i = 0,6,0.1 do
  5276. swait()
  5277. 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)
  5278. 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)
  5279. 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)
  5280. 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)
  5281. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5282. 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)
  5283. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5284. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5285. end
  5286. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5287. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5288. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5289. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5290. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5291. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5292. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5293. rainbowmode = false
  5294. chaosmode = false
  5295. ModeOfGlitch = 1
  5296. storehumanoidWS = 16
  5297. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5298. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5299. CameraEnshaking(5,2.5)
  5300. MAINRUINCOLOR = BrickColor.new("Really red")
  5301. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5302. for i = 0, 49 do
  5303. 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)
  5304. end
  5305. for i = 0, 24 do
  5306. 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)
  5307. 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"))
  5308. end
  5309. for i = 0,3,0.1 do
  5310. 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)
  5311. end
  5312. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5313. for i = 0,2,0.1 do
  5314. swait()
  5315. 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)
  5316. 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)
  5317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5318. 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)
  5319. 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)
  5320. 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)
  5321. end
  5322. hum.WalkSpeed = storehumanoidWS
  5323. attack = false
  5324. end
  5325.  
  5326. function attackone()
  5327. attack = true
  5328. local keptcolor = MAINRUINCOLOR
  5329. for i = 0,1,0.1 do
  5330. swait()
  5331. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5332. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5333. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5334. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5335. 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)
  5336. 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)
  5337. end
  5338. local distlook = 5
  5339. coroutine.resume(coroutine.create(function()
  5340. for i = 0, 4 do
  5341. swait(2)
  5342. CameraEnshaking(2,3)
  5343. local hite = Instance.new("Part", char)
  5344. hite.Anchored = true
  5345. hite.CanCollide = false
  5346. hite.FormFactor = 3
  5347. hite.Name = "Ring"
  5348. hite.Material = "Neon"
  5349. hite.Size = Vector3.new(1, 1, 1)
  5350. hite.Transparency = 1
  5351. hite.TopSurface = 0
  5352. hite.BottomSurface = 0
  5353. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5354. 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)
  5355. 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)
  5356. 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)
  5357. 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)
  5358. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5359. for i = 0, 14 do
  5360. local rsiz = math.random(5,20)
  5361. 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)
  5362. end
  5363. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5364. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5365. game:GetService("Debris"):AddItem(hite, 5)
  5366. distlook = distlook + 10
  5367. end
  5368. end))
  5369. for i = 0,1,0.1 do
  5370. swait()
  5371. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5372. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5373. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5374. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5375. 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)
  5376. 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)
  5377. end
  5378. attack = false
  5379. end
  5380.  
  5381. function attacktwo()
  5382. attack = true
  5383. hum.WalkSpeed = 2
  5384. local keptcolor = MAINRUINCOLOR
  5385. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5386. 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)
  5387. 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)
  5388. for i = 0, 14 do
  5389. 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)
  5390. end
  5391. for i = 0,1,0.1 do
  5392. swait()
  5393. 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)
  5394. 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)
  5395. 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)
  5396. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5397. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5398. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5399. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5400. end
  5401. for i = 0, 1 do
  5402. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5403. for i = 0,1,0.6 do
  5404. swait()
  5405. 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)
  5406. 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"))
  5407. 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)
  5408. 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)
  5409. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5411. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5412. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5413. end
  5414. for i = 0,1,0.6 do
  5415. swait()
  5416. 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)
  5417. 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"))
  5418. 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)
  5419. 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)
  5420. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5422. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5423. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5424. end
  5425. for i = 0,1,0.6 do
  5426. swait()
  5427. 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)
  5428. 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"))
  5429. 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)
  5430. 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)
  5431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5433. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5434. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5435. end
  5436. for i = 0,1,0.6 do
  5437. swait()
  5438. 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)
  5439. 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"))
  5440. 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)
  5441. 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)
  5442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5444. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5445. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5446. end
  5447. local rot = 0
  5448. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5449. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5450. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5451. CreateMesh(dis,"Sphere",10,1,10)
  5452. local at1 = Instance.new("Attachment",dis)
  5453. at1.Position = vt(-5,0,0)
  5454. local at2 = Instance.new("Attachment",dis)
  5455. at2.Position = vt(5,0,0)
  5456. local trl = Instance.new('Trail',wed)
  5457. trl.Attachment0 = at1
  5458. trl.Attachment1 = at2
  5459. trl.Texture = "rbxassetid://1049219073"
  5460. trl.LightEmission = 1
  5461. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5462. trl.Color = ColorSequence.new(dis.Color)
  5463. trl.Lifetime = 0.6
  5464. local a = Instance.new("Part",workspace)
  5465. a.Name = "Direction"
  5466. a.Anchored = true
  5467. a.BrickColor = bc("Bright red")
  5468. a.Material = "Neon"
  5469. a.Transparency = 1
  5470. a.CanCollide = false
  5471. local ray = Ray.new(
  5472. dis.CFrame.p, -- origin
  5473. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5474. )
  5475. local ignore = dis
  5476. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5477. a.BottomSurface = 10
  5478. a.TopSurface = 10
  5479. local distance = (dis.CFrame.p - position).magnitude
  5480. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5481. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5482. dis.CFrame = a.CFrame
  5483. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5484. a:Destroy()
  5485. local bv = Instance.new("BodyVelocity")
  5486. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5487. bv.velocity = dis.CFrame.lookVector*250
  5488. bv.Parent = dis
  5489. game:GetService("Debris"):AddItem(dis, 5)
  5490. local hitted = false
  5491. coroutine.resume(coroutine.create(function()
  5492. dis.Touched:connect(function(hit)
  5493. if hitted == false and hit.Parent ~= char then
  5494. hitted = true
  5495. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5496. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5497. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5498. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5499. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5500. coroutine.resume(coroutine.create(function()
  5501. for i = 0, 9 do
  5502. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5503. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5504. local at1 = Instance.new("Attachment",disr)
  5505. at1.Position = vt(-5,0,0)
  5506. local at2 = Instance.new("Attachment",disr)
  5507. at2.Position = vt(5,0,0)
  5508. local trl = Instance.new('Trail',disr)
  5509. trl.Attachment0 = at1
  5510. trl.FaceCamera = true
  5511. trl.Attachment1 = at2
  5512. trl.Texture = "rbxassetid://2342682798"
  5513. trl.LightEmission = 1
  5514. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5515. trl.Color = ColorSequence.new(keptcolor.Color)
  5516. trl.Lifetime = 0.5
  5517. local bv = Instance.new("BodyVelocity")
  5518. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5519. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5520. bv.Parent = disr
  5521. local val = 0
  5522. coroutine.resume(coroutine.create(function()
  5523. swait(30)
  5524. for i = 0, 9 do
  5525. swait()
  5526. val = val + 0.1
  5527. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5528. end
  5529. game:GetService("Debris"):AddItem(disr, 3)
  5530. end))
  5531. end
  5532. local eff = Instance.new("ParticleEmitter",dis)
  5533. eff.Texture = "rbxassetid://2273224484"
  5534. eff.LightEmission = 1
  5535. eff.Color = ColorSequence.new(keptcolor.Color)
  5536. eff.Rate = 500000
  5537. eff.Lifetime = NumberRange.new(0.5,2)
  5538. 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)})
  5539. 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)})
  5540. eff.Speed = NumberRange.new(20,250)
  5541. eff.Drag = 5
  5542. eff.Rotation = NumberRange.new(-500,500)
  5543. eff.VelocitySpread = 9000
  5544. eff.RotSpeed = NumberRange.new(-50,50)
  5545. wait(0.25)
  5546. eff.Enabled = false
  5547. end))
  5548. for i = 0, 9 do
  5549. 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"))
  5550. end
  5551. for i = 0, 19 do
  5552. 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)
  5553. end
  5554. coroutine.resume(coroutine.create(function()
  5555. for i = 0, 19 do
  5556. swait()
  5557. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5558. end
  5559. hum.CameraOffset = vt(0,0,0)
  5560. end))
  5561. dis.Anchored = true
  5562. dis.Transparency = 1
  5563. wait(8)
  5564. dis:Destroy()
  5565. end
  5566. end)
  5567. end))
  5568. rot = rot - 15
  5569. end
  5570. for i = 0,2,0.1 do
  5571. swait()
  5572. 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)
  5573. 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)
  5574. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5575. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5576. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5577. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5578. end
  5579. attack = false
  5580. hum.WalkSpeed = storehumanoidWS
  5581. end
  5582.  
  5583. function attackthree()
  5584. attack = true
  5585. local keptcolor = MAINRUINCOLOR
  5586. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5587. for i = 0,2,0.1 do
  5588. swait()
  5589. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5590. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5591. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5592. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5593. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5594. 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)
  5595. 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)
  5596. end
  5597. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5598. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5599. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5600. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5601. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5602. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5603. for i = 0, 24 do
  5604. 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"))
  5605. end
  5606. for i = 0,4,0.1 do
  5607. swait()
  5608. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5609. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5610. CreateMesh(dis,"Sphere",1,1,1)
  5611. dis.Anchored = true
  5612. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5613. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5614. coroutine.resume(coroutine.create(function()
  5615. swait(30)
  5616. dis.Transparency = 1
  5617. coroutine.resume(coroutine.create(function()
  5618. for i = 0, 19 do
  5619. swait()
  5620. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5621. end
  5622. hum.CameraOffset = vt(0,0,0)
  5623. end))
  5624. coroutine.resume(coroutine.create(function()
  5625. local eff = Instance.new("ParticleEmitter",dis)
  5626. eff.Texture = "rbxassetid://2273224484"
  5627. eff.LightEmission = 1
  5628. eff.Color = ColorSequence.new(dis.Color)
  5629. eff.Rate = 500000
  5630. eff.Lifetime = NumberRange.new(0.5,2)
  5631. 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)})
  5632. 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)})
  5633. eff.Speed = NumberRange.new(50,450)
  5634. eff.Drag = 5
  5635. eff.Rotation = NumberRange.new(-500,500)
  5636. eff.VelocitySpread = 9000
  5637. eff.RotSpeed = NumberRange.new(-50,50)
  5638. wait(0.125)
  5639. eff.Enabled = false
  5640. end))
  5641. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5642. for i = 0, 2 do
  5643. 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)
  5644. end
  5645. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5646. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5647. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5648. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5649. end))
  5650. game:GetService("Debris"):AddItem(dis, 5)
  5651. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5652. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5655. 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)
  5656. 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)
  5657. end
  5658. attack = false
  5659. end
  5660. ----------------------------------- Abilities
  5661.  
  5662. function ExtinctiveHeartbreak()
  5663. local targetted = nil
  5664. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5665. targetted = mouse.Target.Parent
  5666. end
  5667. if targetted ~= nil then
  5668. attack = true
  5669. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5670. for i = 0, 9 do
  5671. 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)
  5672. end
  5673. for i = 0, 24 do
  5674. 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)
  5675. end
  5676. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5677. local originalpos = root.CFrame
  5678. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5679. for i = 0, 9 do
  5680. 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)
  5681. end
  5682. for i = 0, 24 do
  5683. 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)
  5684. end
  5685. hum.WalkSpeed = 0
  5686. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5687. local radm = math.random(1,3)
  5688. if radm == 1 then
  5689. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5690. elseif radm == 2 then
  5691. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5692. elseif radm == 3 then
  5693. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5694. end
  5695. for i = 0,2,0.1 do
  5696. swait()
  5697. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  5698. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  5699. 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)
  5700. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5701. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5702. 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)
  5703. end
  5704. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5705. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5706. for i = 0,2,0.1 do
  5707. swait()
  5708. coroutine.resume(coroutine.create(function()
  5709. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5710. for i,v in pairs(targetted:GetChildren()) do
  5711. if v:IsA("Part") or v:IsA("MeshPart") then
  5712. v.Velocity = vt(0,0,0)
  5713. end
  5714. end
  5715. end))
  5716. 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)
  5717. 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)
  5718. 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)
  5719. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5720. 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)
  5721. 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)
  5722. end
  5723. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5724. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5725. for i = 0, 1 do
  5726. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5727. end
  5728. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5729. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5730. for i = 0,4,0.1 do
  5731. swait()
  5732. coroutine.resume(coroutine.create(function()
  5733. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5734. 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)))
  5735. local at1 = Instance.new("Attachment",dis)
  5736. at1.Position = vt(-25000,0,0)
  5737. local at2 = Instance.new("Attachment",dis)
  5738. at2.Position = vt(25000,0,0)
  5739. local trl = Instance.new('Trail',dis)
  5740. trl.Attachment0 = at1
  5741. trl.FaceCamera = true
  5742. trl.Attachment1 = at2
  5743. trl.Texture = "rbxassetid://1049219073"
  5744. trl.LightEmission = 1
  5745. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5746. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5747. trl.Lifetime = 5
  5748. local bv = Instance.new("BodyVelocity")
  5749. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5750. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5751. bv.Parent = dis
  5752. game:GetService("Debris"):AddItem(dis, 5)
  5753. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5754. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5755. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5756. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5757. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5758. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5759. 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)
  5760. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5761. for i = 0, 2 do
  5762. 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"))
  5763. end
  5764. 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)
  5765. for i,v in pairs(targetted:GetChildren()) do
  5766. if v:IsA("Part") or v:IsA("MeshPart") then
  5767. v.Velocity = vt(0,0,0)
  5768. end
  5769. end
  5770. end))
  5771. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5772. 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)
  5773. 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)
  5774. 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)
  5775. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5776. 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)
  5777. 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)
  5778. end
  5779. hum.CameraOffset = vt(0,0,0)
  5780. for i = 0, 49 do
  5781. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5782. 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)))
  5783. local at1 = Instance.new("Attachment",dis)
  5784. at1.Position = vt(-50000,0,0)
  5785. local at2 = Instance.new("Attachment",dis)
  5786. at2.Position = vt(50000,0,0)
  5787. local trl = Instance.new('Trail',dis)
  5788. trl.Attachment0 = at1
  5789. trl.FaceCamera = true
  5790. trl.Attachment1 = at2
  5791. trl.Texture = "rbxassetid://1049219073"
  5792. trl.LightEmission = 1
  5793. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5794. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5795. trl.Lifetime = 5
  5796. local bv = Instance.new("BodyVelocity")
  5797. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5798. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5799. bv.Parent = dis
  5800. game:GetService("Debris"):AddItem(dis, 5)
  5801. end
  5802. for i = 0, 49 do
  5803. 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)
  5804. 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"))
  5805. end
  5806. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5807. for i = 0, 1 do
  5808. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5809. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5810. end
  5811. for i = 0, 4 do
  5812. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5813. end
  5814. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5815. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5816. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5817. dmg(targetted)
  5818. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5819. for i = 0, 9 do
  5820. 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)
  5821. end
  5822. for i = 0, 24 do
  5823. 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)
  5824. end
  5825. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5826. root.CFrame = originalpos
  5827. for i = 0, 9 do
  5828. 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)
  5829. end
  5830. for i = 0, 24 do
  5831. 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)
  5832. end
  5833. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5834. attack = false
  5835. hum.WalkSpeed = storehumanoidWS
  5836. end
  5837. end
  5838.  
  5839. function CorruptionEvent()
  5840. attack = true
  5841. hum.WalkSpeed = 0
  5842. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5843. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5844. local keptcolor = MAINRUINCOLOR
  5845. for i = 0,4,0.1 do
  5846. swait()
  5847. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5848. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5849. 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)
  5850. 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)
  5851. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5852. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5853. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5854. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5855. end
  5856. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5857. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5858. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5859. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5860. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5861. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5862. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5863. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5864. hum.CameraOffset = vt(0,0,0)
  5865. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5866. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5867. for i = 0, 24 do
  5868. 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"))
  5869. end
  5870. local rrot = 0
  5871. coroutine.resume(coroutine.create(function()
  5872. for i = 0, 4 do
  5873. rrot = rrot + 45
  5874. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5875. xa.Anchored = true
  5876. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5877. xb.Anchored = true
  5878. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5879. xc.Anchored = true
  5880. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5881. xd.Anchored = true
  5882. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5883. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5884. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5885. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5886. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5887. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5888. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5889. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5890. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5891. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5892. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5893. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5894. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5895. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5896. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5897. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5898. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5899. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5900. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5901. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5902. for i = 0, 9 do
  5903. 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"))
  5904. 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"))
  5905. 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"))
  5906. 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"))
  5907. end
  5908. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5909. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5910. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5911. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5912. 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)
  5913. 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)
  5914. 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)
  5915. 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)
  5916. 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))
  5917. 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))
  5918. 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))
  5919. 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))
  5920. game:GetService("Debris"):AddItem(xa, 5)
  5921. game:GetService("Debris"):AddItem(xb, 5)
  5922. game:GetService("Debris"):AddItem(xc, 5)
  5923. game:GetService("Debris"):AddItem(xd, 5)
  5924. coroutine.resume(coroutine.create(function()
  5925. for i = 0, 19 do
  5926. swait()
  5927. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5928. end
  5929. hum.CameraOffset = vt(0,0,0)
  5930. end))
  5931. swait(9)
  5932. end
  5933. end))
  5934. for i = 0,2,0.1 do
  5935. swait()
  5936. 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)
  5937. 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)
  5938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5940. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5941. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5942. end
  5943. attack = false
  5944. hum.WalkSpeed = storehumanoidWS
  5945. end
  5946.  
  5947. function EndGROUND()
  5948. attack = true
  5949. hum.WalkSpeed = 0
  5950. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5951. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5952. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5953. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5954. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5955. local keptcolor = MAINRUINCOLOR
  5956. for i = 0,4,0.1 do
  5957. swait()
  5958. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5959. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5960. 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"))
  5961. 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)
  5962. 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)
  5963. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5964. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5965. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5966. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5967. end
  5968. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5969. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5970. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5971. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5972. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5973. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5974. coroutine.resume(coroutine.create(function()
  5975. local shval = 10
  5976. for i = 0, 99 do
  5977. swait()
  5978. shval = shval - 0.1
  5979. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5980. end
  5981. hum.CameraOffset = vt(0,0,0)
  5982. end))
  5983. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5984. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5985. for i = 0, 24 do
  5986. 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"))
  5987. end
  5988. local rrot = 0
  5989. local xam = 1
  5990. coroutine.resume(coroutine.create(function()
  5991. for i = 0, 14 do
  5992. --swait()
  5993. rrot = rrot + 40*xam
  5994. xam = xam + 0.25
  5995. local bonus = xam
  5996. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5997. xa.Anchored = true
  5998. xa.Color = Color3.new(0,0,0)
  5999. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6000. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6001. local xc = 0
  6002. coroutine.resume(coroutine.create(function()
  6003. for i = 0, 99 do
  6004. swait()
  6005. xc = xc + 0.01
  6006. xa.Color = Color3.new(xc,0,0)
  6007. end
  6008. xa.Transparency = 1
  6009. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6010. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6011. for i = 0, 9 do
  6012. 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"))
  6013. end
  6014. 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)
  6015. 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)
  6016. 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))
  6017. game:GetService("Debris"):AddItem(xa, 5)
  6018. coroutine.resume(coroutine.create(function()
  6019. for i = 0, 19 do
  6020. swait()
  6021. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6022. end
  6023. hum.CameraOffset = vt(0,0,0)
  6024. end))
  6025. end))
  6026. end
  6027. end))
  6028. for i = 0,2,0.1 do
  6029. swait()
  6030. 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)
  6031. 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)
  6032. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6033. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6034. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6035. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6036. end
  6037. attack = false
  6038. hum.WalkSpeed = storehumanoidWS
  6039. end
  6040.  
  6041. function HeavenlyDisk()
  6042. attack = true
  6043. hum.WalkSpeed = 2
  6044. local keptcolor = MAINRUINCOLOR
  6045. local radm = math.random(1,3)
  6046. if radm == 1 then
  6047. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6048. elseif radm == 2 then
  6049. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6050. elseif radm == 3 then
  6051. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6052. end
  6053. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6054. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6055. 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)
  6056. 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)
  6057. for i = 0, 14 do
  6058. 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)
  6059. end
  6060. for i = 0,2,0.1 do
  6061. swait()
  6062. 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)
  6063. 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)
  6064. 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)
  6065. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6066. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6067. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6068. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6069. end
  6070. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6071. for i = 0,1,0.6 do
  6072. swait()
  6073. 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)
  6074. 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"))
  6075. 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)
  6076. 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)
  6077. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6079. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6080. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6081. end
  6082. for i = 0,1,0.6 do
  6083. swait()
  6084. 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)
  6085. 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"))
  6086. 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)
  6087. 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)
  6088. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6089. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6090. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6091. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6092. end
  6093. for i = 0,1,0.6 do
  6094. swait()
  6095. 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)
  6096. 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"))
  6097. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6098. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6101. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6102. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6103. end
  6104. for i = 0,1,0.6 do
  6105. swait()
  6106. 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)
  6107. 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"))
  6108. 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)
  6109. 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)
  6110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6113. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6114. end
  6115. local rot = 15
  6116. for i = 0, 2 do
  6117. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6118. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6119. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6120. CreateMesh(dis,"Sphere",10,1,10)
  6121. local at1 = Instance.new("Attachment",dis)
  6122. at1.Position = vt(-5,0,0)
  6123. local at2 = Instance.new("Attachment",dis)
  6124. at2.Position = vt(5,0,0)
  6125. local trl = Instance.new('Trail',wed)
  6126. trl.Attachment0 = at1
  6127. trl.Attachment1 = at2
  6128. trl.Texture = "rbxassetid://1049219073"
  6129. trl.LightEmission = 1
  6130. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6131. trl.Color = ColorSequence.new(dis.Color)
  6132. trl.Lifetime = 0.6
  6133. local a = Instance.new("Part",workspace)
  6134. a.Name = "Direction"
  6135. a.Anchored = true
  6136. a.BrickColor = bc("Bright red")
  6137. a.Material = "Neon"
  6138. a.Transparency = 1
  6139. a.CanCollide = false
  6140. local ray = Ray.new(
  6141. dis.CFrame.p, -- origin
  6142. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6143. )
  6144. local ignore = dis
  6145. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6146. a.BottomSurface = 10
  6147. a.TopSurface = 10
  6148. local distance = (dis.CFrame.p - position).magnitude
  6149. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6150. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6151. dis.CFrame = a.CFrame
  6152. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6153. a:Destroy()
  6154. local bv = Instance.new("BodyVelocity")
  6155. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6156. bv.velocity = dis.CFrame.lookVector*250
  6157. bv.Parent = dis
  6158. game:GetService("Debris"):AddItem(dis, 5)
  6159. local hitted = false
  6160. coroutine.resume(coroutine.create(function()
  6161. dis.Touched:connect(function(hit)
  6162. if hitted == false and hit.Parent ~= char then
  6163. hitted = true
  6164. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6165. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6166. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6167. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6168. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6169. coroutine.resume(coroutine.create(function()
  6170. for i = 0, 9 do
  6171. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6172. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6173. local at1 = Instance.new("Attachment",disr)
  6174. at1.Position = vt(-2,0,0)
  6175. local at2 = Instance.new("Attachment",disr)
  6176. at2.Position = vt(2,0,0)
  6177. local trl = Instance.new('Trail',disr)
  6178. trl.Attachment0 = at1
  6179. trl.FaceCamera = true
  6180. trl.Attachment1 = at2
  6181. trl.Texture = "rbxassetid://2342682798"
  6182. trl.LightEmission = 1
  6183. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6184. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6185. trl.Lifetime = 0.5
  6186. local bv = Instance.new("BodyVelocity")
  6187. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6188. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6189. bv.Parent = disr
  6190. local val = 0
  6191. coroutine.resume(coroutine.create(function()
  6192. swait(30)
  6193. for i = 0, 9 do
  6194. swait()
  6195. val = val + 0.1
  6196. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6197. end
  6198. game:GetService("Debris"):AddItem(disr, 3)
  6199. end))
  6200. end
  6201. local eff = Instance.new("ParticleEmitter",dis)
  6202. eff.Texture = "rbxassetid://2273224484"
  6203. eff.LightEmission = 1
  6204. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6205. eff.Rate = 500000
  6206. eff.Lifetime = NumberRange.new(0.5,2)
  6207. 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)})
  6208. 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)})
  6209. eff.Speed = NumberRange.new(20,250)
  6210. eff.Drag = 5
  6211. eff.Rotation = NumberRange.new(-500,500)
  6212. eff.VelocitySpread = 9000
  6213. eff.RotSpeed = NumberRange.new(-50,50)
  6214. wait(0.25)
  6215. eff.Enabled = false
  6216. end))
  6217. for i = 0, 9 do
  6218. 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"))
  6219. end
  6220. for i = 0, 19 do
  6221. 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)
  6222. end
  6223. coroutine.resume(coroutine.create(function()
  6224. for i = 0, 19 do
  6225. swait()
  6226. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6227. end
  6228. hum.CameraOffset = vt(0,0,0)
  6229. end))
  6230. dis.Anchored = true
  6231. dis.Transparency = 1
  6232. wait(8)
  6233. dis:Destroy()
  6234. end
  6235. end)
  6236. end))
  6237. rot = rot - 15
  6238. end
  6239. for i = 0,2,0.1 do
  6240. swait()
  6241. 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)
  6242. 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)
  6243. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6247. end
  6248. attack = false
  6249. hum.WalkSpeed = storehumanoidWS
  6250. end
  6251.  
  6252.  
  6253. function RapidBurst()
  6254. attack = true
  6255. hum.WalkSpeed = 0
  6256. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6257. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6258. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6259. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6260. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6261. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6262. local keptcolor = MAINRUINCOLOR
  6263. for i = 0,8,0.1 do
  6264. swait()
  6265. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6266. 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())
  6267. 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)
  6268. 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)
  6269. 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)
  6270. 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)
  6271. 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)
  6272. 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)
  6273. 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)
  6274. end
  6275. for i = 0, 99 do
  6276. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6277. 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)))
  6278. local at1 = Instance.new("Attachment",dis)
  6279. at1.Position = vt(-25000,0,0)
  6280. local at2 = Instance.new("Attachment",dis)
  6281. at2.Position = vt(25000,0,0)
  6282. local trl = Instance.new('Trail',dis)
  6283. trl.Attachment0 = at1
  6284. trl.FaceCamera = true
  6285. trl.Attachment1 = at2
  6286. trl.Texture = "rbxassetid://1049219073"
  6287. trl.LightEmission = 1
  6288. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6289. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6290. trl.Lifetime = 5
  6291. local bv = Instance.new("BodyVelocity")
  6292. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6293. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6294. bv.Parent = dis
  6295. game:GetService("Debris"):AddItem(dis, 5)
  6296. end
  6297. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6298. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6299. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6300. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6301. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6302. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6303. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6304. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6305. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6306. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6307. hum.CameraOffset = vt(0,0,0)
  6308. for i = 0, 24 do
  6309. 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())
  6310. end
  6311. local distam = 0
  6312. coroutine.resume(coroutine.create(function()
  6313. for i = 0, 99 do
  6314. wait()
  6315. distam = distam + 1
  6316. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6317. xa.Anchored = true
  6318. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6319. game:GetService("Debris"):AddItem(xa, 5)
  6320. for i = 0, 4 do
  6321. 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())
  6322. end
  6323. coroutine.resume(coroutine.create(function()
  6324. local eff = Instance.new("ParticleEmitter",xa)
  6325. eff.Texture = "rbxassetid://2273224484"
  6326. eff.LightEmission = 1
  6327. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6328. eff.Rate = 500000
  6329. eff.Lifetime = NumberRange.new(1,3)
  6330. 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)})
  6331. 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)})
  6332. eff.Speed = NumberRange.new(50,500)
  6333. eff.Drag = 5
  6334. eff.Rotation = NumberRange.new(-500,500)
  6335. eff.VelocitySpread = 9000
  6336. eff.RotSpeed = NumberRange.new(-50,50)
  6337. wait(0.25)
  6338. eff.Enabled = false
  6339. end))
  6340. coroutine.resume(coroutine.create(function()
  6341. for i = 0, 19 do
  6342. swait()
  6343. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6344. end
  6345. hum.CameraOffset = vt(0,0,0)
  6346. end))
  6347. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6348. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6349. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6350. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6351. end
  6352. end))
  6353. attack = false
  6354. hum.WalkSpeed = storehumanoidWS
  6355. end
  6356.  
  6357. function InsaneBeam()
  6358. attack = true
  6359. hum.WalkSpeed = 0
  6360. local keptcolor = MAINRUINCOLOR
  6361. local orb = Instance.new("Part", char)
  6362. orb.BrickColor = keptcolor
  6363. orb.CanCollide = false
  6364. orb.FormFactor = 3
  6365. orb.Name = "Ring"
  6366. orb.Material = "Neon"
  6367. orb.Size = Vector3.new(1, 1, 1)
  6368. orb.Transparency = 1
  6369. orb.TopSurface = 0
  6370. orb.BottomSurface = 0
  6371. local orbm = Instance.new("SpecialMesh", orb)
  6372. orbm.MeshType = "Sphere"
  6373. orbm.Name = "SizeMesh"
  6374. orbm.Scale = vt(22.5,10000,22.5)
  6375. orb.CFrame = mouse.Hit
  6376. orb.Anchored = true
  6377. orb.Orientation = vt(0,0,0)
  6378. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  6379. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  6380. coroutine.resume(coroutine.create(function()
  6381. coroutine.resume(coroutine.create(function()
  6382. for i = 0, 399 do
  6383. swait()
  6384. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  6385. orb.Transparency = orb.Transparency - 0.0025
  6386. end
  6387. end))
  6388. wait(9)
  6389. coroutine.resume(coroutine.create(function()
  6390. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  6391. if hfr ~= nil then
  6392. for i = 0, 49 do
  6393. local deb = Instance.new("Part", char)
  6394. deb.Anchored = true
  6395. deb.CanCollide = false
  6396. deb.FormFactor = 3
  6397. deb.Name = "Ring"
  6398. deb.Material = hitfloor.Material
  6399. deb.Color = hitfloor.Color
  6400. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  6401. deb.Transparency = 0
  6402. deb.TopSurface = 0
  6403. deb.BottomSurface = 0
  6404. 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)))
  6405. local deb2 = Instance.new("Part", char)
  6406. deb2.CanCollide = false
  6407. deb2.FormFactor = 3
  6408. deb2.Name = "Ring"
  6409. deb2.Material = hitfloor.Material
  6410. deb2.Color = hitfloor.Color
  6411. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  6412. deb2.Transparency = 0
  6413. deb2.TopSurface = 0
  6414. deb2.BottomSurface = 0
  6415. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  6416. 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)))
  6417. local eff = Instance.new("ParticleEmitter",deb)
  6418. eff.Texture = "rbxassetid://363275192"
  6419. eff.LightEmission = 0.95
  6420. eff.Color = ColorSequence.new(keptcolor.Color)
  6421. eff.Rate = 100
  6422. eff.Lifetime = NumberRange.new(1)
  6423. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  6424. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6425. eff.Speed = NumberRange.new(0,5)
  6426. eff.Rotation = NumberRange.new(-500,500)
  6427. eff.VelocitySpread = 9000
  6428. eff.RotSpeed = NumberRange.new(-10,10)
  6429. local at1 = Instance.new('Attachment',deb2)
  6430. at1.Position = vt(0,15,0)
  6431. local at2 = Instance.new('Attachment',deb2)
  6432. at2.Position = vt(0,-15,0)
  6433. local tl = Instance.new('Trail',deb2)
  6434. tl.Attachment0 = at1
  6435. tl.Attachment1 = at2
  6436. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6437. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  6438. tl.Lifetime = 1
  6439. game:GetService("Debris"):AddItem(deb,30)
  6440. game:GetService("Debris"):AddItem(deb2,30)
  6441. coroutine.resume(coroutine.create(function()
  6442. wait(15)
  6443. eff.Enabled = false
  6444. for i = 0, 49 do
  6445. swait()
  6446. deb.Transparency = deb.Transparency + 0.02
  6447. end
  6448. wait(1)
  6449. deb:Destroy()
  6450. end))
  6451. end
  6452. end
  6453. end))
  6454. for i = 0, 199 do
  6455. swait(1.5)
  6456. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  6457. if v:FindFirstChild('Head') then
  6458. dmg(v)
  6459. end
  6460. end
  6461. 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)
  6462. 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)
  6463. 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)
  6464. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  6465. end
  6466. orb:Destroy()
  6467. end))
  6468. hum.WalkSpeed = storehumanoidWS
  6469. attack = false
  6470. end
  6471.  
  6472. function InsaneDrop()
  6473. attack = true
  6474. hum.WalkSpeed = 0
  6475. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6476. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6477. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6478. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6479. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6480. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6481. local keptcolor = MAINRUINCOLOR
  6482. for i = 0,8,0.1 do
  6483. swait()
  6484. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6485. 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())
  6486. 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)
  6487. 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)
  6488. 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)
  6489. 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)
  6490. 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)
  6491. 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)
  6492. 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)
  6493. end
  6494. for i = 0, 99 do
  6495. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6496. 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)))
  6497. local at1 = Instance.new("Attachment",dis)
  6498. at1.Position = vt(-25000,0,0)
  6499. local at2 = Instance.new("Attachment",dis)
  6500. at2.Position = vt(25000,0,0)
  6501. local trl = Instance.new('Trail',dis)
  6502. trl.Attachment0 = at1
  6503. trl.FaceCamera = true
  6504. trl.Attachment1 = at2
  6505. trl.Texture = "rbxassetid://1049219073"
  6506. trl.LightEmission = 1
  6507. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6508. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6509. trl.Lifetime = 5
  6510. local bv = Instance.new("BodyVelocity")
  6511. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6512. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6513. bv.Parent = dis
  6514. game:GetService("Debris"):AddItem(dis, 5)
  6515. end
  6516. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6517. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6518. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6519. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6520. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6521. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6522. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6523. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6524. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6525. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6526. hum.CameraOffset = vt(0,0,0)
  6527. for i = 0, 24 do
  6528. 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())
  6529. end
  6530. local distam = 0
  6531. coroutine.resume(coroutine.create(function()
  6532. for i = 0, 99 do
  6533. wait()
  6534. distam = distam + 1
  6535. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6536. xa.Anchored = true
  6537. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6538. game:GetService("Debris"):AddItem(xa, 5)
  6539. for i = 0, 4 do
  6540. 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())
  6541. end
  6542. coroutine.resume(coroutine.create(function()
  6543. local eff = Instance.new("ParticleEmitter",xa)
  6544. eff.Texture = "rbxassetid://2273224484"
  6545. eff.LightEmission = 1
  6546. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6547. eff.Rate = 500000
  6548. eff.Lifetime = NumberRange.new(1,3)
  6549. 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)})
  6550. 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)})
  6551. eff.Speed = NumberRange.new(50,500)
  6552. eff.Drag = 5
  6553. eff.Rotation = NumberRange.new(-500,500)
  6554. eff.VelocitySpread = 9000
  6555. eff.RotSpeed = NumberRange.new(-50,50)
  6556. wait(0.25)
  6557. eff.Enabled = false
  6558. end))
  6559. coroutine.resume(coroutine.create(function()
  6560. for i = 0, 19 do
  6561. swait()
  6562. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6563. end
  6564. hum.CameraOffset = vt(0,0,0)
  6565. end))
  6566. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6567. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6568. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6569. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6570. end
  6571. end))
  6572. attack = false
  6573. hum.WalkSpeed = storehumanoidWS
  6574. end
  6575.  
  6576. function FallenOrbs()
  6577. attack = true
  6578. hum.WalkSpeed = 2
  6579. local keptcolor = MAINRUINCOLOR
  6580. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6581. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6582. local radm = math.random(1,3)
  6583. if radm == 1 then
  6584. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6585. elseif radm == 2 then
  6586. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6587. elseif radm == 3 then
  6588. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6589. end
  6590. coroutine.resume(coroutine.create(function()
  6591. for i = 0, 29 do
  6592. swait(2)
  6593. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6594. dis.Anchored = true
  6595. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6596. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6597. CreateMesh(dis,"Sphere",2,2,2)
  6598. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6599. 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"))
  6600. coroutine.resume(coroutine.create(function()
  6601. wait(0.5)
  6602. dis.Anchored = false
  6603. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6604. local at1 = Instance.new("Attachment",dis)
  6605. at1.Position = vt(-1,0,0)
  6606. local at2 = Instance.new("Attachment",dis)
  6607. at2.Position = vt(1,0,0)
  6608. local trl = Instance.new('Trail',dis)
  6609. trl.Attachment0 = at1
  6610. trl.FaceCamera = true
  6611. trl.Attachment1 = at2
  6612. trl.Texture = "rbxassetid://1049219073"
  6613. trl.LightEmission = 1
  6614. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6615. trl.Color = ColorSequence.new(dis.Color)
  6616. trl.Lifetime = 0.6
  6617. local a = Instance.new("Part",workspace)
  6618. a.Name = "Direction"
  6619. a.Anchored = true
  6620. a.BrickColor = bc("Bright red")
  6621. a.Material = "Neon"
  6622. a.Transparency = 1
  6623. a.CanCollide = false
  6624. local ray = Ray.new(
  6625. dis.CFrame.p, -- origin
  6626. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6627. )
  6628. local ignore = dis
  6629. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6630. a.BottomSurface = 10
  6631. a.TopSurface = 10
  6632. local distance = (dis.CFrame.p - position).magnitude
  6633. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6634. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6635. dis.CFrame = a.CFrame
  6636. a:Destroy()
  6637. local bv = Instance.new("BodyVelocity")
  6638. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6639. bv.velocity = dis.CFrame.lookVector*500
  6640. bv.Parent = dis
  6641. game:GetService("Debris"):AddItem(dis, 5)
  6642. local hitted = false
  6643. coroutine.resume(coroutine.create(function()
  6644. dis.Touched:connect(function(hit)
  6645. if hitted == false and hit.Parent ~= char then
  6646. hitted = true
  6647. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6648. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6649. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6650. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6651. coroutine.resume(coroutine.create(function()
  6652. for i = 0, 4 do
  6653. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6654. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6655. local at1 = Instance.new("Attachment",disr)
  6656. at1.Position = vt(-10,0,0)
  6657. local at2 = Instance.new("Attachment",disr)
  6658. at2.Position = vt(10,0,0)
  6659. local trl = Instance.new('Trail',disr)
  6660. trl.Attachment0 = at1
  6661. trl.FaceCamera = true
  6662. trl.Attachment1 = at2
  6663. trl.Texture = "rbxassetid://2342682798"
  6664. trl.LightEmission = 1
  6665. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6666. trl.Color = ColorSequence.new(disr.Color)
  6667. trl.Lifetime = 0.5
  6668. local bv = Instance.new("BodyVelocity")
  6669. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6670. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6671. bv.Parent = disr
  6672. local val = 0
  6673. coroutine.resume(coroutine.create(function()
  6674. swait(30)
  6675. for i = 0, 9 do
  6676. swait()
  6677. val = val + 0.1
  6678. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6679. end
  6680. game:GetService("Debris"):AddItem(disr, 3)
  6681. end))
  6682. end
  6683. local eff = Instance.new("ParticleEmitter",dis)
  6684. eff.Texture = "rbxassetid://1049219073"
  6685. eff.LightEmission = 1
  6686. eff.Color = ColorSequence.new(dis.Color)
  6687. eff.Rate = 500000
  6688. eff.Lifetime = NumberRange.new(0.5,2)
  6689. 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)})
  6690. 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)})
  6691. eff.Speed = NumberRange.new(20,250)
  6692. eff.Drag = 5
  6693. eff.Rotation = NumberRange.new(-500,500)
  6694. eff.VelocitySpread = 9000
  6695. eff.RotSpeed = NumberRange.new(-50,50)
  6696. wait(0.5)
  6697. eff.Enabled = false
  6698. end))
  6699. for i = 0, 4 do
  6700. 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"))
  6701. end
  6702. coroutine.resume(coroutine.create(function()
  6703. for i = 0, 19 do
  6704. swait()
  6705. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6706. end
  6707. hum.CameraOffset = vt(0,0,0)
  6708. end))
  6709. dis.Anchored = true
  6710. dis.Transparency = 1
  6711. wait(8)
  6712. dis:Destroy()
  6713. end
  6714. end)
  6715. end))
  6716. end))
  6717. end
  6718. end))
  6719. for i = 0,9,0.1 do
  6720. swait()
  6721. 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)
  6722. 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)
  6723. 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)
  6724. 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)
  6725. 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)
  6726. 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)
  6727. 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)
  6728. end
  6729. attack = false
  6730. hum.WalkSpeed = storehumanoidWS
  6731. end
  6732.  
  6733. function CyberSlash()
  6734. local posit = -2
  6735. attack = true
  6736. hum.WalkSpeed = 5
  6737. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6738. local radm = math.random(1,3)
  6739. if radm == 1 then
  6740. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6741. elseif radm == 2 then
  6742. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6743. elseif radm == 3 then
  6744. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6745. end
  6746. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6747. for i = 0,2,0.1 do
  6748. swait()
  6749. 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)
  6750. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6751. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6752. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6753. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6754. 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)
  6755. 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)
  6756. end
  6757. for i = 0, 2 do
  6758. CameraEnshaking(1,2)
  6759. local hite = Instance.new("Part", char)
  6760. hite.Anchored = true
  6761. hite.CanCollide = false
  6762. hite.FormFactor = 3
  6763. hite.Name = "Ring"
  6764. hite.Material = "Neon"
  6765. hite.Size = Vector3.new(1, 1, 1)
  6766. hite.Transparency = 1
  6767. hite.TopSurface = 0
  6768. hite.BottomSurface = 0
  6769. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6770. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6771. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6772. coroutine.resume(coroutine.create(function()
  6773. for i = 0, 1 do
  6774. swait()
  6775. 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)
  6776. 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)
  6777. 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)
  6778. end
  6779. end))
  6780. 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)
  6781. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6782. game:GetService("Debris"):AddItem(hite, 5)
  6783. posit = posit + 2
  6784. end
  6785. for i = 0,1,0.1 do
  6786. swait()
  6787. 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)
  6788. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6789. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6791. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6792. 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)
  6793. 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)
  6794. end
  6795. for i = 0,1,0.1 do
  6796. swait()
  6797. 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)
  6798. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6799. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6800. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6802. 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)
  6803. 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)
  6804. end
  6805. posit = -6
  6806. for i = 0, 6 do
  6807. CameraEnshaking(1,3)
  6808. local hite = Instance.new("Part", char)
  6809. hite.Anchored = true
  6810. hite.CanCollide = false
  6811. hite.FormFactor = 3
  6812. hite.Name = "Ring"
  6813. hite.Material = "Neon"
  6814. hite.Size = Vector3.new(1, 1, 1)
  6815. hite.Transparency = 1
  6816. hite.TopSurface = 0
  6817. hite.BottomSurface = 0
  6818. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6819. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6820. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6821. 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)
  6822. coroutine.resume(coroutine.create(function()
  6823. for i = 0, 2 do
  6824. swait()
  6825. 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)
  6826. 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)
  6827. 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)
  6828. end
  6829. end))
  6830. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6831. game:GetService("Debris"):AddItem(hite, 5)
  6832. posit = posit + 2
  6833. end
  6834. for i = 0,1,0.1 do
  6835. swait()
  6836. 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)
  6837. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6838. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6839. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6840. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6841. 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)
  6842. 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)
  6843. end
  6844. hum.WalkSpeed = storehumanoidWS
  6845. attack = false
  6846. end
  6847.  
  6848. function EquinoxOrbs()
  6849. hum.WalkSpeed = 0
  6850. attack = true
  6851. local radm = math.random(1,3)
  6852. if radm == 1 then
  6853. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6854. elseif radm == 2 then
  6855. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6856. elseif radm == 3 then
  6857. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6858. end
  6859. for i = 0,1,0.1 do
  6860. swait()
  6861. 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)
  6862. 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)
  6863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6865. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6866. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6867. end
  6868. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6869. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6870. for i = 0, 24 do
  6871. 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"))
  6872. end
  6873. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6874. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6875. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6876. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6877. for i = 0,4,0.1 do
  6878. swait()
  6879. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6880. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6881. CreateMesh(dis,"Sphere",1,1,1)
  6882. dis.Anchored = true
  6883. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6884. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6885. CreateMesh(dis2,"Sphere",1,1,1)
  6886. dis2.Anchored = true
  6887. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6888. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6889. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6890. coroutine.resume(coroutine.create(function()
  6891. swait(60)
  6892. dis.Transparency = 1
  6893. dis2.Transparency = 1
  6894. coroutine.resume(coroutine.create(function()
  6895. for i = 0, 19 do
  6896. swait()
  6897. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6898. end
  6899. hum.CameraOffset = vt(0,0,0)
  6900. end))
  6901. coroutine.resume(coroutine.create(function()
  6902. local eff = Instance.new("ParticleEmitter",dis)
  6903. eff.Texture = "rbxassetid://2273224484"
  6904. eff.LightEmission = 1
  6905. eff.Color = ColorSequence.new(dis.Color)
  6906. eff.Rate = 500000
  6907. eff.Lifetime = NumberRange.new(0.5,2)
  6908. 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)})
  6909. 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)})
  6910. eff.Speed = NumberRange.new(50,450)
  6911. eff.Drag = 5
  6912. eff.Rotation = NumberRange.new(-500,500)
  6913. eff.VelocitySpread = 9000
  6914. eff.RotSpeed = NumberRange.new(-50,50)
  6915. local eff2 = eff:Clone()
  6916. eff2.Parent = dis2
  6917. eff2.LightEmission = 0
  6918. eff2.Color = ColorSequence.new(dis2.Color)
  6919. wait(0.25)
  6920. eff.Enabled = false
  6921. eff2.Enabled = false
  6922. end))
  6923. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6924. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6925. for i = 0, 2 do
  6926. 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)
  6927. 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)
  6928. end
  6929. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6930. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6931. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6932. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6933. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6934. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6935. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6936. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6937. end))
  6938. game:GetService("Debris"):AddItem(dis, 5)
  6939. game:GetService("Debris"):AddItem(dis2, 5)
  6940. 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)
  6941. 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)
  6942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6944. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6945. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6946. end
  6947. attack = false
  6948. hum.WalkSpeed = storehumanoidWS
  6949. end
  6950. function FallenDEMISE()
  6951. attack = true
  6952. hum.WalkSpeed = 0
  6953. local keptcolor = MAINRUINCOLOR
  6954. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6955. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6956. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6957. for i = 0, 15, 0.1 do
  6958. swait()
  6959. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6960. 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)))
  6961. local at1 = Instance.new("Attachment",dis)
  6962. at1.Position = vt(-25000,0,0)
  6963. local at2 = Instance.new("Attachment",dis)
  6964. at2.Position = vt(25000,0,0)
  6965. local trl = Instance.new('Trail',dis)
  6966. trl.Attachment0 = at1
  6967. trl.FaceCamera = true
  6968. trl.Attachment1 = at2
  6969. trl.Texture = "rbxassetid://1049219073"
  6970. trl.LightEmission = 1
  6971. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6972. trl.Color = ColorSequence.new(dis.Color)
  6973. trl.Lifetime = 5
  6974. local bv = Instance.new("BodyVelocity")
  6975. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6976. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6977. bv.Parent = dis
  6978. game:GetService("Debris"):AddItem(dis, 1)
  6979. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6980. 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"))
  6981. 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"))
  6982. 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)
  6983. 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)
  6984. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6986. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6987. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6988. end
  6989. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6990. for i = 0, 30, 0.1 do
  6991. swait()
  6992. coroutine.resume(coroutine.create(function()
  6993. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6994. if v:FindFirstChild('Head') then
  6995. dmg(v)
  6996. end
  6997. end
  6998. end))
  6999. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7000. 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)))
  7001. local at1 = Instance.new("Attachment",dis)
  7002. at1.Position = vt(-50000,0,0)
  7003. local at2 = Instance.new("Attachment",dis)
  7004. at2.Position = vt(50000,0,0)
  7005. local trl = Instance.new('Trail',dis)
  7006. trl.Attachment0 = at1
  7007. trl.FaceCamera = true
  7008. trl.Attachment1 = at2
  7009. trl.Texture = "rbxassetid://1049219073"
  7010. trl.LightEmission = 1
  7011. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7012. trl.Color = ColorSequence.new(dis.Color)
  7013. trl.Lifetime = 10
  7014. local bv = Instance.new("BodyVelocity")
  7015. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7016. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  7017. bv.Parent = dis
  7018. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7019. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7020. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7021. 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"))
  7022. 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"))
  7023. 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"))
  7024. 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"))
  7025. for i = 0, 2 do
  7026. 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)
  7027. end
  7028. 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)
  7029. 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)
  7030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7032. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7033. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7034. end
  7035. attack = false
  7036. hum.WalkSpeed = storehumanoidWS
  7037. end
  7038.  
  7039. function SpeedDrop()
  7040. attack = true
  7041. hum.WalkSpeed = 0
  7042. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7043. local poste = 3
  7044. local rotation = 0
  7045. local rate = 0
  7046. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7047. for i = 0, 124 do
  7048. swait()
  7049. rotation = rotation + rate
  7050. poste = poste + 0.1
  7051. rate = rate + 0.1
  7052. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7053. 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)
  7054. 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)
  7055. 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)
  7056. 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)
  7057. 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)
  7058. 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)
  7059. 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)
  7060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7061. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7062. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7063. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7064. end
  7065. CameraEnshaking(3,7)
  7066. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7067. local loc = Instance.new("Part", char)
  7068. loc.BrickColor = MAINRUINCOLOR
  7069. loc.CanCollide = false
  7070. loc.FormFactor = 3
  7071. loc.Name = "Ring"
  7072. loc.Material = "Neon"
  7073. loc.Size = Vector3.new(1, 1, 1)
  7074. loc.Transparency = 1
  7075. loc.TopSurface = 0
  7076. loc.BottomSurface = 0
  7077. loc.Anchored = true
  7078. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7079. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7080. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7081. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7082. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7083. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7084. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7085. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7086. coroutine.resume(coroutine.create(function()
  7087. local eff = Instance.new("ParticleEmitter",loc)
  7088. eff.Texture = "rbxassetid://363275192"
  7089. eff.LightEmission = 0.95
  7090. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7091. eff.Rate = 10000
  7092. eff.Lifetime = NumberRange.new(1)
  7093. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7094. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7095. eff.Speed = NumberRange.new(100,500)
  7096. eff.Drag = 5
  7097. eff.Rotation = NumberRange.new(-500,500)
  7098. eff.VelocitySpread = 9000
  7099. eff.RotSpeed = NumberRange.new(-50,50)
  7100. wait(0.5)
  7101. eff.Enabled = false
  7102. end))
  7103. for i = 0, 49 do
  7104. 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)
  7105. end
  7106. for i = 0, 9 do
  7107. 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)
  7108. end
  7109. game:GetService("Debris"):AddItem(loc, 5)
  7110. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7111. hum.WalkSpeed = storehumanoidWS
  7112. attack = false
  7113. end
  7114.  
  7115. function cutesigh()
  7116. attack = true
  7117. hum.WalkSpeed = 0
  7118. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7119. local blush = Instance.new("Decal",hed)
  7120. blush.Texture = "rbxassetid://898404027"
  7121. blush.Face = "Front"
  7122. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7123. for i = 0, 9, 0.1 do
  7124. swait()
  7125. 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)
  7126. 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)
  7127. 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)
  7128. 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)
  7129. 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)
  7130. 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)
  7131. end
  7132. coroutine.resume(coroutine.create(function()
  7133. for i = 0, 49 do
  7134. swait()
  7135. blush.Transparency = blush.Transparency + 0.02
  7136. end
  7137. blush:Destroy()
  7138. end))
  7139. hum.WalkSpeed = storehumanoidWS
  7140. attack = false
  7141. end
  7142.  
  7143. function smiter()
  7144. local targetted = nil
  7145. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7146. targetted = mouse.Target.Parent
  7147. end
  7148. if targetted ~= nil then
  7149. RootPart.CFrame = FaceMouse()[1]
  7150. attack = true
  7151. local radm = math.random(1,3)
  7152. if radm == 1 then
  7153. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7154. elseif radm == 2 then
  7155. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7156. elseif radm == 3 then
  7157. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7158. end
  7159. hum.WalkSpeed = 0
  7160. coroutine.resume(coroutine.create(function()
  7161. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7162. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7163. local vel = Instance.new("BodyPosition", targetted.Head)
  7164. vel.P = 12500
  7165. vel.D = 1000
  7166. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7167. vel.position = targetted.Head.CFrame.p
  7168. end))
  7169. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7170. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7171. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7172. for i = 0,4,0.1 do
  7173. swait()
  7174. 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)
  7175. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7176. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7177. 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)
  7178. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7179. 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)
  7180. 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)
  7181. end
  7182. coroutine.resume(coroutine.create(function()
  7183. CameraEnshaking(6,5)
  7184. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7185. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7186. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7187. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7188. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7189. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7190. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7191. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7192. coroutine.resume(coroutine.create(function()
  7193. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7194. eff.Texture = "rbxassetid://2273224484"
  7195. eff.LightEmission = 1
  7196. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7197. eff.Rate = 500000
  7198. eff.Lifetime = NumberRange.new(0.5,2)
  7199. 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)})
  7200. 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)})
  7201. eff.Speed = NumberRange.new(20,250)
  7202. eff.Drag = 5
  7203. eff.Rotation = NumberRange.new(-500,500)
  7204. eff.VelocitySpread = 9000
  7205. eff.RotSpeed = NumberRange.new(-50,50)
  7206. wait(0.25)
  7207. eff.Enabled = false
  7208. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7209. eff.Texture = "rbxassetid://363275192"
  7210. eff.LightEmission = 0.95
  7211. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7212. eff.Rate = 10000
  7213. eff.Lifetime = NumberRange.new(1.5)
  7214. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7215. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7216. eff.Speed = NumberRange.new(25,150)
  7217. eff.Drag = 5
  7218. eff.Rotation = NumberRange.new(-500,500)
  7219. eff.VelocitySpread = 9000
  7220. eff.RotSpeed = NumberRange.new(-50,50)
  7221. local eff2 = eff:Clone()
  7222. eff2.Parent = targetted.Head
  7223. eff2.Texture = "rbxassetid://284205403"
  7224. eff2.Rate = 10000
  7225. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7226. eff2.Drag = 5
  7227. eff2.Rotation = NumberRange.new(-500,500)
  7228. eff2.VelocitySpread = 9000
  7229. wait(0.5)
  7230. eff2.Enabled = false
  7231. eff.Enabled = false
  7232. end))
  7233. for i = 0, 9 do
  7234. 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)
  7235. end
  7236. for i = 0, 49 do
  7237. local rsiz = math.random(10,50)
  7238. 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)
  7239. end
  7240. game:GetService("Debris"):AddItem(vel,1)
  7241. dmg(targetted)
  7242. end))
  7243. for i = 0,1,0.1 do
  7244. swait()
  7245. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7246. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7247. 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)
  7248. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7249. 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)
  7250. 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)
  7251. end
  7252. attack = false
  7253. hum.WalkSpeed = storehumanoidWS
  7254. end
  7255. end
  7256.  
  7257. function shytaunty()
  7258. attack = true
  7259. hum.WalkSpeed = 0
  7260. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7261. local blush = Instance.new("Decal",hed)
  7262. blush.Texture = "rbxassetid://898404027"
  7263. blush.Face = "Front"
  7264. for i = 0, 13, 0.1 do
  7265. swait()
  7266. 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)
  7267. 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)
  7268. 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)
  7269. 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)
  7270. 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)
  7271. 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)
  7272. end
  7273. coroutine.resume(coroutine.create(function()
  7274. for i = 0, 49 do
  7275. swait()
  7276. blush.Transparency = blush.Transparency + 0.02
  7277. end
  7278. blush:Destroy()
  7279. end))
  7280. hum.WalkSpeed = storehumanoidWS
  7281. attack = false
  7282. end
  7283.  
  7284. function PureBomb()
  7285. attack = true
  7286. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7287. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7288. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7289. local orb = Instance.new("Part", char)
  7290. orb.Anchored = true
  7291. orb.BrickColor = BrickColor.new("Toothpaste")
  7292. orb.CanCollide = false
  7293. orb.FormFactor = 3
  7294. orb.Name = "Ring"
  7295. orb.Material = "Neon"
  7296. orb.Size = Vector3.new(1, 1, 1)
  7297. orb.Transparency = 0
  7298. orb.TopSurface = 0
  7299. orb.BottomSurface = 0
  7300. local orbm = Instance.new("SpecialMesh", orb)
  7301. orbm.MeshType = "Sphere"
  7302. orbm.Name = "SizeMesh"
  7303. orbm.Scale = vt(0,0,0)
  7304. local scaled = 0.1
  7305. local posid = 0
  7306. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7307. for i = 0, 5, 0.1 do
  7308. swait()
  7309. scaled = scaled - 0.001
  7310. posid = posid - scaled
  7311. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7312. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7313. 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)
  7314. 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)
  7315. 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)
  7316. 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)
  7317. 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)
  7318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7319. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7320. 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)
  7321. end
  7322. for i = 0, 2, 0.1 do
  7323. swait()
  7324. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7325. 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)
  7326. 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)
  7327. 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)
  7328. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7329. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7330. 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)
  7331. end
  7332. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7333. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7334. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7335. coroutine.resume(coroutine.create(function()
  7336. orb.Anchored = false
  7337. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7338. local a = Instance.new("Part",workspace)
  7339. a.Name = "Direction"
  7340. a.Anchored = true
  7341. a.BrickColor = bc("Bright red")
  7342. a.Material = "Neon"
  7343. a.Transparency = 1
  7344. a.CanCollide = false
  7345. local ray = Ray.new(
  7346. orb.CFrame.p, -- origin
  7347. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7348. )
  7349. local ignore = orb
  7350. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7351. a.BottomSurface = 10
  7352. a.TopSurface = 10
  7353. local distance = (orb.CFrame.p - position).magnitude
  7354. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7355. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7356. orb.CFrame = a.CFrame
  7357. a:Destroy()
  7358. local bv = Instance.new("BodyVelocity")
  7359. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7360. bv.velocity = orb.CFrame.lookVector*125
  7361. bv.Parent = orb
  7362. local hitted = false
  7363. game:GetService("Debris"):AddItem(orb, 15)
  7364. wait()
  7365. local hit =orb.Touched:connect(function(hit)
  7366. if hitted == false then
  7367. hitted = true
  7368. CameraEnshaking(10,2.5)
  7369. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7370. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7371. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7372. for i = 0, 49 do
  7373. 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)
  7374. end
  7375. local eff = Instance.new("ParticleEmitter",orb)
  7376. eff.Texture = "rbxassetid://2273224484"
  7377. eff.LightEmission = 1
  7378. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7379. eff.Rate = 500000
  7380. eff.Lifetime = NumberRange.new(0.5,2)
  7381. 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)})
  7382. 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)})
  7383. eff.Speed = NumberRange.new(20,250)
  7384. eff.Drag = 5
  7385. eff.Rotation = NumberRange.new(-500,500)
  7386. eff.VelocitySpread = 9000
  7387. eff.RotSpeed = NumberRange.new(-50,50)
  7388. coroutine.resume(coroutine.create(function()
  7389. wait(0.25)
  7390. eff.Enabled = false
  7391. end))
  7392. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7393. for i = 0, 9 do
  7394. 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)
  7395. 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)
  7396. end
  7397. orb.Anchored = true
  7398. orb.Transparency = 1
  7399. local eff = Instance.new("ParticleEmitter",orb)
  7400. eff.Texture = "rbxassetid://2273224484"
  7401. eff.LightEmission = 1
  7402. eff.Color = ColorSequence.new(Color3.new(M))
  7403. eff.Rate = 500000
  7404. eff.Lifetime = NumberRange.new(0.5,2)
  7405. 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)})
  7406. 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)})
  7407. eff.Speed = NumberRange.new(20,250)
  7408. eff.Drag = 5
  7409. eff.Rotation = NumberRange.new(-500,500)
  7410. eff.VelocitySpread = 9000
  7411. eff.RotSpeed = NumberRange.new(-50,50)
  7412. coroutine.resume(coroutine.create(function()
  7413. wait(1)
  7414. eff.Enabled = false
  7415. end))
  7416. wait(8)
  7417. orb:Destroy()
  7418. end
  7419. end)
  7420. end))
  7421. for i = 0, 1, 0.1 do
  7422. swait()
  7423. 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)
  7424. 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)
  7425. 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)
  7426. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7427. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7428. 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)
  7429. end
  7430. attack = false
  7431. end
  7432.  
  7433.  
  7434. function BeamOfDeath()
  7435. coroutine.resume(coroutine.create(function()
  7436. attack = true
  7437. hum.WalkSpeed = 0
  7438. for i = 0, 11, 0.1 do
  7439. swait()
  7440. 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)
  7441. 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)
  7442. 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)
  7443. 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)
  7444. 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)
  7445. 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)
  7446. end
  7447. for i = 0, 1, 0.1 do
  7448. swait()
  7449. 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)
  7450. 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)
  7451. 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)
  7452. 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)
  7453. 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)
  7454. 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)
  7455. end
  7456. hum.WalkSpeed = storehumanoidWS
  7457. attack = false
  7458. end))
  7459. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7460. local radm = math.random(1,3)
  7461. if radm == 1 then
  7462. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7463. elseif radm == 2 then
  7464. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7465. elseif radm == 3 then
  7466. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7467. end
  7468. local keptcolor = MAINRUINCOLOR
  7469. local orb = Instance.new("Part", char)
  7470. orb.BrickColor = keptcolor
  7471. orb.CanCollide = false
  7472. orb.FormFactor = 3
  7473. orb.Name = "Ring"
  7474. orb.Material = "Neon"
  7475. orb.Size = Vector3.new(1, 1, 1)
  7476. orb.Transparency = 1
  7477. orb.TopSurface = 0
  7478. orb.BottomSurface = 0
  7479. local orbm = Instance.new("SpecialMesh", orb)
  7480. orbm.MeshType = "Sphere"
  7481. orbm.Name = "SizeMesh"
  7482. orbm.Scale = vt(22.5,10000,22.5)
  7483. orb.CFrame = mouse.Hit
  7484. orb.Anchored = true
  7485. orb.Orientation = vt(0,0,0)
  7486. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7487. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7488. coroutine.resume(coroutine.create(function()
  7489. coroutine.resume(coroutine.create(function()
  7490. for i = 0, 175 do
  7491. swait()
  7492. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7493. orb.Transparency = orb.Transparency - 0.005
  7494. end
  7495. end))
  7496. wait(2)
  7497. coroutine.resume(coroutine.create(function()
  7498. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7499. if hfr ~= nil then
  7500. for i = 0, 24.5 do
  7501. local deb = Instance.new("Part", char)
  7502. deb.Anchored = true
  7503. deb.CanCollide = false
  7504. deb.FormFactor = 3
  7505. deb.Name = "Ring"
  7506. deb.Material = hitfloor.Material
  7507. deb.Color = hitfloor.Color
  7508. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7509. deb.Transparency = 0
  7510. deb.TopSurface = 0
  7511. deb.BottomSurface = 0
  7512. 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)))
  7513. local deb2 = Instance.new("Part", char)
  7514. deb2.CanCollide = false
  7515. deb2.FormFactor = 3
  7516. deb2.Name = "Ring"
  7517. deb2.Material = hitfloor.Material
  7518. deb2.Color = hitfloor.Color
  7519. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7520. deb2.Transparency = 0
  7521. deb2.TopSurface = 0
  7522. deb2.BottomSurface = 0
  7523. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7524. 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)))
  7525. local eff = Instance.new("ParticleEmitter",deb)
  7526. eff.Texture = "rbxassetid://363275192"
  7527. eff.LightEmission = 0.95
  7528. eff.Color = ColorSequence.new(keptcolor.Color)
  7529. eff.Rate = 100
  7530. eff.Lifetime = NumberRange.new(1)
  7531. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7532. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7533. eff.Speed = NumberRange.new(0,5)
  7534. eff.Rotation = NumberRange.new(-500,500)
  7535. eff.VelocitySpread = 9000
  7536. eff.RotSpeed = NumberRange.new(-10,10)
  7537. local at1 = Instance.new('Attachment',deb2)
  7538. at1.Position = vt(0,15,0)
  7539. local at2 = Instance.new('Attachment',deb2)
  7540. at2.Position = vt(0,-15,0)
  7541. local tl = Instance.new('Trail',deb2)
  7542. tl.Attachment0 = at1
  7543. tl.Attachment1 = at2
  7544. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7545. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7546. tl.Lifetime = 1
  7547. game:GetService("Debris"):AddItem(deb,30)
  7548. game:GetService("Debris"):AddItem(deb2,30)
  7549. coroutine.resume(coroutine.create(function()
  7550. wait(15)
  7551. eff.Enabled = false
  7552. for i = 0, 49 do
  7553. swait()
  7554. deb.Transparency = deb.Transparency + 0.02
  7555. end
  7556. wait(1)
  7557. deb:Destroy()
  7558. end))
  7559. end
  7560. end
  7561. end))
  7562. for i = 0, 199 do
  7563. swait(1.5)
  7564. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7565. if v:FindFirstChild('Head') then
  7566. dmg(v)
  7567. end
  7568. end
  7569. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7570. 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)
  7571. 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)
  7572. 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)
  7573. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7574. end
  7575. orb:Destroy()
  7576. end))
  7577. end
  7578.  
  7579. function Beams()
  7580. attack = true
  7581. hum.WalkSpeed = 0
  7582. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7583. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7584. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7585. local keptcolor = MAINRUINCOLOR
  7586. coroutine.resume(coroutine.create(function()
  7587. for i = 0, 96 do
  7588. swait(5)
  7589. local orb = Instance.new("Part", char)
  7590. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7591. orb.BrickColor = keptcolor
  7592. orb.CanCollide = false
  7593. orb.FormFactor = 3
  7594. orb.Name = "Ring"
  7595. orb.Material = "Neon"
  7596. orb.Size = Vector3.new(1, 1, 1)
  7597. orb.Transparency = 0
  7598. orb.TopSurface = 0
  7599. orb.BottomSurface = 0
  7600. orb.Anchored = true
  7601. local orbm = Instance.new("SpecialMesh", orb)
  7602. orbm.MeshType = "Sphere"
  7603. orbm.Name = "SizeMesh"
  7604. orbm.Scale = vt(1.25,1.25,1.25)
  7605. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7606. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7607. coroutine.resume(coroutine.create(function()
  7608. wait(0.5)
  7609. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7610. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7611. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7612. orb.Transparency = 1
  7613. local a = Instance.new("Part",char)
  7614. a.Name = "Direction"
  7615. a.Anchored = true
  7616. a.BrickColor = keptcolor
  7617. a.Material = "Neon"
  7618. a.Transparency = 0.25
  7619. a.Shape = "Cylinder"
  7620. local ht = Instance.new("Part",char)
  7621. ht.Name = "DirectionHit"
  7622. ht.Anchored = true
  7623. ht.BrickColor = keptcolor
  7624. ht.CanCollide = false
  7625. ht.Transparency = 1
  7626. ht.Size = vt(0.1,0.1,0.1)
  7627. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7628. a.CanCollide = false
  7629. local ray = Ray.new(
  7630. orb.CFrame.p, -- origin
  7631. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7632. )
  7633. local ignore = char
  7634. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7635. a.BottomSurface = 10
  7636. a.TopSurface = 10
  7637. local distance = (orb.CFrame.p - position).magnitude
  7638. a.Size = Vector3.new(distance,1,1)
  7639. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7640. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7641. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7642. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7643. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7644. coroutine.resume(coroutine.create(function()
  7645. local eff = Instance.new("ParticleEmitter",ht)
  7646. eff.Texture = "rbxassetid://284205403"
  7647. eff.LightEmission = 0.95
  7648. eff.Color = ColorSequence.new(keptcolor.Color)
  7649. eff.Rate = 500
  7650. eff.Lifetime = NumberRange.new(0.5)
  7651. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7652. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7653. eff.Speed = NumberRange.new(10,50)
  7654. eff.Drag = 5
  7655. eff.Rotation = NumberRange.new(-500,500)
  7656. eff.VelocitySpread = 9000
  7657. eff.RotSpeed = NumberRange.new(-500,500)
  7658. wait(0.25)
  7659. eff.Enabled = false
  7660. end))
  7661. for i = 0, 4 do
  7662. 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)
  7663. 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)
  7664. local rsiz = math.random(10,30)
  7665. 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)
  7666. end
  7667. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7668. local msh = Instance.new("SpecialMesh",a)
  7669. msh.MeshType = "Cylinder"
  7670. msh.Scale = vt(1,1,1)
  7671. for i = 0, 49 do
  7672. swait()
  7673. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7674. a.Transparency = a.Transparency + 0.02
  7675. end
  7676. orb:Destroy()
  7677. a:Destroy()
  7678. ht:Destroy()
  7679. end))
  7680. game:GetService("Debris"):AddItem(orb, 10)
  7681. end
  7682. end))
  7683. for i = 0,6,0.1 do
  7684. swait()
  7685. 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)
  7686. 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)
  7687. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7688. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7689. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7690. 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)
  7691. 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)
  7692. end
  7693. hum.WalkSpeed = storehumanoidWS
  7694. attack = false
  7695. end
  7696.  
  7697. function CalamityTrans()
  7698. attack = true
  7699. rainbowmode = false
  7700. chaosmode = false
  7701. ModeOfGlitch = 8889
  7702. hum.WalkSpeed = 0
  7703. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7704. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7705. elocacenter.Anchored = true
  7706. elocacenter.CFrame = root.CFrame
  7707. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7708. eloca1.Anchored = true
  7709. eloca1.CFrame = elocacenter.CFrame
  7710. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7711. eloca2.Anchored = true
  7712. eloca2.CFrame = elocacenter.CFrame
  7713. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7714. eloca3.Anchored = true
  7715. eloca3.CFrame = elocacenter.CFrame
  7716. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7717. eloca4.Anchored = true
  7718. eloca4.CFrame = elocacenter.CFrame
  7719. local lookavec = 0
  7720. local speeds = 0
  7721. CameraEnshaking(3,2.5)
  7722. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7723. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7724. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7725. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7726. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7727. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7728. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7729. for i = 0, 5, 0.1 do
  7730. swait()
  7731. ---
  7732. lookavec = lookavec + 1
  7733. speeds = speeds + 10
  7734. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7735. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7736. 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)
  7737. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7738. 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)
  7739. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7740. 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)
  7741. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7742. 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)
  7743. ---
  7744. 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)
  7745. 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)
  7746. 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)
  7747. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7748. 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)
  7749. 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)
  7750. end
  7751. for i = 0, 5, 0.1 do
  7752. swait()
  7753. ---
  7754. speeds = speeds + 10
  7755. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7756. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7757. 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)
  7758. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7759. 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)
  7760. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7761. 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)
  7762. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7763. 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)
  7764. ---
  7765. 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)
  7766. 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)
  7767. 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)
  7768. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7769. 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)
  7770. 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)
  7771. end
  7772. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7773. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7774. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7775. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7776. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7777. CameraEnshaking(1,3)
  7778. for i = 0, 24 do
  7779. 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)
  7780. 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)
  7781. 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)
  7782. 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)
  7783. end
  7784. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7785. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7786. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7787. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7788. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7789. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7790. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7791. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7792. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7793. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7794. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7795. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7796. for i = 0, 5, 0.1 do
  7797. swait()
  7798. ---
  7799. lookavec = lookavec - 1
  7800. speeds = speeds + 10
  7801. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7802. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7803. 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)
  7804. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7805. 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)
  7806. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7807. 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)
  7808. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7809. 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)
  7810. ---
  7811. 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)
  7812. 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)
  7813. 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)
  7814. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7815. 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)
  7816. 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)
  7817. end
  7818. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7819. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7820. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7821. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7822. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7823. for i = 0, 49 do
  7824. 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)
  7825. 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)
  7826. end
  7827. CameraEnshaking(5,6)
  7828. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7829. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7830. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7831. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7832. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7833. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7834. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7835. storehumanoidWS = 100
  7836. hum.WalkSpeed = 100
  7837. rainbowmode = false
  7838. chaosmode = false
  7839. tl1.Enabled = true
  7840. tl2.Enabled = true
  7841. tl3.Enabled = true
  7842. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7843. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7844. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7845. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7846. for i, v in pairs(mw2:GetChildren()) do
  7847. if v:IsA("Part") then
  7848. v.BrickColor = MAINRUINCOLOR
  7849. v.Material = "Neon"
  7850. end
  7851. end
  7852. for i, v in pairs(mw1:GetChildren()) do
  7853. if v:IsA("Part") then
  7854. v.Transparency = 0
  7855. v.BrickColor = MAINRUINCOLOR
  7856. v.Material = "Neon"
  7857. end
  7858. end
  7859. for i, v in pairs(m:GetChildren()) do
  7860. if v:IsA("Part") then
  7861. v.Color = Color3.new(0.5,0,1)
  7862. v.Material = "Neon"
  7863. end
  7864. end
  7865. for i, v in pairs(m2:GetChildren()) do
  7866. if v:IsA("Part") then
  7867. v.Color = Color3.new(0.25,0,1)
  7868. v.Material = "Neon"
  7869. end
  7870. end
  7871. for i, v in pairs(m3:GetChildren()) do
  7872. if v:IsA("Part") then
  7873. v.Color = Color3.new(0.45,0,1)
  7874. v.Material = "Neon"
  7875. end
  7876. end
  7877. for i, v in pairs(extrawingmod1:GetChildren()) do
  7878. if v:IsA("Part") then
  7879. v.Transparency = 0.75
  7880. v.Color = Color3.new(0.25,0,1)
  7881. v.Material = "Neon"
  7882. end
  7883. end
  7884. for i, v in pairs(extrawingmod2:GetChildren()) do
  7885. if v:IsA("Part") then
  7886. v.Transparency = 0.75
  7887. v.Color = Color3.new(0.5,0,1)
  7888. v.Material = "Neon"
  7889. end
  7890. end
  7891. attack = false
  7892. end
  7893.  
  7894. function InsaneTrans()
  7895. attack = true
  7896. rainbowmode = false
  7897. chaosmode = false
  7898. ModeOfGlitch = 8889
  7899. hum.WalkSpeed = 0
  7900. newThemeCust("rbxassetid://183142252",1,1,10)
  7901. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7902. elocacenter.Anchored = true
  7903. elocacenter.CFrame = root.CFrame
  7904. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7905. eloca1.Anchored = true
  7906. eloca1.CFrame = elocacenter.CFrame
  7907. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7908. eloca2.Anchored = true
  7909. eloca2.CFrame = elocacenter.CFrame
  7910. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7911. eloca3.Anchored = true
  7912. eloca3.CFrame = elocacenter.CFrame
  7913. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7914. eloca4.Anchored = true
  7915. eloca4.CFrame = elocacenter.CFrame
  7916. local lookavec = 0
  7917. local speeds = 0
  7918. CameraEnshaking(3,2.5)
  7919. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7920. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7921. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7922. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7923. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7924. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7925. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7926. for i = 0, 5, 0.1 do
  7927. swait()
  7928. ---
  7929. lookavec = lookavec + 1
  7930. speeds = speeds + 10
  7931. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7932. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7933. 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)
  7934. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7935. 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)
  7936. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7937. 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)
  7938. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7939. 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)
  7940. ---
  7941. 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)
  7942. 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)
  7943. 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)
  7944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7945. 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)
  7946. 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)
  7947. end
  7948. for i = 0, 5, 0.1 do
  7949. swait()
  7950. ---
  7951. speeds = speeds + 10
  7952. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7953. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7954. 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)
  7955. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7956. 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)
  7957. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7958. 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)
  7959. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7960. 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)
  7961. ---
  7962. 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)
  7963. 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)
  7964. 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)
  7965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7966. 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)
  7967. 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)
  7968. end
  7969. MAINRUINCOLOR = BrickColor.new("Really black")
  7970. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7971. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7972. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7973. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7974. CameraEnshaking(1,3)
  7975. for i = 0, 24 do
  7976. 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)
  7977. 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)
  7978. 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)
  7979. 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)
  7980. end
  7981. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7982. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7983. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7984. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7985. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7986. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7987. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7988. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7989. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7990. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7991. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7992. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7993. for i = 0, 5, 0.1 do
  7994. swait()
  7995. ---
  7996. lookavec = lookavec - 1
  7997. speeds = speeds + 10
  7998. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7999. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  8000. 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)
  8001. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  8002. 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)
  8003. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  8004. 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)
  8005. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  8006. 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)
  8007. ---
  8008. 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)
  8009. 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)
  8010. 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)
  8011. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  8012. 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)
  8013. 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)
  8014. end
  8015. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8016. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8017. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8018. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8019. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8020. for i = 0, 49 do
  8021. 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)
  8022. 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)
  8023. end
  8024. CameraEnshaking(5,6)
  8025. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  8026. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  8027. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  8028. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  8029. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  8030. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  8031. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  8032. storehumanoidWS = 100
  8033. hum.WalkSpeed = 100
  8034. rainbowmode = false
  8035. chaosmode = false
  8036. tl1.Enabled = true
  8037. tl2.Enabled = true
  8038. tl3.Enabled = true
  8039. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  8040. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8041. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8042. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8043. for i, v in pairs(mw2:GetChildren()) do
  8044. if v:IsA("Part") then
  8045. v.BrickColor = MAINRUINCOLOR
  8046. v.Material = "Neon"
  8047. end
  8048. end
  8049. for i, v in pairs(mw1:GetChildren()) do
  8050. if v:IsA("Part") then
  8051. v.Transparency = 0
  8052. v.BrickColor = MAINRUINCOLOR
  8053. v.Material = "Neon"
  8054. end
  8055. end
  8056. for i, v in pairs(m:GetChildren()) do
  8057. if v:IsA("Part") then
  8058. v.Color = Color3.new(170,0,0)
  8059. v.Material = "Neon"
  8060. end
  8061. end
  8062. for i, v in pairs(m2:GetChildren()) do
  8063. if v:IsA("Part") then
  8064. v.Color = Color3.new(0,0,0)
  8065. v.Material = "Neon"
  8066. end
  8067. end
  8068. for i, v in pairs(m3:GetChildren()) do
  8069. if v:IsA("Part") then
  8070. v.Color = Color3.new(0,0,0)
  8071. v.Material = "Neon"
  8072. end
  8073. end
  8074. for i, v in pairs(extrawingmod1:GetChildren()) do
  8075. if v:IsA("Part") then
  8076. v.Transparency = 0.75
  8077. v.Color = Color3.new(0,0,0)
  8078. v.Material = "Neon"
  8079. end
  8080. end
  8081. for i, v in pairs(extrawingmod2:GetChildren()) do
  8082. if v:IsA("Part") then
  8083. v.Transparency = 0.75
  8084. v.Color = Color3.new(0,0,0)
  8085. v.Material = "Neon"
  8086. end
  8087. end
  8088. attack = false
  8089. end
  8090.  
  8091. function GleamingBeam()
  8092. attack = true
  8093. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  8094. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8095. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8096. local rsiz = math.random(1,15)
  8097. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8098. hb.Anchored = true
  8099. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8100. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8101. for i = 0, 16, 0.1 do
  8102. swait()
  8103. rsiz = math.random(5,15)
  8104. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8105. 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)
  8106. 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)
  8107. 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)
  8108. 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)
  8109. 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)
  8110. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8111. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8112. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8113. end
  8114. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8115. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8116. for i = 0, 2 do
  8117. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8118. end
  8119. 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)
  8120. 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)
  8121. 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)
  8122. for i = 0, 49 do
  8123. local rsiza = math.random(1,15)
  8124. 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)
  8125. end
  8126. local a = Instance.new("Part",Character)
  8127. a.Name = "Direction"
  8128. a.Anchored = true
  8129. a.BrickColor = MAINRUINCOLOR
  8130. a.Material = "Neon"
  8131. a.Transparency = 0
  8132. a.Shape = "Cylinder"
  8133. a.CanCollide = false
  8134. local ba = Instance.new("Part",Character)
  8135. ba.Name = "HitDirect"
  8136. ba.Anchored = true
  8137. ba.BrickColor = bc("Cool yellow")
  8138. ba.Material = "Neon"
  8139. ba.Transparency = 1
  8140. ba.CanCollide = false
  8141. local ray = Ray.new(
  8142. hb.CFrame.p, -- origin
  8143. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8144. )
  8145. local ignore = Character
  8146. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8147. a.BottomSurface = 10
  8148. a.TopSurface = 10
  8149. local distance = (hb.CFrame.p - position).magnitude
  8150. a.Size = Vector3.new(distance, 1, 1)
  8151. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8152. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8153. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8154. local msh = Instance.new("SpecialMesh",a)
  8155. msh.MeshType = "Cylinder"
  8156. msh.Scale = vt(1,4,4)
  8157. game:GetService("Debris"):AddItem(a, 30)
  8158. game:GetService("Debris"):AddItem(ba, 30)
  8159. for i = 0, 25, 0.1 do
  8160. swait()
  8161. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8162. ray = Ray.new(
  8163. hb.CFrame.p, -- origin
  8164. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8165. )
  8166. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8167. distance = (hb.CFrame.p - position).magnitude
  8168. a.Size = Vector3.new(distance, 1, 1)
  8169. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8170. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8171. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8172. rsiz = math.random(5,25)
  8173. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8174. 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)
  8175. for c = 0, 2 do
  8176. 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)
  8177. end
  8178. 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)
  8179. 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)
  8180. 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)
  8181. 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)
  8182. 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)
  8183. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8184. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8185. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8186. end
  8187. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8188. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8189. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8190. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8191. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8192. 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)
  8193. 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)
  8194. 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)
  8195. 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)
  8196. 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)
  8197. 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)
  8198. for i = 0, 49 do
  8199. local rsiza = math.random(1,15)
  8200. 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)
  8201. end
  8202. for i = 0, 49 do
  8203. rsiz = math.random(1,8)
  8204. 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)
  8205. end
  8206. coroutine.resume(coroutine.create(function()
  8207. for i = 0, 99 do
  8208. swait()
  8209. a.Transparency = a.Transparency + 0.01
  8210. end
  8211. a:Destroy()
  8212. ba:Destroy()
  8213. end))
  8214. hb:Destroy()
  8215. attack = false
  8216. end
  8217.  
  8218. function DualGleamingBeam()
  8219. attack = true
  8220. hum.WalkSpeed = 0
  8221. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8222. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8223. local radm = math.random(1,3)
  8224. if radm == 1 then
  8225. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8226. elseif radm == 2 then
  8227. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8228. elseif radm == 3 then
  8229. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8230. end
  8231. local rsiz = math.random(1,15)
  8232. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8233. hb.Anchored = true
  8234. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8235. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8236. hb2.Anchored = true
  8237. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8238. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8239. for i = 0, 14, 0.1 do
  8240. swait()
  8241. rsiz = math.random(5,15)
  8242. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8243. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8244. 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)
  8245. 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)
  8246. 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)
  8247. 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"))
  8248. 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)
  8249. 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)
  8250. 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)
  8251. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8254. end
  8255. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8256. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8257. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8258. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8259. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8260. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8261. 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)
  8262. 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)
  8263. 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)
  8264. 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"))
  8265. 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"))
  8266. 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"))
  8267. for i = 0, 49 do
  8268. local rsiza = math.random(1,15)
  8269. 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)
  8270. 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)
  8271. end
  8272. local a = Instance.new("Part",Character)
  8273. a.Name = "Direction"
  8274. a.Anchored = true
  8275. a.BrickColor = MAINRUINCOLOR
  8276. a.Material = "Neon"
  8277. a.Transparency = 0
  8278. a.Shape = "Cylinder"
  8279. a.CanCollide = false
  8280. local a2 = Instance.new("Part",Character)
  8281. a2.Name = "Direction"
  8282. a2.Anchored = true
  8283. a2.BrickColor = MAINRUINCOLOR
  8284. a2.Material = "Neon"
  8285. a2.Transparency = 0
  8286. a2.Shape = "Cylinder"
  8287. a2.CanCollide = false
  8288. local ba = Instance.new("Part",Character)
  8289. ba.Name = "HitDirect"
  8290. ba.Anchored = true
  8291. ba.BrickColor = MAINRUINCOLOR
  8292. ba.Material = "Neon"
  8293. ba.Transparency = 1
  8294. ba.CanCollide = false
  8295. local ba2 = Instance.new("Part",Character)
  8296. ba2.Name = "HitDirect"
  8297. ba2.Anchored = true
  8298. ba2.BrickColor = MAINRUINCOLOR
  8299. ba2.Material = "Neon"
  8300. ba2.Transparency = 1
  8301. ba2.CanCollide = false
  8302. local ray = Ray.new(
  8303. hb.CFrame.p, -- origin
  8304. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8305. )
  8306. local ignore = Character
  8307. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8308. local ray2 = Ray.new(
  8309. hb2.CFrame.p, -- origin
  8310. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8311. )
  8312. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8313. local distance2 = (hb2.CFrame.p - position).magnitude
  8314.  
  8315. a.BottomSurface = 10
  8316. a.TopSurface = 10
  8317. local distance = (hb.CFrame.p - position).magnitude
  8318. a.Size = Vector3.new(distance, 1, 1)
  8319. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8320. a2.BottomSurface = 10
  8321. a2.TopSurface = 10
  8322. a2.Size = Vector3.new(distance2, 1, 1)
  8323. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8324. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8325. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8326. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8327. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8328. local msh = Instance.new("SpecialMesh",a)
  8329. msh.MeshType = "Cylinder"
  8330. msh.Scale = vt(1,4,4)
  8331. local msh2 = Instance.new("SpecialMesh",a2)
  8332. msh2.MeshType = "Cylinder"
  8333. msh2.Scale = vt(1,4,4)
  8334. game:GetService("Debris"):AddItem(a, 30)
  8335. game:GetService("Debris"):AddItem(a2, 30)
  8336. game:GetService("Debris"):AddItem(ba, 30)
  8337. game:GetService("Debris"):AddItem(ba2, 30)
  8338. for i = 0, 20, 0.1 do
  8339. swait()
  8340. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8341. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8342. ray = Ray.new(
  8343. hb.CFrame.p, -- origin
  8344. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8345. )
  8346. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8347. distance = (hb.CFrame.p - position).magnitude
  8348. ray2 = Ray.new(
  8349. hb2.CFrame.p, -- origin
  8350. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8351. )
  8352. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8353. distance2 = (hb2.CFrame.p - position).magnitude
  8354. a.Size = Vector3.new(distance, 1, 1)
  8355. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8356. a2.Size = Vector3.new(distance2, 1, 1)
  8357. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8358. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8359. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8360. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8361. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8362. rsiz = math.random(5,25)
  8363. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8364. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8365. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8366. if v:FindFirstChild('Head') then
  8367. dmg(v)
  8368. end
  8369. end
  8370. coroutine.resume(coroutine.create(function()
  8371. local bx = Instance.new("Part",Character)
  8372. bx.Name = "Location"
  8373. bx.Anchored = true
  8374. bx.BrickColor = MAINRUINCOLOR
  8375. bx.Material = "Neon"
  8376. bx.Transparency = 1
  8377. bx.CanCollide = false
  8378. bx.Position = ba.Position
  8379. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8380. wait(math.random(1,2))
  8381. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8382. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8383. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8384. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8385. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8386. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8387. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8388. if v:FindFirstChild('Head') then
  8389. dmg(v)
  8390. end
  8391. end
  8392. wait(5)
  8393. bx:Destroy()
  8394. end))
  8395. 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)
  8396. 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)
  8397. for c = 0, 2 do
  8398. 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)
  8399. end
  8400. 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)
  8401. 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)
  8402. 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)
  8403. 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)
  8404. 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)
  8405. 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)
  8406. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8407. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8408. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8409. end
  8410. for i = 0, 1 do
  8411. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8412. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8413. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8414. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8415. end
  8416. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8417. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8418. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8419. if v:FindFirstChild('Head') then
  8420. dmg(v)
  8421. end
  8422. end
  8423. 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)
  8424. 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)
  8425. 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)
  8426. 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)
  8427. 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)
  8428. 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)
  8429. 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"))
  8430. 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"))
  8431. 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"))
  8432. for i = 0, 49 do
  8433. local rsiza = math.random(1,15)
  8434. 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)
  8435. 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)
  8436. end
  8437. for i = 0, 49 do
  8438. rsiz = math.random(1,8)
  8439. 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)
  8440. end
  8441. coroutine.resume(coroutine.create(function()
  8442. for i = 0, 99 do
  8443. swait()
  8444. a.Transparency = a.Transparency + 0.01
  8445. a2.Transparency = a2.Transparency + 0.01
  8446. end
  8447. a:Destroy()
  8448. ba:Destroy()
  8449. a2:Destroy()
  8450. ba2:Destroy()
  8451. end))
  8452. hum.WalkSpeed = storehumanoidWS
  8453. hb:Destroy()
  8454. hb2:Destroy()
  8455. attack = false
  8456. end
  8457.  
  8458. function dragin()
  8459. local targetted = nil
  8460. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8461. targetted = mouse.Target.Parent
  8462. end
  8463. if targetted ~= nil then
  8464. RootPart.CFrame = FaceMouse()[1]
  8465. attack = true
  8466. hum.WalkSpeed = 0
  8467. for x = 0, 1 do
  8468. for i = 0,1,0.5 do
  8469. swait()
  8470. 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)
  8471. 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)
  8472. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8473. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8474. 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)
  8475. 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)
  8476. end
  8477. for i = 0,1,0.5 do
  8478. swait()
  8479. 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)
  8480. 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)
  8481. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8483. 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)
  8484. 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)
  8485. end
  8486. for i = 0,1,0.5 do
  8487. swait()
  8488. 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)
  8489. 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)
  8490. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8492. 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)
  8493. 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)
  8494. end
  8495. for i = 0,1,0.5 do
  8496. swait()
  8497. 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)
  8498. 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)
  8499. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8500. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8501. 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)
  8502. 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)
  8503. end
  8504. end
  8505. coroutine.resume(coroutine.create(function()
  8506. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8507. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8508. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8509. end))
  8510. local A1 = Instance.new("Attachment",targetted.Head)
  8511. local A2 = Instance.new("Attachment",sorb)
  8512. local Beem = Instance.new("Beam",tors)
  8513. Beem.Attachment0 = A1
  8514. Beem.Attachment1 = A2
  8515. Beem.Texture = "rbxassetid://897585362"
  8516. Beem.LightEmission = 0.75
  8517. Beem.FaceCamera = true
  8518. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8519. Beem.Width0 = 1
  8520. Beem.Width1 = 1
  8521. Beem.TextureMode = "Wrap"
  8522. Beem.TextureLength = 1
  8523. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8524. 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)
  8525. 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)
  8526. for x = 0, 24 do
  8527. local rsiz = math.random(5,15)
  8528. 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)
  8529. end
  8530.  
  8531. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8532. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8533. local radm = math.random(1,2)
  8534. if radm == 1 then
  8535. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8536. elseif radm == 2 then
  8537. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8538. end
  8539. for i = 0,3,0.1 do
  8540. swait()
  8541. coroutine.resume(coroutine.create(function()
  8542. local rsiz = math.random(5,15)
  8543. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8544. 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)
  8545. end))
  8546. 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)
  8547. 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)
  8548. 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)
  8549. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8550. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8551. 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)
  8552. 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)
  8553. end
  8554. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8555. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8556. local vel = Instance.new("BodyPosition", targetted.Head)
  8557. vel.P = 12500
  8558. vel.D = 1000
  8559. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8560. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8561. for i = 0,4,0.1 do
  8562. swait()
  8563. coroutine.resume(coroutine.create(function()
  8564. local rsiz = math.random(5,15)
  8565. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8566. 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)
  8567. end))
  8568. 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)
  8569. 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)
  8570. 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)
  8571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8573. 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)
  8574. 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)
  8575. end
  8576. local visibility = 0
  8577. coroutine.resume(coroutine.create(function()
  8578. for i = 0, 49 do
  8579. swait()
  8580. visibility = visibility + 0.02
  8581. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8582. end
  8583. Beem:Destroy()
  8584. A1:Destroy()
  8585. A2:Destroy()
  8586. end))
  8587. game:GetService("Debris"):AddItem(vel,0.75)
  8588. attack = false
  8589. hum.WalkSpeed = storehumanoidWS
  8590.  
  8591. end
  8592. end
  8593.  
  8594. function hugg()
  8595. attack = true
  8596. hum.WalkSpeed = 5
  8597. local rsiz = math.random(5,15)
  8598. for i = 0, 2, 0.1 do
  8599. swait()
  8600. 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)
  8601. 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)
  8602. 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)
  8603. 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)
  8604. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8605. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8606. end
  8607. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8608. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8609. hb.Anchored = true
  8610. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8611. local huggedperson = nil
  8612. local act = false
  8613. local alreadydid = false
  8614. for i = 0, 3, 0.1 do
  8615. swait()
  8616. if act == false then
  8617. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8618. if v:FindFirstChild('Head') then
  8619. if alreadydid == false then
  8620. huggedperson = v
  8621. hum.WalkSpeed = 0
  8622. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8623. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8624. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8625. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8626. local radm = math.random(1,3)
  8627. if radm == 1 then
  8628. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8629. elseif radm == 2 then
  8630. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8631. elseif radm == 3 then
  8632. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8633. end
  8634. root.Anchored = true
  8635. coroutine.resume(coroutine.create(function()
  8636. huggedperson.Humanoid.WalkSpeed = 0
  8637. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8638. end))
  8639. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8640. alreadydid = true
  8641. act = true
  8642. print(huggedperson.Name)
  8643. end
  8644. end
  8645. end
  8646. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8647. 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)
  8648. elseif act == true then
  8649. coroutine.resume(coroutine.create(function()
  8650. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8651. end))
  8652. rsiz = math.random(5,15)
  8653. 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)
  8654. 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)
  8655. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8656. end
  8657. 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)
  8658. 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)
  8659. 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)
  8660. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8661. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8662. end
  8663. hb:Destroy()
  8664. if act == true then
  8665. for x = 0, 2 do
  8666. for i = 0, 2, 0.1 do
  8667. swait()
  8668. coroutine.resume(coroutine.create(function()
  8669. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8670. end))
  8671. rsiz = math.random(5,15)
  8672. 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)
  8673. 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)
  8674. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8675. 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)
  8676. 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)
  8677. 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)
  8678. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8679. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8680. end
  8681. for i = 0, 2, 0.1 do
  8682. swait()
  8683. coroutine.resume(coroutine.create(function()
  8684. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8685. end))
  8686. rsiz = math.random(5,15)
  8687. 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)
  8688. 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)
  8689. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8690. 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)
  8691. 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)
  8692. 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)
  8693. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8694. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8695. end
  8696. end
  8697. end
  8698. hum.WalkSpeed = storehumanoidWS
  8699. root.Anchored = false
  8700. if act == true then
  8701. coroutine.resume(coroutine.create(function()
  8702. huggedperson.Humanoid.WalkSpeed = 16
  8703. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8704. end))
  8705. end
  8706. hum.WalkSpeed = storehumanoidWS
  8707. attack = false
  8708. end
  8709.  
  8710. function Counter()
  8711. hum.WalkSpeed = 0
  8712. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8713. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8714. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8715. attack = true
  8716. for i = 0,1,0.1 do
  8717. swait()
  8718. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8720. 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)
  8721. 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)
  8722. 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)
  8723. 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)
  8724. end
  8725. CameraEnshaking(3,4)
  8726. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8727. 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)
  8728. 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)
  8729. 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)
  8730. coroutine.resume(coroutine.create(function()
  8731. local eff = Instance.new("ParticleEmitter",root)
  8732. eff.Texture = "rbxassetid://363275192"
  8733. eff.LightEmission = 0.95
  8734. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8735. eff.Rate = 10000
  8736. eff.Lifetime = NumberRange.new(1)
  8737. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8738. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8739. eff.Speed = NumberRange.new(10,125)
  8740. eff.Drag = 5
  8741. eff.Rotation = NumberRange.new(-500,500)
  8742. eff.VelocitySpread = 9000
  8743. eff.RotSpeed = NumberRange.new(-50,50)
  8744. local eff2 = eff:Clone()
  8745. eff2.Parent = root
  8746. eff2.Texture = "rbxassetid://284205403"
  8747. eff2.Rate = 10000
  8748. 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)})
  8749. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8750. eff2.Drag = 5
  8751. eff2.Speed = NumberRange.new(10,50)
  8752. eff2.Rotation = NumberRange.new(-500,500)
  8753. eff2.VelocitySpread = 9000
  8754. wait(0.25)
  8755. eff2.Enabled = false
  8756. eff.Enabled = false
  8757. wait(3)
  8758. eff2:Destroy()
  8759. eff:Destroy()
  8760. end))
  8761. for i = 0, 9 do
  8762. 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)
  8763. end
  8764. for i = 0, 24 do
  8765. local rsiz = math.random(5,20)
  8766. 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)
  8767. end
  8768. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8769. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8770. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8771. for i = 0,2,0.1 do
  8772. swait()
  8773. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8774. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8775. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8776. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8777. 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)
  8778. 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)
  8779. end
  8780. hum.WalkSpeed = storehumanoidWS
  8781. attack = false
  8782. end
  8783.  
  8784. function superjump()
  8785. attack = true
  8786. hum.WalkSpeed = 0
  8787. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8788. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8789. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8790. for i = 0, 2, 0.1 do
  8791. swait()
  8792. root.Velocity = vt(0,0,0)
  8793. 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"))
  8794. 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)
  8795. 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)
  8796. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8797. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8798. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8799. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8800. end
  8801. MagniDamage(root, 28, 25,50, 25, "Normal")
  8802. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8803. hum.Jump = true
  8804. swait()
  8805. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8806. 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)
  8807. 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)
  8808. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8809. for i = 0, 3, 0.1 do
  8810. swait()
  8811. 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)
  8812. 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)
  8813. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8814. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8815. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8816. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8817. end
  8818. attack = false
  8819. if equipped == false then
  8820. hum.WalkSpeed = 16
  8821. else
  8822. hum.WalkSpeed = 24
  8823. end
  8824. end
  8825.  
  8826.  
  8827. -------------------------------------
  8828.  
  8829.  
  8830.  
  8831. Humanoid.Animator.Parent = nil
  8832.  
  8833.  
  8834.  
  8835. -------------------------------------
  8836.  
  8837. local attacktype = 1
  8838. mouse.Button1Down:connect(function()
  8839. if attack == false and attacktype == 1 then
  8840. attacktype = 2
  8841. attackone()
  8842. elseif attack == false and attacktype == 2 then
  8843. attacktype = 3
  8844. attacktwo()
  8845. elseif attack == false and attacktype == 3 then
  8846. attacktype = 1
  8847. attackthree()
  8848. elseif attack == false and attacktype == 4 then
  8849. attacktype = 1
  8850. --attackfour()
  8851. end
  8852. end)
  8853. mouse.KeyDown:connect(function(k)
  8854. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8855. --normalmog()
  8856. ModeOfGlitch = 1
  8857. storehumanoidWS = 16
  8858. hum.WalkSpeed = 16
  8859. rainbowmode = false
  8860. chaosmode = false
  8861. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8862. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8863. MAINRUINCOLOR = BrickColor.new("Really red")
  8864. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8865. end
  8866. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8867. ModeOfGlitch = 2
  8868. storehumanoidWS = 16
  8869. hum.WalkSpeed = 16
  8870. rainbowmode = false
  8871. chaosmode = false
  8872. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8873. newTheme("rbxassetid://1539245059",0,1,0.85)
  8874. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8875. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8876. end
  8877. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8878. ModeOfGlitch = 3
  8879. storehumanoidWS = 14
  8880. hum.WalkSpeed = 14
  8881. rainbowmode = false
  8882. chaosmode = false
  8883. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8884. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8885. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8886. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8887. end
  8888. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8889. ModeOfGlitch = 4
  8890. storehumanoidWS = 14
  8891. hum.WalkSpeed = 14
  8892. rainbowmode = false
  8893. chaosmode = true
  8894. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8895. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8896. MAINRUINCOLOR = BrickColor.new("Crimson")
  8897. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8898. end
  8899. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8900. ModeOfGlitch = 5
  8901. storehumanoidWS = 14
  8902. hum.WalkSpeed = 14
  8903. rainbowmode = false
  8904. chaosmode = false
  8905. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8906. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8907. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8908. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8909. end
  8910. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8911. ModeOfGlitch = 6
  8912. storehumanoidWS = 65
  8913. hum.WalkSpeed = 65
  8914. rainbowmode = false
  8915. chaosmode = false
  8916. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8917. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8918. MAINRUINCOLOR = BrickColor.new("White")
  8919. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8920. end
  8921. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8922. ModeOfGlitch = 8
  8923. storehumanoidWS = 100
  8924. hum.WalkSpeed = 100
  8925. rainbowmode = false
  8926. chaosmode = false
  8927. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8928. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8929. MAINRUINCOLOR = BrickColor.new("Alder")
  8930. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8931. end
  8932. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8933. ModeOfGlitch = 9
  8934. storehumanoidWS = 85
  8935. hum.WalkSpeed = 85
  8936. rainbowmode = false
  8937. chaosmode = false
  8938. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8939. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8940. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8941. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8942. end
  8943. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8944. ModeOfGlitch = 5555
  8945. storehumanoidWS = 30
  8946. hum.WalkSpeed = 30
  8947. rainbowmode = false
  8948. chaosmode = false
  8949. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8950. newTheme("rbxassetid://736003449",0,1,1.25)
  8951. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8952. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8953. end
  8954. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8955. CalamityTrans()
  8956. end
  8957. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8958. InsaneTrans()
  8959. end
  8960. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8961. ModeOfGlitch = 55469696922
  8962. storehumanoidWS = 95
  8963. hum.WalkSpeed = 95
  8964. rainbowmode = false
  8965. chaosmode = false
  8966. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8967. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8968. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8969. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8970. end
  8971. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8972. ModeOfGlitch = 4367677813
  8973. storehumanoidWS = 75
  8974. hum.WalkSpeed = 75
  8975. rainbowmode = false
  8976. chaosmode = false
  8977. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8978. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8979. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8980. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8981. end
  8982. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8983. ModeOfGlitch = 9999999921111
  8984. storehumanoidWS = 145
  8985. hum.WalkSpeed = 145
  8986. rainbowmode = false
  8987. chaosmode = false
  8988. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8989. newTheme("rbxassetid://643309199",0,1.01,1)
  8990. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8991. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8992. end
  8993. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8994. ModeOfGlitch = 999999999556
  8995. storehumanoidWS = 115
  8996. hum.WalkSpeed = 115
  8997. rainbowmode = false
  8998. chaosmode = false
  8999. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  9000. newTheme("rbxassetid://719008519",0,1.02,0.85)
  9001. MAINRUINCOLOR = BrickColor.new("Navy blue")
  9002. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9003. end
  9004. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  9005. ModeOfGlitch = 12
  9006. storehumanoidWS = 19
  9007. hum.WalkSpeed = 19
  9008. rainbowmode = false
  9009. chaosmode = false
  9010. print'Mode was meant for Vengeful Program or those other fans out there'
  9011. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  9012. newTheme("rbxassetid://1873219898",0,1,1.7)
  9013. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9014. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9015. end
  9016.  
  9017. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  9018. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  9019. for i = 0, 49 do
  9020. 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)
  9021. end
  9022. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9023. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9024. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9025. hum.WalkSpeed = storehumanoidWS
  9026. attack = false
  9027. ModeOfGlitch = 50
  9028. storehumanoidWS = 18
  9029. hum.WalkSpeed = 18
  9030. rainbowmode = false
  9031. chaosmode = false
  9032. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  9033. newTheme("rbxassetid://435773595",0,1.01,1.5)
  9034. MAINRUINCOLOR = BrickColor.new("Institutional white")
  9035. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9036. end
  9037.  
  9038. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 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,0)* 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, 148 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))),1,1,1,0.02,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 = 66
  9063. storehumanoidWS = 16
  9064. hum.WalkSpeed = 16
  9065. rainbowmode = false
  9066. chaosmode = false
  9067. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  9068. MAINRUINCOLOR = BrickColor.new("Really black")
  9069. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9070. for i = 0,2,0.1 do
  9071. swait()
  9072. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9073. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9074. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9075. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9076. 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)
  9077. 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)
  9078. end
  9079. end
  9080.  
  9081. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  9082. hum.WalkSpeed = 0
  9083. attack = true
  9084. for i = 0,1,0.1 do
  9085. swait()
  9086. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  9087. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  9088. 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)
  9089. 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)
  9090. 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)
  9091. 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)
  9092. end
  9093. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  9094. for i = 0, 49 do
  9095. 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)
  9096. end
  9097. for i = 0,3,0.1 do
  9098. 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)
  9099. end
  9100. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9101. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9102. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9103. hum.WalkSpeed = storehumanoidWS
  9104. attack = false
  9105. ModeOfGlitch = 13
  9106. storehumanoidWS = 45
  9107. hum.WalkSpeed = 45
  9108. rainbowmode = false
  9109. chaosmode = false
  9110. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  9111. newTheme("rbxassetid://190845741",0,1,1.35)
  9112. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9113. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9114. for i = 0,2,0.1 do
  9115. swait()
  9116. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9117. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9118. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9119. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9120. 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)
  9121. 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)
  9122. end
  9123. end
  9124. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9125. ModeOfGlitch = 1002
  9126. storehumanoidWS = 45
  9127. hum.WalkSpeed = 45
  9128. rainbowmode = false
  9129. chaosmode = false
  9130. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9131. newTheme("rbxassetid://2027652726",0,1,0.85)
  9132. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9133. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9134. end
  9135. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9136. ModeOfGlitch = 1003
  9137. storehumanoidWS = 90
  9138. hum.WalkSpeed = 90
  9139. rainbowmode = false
  9140. chaosmode = false
  9141. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9142. newTheme("rbxassetid://257453119",0,1,0.85)
  9143. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9144. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9145. end
  9146. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9147. ModeOfGlitch = 1264532489
  9148. storehumanoidWS = 175
  9149. hum.WalkSpeed = 175
  9150. rainbowmode = false
  9151. chaosmode = false
  9152. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9153. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9154. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9155. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9156. end
  9157. if k == "l" and mutedtog == false then
  9158. mutedtog = true
  9159. kan.Volume = 0.85
  9160. elseif k == "l" and mutedtog == true then
  9161. mutedtog = false
  9162. kan.Volume = 0.85
  9163. end
  9164. if k == "p" and toggleTag == false then
  9165. toggleTag = true
  9166. modet.TextTransparency = 0
  9167. modet.TextStrokeTransparency = 0
  9168. elseif k == "p" and toggleTag == true then
  9169. toggleTag = false
  9170. modet.TextTransparency = 1
  9171. modet.TextStrokeTransparency = 1
  9172. end
  9173. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9174. ExtinctiveHeartbreak()
  9175. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9176. HeavenlyDisk()
  9177. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9178. DualGleamingBeam()
  9179. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9180. BanishingOrb()
  9181. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9182. hugg()
  9183. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9184. cutesigh()
  9185. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9186. Counter()
  9187. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9188. superjump()
  9189. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9190. dragin()
  9191. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9192. UniversalCollapse()
  9193. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9194. PureBomb()
  9195. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9196. Beams()
  9197. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9198. BeamOfDeath()
  9199. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9200. THE_TRUE_POWER_OF_VIOLENCE()
  9201. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9202. GleamingBeam()
  9203. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9204. ViolentRing()
  9205. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9206. CorruptionEvent()
  9207. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9208. CorruptBlink()
  9209. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9210. scattercorrupt()
  9211. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9212. shytaunty()
  9213. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9214. InsaneBeam()
  9215. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9216. RapidBurst()
  9217. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9218. InsaneDrop()
  9219. wait(2)
  9220. ChaosEND()
  9221. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9222. ChaosEND()
  9223. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9224. CyberSlash()
  9225. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9226. smiter()
  9227. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9228. SpeedDrop()
  9229. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9230. --DivineLights()
  9231. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9232. DivineBlast()
  9233. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9234. EquinoxOrbs()
  9235. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9236. yinyangi()
  9237. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9238. FallenOrbs()
  9239. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9240. StarfallEX()
  9241. end
  9242. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9243. FallenDEMISE()
  9244. end
  9245. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9246. EndGROUND()
  9247. end
  9248. end)
  9249.  
  9250. coroutine.resume(coroutine.create(function()
  9251. while true do
  9252. swait()
  9253. 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
  9254. 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)
  9255. end
  9256. if ModeOfGlitch == 5555 then
  9257. 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)
  9258. end
  9259. end
  9260. end))
  9261. --[[coroutine.resume(coroutine.create(function()
  9262. while true do
  9263. swait(2)
  9264. if chaosmode == true then
  9265. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9266. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9267. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9268. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9269. for i, v in pairs(mw1:GetChildren()) do
  9270. if v:IsA("Part") then
  9271. v.Transparency = 0.75
  9272. v.BrickColor = BrickColor.random()
  9273. v.Material = "Neon"
  9274. end
  9275. end
  9276. for i, v in pairs(m2:GetChildren()) do
  9277. if v:IsA("Part") then
  9278. v.BrickColor = BrickColor.random()
  9279. v.Material = "Neon"
  9280. end
  9281. end
  9282. end
  9283. end
  9284. end))]]
  9285.  
  9286.  
  9287.  
  9288. ff = Instance.new("ForceField",char)
  9289. ff.Visible = false
  9290. hum.Name = "Base"
  9291. hum.MaxHealth = 1.0E298
  9292. hum.Health = 1.0E298
  9293. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9294. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9295. hum.MaxHealth = 1.0E298
  9296. hum.Health = 1.0E298
  9297. end
  9298. end)
  9299.  
  9300. local Hair = Instance.new("Part", char)
  9301. Hair.Name = "Hair"
  9302. Hair.CanCollide = false
  9303. Hair.BrickColor = BrickColor.new("Institutional white")
  9304. Hair.Transparency = 0
  9305. Hair.Material = "Plastic"
  9306. Hair.Size = Vector3.new(1, 1, 2)
  9307. Hair.TopSurface = Enum.SurfaceType.Smooth
  9308. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9309.  
  9310.  
  9311. local bguis = Instance.new("BillboardGui",tors)
  9312. bguis.Size = UDim2.new(25, 0, 25, 0)
  9313. local imgca = Instance.new("ImageLabel",bguis)
  9314. imgca.BackgroundTransparency = 1
  9315. imgca.ImageTransparency = 1
  9316. imgca.Size = UDim2.new(1,0,1,0)
  9317. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9318. imgca.ImageColor3 = Color3.new(0,0,0)
  9319.  
  9320.  
  9321. local bguis2 = Instance.new("BillboardGui",tors)
  9322. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9323. local imgca2 = Instance.new("ImageLabel",bguis)
  9324. imgca2.BackgroundTransparency = 1
  9325. imgca2.ImageTransparency = 1
  9326. imgca2.Size = UDim2.new(1,0,1,0)
  9327. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9328. imgca2.ImageColor3 = Color3.new(0,0,0)
  9329.  
  9330.  
  9331.  
  9332. idleanim=.4
  9333. while true do
  9334. if mutedtog == false then
  9335. kan.Volume = currentVol
  9336. elseif mutedtog == true then
  9337. kan.Volume = 0
  9338. end
  9339. kan.PlaybackSpeed = currentPitch
  9340. kan.Pitch = currentPitch
  9341. kan.SoundId = currentThemePlaying
  9342. kan.Looped = true
  9343. kan.Parent = char
  9344. kan:Resume()
  9345. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9346. imgca.ImageTransparency = 1
  9347. imgca2.ImageTransparency = 1
  9348. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9349. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9350. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9351. elseif ModeOfGlitch == 13 then
  9352. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9353. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9354. end
  9355. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9356. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9357. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9358. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9359. coroutine.resume(coroutine.create(function()
  9360. if chaosmode == true then
  9361. for i, v in pairs(mw1:GetChildren()) do
  9362. if v:IsA("Part") then
  9363. v.Transparency = 0
  9364. v.BrickColor = BrickColor.random()
  9365. v.Material = "Neon"
  9366. end
  9367. end
  9368. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9369. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9370. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9371. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9372. end
  9373. end))
  9374. coroutine.resume(coroutine.create(function()
  9375. if ModeOfGlitch == 66 then
  9376. for i, v in pairs(m:GetChildren()) do
  9377. if v:IsA("Part") then
  9378. v.Transparency = 0
  9379. v.BrickColor = BrickColor.random()
  9380. v.Material = "Neon"
  9381. end
  9382. end
  9383. for i, v in pairs(m2:GetChildren()) do
  9384. if v:IsA("Part") then
  9385. v.Transparency = 0
  9386. v.BrickColor = BrickColor.random()
  9387. v.Material = "Neon"
  9388. end
  9389. end
  9390. for i, v in pairs(mw1:GetChildren()) do
  9391. if v:IsA("Part") then
  9392. v.Transparency = 0
  9393. v.BrickColor = BrickColor.random()
  9394. v.Material = "Neon"
  9395. end
  9396. end
  9397. for i, v in pairs(extrawingmod1:GetChildren()) do
  9398. if v:IsA("Part") then
  9399. v.Transparency = 0.5
  9400. v.BrickColor = BrickColor.random()
  9401. v.Material = "Neon"
  9402. end
  9403. end
  9404. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9405. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9406. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9407. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9408. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9409. end
  9410. end))
  9411.  
  9412. coroutine.resume(coroutine.create(function()
  9413. if ModeOfGlitch == 66 then
  9414. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9415. end
  9416. end))
  9417.  
  9418. if chaosmode == false then
  9419. modet.Position = UDim2.new(0,0,0,0)
  9420. modet.Rotation = -5 * math.cos(sine / 32)
  9421. techc.Rotation = techc.Rotation + 1
  9422. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9423. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9424. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9425. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9426. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9427. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9428. else
  9429. techc.Rotation = techc.Rotation + 1
  9430. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9431. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9432. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9433. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9434. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9435. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9436. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9437. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9438. end
  9439. CameraManager()
  9440. swait()
  9441. 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)
  9442. 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)
  9443. 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)
  9444. 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)
  9445. 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)
  9446. 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)
  9447. 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)
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. 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)
  9453. sine = sine + change
  9454. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9455. local velderp=RootPart.Velocity.y
  9456. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9457. coroutine.resume(coroutine.create(function()
  9458. 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
  9459. if hitfloor ~= nil then
  9460. 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"))
  9461. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9462. 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)
  9463. end
  9464. end
  9465. end
  9466. end))
  9467. if equipped==true or equipped==false then
  9468. if attack==false then
  9469. idle=idle+1
  9470. else
  9471. idle=0
  9472. end
  9473. if idle>=500 then
  9474. if attack==false then
  9475. --Sheath()
  9476. end
  9477. end
  9478. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9479. Anim="Jump"
  9480. if attack==false then
  9481. 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)
  9482. 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)
  9483. 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)
  9484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9485. 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)
  9486. 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)
  9487. end
  9488. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9489. Anim="Fall"
  9490. if attack==false then
  9491. 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)
  9492. 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)
  9493. 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)
  9494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9495. 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)
  9496. 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)
  9497. end
  9498. elseif torvel<1 and hitfloor~=nil then
  9499. Anim="Idle"
  9500. if attack==false then
  9501. if ModeOfGlitch == 1 then
  9502. local snap = math.random(1,10)
  9503. if snap == 1 then
  9504. 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)
  9505. end
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. 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)
  9512. elseif ModeOfGlitch == 2 then
  9513. 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)
  9514. 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)
  9515. 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)
  9516. 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)
  9517. 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)
  9518. 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)
  9519. elseif ModeOfGlitch == 2 then
  9520. 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)
  9521. 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)
  9522. 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)
  9523. 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)
  9524. 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)
  9525. 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)
  9526. elseif ModeOfGlitch == 50 then
  9527. 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)
  9528. 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)
  9529. 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)
  9530. 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)
  9531. 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)
  9532. 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)
  9533. elseif ModeOfGlitch == 5555 then --5555
  9534. 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)
  9535. 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)
  9536. 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)
  9537. 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)
  9538. 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)
  9539. 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)
  9540. elseif ModeOfGlitch == 1002 then
  9541. 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)
  9542. 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)
  9543. 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)
  9544. 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)
  9545. 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)
  9546. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9547. elseif ModeOfGlitch == 12 then
  9548. 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)
  9549. 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)
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. elseif ModeOfGlitch == 3 then
  9555. local snap = math.random(1,32)
  9556. if snap == 1 then
  9557. 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)
  9558. end
  9559. 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)
  9560. 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)
  9561. 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)
  9562. 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)
  9563. 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)
  9564. 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)
  9565. elseif ModeOfGlitch == 4 then
  9566. local snap = math.random(1,5)
  9567. if snap == 1 then
  9568. 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)
  9569. 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)
  9570. 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)
  9571. end
  9572. 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)
  9573. 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)
  9574. 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)
  9575. 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)
  9576. 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)
  9577. 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)
  9578. elseif ModeOfGlitch == 66 then
  9579. local snap = math.random(1,2)
  9580. if snap == 1 then
  9581. 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)
  9582. 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)
  9583. 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)
  9584. end
  9585. 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)
  9586. 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)
  9587. 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)
  9588. 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)
  9589. 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)
  9590. 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)
  9591. elseif ModeOfGlitch == 5 then
  9592. 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)
  9593. 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)
  9594. 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)
  9595. 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)
  9596. 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)
  9597. 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)
  9598. elseif ModeOfGlitch == 6 then
  9599. 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)
  9600. 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)
  9601. 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)
  9602. 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)
  9603. 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)
  9604. 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)
  9605. elseif ModeOfGlitch == 13 then
  9606. 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)
  9607. 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)
  9608. 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)
  9609. 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)
  9610. 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)
  9611. 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)
  9612. elseif ModeOfGlitch == 8 then
  9613. 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)
  9614. 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)
  9615. 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)
  9616. 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)
  9617. 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)
  9618. 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)
  9619. elseif ModeOfGlitch == 9 then
  9620. 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)
  9621. 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))
  9622. 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)
  9623. 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)
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. elseif ModeOfGlitch == 1003 then
  9629. 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)
  9630. 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)
  9631. 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)
  9632. 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)
  9633. 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)
  9634. 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)
  9635.  
  9636. elseif ModeOfGlitch == 8889 then
  9637. 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)
  9638. 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)
  9639. 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)
  9640. 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)
  9641. 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)
  9642. 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)
  9643. elseif ModeOfGlitch == 1264532489 then
  9644. 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)
  9645. 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)
  9646. 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)
  9647. 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)
  9648. 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)
  9649. 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)
  9650. 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)
  9651. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9652. 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)
  9653. 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)
  9654. 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)
  9655. 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)
  9656. 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)
  9657. 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)
  9658. elseif ModeOfGlitch == 4367677813 then
  9659. 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)
  9660. 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)
  9661. 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)
  9662. 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)
  9663. 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)
  9664. 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)
  9665. elseif ModeOfGlitch == 55469696922 then --5555
  9666. 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)
  9667. 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)
  9668. 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)
  9669. 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)
  9670. 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)
  9671. 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)
  9672. elseif ModeOfGlitch == 999999999556 then
  9673. 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)
  9674. 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)
  9675. 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)
  9676. 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)
  9677. 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)
  9678. 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)
  9679. end
  9680. end
  9681. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9682. Anim="Walk"
  9683. if attack==false and ModeOfGlitch ~= 66 then
  9684. 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)
  9685. 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)
  9686. 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)
  9687. 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)
  9688. 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)
  9689. 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)
  9690. elseif attack==false and ModeOfGlitch == 66 then
  9691. 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)
  9692. 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)
  9693. 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)
  9694. 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)
  9695. 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)
  9696. 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)
  9697. end
  9698. elseif torvel>=22 and hitfloor~=nil then
  9699. Anim="Run"
  9700. if attack==false then
  9701. 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
  9702. 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)
  9703. 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)
  9704. 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)
  9705. 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)
  9706. 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)
  9707. 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)
  9708. if ModeOfGlitch == 12 then
  9709. 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)
  9710. 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)
  9711. 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)
  9712. 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)
  9713. 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)
  9714. 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)
  9715. end
  9716. if ModeOfGlitch == 9 then
  9717. 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)
  9718. 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))
  9719. 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)
  9720. end
  9721. 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
  9722. 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)
  9723. 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)
  9724. 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)
  9725. 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)
  9726. 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)
  9727. 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)
  9728. elseif ModeOfGlitch == 13 then
  9729. 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)
  9730. 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)
  9731. 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)
  9732. 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)
  9733. 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)
  9734. 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)
  9735. end
  9736. end
  9737. end
  9738. end
  9739. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement