Advertisement
AOM-GU-PRO

SGR

Oct 18th, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 469.19 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88. plr = game:GetService("Players").LocalPlayer
  89. char = plr.Character
  90. hum = char.Humanoid
  91. local cam = game.Workspace.CurrentCamera
  92. Camera = cam
  93. mouse = plr:GetMouse()
  94. local CamInterrupt = false
  95. local TwoD = false
  96. local TargetInfo = {nil, nil}
  97. cam.CameraType = "Custom"
  98. t = char.Torso
  99. h = char.Head
  100. ra = char["Right Arm"]
  101. la = char["Left Arm"]
  102. rl = char["Right Leg"]
  103. ll = char["Left Leg"]
  104. tors = char.Torso
  105. lleg = char["Left Leg"]
  106. root = char.HumanoidRootPart
  107. hed = char.Head
  108. rleg = char["Right Leg"]
  109. rarm = char["Right Arm"]
  110. larm = char["Left Arm"]
  111. radian = math.rad
  112. random = math.random
  113. Vec3 = Vector3.new
  114. Inst = Instance.new
  115. cFrame = CFrame.new
  116. Euler = CFrame.fromEulerAnglesXYZ
  117. vt = Vector3.new
  118. bc = BrickColor.new
  119. br = BrickColor.random
  120. it = Instance.new
  121. cf = CFrame.new
  122. local Player_Size = 0
  123. cam = game.Workspace.CurrentCamera
  124. CF = CFrame.new
  125. angles = CFrame.Angles
  126. attack = false
  127. Euler = CFrame.fromEulerAnglesXYZ
  128. Rad = math.rad
  129. IT = Instance.new
  130. BrickC = BrickColor.new
  131. Cos = math.cos
  132. Acos = math.acos
  133. Sin = math.sin
  134. Asin = math.asin
  135. Abs = math.abs
  136. Mrandom = math.random
  137. Floor = math.floor
  138. IT = Instance.new
  139. CF = CFrame.new
  140. VT = Vector3.new
  141. RAD = math.rad
  142. C3 = Color3.new
  143. UD2 = UDim2.new
  144. BRICKC = BrickColor.new
  145. ANGLES = CFrame.Angles
  146. EULER = CFrame.fromEulerAnglesXYZ
  147. COS = math.cos
  148. ACOS = math.acos
  149. SIN = math.sin
  150. ASIN = math.asin
  151. ABS = math.abs
  152. MRANDOM = math.random
  153. FLOOR = math.floor
  154. local SINE = 0
  155.  
  156. local Booleans = {
  157. CamFollow = true,
  158. GyroUse = true
  159. }
  160.  
  161. function lerp(object, newCFrame, alpha)
  162. return object:lerp(newCFrame, alpha)
  163. end
  164.  
  165. local Directer = Inst("BodyGyro", root)
  166. Directer.MaxTorque = Vec3(0, 0, 0)
  167. Directer.P = 600000
  168. local CPart = Inst("Part")
  169. CPart.Anchored = true
  170. CPart.CanCollide = false
  171. CPart.Locked = true
  172. CPart.Transparency = 1
  173.  
  174. local rainbowmode = false
  175. local chaosmode = false
  176.  
  177. local kan = Instance.new("Sound",tors)
  178. kan.Volume = 5
  179. kan.TimePosition = 0
  180. kan.PlaybackSpeed = 1
  181. kan.Pitch = 1
  182. kan.SoundId = "rbxassetid://1255569288"
  183. kan.Name = "wrecked"
  184. kan.Looped = true
  185. kan:Play()
  186.  
  187. local currentThemePlaying = kan.SoundId
  188. local currentPitch = kan.Pitch
  189. local currentVol = kan.Volume
  190. function newTheme(ID,timepos,pitch,vol)
  191. local kanz = kan
  192. --kanz:Stop()
  193. kanz.Volume = vol
  194. --kanz.TimePosition = timepos
  195. kanz.PlaybackSpeed = pitch
  196. kanz.Pitch = pitch
  197. kanz.SoundId = ID
  198. kanz.Name = "wrecked"
  199. kanz.Looped = true
  200. currentThemePlaying = kanz.SoundId
  201. currentVol = kanz.Volume
  202. currentPitch = kanz.Pitch
  203. --kanz:Play()
  204. --coroutine.resume(coroutine.create(function()
  205. --wait(0.05)
  206. --end))
  207. end
  208.  
  209. function newThemeCust(ID,timepos,pitch,vol)
  210. local kanz = kan
  211. kanz:Stop()
  212. kanz.Volume = vol
  213. kanz.TimePosition = timepos
  214. kanz.PlaybackSpeed = pitch
  215. kanz.Pitch = pitch
  216. kanz.SoundId = ID
  217. kanz.Name = "wrecked"
  218. kanz.Looped = true
  219. currentThemePlaying = kanz.SoundId
  220. currentVol = kanz.Volume
  221. currentPitch = kanz.Pitch
  222. kanz:Play()
  223. coroutine.resume(coroutine.create(function()
  224. wait(0.05)
  225. end))
  226. end
  227.  
  228. local mutedtog = false
  229.  
  230. function CameraEnshaking(Length,Intensity)
  231. coroutine.resume(coroutine.create(function()
  232. local intensity = 1*Intensity
  233. local rotM = 0.01*Intensity
  234. for i = 0, Length, 0.1 do
  235. swait()
  236. intensity = intensity - 0.05*Intensity/Length
  237. rotM = rotM - 0.0005*Intensity/Length
  238. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  239. 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)
  240. end
  241. Humanoid.CameraOffset = Vec3(0, 0, 0)
  242. end))
  243. end
  244. CamShake=function(Part,Distan,Power,Times)
  245. local de=Part.Position
  246. for i,v in pairs(workspace:children()) do
  247. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  248. for _,c in pairs(v:children()) do
  249. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  250. local Noob=v.Humanoid
  251. if Noob~=nil then
  252. coroutine.resume(coroutine.create(function()
  253. FV = Instance.new("BoolValue", Noob)
  254. FV.Name = "CameraShake"
  255. for ShakeNum=1,Times do
  256. swait()
  257. local ef=Power
  258. if ef>=1 then
  259. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  260. else
  261. ef=Power*10
  262. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  263. end
  264. end
  265. Humanoid.CameraOffset = Vector3.new(0,0,0)
  266. FV:Destroy()
  267. end))
  268. CameraShake(Times, Power, Noob)
  269. end
  270. end
  271. end
  272. end
  273. end
  274. end
  275.  
  276. local toggleTag = true
  277. local bilguit = Instance.new("BillboardGui", hed)
  278. bilguit.Adornee = nil
  279. bilguit.Name = "ModeName"
  280. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  281. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  282. local modet = Instance.new("TextLabel", bilguit)
  283. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  284. modet.FontSize = "Size8"
  285. modet.TextScaled = true
  286. modet.TextTransparency = 0
  287. modet.BackgroundTransparency = 1
  288. modet.TextTransparency = 0
  289. modet.TextStrokeTransparency = 0
  290. modet.Font = "Antique"
  291. modet.TextStrokeColor3 = Color3.new(1,0,0)
  292. modet.TextColor3 = Color3.new(0.25,0,0)
  293. modet.Text = "Hopeless"
  294.  
  295.  
  296. function chatfunc(text,color,typet,font,timeex)
  297. local chat = coroutine.wrap(function()
  298. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  299. Character:FindFirstChild("TalkingBillBoard"):destroy()
  300. end
  301. local naeeym2 = Instance.new("BillboardGui",Character)
  302. naeeym2.Size = UDim2.new(0,100,0,40)
  303. naeeym2.StudsOffset = Vector3.new(0,3,0)
  304. naeeym2.Adornee = Character.Head
  305. naeeym2.Name = "TalkingBillBoard"
  306. local tecks2 = Instance.new("TextLabel",naeeym2)
  307. tecks2.BackgroundTransparency = 1
  308. tecks2.BorderSizePixel = 0
  309. tecks2.Text = ""
  310. tecks2.Font = font
  311. tecks2.TextSize = 30
  312. tecks2.TextStrokeTransparency = 0
  313. tecks2.TextColor3 = color
  314. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  315. tecks2.Size = UDim2.new(1,0,0.5,0)
  316. local tecks3 = Instance.new("TextLabel",naeeym2)
  317. tecks3.BackgroundTransparency = 1
  318. tecks3.BorderSizePixel = 0
  319. tecks3.Text = ""
  320. tecks3.Font = font
  321. tecks3.TextSize = 30
  322. tecks3.TextStrokeTransparency = 0
  323. if typet == "Inverted" then
  324. tecks3.TextColor3 = Color3.new(0,0,0)
  325. tecks3.TextStrokeColor3 = color
  326. elseif typet == "Normal" then
  327. tecks3.TextColor3 = color
  328. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  329. end
  330. tecks3.Size = UDim2.new(1,0,0.5,0)
  331. coroutine.resume(coroutine.create(function()
  332. while true do
  333. swait(1)
  334. if chaosmode == true then
  335. tecks2.TextColor3 = BrickColor.random().Color
  336. tecks3.TextStrokeColor3 = BrickColor.random().Color
  337. end
  338. end
  339. end))
  340. modet.TextTransparency = modet.TextTransparency + 1
  341. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  342. for i = 0, 74*timeex do
  343. swait()
  344. modet.TextTransparency = 1
  345. modet.TextStrokeTransparency = 1
  346. tecks2.Text = text
  347. tecks3.Text = text
  348. end
  349. local randomrot = math.random(1,2)
  350. if randomrot == 1 then
  351. for i = 1, 50 do
  352. swait()
  353. tecks2.Text = text
  354. tecks3.Text = text
  355. modet.TextTransparency = modet.TextTransparency - .02
  356. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  357. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  358. tecks2.TextTransparency = tecks2.TextTransparency + .04
  359. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  360. tecks3.TextTransparency = tecks2.TextTransparency + .04
  361. end
  362. elseif randomrot == 2 then
  363. for i = 1, 50 do
  364. swait()
  365. tecks2.Text = text
  366. tecks3.Text = text
  367. modet.TextTransparency = modet.TextTransparency - .02
  368. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  369. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  370. tecks2.TextTransparency = tecks2.TextTransparency + .04
  371. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  372. tecks3.TextTransparency = tecks2.TextTransparency + .04
  373. end
  374. end
  375. modet.TextTransparency = 0
  376. modet.TextStrokeTransparency = 0
  377. if toggleTag == false then
  378. modet.TextTransparency = 1
  379. modet.TextStrokeTransparency = 1
  380. end
  381. naeeym2:Destroy()
  382. end)
  383. chat()
  384. end
  385.  
  386. function bosschatfunc(text,color,watval)
  387. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  388. coroutine.resume(coroutine.create(function()
  389. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  390. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  391. end
  392. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  393. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  394. scrg.Name = "Dialog"
  395. local txtlb = Instance.new("TextLabel",scrg)
  396. txtlb.Text = ""
  397. txtlb.Font = "Bodoni"
  398. txtlb.TextColor3 = Color3.new(0,0,0)
  399. txtlb.TextStrokeTransparency = 0
  400. txtlb.BackgroundTransparency = 0.75
  401. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  402. txtlb.TextStrokeColor3 = color
  403. txtlb.TextScaled = true
  404. txtlb.Size = UDim2.new(1,0,0.25,0)
  405. txtlb.TextXAlignment = "Left"
  406. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  407. local txtlb2 = Instance.new("TextLabel",scrg)
  408. txtlb2.Text = plr.Name.." The Guest:"
  409. txtlb2.Font = "Antique"
  410. txtlb2.TextColor3 = Color3.new(0,0,0)
  411. txtlb2.TextStrokeTransparency = 0
  412. txtlb2.BackgroundTransparency = 1
  413. txtlb2.TextStrokeColor3 = color
  414. txtlb2.TextSize = 40
  415. txtlb2.Size = UDim2.new(1,0,0.25,0)
  416. txtlb2.TextXAlignment = "Left"
  417. txtlb2.Position = UDim2.new(0,0,1,0)
  418. local fvalen = 0.55
  419. local fval = -0.49
  420. coroutine.resume(coroutine.create(function()
  421. while true do
  422. swait()
  423. if chaosmode == true then
  424. txtlb.Rotation = math.random(-1,1)
  425. txtlb2.Rotation = math.random(-1,1)
  426. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  427. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  428. txtlb.TextStrokeColor3 = BrickColor.random().Color
  429. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  430. end
  431. end
  432. end))
  433. coroutine.resume(coroutine.create(function()
  434. while true do
  435. swait()
  436. if scrg.Parent ~= nil then
  437. fvalen = fvalen - 0.0001
  438. elseif scrg.Parent == nil then
  439. break
  440. end
  441. end
  442. end))
  443. local flol = 1.75
  444. local flil = 1.6
  445. coroutine.resume(coroutine.create(function()
  446. for i = 0, 9 do
  447. swait()
  448. fval = fval + 0.05
  449. flol = flol - 0.1
  450. flil = flil - 0.1
  451. txtlb.Text = ""
  452. txtlb.Position = UDim2.new(0,0,flol,0)
  453. txtlb2.Position = UDim2.new(0,0,flil,0)
  454. end
  455. txtlb.Text = text
  456. wait(watval)
  457. local valinc = 0
  458. for i = 0, 99 do
  459. swait()
  460. valinc = valinc + 0.0001
  461. flol = flol + valinc
  462. flil = flil + valinc
  463. txtlb.Rotation = txtlb.Rotation + valinc*20
  464. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  465. txtlb.Position = UDim2.new(0,0,flol,0)
  466. txtlb2.Position = UDim2.new(0,0,flil,0)
  467. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  468. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  469. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  470. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  471. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  472. end
  473. scrg:Destroy()
  474. end))
  475. end))
  476. end
  477. end
  478.  
  479.  
  480. local Create = LoadLibrary("RbxUtility").Create
  481.  
  482. CFuncs = {
  483. ["Part"] = {
  484. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  485. local Part = Create("Part"){
  486. Parent = Parent,
  487. Reflectance = Reflectance,
  488. Transparency = Transparency,
  489. CanCollide = false,
  490. Locked = true,
  491. BrickColor = BrickColor.new(tostring(BColor)),
  492. Name = Name,
  493. Size = Size,
  494. Material = Material,
  495. }
  496. RemoveOutlines(Part)
  497. return Part
  498. end;
  499. };
  500.  
  501. ["Mesh"] = {
  502. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  503. local Msh = Create(Mesh){
  504. Parent = Part,
  505. Offset = OffSet,
  506. Scale = Scale,
  507. }
  508. if Mesh == "SpecialMesh" then
  509. Msh.MeshType = MeshType
  510. Msh.MeshId = MeshId
  511. end
  512. return Msh
  513. end;
  514. };
  515.  
  516. ["Mesh"] = {
  517. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  518. local Msh = Create(Mesh){
  519. Parent = Part,
  520. Offset = OffSet,
  521. Scale = Scale,
  522. }
  523. if Mesh == "SpecialMesh" then
  524. Msh.MeshType = MeshType
  525. Msh.MeshId = MeshId
  526. end
  527. return Msh
  528. end;
  529. };
  530.  
  531. ["Weld"] = {
  532. Create = function(Parent, Part0, Part1, C0, C1)
  533. local Weld = Create("Weld"){
  534. Parent = Parent,
  535. Part0 = Part0,
  536. Part1 = Part1,
  537. C0 = C0,
  538. C1 = C1,
  539. }
  540. return Weld
  541. end;
  542. };
  543.  
  544. ["Sound"] = {
  545. Create = function(id, par, vol, pit)
  546. coroutine.resume(coroutine.create(function()
  547. local S = Create("Sound"){
  548. Volume = vol,
  549. Name = "EffectSoundo",
  550. Pitch = pit or 1,
  551. SoundId = id,
  552. Parent = par or workspace,
  553. }
  554. wait()
  555. S:play()
  556. game:GetService("Debris"):AddItem(S, 10)
  557. end))
  558. end;
  559. };
  560.  
  561. ["TimeSound"] = {
  562. Create = function(id, par, vol, pit, timepos)
  563. coroutine.resume(coroutine.create(function()
  564. local S = Create("Sound"){
  565. Volume = vol,
  566. Name = "EffectSoundo",
  567. Pitch = pit or 1,
  568. SoundId = id,
  569. TimePosition = timepos,
  570. Parent = par or workspace,
  571. }
  572. wait()
  573. S:play()
  574. game:GetService("Debris"):AddItem(S, 10)
  575. end))
  576. end;
  577. };
  578. ["EchoSound"] = {
  579. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  580. coroutine.resume(coroutine.create(function()
  581. local Sas = Create("Sound"){
  582. Volume = vol,
  583. Name = "EffectSoundo",
  584. Pitch = pit or 1,
  585. SoundId = id,
  586. TimePosition = timepos,
  587. Parent = par or workspace,
  588. }
  589. local E = Create("EchoSoundEffect"){
  590. Delay = echodelay,
  591. Name = "Echo",
  592. Feedback = fedb,
  593. DryLevel = dryl,
  594. Parent = Sas,
  595. }
  596. wait()
  597. Sas:play()
  598. game:GetService("Debris"):AddItem(Sas, delays)
  599. end))
  600. end;
  601. };
  602.  
  603. ["LongSound"] = {
  604. Create = function(id, par, vol, pit)
  605. coroutine.resume(coroutine.create(function()
  606. local S = Create("Sound"){
  607. Volume = vol,
  608. Pitch = pit or 1,
  609. SoundId = id,
  610. Parent = par or workspace,
  611. }
  612. wait()
  613. S:play()
  614. game:GetService("Debris"):AddItem(S, 60)
  615. end))
  616. end;
  617. };
  618.  
  619. ["ParticleEmitter"] = {
  620. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  621. local fp = Create("ParticleEmitter"){
  622. Parent = Parent,
  623. Color = ColorSequence.new(Color1, Color2),
  624. LightEmission = LightEmission,
  625. Size = Size,
  626. Texture = Texture,
  627. Transparency = Transparency,
  628. ZOffset = ZOffset,
  629. Acceleration = Accel,
  630. Drag = Drag,
  631. LockedToPart = LockedToPart,
  632. VelocityInheritance = VelocityInheritance,
  633. EmissionDirection = EmissionDirection,
  634. Enabled = Enabled,
  635. Lifetime = LifeTime,
  636. Rate = Rate,
  637. Rotation = Rotation,
  638. RotSpeed = RotSpeed,
  639. Speed = Speed,
  640. VelocitySpread = VelocitySpread,
  641. }
  642. return fp
  643. end;
  644. };
  645.  
  646. CreateTemplate = {
  647.  
  648. };
  649. }
  650.  
  651.  
  652.  
  653. New = function(Object, Parent, Name, Data)
  654. local Object = Instance.new(Object)
  655. for Index, Value in pairs(Data or {}) do
  656. Object[Index] = Value
  657. end
  658. Object.Parent = Parent
  659. Object.Name = Name
  660. return Object
  661. end
  662. local halocolor = BrickColor.new("Pastel light blue")
  663. local halocolor2 = BrickColor.new("Cool yellow")
  664. local starcolor = BrickColor.new("Bright yellow")
  665. local lunacolor = BrickColor.new("Navy blue")
  666. local lunacolor2 = BrickColor.new("Bright blue")
  667. local wepcolor = BrickColor.new("Really black")
  668. local maincolor = BrickColor.new("Really black")
  669. local m = Instance.new("Model",char)
  670. local m2 = Instance.new("Model",char)
  671. local m3 = Instance.new("Model",char)
  672. local mw1 = Instance.new("Model",char)
  673. local mw2 = Instance.new("Model",char)
  674.  
  675.  
  676. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  677. local gui = it(GuiType)
  678. gui.Parent = parent
  679. gui.Text = text
  680. gui.BackgroundTransparency = backtrans
  681. gui.BackgroundColor3 = backcol
  682. gui.SizeConstraint = "RelativeXY"
  683. gui.TextXAlignment = "Center"
  684. gui.TextYAlignment = "Center"
  685. gui.Position = pos
  686. gui.Size = size
  687. gui.Font = "SourceSans"
  688. gui.FontSize = "Size14"
  689. gui.TextWrapped = false
  690. gui.TextStrokeTransparency = 0
  691. gui.TextColor = BrickColor.new("White")
  692. return gui
  693. end
  694. --------------------------- GUI STUFF
  695. local basgui = it("GuiMain")
  696. basgui.Parent = plr.PlayerGui
  697. basgui.Name = "VISgui"
  698. local fullscreenz = it("Frame")
  699. fullscreenz.Parent = basgui
  700. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  701. fullscreenz.BackgroundTransparency = 1
  702. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  703. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  704. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  705. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  706. imgl2.BackgroundTransparency = 1
  707. imgl2.BorderSizePixel = 0
  708. imgl2.ImageTransparency = 0.5
  709. imgl2.ImageColor3 = Color3.new(1,0,0)
  710. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  711. imgl2.Size = UDim2.new(0,1000,0,1000)
  712. imgl2.Image = "rbxassetid://2325939897"
  713. local techc = imgl2:Clone()
  714. techc.Parent = fullscreenz
  715. techc.ImageTransparency = 0
  716. techc.Size = UDim2.new(0,900,0,900)
  717. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  718. techc.ImageColor3 = Color3.new(1,0,0)
  719. techc.Image = "rbxassetid://2273224484"
  720. local circl = imgl2:Clone()
  721. circl.Parent = fullscreenz
  722. circl.ImageTransparency = 0
  723. circl.Size = UDim2.new(0,550,0,550)
  724. circl.Position = UDim2.new(0.75,25,0.55,25)
  725. circl.ImageColor3 = Color3.new(0,0,0)
  726. circl.Image = "rbxassetid://2312119891"
  727. local circl2 = imgl2:Clone()
  728. circl2.Parent = fullscreenz
  729. circl2.ImageTransparency = 0
  730. circl2.Size = UDim2.new(0,700,0,700)
  731. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  732. circl2.ImageColor3 = Color3.new(1,0,0)
  733. circl2.Image = "rbxassetid://2312119891"
  734. local imgl2b = imgl2:Clone()
  735. imgl2b.Parent = fullscreenz
  736. imgl2b.ImageTransparency = 0
  737. imgl2b.Size = UDim2.new(0,800,0,800)
  738. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  739. imgl2b.ImageColor3 = Color3.new(0,0,0)
  740. local ned = Instance.new("TextLabel",fullscreenz)
  741. ned.ZIndex = 2
  742. ned.Font = "Arcade"
  743. ned.BackgroundTransparency = 1
  744. ned.BorderSizePixel = 0.65
  745. ned.Size = UDim2.new(0.3,0,0.2,0)
  746. ned.Position = UDim2.new(0.7,0,0.8,0)
  747. ned.TextColor3 = BrickColor.new("Really red").Color
  748. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  749. ned.TextScaled = true
  750. ned.TextStrokeTransparency = 0
  751. ned.Text = "Hopeless"
  752. ned.TextSize = 24
  753. ned.Rotation = 1
  754. ned.TextXAlignment = "Right"
  755. ned.TextYAlignment = "Bottom"
  756.  
  757. local extrawingmod1 = Instance.new("Model",char)
  758. local extrawingmod2 = Instance.new("Model",char)
  759.  
  760. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  761. local p = Instance.new("Part")
  762. p.TopSurface = 0
  763. p.BottomSurface = 0
  764. p.Parent = parent
  765. p.Size = Vector3.new(0.1,0.1,0.1)
  766. p.Transparency = transparency
  767. p.Reflectance = reflectance
  768. p.CanCollide = false
  769. p.Locked = true
  770. p.BrickColor = brickcolor
  771. p.Material = material
  772. return p
  773. end
  774.  
  775. function CreateMesh(parent,meshtype,x1,y1,z1)
  776. local mesh = Instance.new("SpecialMesh",parent)
  777. mesh.MeshType = meshtype
  778. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  779. return mesh
  780. end
  781.  
  782. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  783. local mesh = Instance.new("SpecialMesh",parent)
  784. mesh.MeshType = "FileMesh"
  785. mesh.MeshId = meshid
  786. mesh.Scale = Vector3.new(x1,y1,z1)
  787. return mesh
  788. end
  789.  
  790.  
  791. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  792. local mesh = Instance.new("SpecialMesh",parent)
  793. mesh.MeshType = "FileMesh"
  794. mesh.MeshId = meshid
  795. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  796. mesh.Scale = Vector3.new(x1,y1,z1)
  797. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  798. return mesh
  799. end
  800.  
  801. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  802. local weld = Instance.new("Weld")
  803. weld.Parent = parent
  804. weld.Part0 = part0
  805. weld.Part1 = part1
  806. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  807. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  808. return weld
  809. end
  810.  
  811.  
  812. --------------
  813. --------------
  814. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  815. 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))
  816. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  817. 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))
  818.  
  819. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  820. CreateMesh(handle,"Brick",0,0,0)
  821. 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))
  822. local valuaring = 10
  823. for i = 0, 49 do
  824. valuaring = valuaring + 10
  825. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  826. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  827. 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))
  828. end
  829.  
  830. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  831. CreateMesh(handle,"Brick",0,0,0)
  832. 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))
  833. local valuaring = 10
  834. for i = 0, 49 do
  835. valuaring = valuaring + 10
  836. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  837. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  838. 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))
  839. end
  840.  
  841.  
  842. local handle = CreateParta(m,1,1,"Neon",maincolor)
  843. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  844. 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))
  845.  
  846. --- Left wing.
  847.  
  848. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  849. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  850. 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))
  851.  
  852. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  853. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  854. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  855. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  857. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  858. A0 = Instance.new('Attachment',wed)
  859. A0.Position = vt(0,0.25,0.25)
  860. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  861. CreateMesh(wed,"Wedge",0.05,0.5,3)
  862. 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))
  863. A1 = Instance.new('Attachment',wed)
  864. A1.Position = vt(0,-0.25,-2)
  865. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,3,0.5)
  867. 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))
  868.  
  869. tl1 = Instance.new('Trail',wed)
  870. tl1.Attachment0 = A1
  871. tl1.Attachment1 = A0
  872. tl1.Texture = "rbxassetid://2108945559"
  873. tl1.LightEmission = 1
  874. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  875. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  876. tl1.Lifetime = 0.6
  877.  
  878.  
  879. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  880. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  881. 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))
  882.  
  883. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  884. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  885. 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))
  886. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  888. 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))
  889. A0 = Instance.new('Attachment',wed)
  890. A0.Position = vt(0,0.25,0.25)
  891. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,3)
  893. 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))
  894. A1 = Instance.new('Attachment',wed)
  895. A1.Position = vt(0,-0.25,-2)
  896. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,3,0.5)
  898. 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))
  899.  
  900. tl2 = Instance.new('Trail',wed)
  901. tl2.Attachment0 = A1
  902. tl2.Attachment1 = A0
  903. tl2.Texture = "rbxassetid://2108945559"
  904. tl2.LightEmission = 1
  905. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  906. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  907. tl2.Lifetime = 0.6
  908.  
  909. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  910. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  911. 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))
  912.  
  913. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  915. 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))
  916. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  918. 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))
  919. A0 = Instance.new('Attachment',wed)
  920. A0.Position = vt(0,0.25,0.25)
  921. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,0.5,3)
  923. 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))
  924. A1 = Instance.new('Attachment',wed)
  925. A1.Position = vt(0,-0.25,-2)
  926. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,3,0.5)
  928. 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))
  929.  
  930. tl3 = Instance.new('Trail',wed)
  931. tl3.Attachment0 = A1
  932. tl3.Attachment1 = A0
  933. tl3.Texture = "rbxassetid://2108945559"
  934. tl3.LightEmission = 1
  935. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  936. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  937. tl3.Lifetime = 0.6
  938.  
  939. tl1.Enabled = false
  940. tl2.Enabled = false
  941. tl3.Enabled = false
  942. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  943. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  944. 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))
  945.  
  946. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  948. 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))
  949. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. 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))
  952. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,3)
  954. 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))
  955. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,3,0.5)
  957. 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))
  958.  
  959. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  960. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  961. 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))
  962.  
  963. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  964. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  965. 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))
  966. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  967. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  968. 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))
  969. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  970. CreateMesh(wed,"Wedge",0.05,0.5,3)
  971. 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))
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,3,0.5)
  974. 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))
  975.  
  976. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  977. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  978. 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))
  979.  
  980. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. 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))
  983. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  985. 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))
  986. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,3)
  988. 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))
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,3,0.5)
  991. 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))
  992.  
  993. -- Right wing.
  994.  
  995. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  996. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  997. 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))
  998.  
  999. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1001. 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))
  1002. A0 = Instance.new('Attachment',wed)
  1003. A0.Position = vt(0,0.25,0.25)
  1004. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. 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))
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1009. 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))
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1012. 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))
  1013. A1 = Instance.new('Attachment',wed)
  1014. A1.Position = vt(0,2,0.25)
  1015.  
  1016. tr1 = Instance.new('Trail',wed)
  1017. tr1.Attachment0 = A1
  1018. tr1.Attachment1 = A0
  1019. tr1.Texture = "rbxassetid://2108945559"
  1020. tr1.LightEmission = 1
  1021. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1022. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1023. tr1.Lifetime = 0.6
  1024.  
  1025. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1026. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1027. 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))
  1028.  
  1029. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1030. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1031. 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))
  1032. A0 = Instance.new('Attachment',wed)
  1033. A0.Position = vt(0,0.25,0.25)
  1034. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1036. 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))
  1037. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1038. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1039. 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))
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1042. 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))
  1043. A1 = Instance.new('Attachment',wed)
  1044. A1.Position = vt(0,2,0.25)
  1045.  
  1046. tr2 = Instance.new('Trail',wed)
  1047. tr2.Attachment0 = A1
  1048. tr2.Attachment1 = A0
  1049. tr2.Texture = "rbxassetid://2108945559"
  1050. tr2.LightEmission = 1
  1051. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1052. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1053. tr2.Lifetime = 0.6
  1054.  
  1055. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1056. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1057. 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))
  1058.  
  1059. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1060. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1061. 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))
  1062. A0 = Instance.new('Attachment',wed)
  1063. A0.Position = vt(0,0.25,0.25)
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1066. 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))
  1067. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1069. 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))
  1070. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1072. 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))
  1073. A1 = Instance.new('Attachment',wed)
  1074. A1.Position = vt(0,2,0.25)
  1075.  
  1076. tr3 = Instance.new('Trail',wed)
  1077. tr3.Attachment0 = A1
  1078. tr3.Attachment1 = A0
  1079. tr3.Texture = "rbxassetid://2108945559"
  1080. tr3.LightEmission = 1
  1081. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1082. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1083. tr3.Lifetime = 0.6
  1084.  
  1085.  
  1086. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1087. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1088. 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))
  1089.  
  1090. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1091. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1092. 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))
  1093. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1094. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1095. 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))
  1096. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1098. 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))
  1099. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1101. 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))
  1102.  
  1103. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1104. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1105. 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))
  1106.  
  1107. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1109. 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))
  1110. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1112. 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))
  1113. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1114. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1115. 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))
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1118. 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))
  1119.  
  1120. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1121. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1122. 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))
  1123.  
  1124. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1125. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1126. 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))
  1127. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1129. 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))
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1132. 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))
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1135. 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))
  1136.  
  1137. --HERES THE RING
  1138.  
  1139.  
  1140. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1141. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1142. 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))
  1143. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1144. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1145. 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))
  1146. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1147. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1148. 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))
  1149.  
  1150.  
  1151. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1152. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1153. 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))
  1154.  
  1155. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1156. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1157. 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))
  1158.  
  1159.  
  1160.  
  1161. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1162. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1163. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1164.  
  1165. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1166. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1167. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1168.  
  1169. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1170. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1171. 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))
  1172.  
  1173. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1174. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1175. 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))
  1176. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1177. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1178. 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))]]--
  1179.  
  1180. --- second ring
  1181.  
  1182.  
  1183. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1184. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1185. 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))
  1186.  
  1187. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1188. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1189. 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))
  1190.  
  1191.  
  1192.  
  1193. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1194. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1195. 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))
  1196.  
  1197. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1198. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1199. 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))
  1200.  
  1201. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1202. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1203. 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))
  1204.  
  1205. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1206. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1207. 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))
  1208. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1209. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1210. 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))
  1211.  
  1212.  
  1213.  
  1214. for i, v in pairs(m:GetChildren()) do
  1215. if v:IsA("Part") then
  1216. v.BrickColor = BrickColor.new("Really black")
  1217. v.Material = "Glass"
  1218. end
  1219. end
  1220. for i, v in pairs(m2:GetChildren()) do
  1221. if v:IsA("Part") then
  1222. v.BrickColor = BrickColor.new("Crimson")
  1223. v.Material = "Granite"
  1224. end
  1225. end
  1226. for i, v in pairs(m3:GetChildren()) do
  1227. if v:IsA("Part") then
  1228. v.BrickColor = BrickColor.new("Really red")
  1229. v.Material = "Neon"
  1230. end
  1231. end
  1232. for i, v in pairs(mw2:GetChildren()) do
  1233. if v:IsA("Part") then
  1234. v.BrickColor = BrickColor.new("Really red")
  1235. v.Material = "Neon"
  1236. end
  1237. end
  1238. for i, v in pairs(mw1:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.Transparency = 1
  1241. v.BrickColor = BrickColor.new("Really red")
  1242. v.Material = "Neon"
  1243. end
  1244. end
  1245. for i, v in pairs(extrawingmod1:GetChildren()) do
  1246. if v:IsA("Part") then
  1247. v.Transparency = 1
  1248. v.BrickColor = BrickColor.new("White")
  1249. v.Material = "Neon"
  1250. end
  1251. end
  1252. for i, v in pairs(extrawingmod2:GetChildren()) do
  1253. if v:IsA("Part") then
  1254. v.Transparency = 1
  1255. v.BrickColor = BrickColor.new("White")
  1256. v.Material = "Neon"
  1257. end
  1258. end
  1259. local MAINRUINCOLOR = BrickColor.new("Really red")
  1260. ------
  1261.  
  1262.  
  1263. function RemoveOutlines(part)
  1264. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1265. end
  1266. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1267. local Part = Create("Part")({
  1268. Parent = Parent,
  1269. Reflectance = Reflectance,
  1270. Transparency = Transparency,
  1271. CanCollide = false,
  1272. Locked = true,
  1273. BrickColor = BrickColor.new(tostring(BColor)),
  1274. Name = Name,
  1275. Size = Size,
  1276. Material = Material
  1277. })
  1278. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1279. RemoveOutlines(Part)
  1280. return Part
  1281. end
  1282. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1283. local Msh = Create(Mesh)({
  1284. Parent = Part,
  1285. Offset = OffSet,
  1286. Scale = Scale
  1287. })
  1288. if Mesh == "SpecialMesh" then
  1289. Msh.MeshType = MeshType
  1290. Msh.MeshId = MeshId
  1291. end
  1292. return Msh
  1293. end
  1294. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1295. local Weld = Create("Weld")({
  1296. Parent = Parent,
  1297. Part0 = Part0,
  1298. Part1 = Part1,
  1299. C0 = C0,
  1300. C1 = C1
  1301. })
  1302. return Weld
  1303. end
  1304.  
  1305. Player = plr
  1306. Character=Player.Character
  1307. PlayerGui=Player.PlayerGui
  1308. Backpack=Player.Backpack
  1309. Torso=Character.Torso
  1310. Head=Character.Head
  1311. Humanoid=Character.Humanoid
  1312. m=Instance.new('Model',Character)
  1313. LeftArm=Character["Left Arm"]
  1314. LeftLeg=Character["Left Leg"]
  1315. RightArm=Character["Right Arm"]
  1316. RightLeg=Character["Right Leg"]
  1317. LS=Torso["Left Shoulder"]
  1318. LH=Torso["Left Hip"]
  1319. RS=Torso["Right Shoulder"]
  1320. RH=Torso["Right Hip"]
  1321. Face = Head.face
  1322. Neck=Torso.Neck
  1323. it=Instance.new
  1324. attacktype=1
  1325. vt=Vector3.new
  1326. cf=CFrame.new
  1327. euler=CFrame.fromEulerAnglesXYZ
  1328. angles=CFrame.Angles
  1329. cloaked=false
  1330. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1331. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1332. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1333. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1334. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1335. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1336. RootPart=Character.HumanoidRootPart
  1337. RootJoint=RootPart.RootJoint
  1338. RootCF=euler(-1.57,0,3.14)
  1339. attack = false
  1340. attackdebounce = false
  1341. deb=false
  1342. equipped=true
  1343. hand=false
  1344. combo=0
  1345. mana=0
  1346. trispeed=.2
  1347. attackmode='none'
  1348. local idle=0
  1349. local Anim="Idle"
  1350. local Effects={}
  1351. local gun=false
  1352. local shoot=false
  1353. local sine = 0
  1354. local change = 1
  1355.  
  1356. function RecolorTextAndRename(name,col1,col2,font)
  1357. modet.TextStrokeColor3 = col2
  1358. modet.TextColor3 = col1
  1359. modet.Font = font
  1360. modet.Text = name
  1361. techc.ImageColor3 = col2
  1362. circl.ImageColor3 = col2
  1363. circl2.ImageColor3 = col1
  1364. imgl2.ImageColor3 = col1
  1365. imgl2b.ImageColor3 = col2
  1366. ned.Text = name
  1367. ned.TextColor3 = col1
  1368. ned.TextStrokeColor3 = col2
  1369. end
  1370. --save shoulders
  1371. RSH, LSH=nil, nil
  1372. --welds
  1373. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1374. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1375. LH=Torso["Left Hip"]
  1376. RH=Torso["Right Hip"]
  1377. TorsoColor=Torso.BrickColor
  1378. function NoOutline(Part)
  1379. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1380. end
  1381. ch=Character
  1382. RSH=ch.Torso["Right Shoulder"]
  1383. LSH=ch.Torso["Left Shoulder"]
  1384. --
  1385. RSH.Parent=nil
  1386. LSH.Parent=nil
  1387. --
  1388. RW.Name="Right Shoulder"
  1389. RW.Part0=ch.Torso
  1390. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1391. RW.C1=cf(0, 0.5, 0)
  1392. RW.Part1=ch["Right Arm"]
  1393. RW.Parent=ch.Torso
  1394. --
  1395. LW.Name="Left Shoulder"
  1396. LW.Part0=ch.Torso
  1397. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1398. LW.C1=cf(0, 0.5, 0)
  1399. LW.Part1=ch["Left Arm"]
  1400. LW.Parent=ch.Torso
  1401.  
  1402. local Stats=Instance.new("BoolValue")
  1403. Stats.Name="Stats"
  1404. Stats.Parent=Character
  1405. local Atk=Instance.new("NumberValue")
  1406. Atk.Name="Damage"
  1407. Atk.Parent=Stats
  1408. Atk.Value=1
  1409. local Def=Instance.new("NumberValue")
  1410. Def.Name="Defense"
  1411. Def.Parent=Stats
  1412. Def.Value=1
  1413. local Speed=Instance.new("NumberValue")
  1414. Speed.Name="Speed"
  1415. Speed.Parent=Stats
  1416. Speed.Value=1
  1417. local Mvmt=Instance.new("NumberValue")
  1418. Mvmt.Name="Movement"
  1419. Mvmt.Parent=Stats
  1420. Mvmt.Value=1
  1421.  
  1422. local donum=0
  1423. local ast = {744586075,385254610}
  1424.  
  1425. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1426. local fp=it("Part")
  1427. fp.formFactor=formfactor
  1428. fp.Parent=parent
  1429. fp.Reflectance=reflectance
  1430. fp.Transparency=transparency
  1431. fp.CanCollide=false
  1432. fp.Locked=true
  1433. fp.BrickColor=brickcolor
  1434. fp.Name=name
  1435. fp.Size=size
  1436. fp.Position=Torso.Position
  1437. NoOutline(fp)
  1438. fp.Material="SmoothPlastic"
  1439. fp:BreakJoints()
  1440. return fp
  1441. end
  1442.  
  1443. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1444. local mesh=it(Mesh)
  1445. mesh.Parent=part
  1446. if Mesh=="SpecialMesh" then
  1447. mesh.MeshType=meshtype
  1448. if meshid~="nil" then
  1449. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1450. end
  1451. end
  1452. mesh.Offset=offset
  1453. mesh.Scale=scale
  1454. return mesh
  1455. end
  1456.  
  1457. function weld(parent,part0,part1,c0)
  1458. local weld=it("Weld")
  1459. weld.Parent=parent
  1460. weld.Part0=part0
  1461. weld.Part1=part1
  1462. weld.C0=c0
  1463. return weld
  1464. end
  1465.  
  1466. local Color1=Torso.BrickColor
  1467.  
  1468. local bodvel=Instance.new("BodyVelocity")
  1469. local bg=Instance.new("BodyGyro")
  1470.  
  1471. --------- SazEreno's Artificial HB --------------
  1472. ArtificialHB = Instance.new("BindableEvent", script)
  1473. ArtificialHB.Name = "ArtificialHB"
  1474.  
  1475. script:WaitForChild("ArtificialHB")
  1476. Frame_Speed = 1 / 60
  1477. frame = Frame_Speed
  1478. tf = 0
  1479. allowframeloss = false
  1480. tossremainder = false
  1481. lastframe = tick()
  1482. script.ArtificialHB:Fire()
  1483.  
  1484. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1485. tf = tf + s
  1486. if tf >= frame then
  1487. if allowframeloss then
  1488. script.ArtificialHB:Fire()
  1489. lastframe = tick()
  1490. else
  1491. for i = 1, math.floor(tf / frame) do
  1492. script.ArtificialHB:Fire()
  1493. end
  1494. lastframe = tick()
  1495. end
  1496. if tossremainder then
  1497. tf = 0
  1498. else
  1499. tf = tf - frame * math.floor(tf / frame)
  1500. end
  1501. end
  1502. end)
  1503.  
  1504. ------------------
  1505. function swait(num)
  1506. if num == 0 or num == nil then
  1507. ArtificialHB.Event:wait()
  1508. else
  1509. for i = 1, num do
  1510. ArtificialHB.Event:wait()
  1511. end
  1512. end
  1513. end
  1514. -------- RAINBOW LEAVE IT TO ME
  1515. local r = 255
  1516. local g = 0
  1517. local b = 0
  1518. coroutine.resume(coroutine.create(function()
  1519. while wait() do
  1520. for i = 0, 254/5 do
  1521. swait()
  1522. g = g + 5
  1523. end
  1524. for i = 0, 254/5 do
  1525. swait()
  1526. r = r - 5
  1527. end
  1528. for i = 0, 254/5 do
  1529. swait()
  1530. b = b + 5
  1531. end
  1532. for i = 0, 254/5 do
  1533. swait()
  1534. g = g - 5
  1535. end
  1536. for i = 0, 254/5 do
  1537. swait()
  1538. r = r + 5
  1539. end
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. b = b - 5
  1543. end
  1544. end
  1545. end))
  1546.  
  1547.  
  1548. so = function(id,par,vol,pit)
  1549. coroutine.resume(coroutine.create(function()
  1550. local sou = Instance.new("Sound",par or workspace)
  1551. sou.Volume=vol
  1552. sou.Pitch=pit or 1
  1553. sou.SoundId=id
  1554. swait()
  1555. sou:play()
  1556. game:GetService("Debris"):AddItem(sou,6)
  1557. end))
  1558. end
  1559.  
  1560. function clerp(a,b,t)
  1561. local qa = {QuaternionFromCFrame(a)}
  1562. local qb = {QuaternionFromCFrame(b)}
  1563. local ax, ay, az = a.x, a.y, a.z
  1564. local bx, by, bz = b.x, b.y, b.z
  1565. local _t = 1-t
  1566. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1567. end
  1568.  
  1569. function QuaternionFromCFrame(cf)
  1570. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1571. local trace = m00 + m11 + m22
  1572. if trace > 0 then
  1573. local s = math.sqrt(1 + trace)
  1574. local recip = 0.5/s
  1575. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1576. else
  1577. local i = 0
  1578. if m11 > m00 then
  1579. i = 1
  1580. end
  1581. if m22 > (i == 0 and m00 or m11) then
  1582. i = 2
  1583. end
  1584. if i == 0 then
  1585. local s = math.sqrt(m00-m11-m22+1)
  1586. local recip = 0.5/s
  1587. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1588. elseif i == 1 then
  1589. local s = math.sqrt(m11-m22-m00+1)
  1590. local recip = 0.5/s
  1591. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1592. elseif i == 2 then
  1593. local s = math.sqrt(m22-m00-m11+1)
  1594. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1595. end
  1596. end
  1597. end
  1598.  
  1599. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1600. local xs, ys, zs = x + x, y + y, z + z
  1601. local wx, wy, wz = w*xs, w*ys, w*zs
  1602. local xx = x*xs
  1603. local xy = x*ys
  1604. local xz = x*zs
  1605. local yy = y*ys
  1606. local yz = y*zs
  1607. local zz = z*zs
  1608. 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))
  1609. end
  1610.  
  1611. function QuaternionSlerp(a, b, t)
  1612. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1613. local startInterp, finishInterp;
  1614. if cosTheta >= 0.0001 then
  1615. if (1 - cosTheta) > 0.0001 then
  1616. local theta = math.acos(cosTheta)
  1617. local invSinTheta = 1/math.sin(theta)
  1618. startInterp = math.sin((1-t)*theta)*invSinTheta
  1619. finishInterp = math.sin(t*theta)*invSinTheta
  1620. else
  1621. startInterp = 1-t
  1622. finishInterp = t
  1623. end
  1624. else
  1625. if (1+cosTheta) > 0.0001 then
  1626. local theta = math.acos(-cosTheta)
  1627. local invSinTheta = 1/math.sin(theta)
  1628. startInterp = math.sin((t-1)*theta)*invSinTheta
  1629. finishInterp = math.sin(t*theta)*invSinTheta
  1630. else
  1631. startInterp = t-1
  1632. finishInterp = t
  1633. end
  1634. end
  1635. 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
  1636. end
  1637.  
  1638. local function CFrameFromTopBack(at, top, back)
  1639. local right = top:Cross(back)
  1640. return CFrame.new(at.x, at.y, at.z,
  1641. right.x, top.x, back.x,
  1642. right.y, top.y, back.y,
  1643. right.z, top.z, back.z)
  1644. end
  1645.  
  1646. function Triangle(a, b, c)
  1647. local edg1 = (c-a):Dot((b-a).unit)
  1648. local edg2 = (a-b):Dot((c-b).unit)
  1649. local edg3 = (b-c):Dot((a-c).unit)
  1650. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1651. a, b, c = a, b, c
  1652. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1653. a, b, c = b, c, a
  1654. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1655. a, b, c = c, a, b
  1656. else
  1657. assert(false, "unreachable")
  1658. end
  1659.  
  1660. local len1 = (c-a):Dot((b-a).unit)
  1661. local len2 = (b-a).magnitude - len1
  1662. local width = (a + (b-a).unit*len1 - c).magnitude
  1663.  
  1664. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1665.  
  1666. local list = {}
  1667.  
  1668. if len1 > 0.01 then
  1669. local w1 = Instance.new('WedgePart', m)
  1670. game:GetService("Debris"):AddItem(w1,5)
  1671. w1.Material = "SmoothPlastic"
  1672. w1.FormFactor = 'Custom'
  1673. w1.BrickColor = BrickColor.new("Really red")
  1674. w1.Transparency = 0
  1675. w1.Reflectance = 0
  1676. w1.Material = "SmoothPlastic"
  1677. w1.CanCollide = false
  1678. local l1 = Instance.new("PointLight",w1)
  1679. l1.Color = Color3.new(170,0,0)
  1680. NoOutline(w1)
  1681. local sz = Vector3.new(0.2, width, len1)
  1682. w1.Size = sz
  1683. local sp = Instance.new("SpecialMesh",w1)
  1684. sp.MeshType = "Wedge"
  1685. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1686. w1:BreakJoints()
  1687. w1.Anchored = true
  1688. w1.Parent = workspace
  1689. w1.Transparency = 0.7
  1690. table.insert(Effects,{w1,"Disappear",.01})
  1691. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1692. table.insert(list,w1)
  1693. end
  1694.  
  1695. if len2 > 0.01 then
  1696. local w2 = Instance.new('WedgePart', m)
  1697. game:GetService("Debris"):AddItem(w2,5)
  1698. w2.Material = "SmoothPlastic"
  1699. w2.FormFactor = 'Custom'
  1700. w2.BrickColor = BrickColor.new("Really red")
  1701. w2.Transparency = 0
  1702. w2.Reflectance = 0
  1703. w2.Material = "SmoothPlastic"
  1704. w2.CanCollide = false
  1705. local l2 = Instance.new("PointLight",w2)
  1706. l2.Color = Color3.new(170,0,0)
  1707. NoOutline(w2)
  1708. local sz = Vector3.new(0.2, width, len2)
  1709. w2.Size = sz
  1710. local sp = Instance.new("SpecialMesh",w2)
  1711. sp.MeshType = "Wedge"
  1712. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1713. w2:BreakJoints()
  1714. w2.Anchored = true
  1715. w2.Parent = workspace
  1716. w2.Transparency = 0.7
  1717. table.insert(Effects,{w2,"Disappear",.01})
  1718. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1719. table.insert(list,w2)
  1720. end
  1721. return unpack(list)
  1722. end
  1723.  
  1724.  
  1725. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1726. if hit.Parent == nil then
  1727. return
  1728. end
  1729. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1730. for _, v in pairs(hit.Parent:children()) do
  1731. if v:IsA("Humanoid") then
  1732. h = v
  1733. end
  1734. end
  1735. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1736. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1737. return
  1738. end
  1739. local c = Create("ObjectValue")({
  1740. Name = "creator",
  1741. Value = game:GetService("Players").LocalPlayer,
  1742. Parent = h
  1743. })
  1744. game:GetService("Debris"):AddItem(c, 0.5)
  1745. if HitSound ~= nil and HitPitch ~= nil then
  1746. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1747. end
  1748. local Damage = math.random(minim, maxim)
  1749. local blocked = false
  1750. local block = hit.Parent:findFirstChild("Block")
  1751. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1752. blocked = true
  1753. block.Value = block.Value - 1
  1754. print(block.Value)
  1755. end
  1756. if blocked == false then
  1757. HitHealth = h.Health
  1758. h.MaxHealth = 100
  1759. h.Health = h.Health - Damage
  1760. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1761. print("gained kill")
  1762. dmg(h.Parent)
  1763. end
  1764. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1765. else
  1766. h.Health = h.Health - Damage / 2
  1767. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1768. end
  1769. if Type == "Knockdown" then
  1770. local hum = hit.Parent.Humanoid
  1771. hum.PlatformStand = true
  1772. coroutine.resume(coroutine.create(function(HHumanoid)
  1773. swait(1)
  1774. HHumanoid.PlatformStand = false
  1775. end), hum)
  1776. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1777. local bodvol = Create("BodyVelocity")({
  1778. velocity = angle * knockback,
  1779. P = 5000,
  1780. maxForce = Vector3.new(8000, 8000, 8000),
  1781. Parent = hit
  1782. })
  1783. local rl = Create("BodyAngularVelocity")({
  1784. P = 3000,
  1785. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1786. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1787. Parent = hit
  1788. })
  1789. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1790. game:GetService("Debris"):AddItem(rl, 0.5)
  1791. elseif Type == "Normal" then
  1792. local vp = Create("BodyVelocity")({
  1793. P = 500,
  1794. maxForce = Vector3.new(math.huge, 0, math.huge),
  1795. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1796. })
  1797. if knockback > 0 then
  1798. vp.Parent = hit.Parent.Head
  1799. end
  1800. game:GetService("Debris"):AddItem(vp, 0.5)
  1801. elseif Type == "Up" then
  1802. local bodyVelocity = Create("BodyVelocity")({
  1803. velocity = Vector3.new(0, 20, 0),
  1804. P = 5000,
  1805. maxForce = Vector3.new(8000, 8000, 8000),
  1806. Parent = hit
  1807. })
  1808. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1809. local bodyVelocity = Create("BodyVelocity")({
  1810. velocity = Vector3.new(0, 20, 0),
  1811. P = 5000,
  1812. maxForce = Vector3.new(8000, 8000, 8000),
  1813. Parent = hit
  1814. })
  1815. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1816. elseif Type == "Leech" then
  1817. local hum = hit.Parent.Humanoid
  1818. if hum ~= nil then
  1819. for i = 0, 2 do
  1820. 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)
  1821. end
  1822. Humanoid.Health = Humanoid.Health + 10
  1823. end
  1824. elseif Type == "UpKnock" then
  1825. local hum = hit.Parent.Humanoid
  1826. hum.PlatformStand = true
  1827. if hum ~= nil then
  1828. hitr = true
  1829. end
  1830. coroutine.resume(coroutine.create(function(HHumanoid)
  1831. swait(5)
  1832. HHumanoid.PlatformStand = false
  1833. hitr = false
  1834. end), hum)
  1835. local bodyVelocity = Create("BodyVelocity")({
  1836. velocity = Vector3.new(0, 20, 0),
  1837. P = 5000,
  1838. maxForce = Vector3.new(8000, 8000, 8000),
  1839. Parent = hit
  1840. })
  1841. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1842. local bodyVelocity = Create("BodyVelocity")({
  1843. velocity = Vector3.new(0, 20, 0),
  1844. P = 5000,
  1845. maxForce = Vector3.new(8000, 8000, 8000),
  1846. Parent = hit
  1847. })
  1848. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1849. elseif Type == "Snare" then
  1850. local bp = Create("BodyPosition")({
  1851. P = 2000,
  1852. D = 100,
  1853. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1854. position = hit.Parent.Torso.Position,
  1855. Parent = hit.Parent.Torso
  1856. })
  1857. game:GetService("Debris"):AddItem(bp, 1)
  1858. elseif Type == "Slashnare" then
  1859. 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)
  1860. for i = 1, math.random(4, 5) do
  1861. 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)
  1862. end
  1863. local bp = Create("BodyPosition")({
  1864. P = 2000,
  1865. D = 100,
  1866. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1867. position = hit.Parent.Torso.Position,
  1868. Parent = hit.Parent.Torso
  1869. })
  1870. game:GetService("Debris"):AddItem(bp, 1)
  1871. elseif Type == "Spike" then
  1872. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1873. local bp = Create("BodyPosition")({
  1874. P = 2000,
  1875. D = 100,
  1876. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1877. position = hit.Parent.Torso.Position,
  1878. Parent = hit.Parent.Torso
  1879. })
  1880. game:GetService("Debris"):AddItem(bp, 1)
  1881. elseif Type == "Freeze" then
  1882. local BodPos = Create("BodyPosition")({
  1883. P = 50000,
  1884. D = 1000,
  1885. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1886. position = hit.Parent.Torso.Position,
  1887. Parent = hit.Parent.Torso
  1888. })
  1889. local BodGy = Create("BodyGyro")({
  1890. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1891. P = 20000,
  1892. Parent = hit.Parent.Torso,
  1893. cframe = hit.Parent.Torso.CFrame
  1894. })
  1895. hit.Parent.Torso.Anchored = true
  1896. coroutine.resume(coroutine.create(function(Part)
  1897. swait(1.5)
  1898. Part.Anchored = false
  1899. end), hit.Parent.Torso)
  1900. game:GetService("Debris"):AddItem(BodPos, 3)
  1901. game:GetService("Debris"):AddItem(BodGy, 3)
  1902. end
  1903. local debounce = Create("BoolValue")({
  1904. Name = "DebounceHit",
  1905. Parent = hit.Parent,
  1906. Value = true
  1907. })
  1908. game:GetService("Debris"):AddItem(debounce, Delay)
  1909. c = Instance.new("ObjectValue")
  1910. c.Name = "creator"
  1911. c.Value = Player
  1912. c.Parent = h
  1913. game:GetService("Debris"):AddItem(c, 0.5)
  1914. end
  1915. end
  1916. function ShowDamage(Pos, Text, Time, Color)
  1917. local Rate = 0.03333333333333333
  1918. local Pos = Pos or Vector3.new(0, 0, 0)
  1919. local Text = Text or ""
  1920. local Time = Time or 2
  1921. local Color = Color or Color3.new(1, 0, 1)
  1922. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1923. EffectPart.Anchored = true
  1924. local BillboardGui = Create("BillboardGui")({
  1925. Size = UDim2.new(3, 0, 3, 0),
  1926. Adornee = EffectPart,
  1927. Parent = EffectPart
  1928. })
  1929. local TextLabel = Create("TextLabel")({
  1930. BackgroundTransparency = 1,
  1931. Size = UDim2.new(1, 0, 1, 0),
  1932. Text = Text,
  1933. TextColor3 = Color,
  1934. TextScaled = true,
  1935. Font = Enum.Font.ArialBold,
  1936. Parent = BillboardGui
  1937. })
  1938. game.Debris:AddItem(EffectPart, Time + 0.1)
  1939. EffectPart.Parent = game:GetService("Workspace")
  1940. delay(0, function()
  1941. local Frames = Time / Rate
  1942. for Frame = 1, Frames do
  1943. wait(Rate)
  1944. local Percent = Frame / Frames
  1945. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1946. TextLabel.TextTransparency = Percent
  1947. end
  1948. if EffectPart and EffectPart.Parent then
  1949. EffectPart:Destroy()
  1950. end
  1951. end)
  1952. end
  1953. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1954. for _, c in pairs(workspace:children()) do
  1955. local hum = c:findFirstChildOfClass("Humanoid")
  1956. if hum ~= nil then
  1957. local head = c:findFirstChild("Head")
  1958. if head ~= nil then
  1959. local targ = head.Position - Part.Position
  1960. local mag = targ.magnitude
  1961. if magni >= mag and c.Name ~= Player.Name then
  1962. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1963. end
  1964. end
  1965. end
  1966. end
  1967. end
  1968.  
  1969. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1970. for _, c in pairs(workspace:children()) do
  1971. local hum = c:findFirstChild("Humanoid")
  1972. if hum ~= nil then
  1973. local head = c:findFirstChild("Torso")
  1974. if head ~= nil then
  1975. local targ = head.Position - Part.Position
  1976. local mag = targ.magnitude
  1977. if magni >= mag and c.Name ~= Player.Name then
  1978. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1979. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1980. end
  1981. end
  1982. end
  1983. end
  1984. end
  1985.  
  1986. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1987. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1988. end
  1989.  
  1990. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1991. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1992. prt.Anchored=true
  1993. prt.CFrame=cframe
  1994. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1995. --http://www.roblox.com/asset/?id=4770560
  1996. game:GetService("Debris"):AddItem(prt,2)
  1997. CF=prt.CFrame
  1998. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1999. for i=0,1,0.2 do
  2000. wait()
  2001. Part.CFrame=CF*cf(0,0,-0.4)
  2002. end
  2003. for i=0,1,delay do
  2004. wait()
  2005. --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)
  2006. Mesh.Scale=Mesh.Scale
  2007. end
  2008. for i=0,1,0.1 do
  2009. wait()
  2010. Part.Transparency=i
  2011. end
  2012. Part.Parent=nil
  2013. end),prt,msh,CF)
  2014. end
  2015.  
  2016. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2017. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2018. prt.Anchored=true
  2019. prt.Material = "Neon"
  2020. prt.CFrame=cframe
  2021. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2022. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2023. game:GetService("Debris"):AddItem(prt,5)
  2024. coroutine.resume(coroutine.create(function(Part,Mesh)
  2025. for i=0,1,delay do
  2026. swait()
  2027. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2028. Part.Transparency=i
  2029. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2030. end
  2031. Part.Parent=nil
  2032. end),prt,msh)
  2033. end
  2034.  
  2035. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2036. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2037. prt.Anchored=true
  2038. prt.Material = "Neon"
  2039. prt.CFrame=cframe
  2040. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2041. game:GetService("Debris"):AddItem(prt,5)
  2042. coroutine.resume(coroutine.create(function(Part,Mesh)
  2043. local rtype = rottype
  2044. for i=0,1,delay do
  2045. swait()
  2046. if rtype == 1 then
  2047. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2048. elseif rtype == 2 then
  2049. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2050. end
  2051. Part.Transparency=i
  2052. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2053. end
  2054. Part.Parent=nil
  2055. end),prt,msh)
  2056. end
  2057.  
  2058. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2059. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2060. prt.Anchored=true
  2061. prt.CFrame=cframe
  2062. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2063. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2064. game:GetService("Debris"):AddItem(prt,5)
  2065. coroutine.resume(coroutine.create(function(Part,Mesh)
  2066. for i=0,1,delay do
  2067. wait()
  2068. Part.Transparency=i
  2069. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2070. end
  2071. Part.Parent=nil
  2072. end),prt,msh)
  2073. end
  2074.  
  2075. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2076. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2077. prt.Anchored=true
  2078. prt.Material = "Neon"
  2079. prt.CFrame=cframe
  2080. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2081. game:GetService("Debris"):AddItem(prt,5)
  2082. coroutine.resume(coroutine.create(function(Part,Mesh)
  2083. local rtype = rottype
  2084. for i=0,1,delay do
  2085. swait()
  2086. if rtype == 1 then
  2087. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2088. elseif rtype == 2 then
  2089. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2090. end
  2091. Part.Transparency=i
  2092. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2093. end
  2094. Part.Parent=nil
  2095. end),prt,msh)
  2096. end
  2097.  
  2098. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2099. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2100. prt.Anchored=true
  2101. prt.Material = "Neon"
  2102. prt.CFrame=cframe
  2103. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2104. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2105. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2106. game:GetService("Debris"):AddItem(prt,5)
  2107. coroutine.resume(coroutine.create(function(Part,Mesh)
  2108. local rtype = rottype
  2109. for i=0,1,delay do
  2110. swait()
  2111. if rtype == 1 then
  2112. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2113. elseif rtype == 2 then
  2114. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2115. end
  2116. dec.Transparency=i
  2117. dec2.Transparency=i
  2118. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2119. end
  2120. Part.Parent=nil
  2121. end),prt,msh)
  2122. end
  2123.  
  2124. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2125. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2126. prt.Anchored=true
  2127. prt.Material = "Neon"
  2128. prt.CFrame=cframe
  2129. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2130. game:GetService("Debris"):AddItem(prt,5)
  2131. coroutine.resume(coroutine.create(function(Part,Mesh)
  2132. local rtype = rottype
  2133. for i=0,1,delay do
  2134. swait()
  2135. if rtype == 1 then
  2136. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2137. elseif rtype == 2 then
  2138. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2139. end
  2140. prt.Transparency=i
  2141. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2142. end
  2143. Part.Parent=nil
  2144. end),prt,msh)
  2145. end
  2146.  
  2147. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2148. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2149. prt.Anchored=true
  2150. prt.Material = "Neon"
  2151. prt.CFrame=cframe
  2152. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2153. game:GetService("Debris"):AddItem(prt,5)
  2154. coroutine.resume(coroutine.create(function(Part,Mesh)
  2155. local rtype = rottype
  2156. for i=0,1,delay do
  2157. swait()
  2158. if rtype == 1 then
  2159. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2160. elseif rtype == 2 then
  2161. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2162. end
  2163. prt.Transparency=i
  2164. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2165. end
  2166. Part.Parent=nil
  2167. end),prt,msh)
  2168. end
  2169.  
  2170. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2171. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2172. prt.Anchored=true
  2173. prt.Material = "Neon"
  2174. prt.CFrame=cframe
  2175. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  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. prt.Transparency=i
  2187. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2188. end
  2189. Part.Parent=nil
  2190. end),prt,msh)
  2191. end
  2192.  
  2193. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2194. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2195. prt.Anchored=true
  2196. prt.Material = "Neon"
  2197. prt.CFrame=cframe
  2198. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2199. game:GetService("Debris"):AddItem(prt,5)
  2200. coroutine.resume(coroutine.create(function(Part,Mesh)
  2201. local rtype = rottype
  2202. for i=0,1,delay do
  2203. swait()
  2204. if rtype == 1 then
  2205. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2206. elseif rtype == 2 then
  2207. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2208. end
  2209. prt.Transparency=i
  2210. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2211. end
  2212. Part.Parent=nil
  2213. end),prt,msh)
  2214. end
  2215.  
  2216. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2217. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2218. prt.Anchored=false
  2219. prt.CFrame=cframe
  2220. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2221. local wld=weld(prt,prt,Parent,cframe)
  2222. game:GetService("Debris"):AddItem(prt,5)
  2223. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2224. for i=0,1,delay do
  2225. wait()
  2226. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2227. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2228. Part.Transparency=i
  2229. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2230. end
  2231. Part.Parent=nil
  2232. end),prt,msh,wld)
  2233. end
  2234.  
  2235. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2236. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2237. prt.Anchored=false
  2238. prt.CFrame=cframe
  2239. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2240. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2241. game:GetService("Debris"):AddItem(prt,5)
  2242. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2243. for i=0,1,delay do
  2244. wait()
  2245. Weld.C0=euler(i*20,0,0)
  2246. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2247. Part.Transparency=i
  2248. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2249. end
  2250. Part.Parent=nil
  2251. end),prt,msh,wld)
  2252. end
  2253.  
  2254. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2255. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2256. prt.Anchored=true
  2257. prt.CFrame=cframe
  2258. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2259. game:GetService("Debris"):AddItem(prt,2)
  2260. coroutine.resume(coroutine.create(function(Part,Mesh)
  2261. for i=0,1,delay do
  2262. wait()
  2263. Part.CFrame=Part.CFrame
  2264. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2265. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2266. prt2.Anchored=true
  2267. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2268. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2269. game:GetService("Debris"):AddItem(prt2,2)
  2270. coroutine.resume(coroutine.create(function(Part,Mesh)
  2271. for i=0,1,0.1 do
  2272. wait()
  2273. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2274. end
  2275. Part.Parent=nil
  2276. end),prt2,msh2)
  2277. end
  2278. for i=0,1,delay*2 do
  2279. wait()
  2280. Part.CFrame=Part.CFrame
  2281. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2282. end
  2283. Part.Parent=nil
  2284. end),prt,msh)
  2285. end
  2286.  
  2287. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2288. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2289. prt.Anchored=true
  2290. prt.CFrame=cframe
  2291. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2292. game:GetService("Debris"):AddItem(prt,2)
  2293. coroutine.resume(coroutine.create(function(Part,Mesh)
  2294. for i=0,1,delay do
  2295. wait()
  2296. Part.CFrame=Part.CFrame
  2297. Part.Transparency=i
  2298. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2299. end
  2300. Part.Parent=nil
  2301. end),prt,msh)
  2302. end
  2303.  
  2304. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2305. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2306. prt.Anchored=true
  2307. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2308. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2309. game:GetService("Debris"):AddItem(prt,2)
  2310. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2311. CF=Part.CFrame
  2312. Numbb=0
  2313. randnumb=math.random()/10
  2314. rand1=math.random()/10
  2315. for i=0,1,rand1 do
  2316. wait()
  2317. CF=CF*cf(0,math.random()/2,0)
  2318. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2319. Part.CFrame=CF*euler(Numbb,0,0)
  2320. Part.Transparency=i
  2321. Numbb=Numbb+randnumb
  2322. end
  2323. Part.Parent=nil
  2324. end),prt,CF,Numbb,randnumb)
  2325. end
  2326.  
  2327. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2328. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2329. prt.Anchored=true
  2330. prt.CFrame=cframe
  2331. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2332. game:GetService("Debris"):AddItem(prt,5)
  2333. coroutine.resume(coroutine.create(function(Part,Mesh)
  2334. for i=0,1,delay do
  2335. wait()
  2336. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2337. Part.Transparency=i
  2338. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2339. end
  2340. Part.Parent=nil
  2341. end),prt,msh)
  2342. end
  2343.  
  2344. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2345. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2346. prt.Anchored=true
  2347. prt.CFrame=cframe
  2348. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2349. game:GetService("Debris"):AddItem(prt,2)
  2350. coroutine.resume(coroutine.create(function(Part,Mesh)
  2351. for i=0,1,delay do
  2352. wait()
  2353. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2354. Part.Transparency=i
  2355. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2356. end
  2357. Part.Parent=nil
  2358. end),prt,msh)
  2359. end
  2360.  
  2361. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2362. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2363. prt.Anchored=true
  2364. prt.CFrame=cframe*cf(x,y,z)
  2365. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2366. game:GetService("Debris"):AddItem(prt,5)
  2367. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2368. local num=math.random()
  2369. local num2=math.random(-3,2)+math.random()
  2370. local numm=0
  2371. for i=0,1,delay*2 do
  2372. swait()
  2373. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2374. Part.Transparency=i
  2375. numm=numm+0.01
  2376. end
  2377. Part.Parent=nil
  2378. Mesh.Parent=nil
  2379. end),prt,msh,x,y,z)
  2380. end
  2381.  
  2382. function dmgstart(dmg,what)
  2383. hitcon = what.Touched:connect(function(hit)
  2384. local hum = hit.Parent:FindFirstChild("Humanoid")
  2385. if hum and not hum:IsDescendantOf(Character) then
  2386. hum:TakeDamage(dmg)
  2387. end
  2388. end)
  2389. end
  2390.  
  2391. function dmgstop()
  2392. hitcon:disconnect()
  2393. end
  2394.  
  2395. function Cloak()
  2396. Face.Parent=nil
  2397. cloaked=true
  2398. for _,v in pairs(Torso.Parent:children()) do
  2399. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2400. coroutine.resume(coroutine.create(function()
  2401. for i=0,1,0.2 do
  2402. wait()
  2403. v.Transparency=i
  2404. end
  2405. v.Transparency=1
  2406. end))
  2407. end
  2408. if v.className=="Hat" then
  2409. hatp=v.Handle
  2410. coroutine.resume(coroutine.create(function(derp)
  2411. for i=0,1,0.2 do
  2412. wait()
  2413. derp.Transparency=i
  2414. end
  2415. derp.Transparency=1
  2416. end),hatp)
  2417. end
  2418. end
  2419. for _,v in pairs(m:children()) do
  2420. if v.className=="Part" then
  2421. coroutine.resume(coroutine.create(function()
  2422. for i=0,1,0.2 do
  2423. wait()
  2424. v.Transparency=i
  2425. end
  2426. v.Transparency=1
  2427. end))
  2428. end
  2429. end
  2430. end
  2431.  
  2432. function UnCloak()
  2433. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2434. Face.Parent=Head
  2435. cloaked=false
  2436. for _,v in pairs(Torso.Parent:children()) do
  2437. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2438. coroutine.resume(coroutine.create(function()
  2439. for i=0,1,0.1 do
  2440. wait()
  2441. v.Transparency=v.Transparency-0.1
  2442. end
  2443. v.Transparency=0
  2444. end))
  2445. end
  2446. if v.className=="Hat" then
  2447. hatp=v.Handle
  2448. coroutine.resume(coroutine.create(function(derp)
  2449. for i=0,1,0.1 do
  2450. wait()
  2451. derp.Transparency=derp.Transparency-0.1
  2452. end
  2453. derp.Transparency=0
  2454. end),hatp)
  2455. end
  2456. end
  2457. for _,v in pairs(m:children()) do
  2458. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2459. coroutine.resume(coroutine.create(function()
  2460. for i=0,1,0.1 do
  2461. wait()
  2462. v.Transparency=v.Transparency-0.1
  2463. end
  2464. v.Transparency=0
  2465. end))
  2466. v.Transparency=0
  2467. end
  2468. end
  2469. end
  2470.  
  2471. local origcolor = BrickColor.new("Pastel light blue")
  2472. ---- This section of explosions.
  2473.  
  2474. ----
  2475.  
  2476.  
  2477. function ring(type,pos,scale,value)
  2478. local type = type
  2479. local rng = Instance.new("Part", char)
  2480. rng.Anchored = true
  2481. rng.BrickColor = origcolor
  2482. rng.CanCollide = false
  2483. rng.FormFactor = 3
  2484. rng.Name = "Ring"
  2485. rng.Size = Vector3.new(1, 1, 1)
  2486. rng.Transparency = 0
  2487. rng.TopSurface = 0
  2488. rng.BottomSurface = 0
  2489. rng.CFrame = pos
  2490. local rngm = Instance.new("SpecialMesh", rng)
  2491. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2492. rngm.Scale = scale
  2493. local scaler2 = 1
  2494. if type == "Add" then
  2495. scaler2 = 1*value
  2496. elseif type == "Divide" then
  2497. scaler2 = 1/value
  2498. end
  2499. coroutine.resume(coroutine.create(function()
  2500. for i = 0,10,0.1 do
  2501. swait()
  2502. if type == "Add" then
  2503. scaler2 = scaler2 - 0.01*value
  2504. elseif type == "Divide" then
  2505. scaler2 = scaler2 - 0.01/value
  2506. end
  2507. rng.Transparency = rng.Transparency + 0.01
  2508. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2509. end
  2510. rng:Destroy()
  2511. end))
  2512. end
  2513.  
  2514.  
  2515. function wave(type,pos,scale,value)
  2516. local type = type
  2517. local rng = Instance.new("Part", char)
  2518. rng.Anchored = true
  2519. rng.BrickColor = origcolor
  2520. rng.CanCollide = false
  2521. rng.FormFactor = 3
  2522. rng.Name = "Ring"
  2523. rng.Size = Vector3.new(1, 1, 1)
  2524. rng.Transparency = 0
  2525. rng.TopSurface = 0
  2526. rng.BottomSurface = 0
  2527. rng.CFrame = pos
  2528. local rngm = Instance.new("SpecialMesh", rng)
  2529. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2530. rngm.Scale = scale
  2531. local scaler2 = 1
  2532. if type == "Add" then
  2533. scaler2 = 1*value
  2534. elseif type == "Divide" then
  2535. scaler2 = 1/value
  2536. end
  2537. coroutine.resume(coroutine.create(function()
  2538. for i = 0,10,0.1 do
  2539. swait()
  2540. if type == "Add" then
  2541. scaler2 = scaler2 - 0.01*value
  2542. elseif type == "Divide" then
  2543. scaler2 = scaler2 - 0.01/value
  2544. end
  2545. rng.Transparency = rng.Transparency + 0.01
  2546. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2547. end
  2548. rng:Destroy()
  2549. end))
  2550. end
  2551.  
  2552. function wind(type,pos,scale,value,speed)
  2553. local type = type
  2554. local rng = Instance.new("Part", char)
  2555. rng.Anchored = true
  2556. rng.BrickColor = origcolor
  2557. rng.CanCollide = false
  2558. rng.FormFactor = 3
  2559. rng.Name = "Ring"
  2560. rng.Size = Vector3.new(1, 1, 1)
  2561. rng.Transparency = 0
  2562. rng.TopSurface = 0
  2563. rng.BottomSurface = 0
  2564. rng.CFrame = pos
  2565. local rngm = Instance.new("SpecialMesh", rng)
  2566. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2567. rngm.Scale = scale
  2568. local scaler2 = 1
  2569. if type == "Add" then
  2570. scaler2 = 1*value
  2571. elseif type == "Divide" then
  2572. scaler2 = 1/value
  2573. end
  2574. coroutine.resume(coroutine.create(function()
  2575. for i = 0,10,0.1 do
  2576. swait()
  2577. if type == "Add" then
  2578. scaler2 = scaler2 - 0.01*value
  2579. elseif type == "Divide" then
  2580. scaler2 = scaler2 - 0.01/value
  2581. end
  2582. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2583. rng.Transparency = rng.Transparency + 0.01
  2584. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2585. end
  2586. rng:Destroy()
  2587. end))
  2588. end
  2589.  
  2590. function groundwind(type,pos,scale,value,speed)
  2591. local type = type
  2592. local rng = Instance.new("Part", char)
  2593. rng.Anchored = true
  2594. rng.BrickColor = origcolor
  2595. rng.CanCollide = false
  2596. rng.FormFactor = 3
  2597. rng.Name = "Ring"
  2598. rng.Size = Vector3.new(1, 1, 1)
  2599. rng.Transparency = 0
  2600. rng.TopSurface = 0
  2601. rng.BottomSurface = 0
  2602. rng.CFrame = pos
  2603. local rngm = Instance.new("SpecialMesh", rng)
  2604. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2605. rngm.Scale = scale
  2606. local scaler2 = 1
  2607. if type == "Add" then
  2608. scaler2 = 1*value
  2609. elseif type == "Divide" then
  2610. scaler2 = 1/value
  2611. end
  2612. coroutine.resume(coroutine.create(function()
  2613. for i = 0,10,0.1 do
  2614. swait()
  2615. if type == "Add" then
  2616. scaler2 = scaler2 - 0.01*value
  2617. elseif type == "Divide" then
  2618. scaler2 = scaler2 - 0.01/value
  2619. end
  2620. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2621. rng.Transparency = rng.Transparency + 0.01
  2622. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2623. end
  2624. rng:Destroy()
  2625. end))
  2626. end
  2627.  
  2628. function CameraManager()
  2629. if TwoD and not CamInterrupt then
  2630. if Humanoid.Health > 0 then
  2631. Camera.CameraSubject = Humanoid
  2632. Camera.CameraType = "Scriptable"
  2633. Humanoid.AutoRotate = false
  2634. if Booleans.GyroUse then
  2635. Directer.MaxTorque = Vec3(0, huge, 0)
  2636. else
  2637. Directer.MaxTorque = Vec3(0, 0, 0)
  2638. end
  2639. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2640. if Booleans.CamFollow then
  2641. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2642. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2643. else
  2644. CPart.Position = RootPart.Position
  2645. end
  2646. else
  2647. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2648. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2649. end
  2650. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2651. else
  2652. Camera.CameraSubject = Humanoid
  2653. Camera.CameraType = "Custom"
  2654. Controller.Disabled = false
  2655. end
  2656. end
  2657. end
  2658.  
  2659. function ring(type,pos,scale,value)
  2660. local type = type
  2661. local rng = Instance.new("Part", char)
  2662. rng.Anchored = true
  2663. rng.BrickColor = origcolor
  2664. rng.CanCollide = false
  2665. rng.FormFactor = 3
  2666. rng.Name = "Ring"
  2667. rng.Size = Vector3.new(1, 1, 1)
  2668. rng.Transparency = 0
  2669. rng.TopSurface = 0
  2670. rng.BottomSurface = 0
  2671. rng.CFrame = pos
  2672. local rngm = Instance.new("SpecialMesh", rng)
  2673. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2674. rngm.Scale = scale
  2675. local scaler2 = 1
  2676. if type == "Add" then
  2677. scaler2 = 1*value
  2678. elseif type == "Divide" then
  2679. scaler2 = 1/value
  2680. end
  2681. coroutine.resume(coroutine.create(function()
  2682. for i = 0,10,0.1 do
  2683. swait()
  2684. if type == "Add" then
  2685. scaler2 = scaler2 - 0.01*value
  2686. elseif type == "Divide" then
  2687. scaler2 = scaler2 - 0.01/value
  2688. end
  2689. rng.Transparency = rng.Transparency + 0.01
  2690. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2691. end
  2692. rng:Destroy()
  2693. end))
  2694. end
  2695.  
  2696.  
  2697. function wave(type,pos,scale,value)
  2698. local type = type
  2699. local rng = Instance.new("Part", char)
  2700. rng.Anchored = true
  2701. rng.BrickColor = origcolor
  2702. rng.CanCollide = false
  2703. rng.FormFactor = 3
  2704. rng.Name = "Ring"
  2705. rng.Size = Vector3.new(1, 1, 1)
  2706. rng.Transparency = 0
  2707. rng.TopSurface = 0
  2708. rng.BottomSurface = 0
  2709. rng.CFrame = pos
  2710. local rngm = Instance.new("SpecialMesh", rng)
  2711. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2712. rngm.Scale = scale
  2713. local scaler2 = 1
  2714. if type == "Add" then
  2715. scaler2 = 1*value
  2716. elseif type == "Divide" then
  2717. scaler2 = 1/value
  2718. end
  2719. coroutine.resume(coroutine.create(function()
  2720. for i = 0,10,0.1 do
  2721. swait()
  2722. if type == "Add" then
  2723. scaler2 = scaler2 - 0.01*value
  2724. elseif type == "Divide" then
  2725. scaler2 = scaler2 - 0.01/value
  2726. end
  2727. rng.Transparency = rng.Transparency + 0.01
  2728. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2729. end
  2730. rng:Destroy()
  2731. end))
  2732. end
  2733.  
  2734. function sphere(bonuspeed,type,pos,scale,value,color)
  2735. local type = type
  2736. local rng = Instance.new("Part", char)
  2737. rng.Anchored = true
  2738. if ModeOfGlitch ~= 9 then
  2739. rng.BrickColor = color
  2740. elseif ModeOfGlitch == 9 then
  2741. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2742. end
  2743. rng.CanCollide = false
  2744. rng.FormFactor = 3
  2745. rng.Name = "Ring"
  2746. rng.Material = "Neon"
  2747. rng.Size = Vector3.new(1, 1, 1)
  2748. rng.Transparency = 0
  2749. rng.TopSurface = 0
  2750. rng.BottomSurface = 0
  2751. rng.CFrame = pos
  2752. local rngm = Instance.new("SpecialMesh", rng)
  2753. rngm.MeshType = "Sphere"
  2754. rngm.Scale = scale
  2755. if rainbowmode == true then
  2756. rng.Color = Color3.new(r/255,g/255,b/255)
  2757. end
  2758. if ModeOfGlitch == 9 then
  2759. coroutine.resume(coroutine.create(function()
  2760. while true do
  2761. swait()
  2762. if rng.Parent ~= nil then
  2763. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2764. else
  2765. break
  2766. end
  2767. end
  2768. end))
  2769. end
  2770. local scaler2 = 1
  2771. if type == "Add" then
  2772. scaler2 = 1*value
  2773. elseif type == "Divide" then
  2774. scaler2 = 1/value
  2775. end
  2776. coroutine.resume(coroutine.create(function()
  2777. for i = 0,10/bonuspeed,0.1 do
  2778. swait()
  2779. if rainbowmode == true then
  2780. rng.Color = Color3.new(r/255,g/255,b/255)
  2781. end
  2782. if type == "Add" then
  2783. scaler2 = scaler2 - 0.01*value/bonuspeed
  2784. elseif type == "Divide" then
  2785. scaler2 = scaler2 - 0.01/value*bonuspeed
  2786. end
  2787. if chaosmode == true then
  2788. rng.BrickColor = BrickColor.random()
  2789. end
  2790. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2791. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2792. end
  2793. rng:Destroy()
  2794. end))
  2795. end
  2796.  
  2797. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2798. local type = type
  2799. local rng = Instance.new("Part", char)
  2800. rng.Anchored = true
  2801. if ModeOfGlitch ~= 9 then
  2802. rng.BrickColor = color
  2803. elseif ModeOfGlitch == 9 then
  2804. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2805. end
  2806. rng.CanCollide = false
  2807. rng.FormFactor = 3
  2808. rng.Name = "Ring"
  2809. rng.Material = "Neon"
  2810. rng.Size = Vector3.new(1, 1, 1)
  2811. rng.Transparency = 0
  2812. rng.TopSurface = 0
  2813. rng.BottomSurface = 0
  2814. rng.CFrame = pos
  2815. local rngm = Instance.new("SpecialMesh", rng)
  2816. rngm.MeshType = "Sphere"
  2817. rngm.Scale = scale
  2818. local scaler2 = 1
  2819. local scaler2b = 1
  2820. local scaler2c = 1
  2821. if type == "Add" then
  2822. scaler2 = 1*value
  2823. scaler2b = 1*value2
  2824. scaler2c = 1*value3
  2825. elseif type == "Divide" then
  2826. scaler2 = 1/value
  2827. scaler2b = 1/value2
  2828. scaler2c = 1/value3
  2829. end
  2830. if ModeOfGlitch == 9 then
  2831. coroutine.resume(coroutine.create(function()
  2832. while true do
  2833. swait()
  2834. if rng.Parent ~= nil then
  2835. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2836. else
  2837. break
  2838. end
  2839. end
  2840. end))
  2841. end
  2842. coroutine.resume(coroutine.create(function()
  2843. for i = 0,10/bonuspeed,0.1 do
  2844. swait()
  2845. if type == "Add" then
  2846. scaler2 = scaler2 - 0.01*value/bonuspeed
  2847. scaler2b = scaler2b - 0.01*value/bonuspeed
  2848. scaler2c = scaler2c - 0.01*value/bonuspeed
  2849. elseif type == "Divide" then
  2850. scaler2 = scaler2 - 0.01/value*bonuspeed
  2851. scaler2b = scaler2b - 0.01/value*bonuspeed
  2852. scaler2c = scaler2c - 0.01/value*bonuspeed
  2853. end
  2854. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2855. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2856. end
  2857. rng:Destroy()
  2858. end))
  2859. end
  2860.  
  2861. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2862. local type = type
  2863. local rotenable = rotatingop
  2864. local rng = Instance.new("Part", char)
  2865. rng.Anchored = true
  2866. rng.BrickColor = color
  2867. rng.CanCollide = false
  2868. rng.FormFactor = 3
  2869. rng.Name = "Ring"
  2870. rng.Material = "Neon"
  2871. rng.Size = Vector3.new(1, 1, 1)
  2872. rng.Transparency = 0
  2873. if typeoftrans == "In" then
  2874. rng.Transparency = 1
  2875. end
  2876. rng.TopSurface = 0
  2877. rng.BottomSurface = 0
  2878. rng.CFrame = pos
  2879. local rngm = Instance.new("SpecialMesh", rng)
  2880. rngm.MeshType = "FileMesh"
  2881. if typeofshape == "Normal" then
  2882. rngm.MeshId = "rbxassetid://662586858"
  2883. elseif typeofshape == "Round" then
  2884. rngm.MeshId = "rbxassetid://662585058"
  2885. end
  2886. rngm.Scale = scale
  2887. local scaler2 = 1/10
  2888. if type == "Add" then
  2889. scaler2 = 1*value/10
  2890. elseif type == "Divide" then
  2891. scaler2 = 1/value/10
  2892. end
  2893. local randomrot = math.random(1,2)
  2894. coroutine.resume(coroutine.create(function()
  2895. for i = 0,10/bonuspeed,0.1 do
  2896. swait()
  2897. if type == "Add" then
  2898. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2899. elseif type == "Divide" then
  2900. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2901. end
  2902. if rotenable == true then
  2903. if randomrot == 1 then
  2904. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2905. elseif randomrot == 2 then
  2906. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2907. end
  2908. end
  2909. if typeoftrans == "Out" then
  2910. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2911. elseif typeoftrans == "In" then
  2912. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2913. end
  2914. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2915. end
  2916. rng:Destroy()
  2917. end))
  2918. end
  2919.  
  2920. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2921. local type = type
  2922. local rng = Instance.new("Part", char)
  2923. rng.Anchored = true
  2924. rng.BrickColor = color
  2925. rng.CanCollide = false
  2926. rng.FormFactor = 3
  2927. rng.Name = "Ring"
  2928. rng.Material = "Neon"
  2929. rng.Size = Vector3.new(1, 1, 1)
  2930. rng.Transparency = 0
  2931. rng.TopSurface = 0
  2932. rng.BottomSurface = 0
  2933. rng.CFrame = pos
  2934. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2935. local rngm = Instance.new("SpecialMesh", rng)
  2936. rngm.MeshType = "Brick"
  2937. rngm.Scale = vt(x1,y1,z1)
  2938. if rainbowmode == true then
  2939. rng.Color = Color3.new(r/255,g/255,b/255)
  2940. end
  2941. local scaler2 = 1
  2942. local speeder = FastSpeed/10
  2943. if type == "Add" then
  2944. scaler2 = 1*value
  2945. elseif type == "Divide" then
  2946. scaler2 = 1/value
  2947. end
  2948. coroutine.resume(coroutine.create(function()
  2949. for i = 0,10/bonuspeed,0.1 do
  2950. swait()
  2951. if rainbowmode == true then
  2952. rng.Color = Color3.new(r/255,g/255,b/255)
  2953. end
  2954. if type == "Add" then
  2955. scaler2 = scaler2 - 0.01*value/bonuspeed
  2956. elseif type == "Divide" then
  2957. scaler2 = scaler2 - 0.01/value*bonuspeed
  2958. end
  2959. if chaosmode == true then
  2960. rng.BrickColor = BrickColor.random()
  2961. end
  2962. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2963. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2964. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2965. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2966. end
  2967. rng:Destroy()
  2968. end))
  2969. end
  2970.  
  2971. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2972. local type = type
  2973. local rng = Instance.new("Part", char)
  2974. rng.Anchored = true
  2975. rng.BrickColor = color
  2976. rng.CanCollide = false
  2977. rng.FormFactor = 3
  2978. rng.Name = "Ring"
  2979. rng.Material = "Neon"
  2980. rng.Size = Vector3.new(1, 1, 1)
  2981. rng.Transparency = 0
  2982. rng.TopSurface = 0
  2983. rng.BottomSurface = 0
  2984. rng.CFrame = pos
  2985. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2986. local rngm = Instance.new("SpecialMesh", rng)
  2987. rngm.MeshType = "Brick"
  2988. rngm.Scale = vt(x1,y1,z1)
  2989. if rainbowmode == true then
  2990. rng.Color = Color3.new(r/255,g/255,b/255)
  2991. end
  2992. local scaler2 = 1
  2993. local speeder = FastSpeed/10
  2994. if type == "Add" then
  2995. scaler2 = 1*value
  2996. elseif type == "Divide" then
  2997. scaler2 = 1/value
  2998. end
  2999. coroutine.resume(coroutine.create(function()
  3000. for i = 0,10/bonuspeed,0.1 do
  3001. swait()
  3002. if rainbowmode == true then
  3003. rng.Color = Color3.new(r/255,g/255,b/255)
  3004. end
  3005. if type == "Add" then
  3006. scaler2 = scaler2 - 0.01*value/bonuspeed
  3007. elseif type == "Divide" then
  3008. scaler2 = scaler2 - 0.01/value*bonuspeed
  3009. end
  3010. if chaosmode == true then
  3011. rng.BrickColor = BrickColor.random()
  3012. end
  3013. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3014. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3015. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3016. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3017. end
  3018. rng:Destroy()
  3019. end))
  3020. end
  3021.  
  3022. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3023. local type = type
  3024. local rng = Instance.new("Part", char)
  3025. rng.Anchored = true
  3026. rng.BrickColor = color
  3027. rng.CanCollide = false
  3028. rng.FormFactor = 3
  3029. rng.Name = "Ring"
  3030. rng.Material = "Neon"
  3031. rng.Size = Vector3.new(1, 1, 1)
  3032. rng.Transparency = 0
  3033. rng.TopSurface = 0
  3034. rng.BottomSurface = 0
  3035. rng.CFrame = pos
  3036. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3037. local rngm = Instance.new("SpecialMesh", rng)
  3038. rngm.MeshType = "Brick"
  3039. rngm.Scale = vt(x1,y1,z1)
  3040. if rainbowmode == true then
  3041. rng.Color = Color3.new(r/255,g/255,b/255)
  3042. end
  3043. local scaler2 = 0
  3044. local speeder = FastSpeed/10
  3045. if type == "Add" then
  3046. scaler2 = 1*value
  3047. elseif type == "Divide" then
  3048. scaler2 = 1/value
  3049. end
  3050. coroutine.resume(coroutine.create(function()
  3051. for i = 0,10/bonuspeed,0.1 do
  3052. swait()
  3053. if rainbowmode == true then
  3054. rng.Color = Color3.new(r/255,g/255,b/255)
  3055. end
  3056. if type == "Add" then
  3057. scaler2 = scaler2 - 0.01*value/bonuspeed
  3058. elseif type == "Divide" then
  3059. scaler2 = scaler2 - 0.01/value*bonuspeed
  3060. end
  3061. if chaosmode == true then
  3062. rng.BrickColor = BrickColor.random()
  3063. end
  3064. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3065. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3066. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3067. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3068. end
  3069. rng:Destroy()
  3070. end))
  3071. end
  3072.  
  3073. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3074. local type = type
  3075. local rng = Instance.new("Part", char)
  3076. rng.Anchored = true
  3077. rng.BrickColor = color
  3078. rng.Color = color3
  3079. rng.CanCollide = false
  3080. rng.FormFactor = 3
  3081. rng.Name = "Ring"
  3082. rng.Material = "Neon"
  3083. rng.Size = Vector3.new(1, 1, 1)
  3084. rng.Transparency = 0
  3085. rng.TopSurface = 0
  3086. rng.BottomSurface = 0
  3087. rng.CFrame = pos
  3088. local rngm = Instance.new("SpecialMesh", rng)
  3089. rngm.MeshType = "Brick"
  3090. rngm.Scale = scale
  3091. local scaler2 = 1
  3092. local scaler2b = 1
  3093. local scaler2c = 1
  3094. if type == "Add" then
  3095. scaler2 = 1*value
  3096. scaler2b = 1*value2
  3097. scaler2c = 1*value3
  3098. elseif type == "Divide" then
  3099. scaler2 = 1/value
  3100. scaler2b = 1/value2
  3101. scaler2c = 1/value3
  3102. end
  3103. coroutine.resume(coroutine.create(function()
  3104. for i = 0,10/bonuspeed,0.1 do
  3105. swait()
  3106. if type == "Add" then
  3107. scaler2 = scaler2 - 0.01*value/bonuspeed
  3108. scaler2b = scaler2b - 0.01*value/bonuspeed
  3109. scaler2c = scaler2c - 0.01*value/bonuspeed
  3110. elseif type == "Divide" then
  3111. scaler2 = scaler2 - 0.01/value*bonuspeed
  3112. scaler2b = scaler2b - 0.01/value*bonuspeed
  3113. scaler2c = scaler2c - 0.01/value*bonuspeed
  3114. end
  3115. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3116. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3117. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3118. end
  3119. rng:Destroy()
  3120. end))
  3121. end
  3122.  
  3123. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3124. local type = type
  3125. local rng = Instance.new("Part", char)
  3126. rng.Anchored = true
  3127. if ModeOfGlitch ~= 9 then
  3128. rng.BrickColor = color
  3129. elseif ModeOfGlitch == 9 then
  3130. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3131. end
  3132. rng.CanCollide = false
  3133. rng.FormFactor = 3
  3134. rng.Name = "Ring"
  3135. rng.Material = "Neon"
  3136. rng.Size = Vector3.new(1, 1, 1)
  3137. rng.Transparency = 0
  3138. rng.TopSurface = 0
  3139. rng.BottomSurface = 0
  3140. rng.CFrame = pos
  3141. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3142. local rngm = Instance.new("SpecialMesh", rng)
  3143. rngm.MeshType = "Sphere"
  3144. rngm.Scale = vt(x1,y1,z1)
  3145. if rainbowmode == true then
  3146. rng.Color = Color3.new(r/255,g/255,b/255)
  3147. end
  3148. if ModeOfGlitch == 9 then
  3149. coroutine.resume(coroutine.create(function()
  3150. while true do
  3151. swait()
  3152. if rng.Parent ~= nil then
  3153. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3154. else
  3155. break
  3156. end
  3157. end
  3158. end))
  3159. end
  3160. local scaler2 = 1
  3161. local speeder = FastSpeed
  3162. if type == "Add" then
  3163. scaler2 = 1*value
  3164. elseif type == "Divide" then
  3165. scaler2 = 1/value
  3166. end
  3167. coroutine.resume(coroutine.create(function()
  3168. for i = 0,10/bonuspeed,0.1 do
  3169. swait()
  3170. if rainbowmode == true then
  3171. rng.Color = Color3.new(r/255,g/255,b/255)
  3172. end
  3173. if type == "Add" then
  3174. scaler2 = scaler2 - 0.01*value/bonuspeed
  3175. elseif type == "Divide" then
  3176. scaler2 = scaler2 - 0.01/value*bonuspeed
  3177. end
  3178. if chaosmode == true then
  3179. rng.BrickColor = BrickColor.random()
  3180. end
  3181. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3182. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3183. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3184. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3185. end
  3186. rng:Destroy()
  3187. end))
  3188. end
  3189.  
  3190.  
  3191. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3192. local type = type
  3193. local rng = Instance.new("Part", char)
  3194. rng.Anchored = true
  3195. if ModeOfGlitch ~= 9 then
  3196. rng.BrickColor = color
  3197. elseif ModeOfGlitch == 9 then
  3198. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3199. end
  3200. rng.CanCollide = false
  3201. rng.FormFactor = 3
  3202. rng.Name = "Ring"
  3203. rng.Material = "Neon"
  3204. rng.Size = Vector3.new(1, 1, 1)
  3205. rng.Transparency = 1
  3206. rng.TopSurface = 0
  3207. rng.BottomSurface = 0
  3208. rng.CFrame = pos
  3209. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3210. local rngm = Instance.new("SpecialMesh", rng)
  3211. rngm.MeshType = "Sphere"
  3212. rngm.Scale = vt(x1,y1,z1)
  3213. if rainbowmode == true then
  3214. rng.Color = Color3.new(r/255,g/255,b/255)
  3215. end
  3216. if ModeOfGlitch == 9 then
  3217. coroutine.resume(coroutine.create(function()
  3218. while true do
  3219. swait()
  3220. if rng.Parent ~= nil then
  3221. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3222. else
  3223. break
  3224. end
  3225. end
  3226. end))
  3227. end
  3228. local scaler2 = 1
  3229. local speeder = FastSpeed
  3230. if type == "Add" then
  3231. scaler2 = 1*value
  3232. elseif type == "Divide" then
  3233. scaler2 = 1/value
  3234. end
  3235. coroutine.resume(coroutine.create(function()
  3236. for i = 0,10/bonuspeed,0.1 do
  3237. swait()
  3238. if rainbowmode == true then
  3239. rng.Color = Color3.new(r/255,g/255,b/255)
  3240. end
  3241. if type == "Add" then
  3242. scaler2 = scaler2 - 0.01*value/bonuspeed
  3243. elseif type == "Divide" then
  3244. scaler2 = scaler2 - 0.01/value*bonuspeed
  3245. end
  3246. if chaosmode == true then
  3247. rng.BrickColor = BrickColor.random()
  3248. end
  3249. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3250. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3251. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3252. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3253. end
  3254. rng:Destroy()
  3255. end))
  3256. end
  3257.  
  3258. function dmg(dude)
  3259. if dude.Name ~= Character then
  3260. local keptcolor = MAINRUINCOLOR
  3261. local bgf = Instance.new("BodyGyro",dude.Head)
  3262. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3263. --[[local val = Instance.new("BoolValue",dude)
  3264. val.Name = "IsHit"]]--
  3265. local ds = coroutine.wrap(function()
  3266. dude:WaitForChild("Head"):BreakJoints()
  3267. for i, v in pairs(dude:GetChildren()) do
  3268. if v:IsA("Part") or v:IsA("MeshPart") then
  3269. v.Name = "DEMINISHED"
  3270. end
  3271. end
  3272. wait(0.5)
  3273. targetted = nil
  3274. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3275. coroutine.resume(coroutine.create(function()
  3276. for i, v in pairs(dude:GetChildren()) do
  3277. if v:IsA("Accessory") then
  3278. v:Destroy()
  3279. end
  3280. if v:IsA("Humanoid") then
  3281. v:Destroy()
  3282. end
  3283. if v:IsA("CharacterMesh") then
  3284. v:Destroy()
  3285. end
  3286. if v:IsA("Model") then
  3287. v:Destroy()
  3288. end
  3289. if v:IsA("Part") or v:IsA("MeshPart") then
  3290. for x, o in pairs(v:GetChildren()) do
  3291. if o:IsA("Decal") then
  3292. o:Destroy()
  3293. end
  3294. end
  3295. coroutine.resume(coroutine.create(function()
  3296. v.Material = "Neon"
  3297. v.CanCollide = false
  3298. v.Anchored = false
  3299. local bld = Instance.new("ParticleEmitter",v)
  3300. bld.LightEmission = 0.75
  3301. bld.Texture = "rbxassetid://363275192" ---284205403
  3302. bld.Color = ColorSequence.new(keptcolor.Color)
  3303. bld.Rate = 500
  3304. bld.Lifetime = NumberRange.new(1)
  3305. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3306. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3307. bld.Speed = NumberRange.new(2,5)
  3308. bld.VelocitySpread = 50000
  3309. bld.Rotation = NumberRange.new(-500,500)
  3310. bld.RotSpeed = NumberRange.new(-500,500)
  3311. local sbs = Instance.new("BodyPosition", v)
  3312. sbs.P = 3000
  3313. sbs.D = 1000
  3314. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3315. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3316. v.Color = keptcolor.Color
  3317. coroutine.resume(coroutine.create(function()
  3318. for i = 0, 49 do
  3319. swait(1)
  3320. v:BreakJoints()
  3321. v.Transparency = v.Transparency + 0.02
  3322. end
  3323. v:BreakJoints()
  3324. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3325. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3326. bld.Speed = NumberRange.new(10,25)
  3327. bld.Drag = 5
  3328. bld.Acceleration = vt(0,2,0)
  3329. wait(0.5)
  3330. bld.Enabled = false
  3331. wait(8)
  3332. v:Destroy()
  3333. dude:Destroy()
  3334. end))
  3335. end))
  3336. end
  3337. end
  3338. end))
  3339. end)
  3340. ds()
  3341. end
  3342. end
  3343.  
  3344.  
  3345. function FindNearestHead(Position, Distance, SinglePlayer)
  3346. if SinglePlayer then
  3347. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3348. end
  3349. local List = {}
  3350. for i, v in pairs(workspace:GetChildren()) do
  3351. if v:IsA("Model") then
  3352. if v:findFirstChild("Head") then
  3353. if v ~= Character then
  3354. if (v.Head.Position - Position).magnitude <= Distance then
  3355. table.insert(List, v)
  3356. end
  3357. end
  3358. end
  3359. end
  3360. end
  3361. return List
  3362. end
  3363.  
  3364. function FaceMouse()
  3365. Cam = workspace.CurrentCamera
  3366. return {
  3367. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3368. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3369. }
  3370. end
  3371.  
  3372. function FaceMouse2()
  3373. Cam = workspace.CurrentCamera
  3374. return {
  3375. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3376. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3377. }
  3378. end
  3379.  
  3380. local ModeOfGlitch = 1
  3381. -- Functions are ready.
  3382. local storehumanoidWS = 16
  3383.  
  3384. function CorruptBlink()
  3385. for i = 0, 14 do
  3386. 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)
  3387. end
  3388. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3389. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3390. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3391. CameraEnshaking(2,10)
  3392. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3393. if v:FindFirstChild('Head') then
  3394. dmg(v)
  3395. end
  3396. end
  3397. for i = 0, 14 do
  3398. 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)
  3399. end
  3400. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3401. end
  3402. function PureBomb()
  3403. attack = true
  3404. hum.WalkSpeed = 0
  3405. local orb = Instance.new("Part", char)
  3406. orb.Anchored = true
  3407. orb.BrickColor = BrickColor.new("Toothpaste")
  3408. orb.CanCollide = false
  3409. orb.FormFactor = 3
  3410. orb.Name = "Ring"
  3411. orb.Material = "Neon"
  3412. orb.Size = Vector3.new(1, 1, 1)
  3413. orb.Transparency = 0
  3414. orb.TopSurface = 0
  3415. orb.BottomSurface = 0
  3416. local orbm = Instance.new("SpecialMesh", orb)
  3417. orbm.MeshType = "Sphere"
  3418. orbm.Name = "SizeMesh"
  3419. orbm.Scale = vt(0,0,0)
  3420. local scaled = 0.1
  3421. local posid = 0
  3422. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3423. for i = 0, 5, 0.1 do
  3424. swait()
  3425. scaled = scaled - 0.001
  3426. posid = posid - scaled
  3427. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3428. local scaled = 0.1
  3429. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3430. 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)
  3431. 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)
  3432. 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)
  3433. 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)
  3434. 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)
  3435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3437. 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)
  3438. end
  3439. for i = 0, 2, 0.1 do
  3440. swait()
  3441. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3442. 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)
  3443. 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)
  3444. 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)
  3445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3447. 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)
  3448. end
  3449. coroutine.resume(coroutine.create(function()
  3450. orb.Anchored = false
  3451. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3452. local a = Instance.new("Part",workspace)
  3453. a.Name = "Direction"
  3454. a.Anchored = true
  3455. a.BrickColor = bc("Bright red")
  3456. a.Material = "Neon"
  3457. a.Transparency = 1
  3458. a.CanCollide = false
  3459. local ray = Ray.new(
  3460. orb.CFrame.p, -- origin
  3461. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3462. )
  3463. local ignore = orb
  3464. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3465. a.BottomSurface = 10
  3466. a.TopSurface = 10
  3467. local distance = (orb.CFrame.p - position).magnitude
  3468. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3469. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3470. orb.CFrame = a.CFrame
  3471. a:Destroy()
  3472. local bv = Instance.new("BodyVelocity")
  3473. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3474. bv.velocity = orb.CFrame.lookVector*125
  3475. bv.Parent = orb
  3476. local hitted = false
  3477. game:GetService("Debris"):AddItem(orb, 15)
  3478. wait()
  3479. local hit =orb.Touched:connect(function(hit)
  3480. if hitted == false then
  3481. hitted = true
  3482. CameraEnshaking(10,2.5)
  3483. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3484. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3485. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3486. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3487. for i = 0, 49 do
  3488. 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)
  3489. end
  3490. for i = 0, 9 do
  3491. 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)
  3492. 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)
  3493. end
  3494. orb.Anchored = true
  3495. orb.Transparency = 1
  3496. wait(8)
  3497. orb:Destroy()
  3498. end
  3499. end)
  3500. end))
  3501. for i = 0, 1, 0.1 do
  3502. swait()
  3503. 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)
  3504. 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)
  3505. 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)
  3506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3508. 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)
  3509. end
  3510. hum.WalkSpeed = storehumanoidWS
  3511. attack = false
  3512. end
  3513.  
  3514. function BanishingOrb()
  3515. attack = true
  3516. hum.WalkSpeed = 0
  3517. local radm = math.random(1,3)
  3518. if radm == 1 then
  3519. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3520. elseif radm == 2 then
  3521. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3522. elseif radm == 3 then
  3523. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3524. end
  3525. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3526. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3527. local orb = Instance.new("Part", char)
  3528. orb.Anchored = true
  3529. orb.BrickColor = BrickColor.new("Lime green")
  3530. orb.CanCollide = false
  3531. orb.FormFactor = 3
  3532. orb.Name = "Ring"
  3533. orb.Material = "Neon"
  3534. orb.Size = Vector3.new(1, 1, 1)
  3535. orb.Transparency = 0
  3536. orb.TopSurface = 0
  3537. orb.BottomSurface = 0
  3538. local orbm = Instance.new("SpecialMesh", orb)
  3539. orbm.MeshType = "Sphere"
  3540. orbm.Name = "SizeMesh"
  3541. orbm.Scale = vt(0,0,0)
  3542. local scaled = 0.1
  3543. local posid = 0
  3544. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3545. for i = 0, 5, 0.1 do
  3546. swait()
  3547. scaled = scaled - 0.001
  3548. posid = posid - scaled
  3549. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3550. local scaled = 0.1
  3551. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3552. 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)
  3553. 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)
  3554. 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)
  3555. 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)
  3556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3557. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3558. 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)
  3559. end
  3560. for i = 0, 2, 0.1 do
  3561. swait()
  3562. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3563. 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)
  3564. 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)
  3565. 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)
  3566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3568. 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)
  3569. end
  3570. coroutine.resume(coroutine.create(function()
  3571. orb.Anchored = false
  3572. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3573. local a = Instance.new("Part",workspace)
  3574. a.Name = "Direction"
  3575. a.Anchored = true
  3576. a.BrickColor = bc("Lime green")
  3577. a.Material = "Neon"
  3578. a.Transparency = 1
  3579. a.CanCollide = false
  3580. local ray = Ray.new(
  3581. orb.CFrame.p, -- origin
  3582. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3583. )
  3584. local ignore = orb
  3585. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3586. a.BottomSurface = 10
  3587. a.TopSurface = 10
  3588. local distance = (orb.CFrame.p - position).magnitude
  3589. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3590. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3591. orb.CFrame = a.CFrame
  3592. a:Destroy()
  3593. local bv = Instance.new("BodyVelocity")
  3594. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3595. bv.velocity = orb.CFrame.lookVector*0
  3596. bv.Parent = orb
  3597. local hitted = false
  3598. local rate = 0
  3599. coroutine.resume(coroutine.create(function()
  3600. for i = 0, 24 do
  3601. wait(0.1)
  3602. rate = rate + 0.25
  3603. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3604. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3605. if v:FindFirstChild('Head') then
  3606. dmg(v)
  3607. end
  3608. end
  3609. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3610. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3611. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3612. end
  3613. orb.Anchored = true
  3614. orb.Transparency = 1
  3615. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3616. if v:FindFirstChild('Head') then
  3617. dmg(v)
  3618. end
  3619. end
  3620. local eff = Instance.new("ParticleEmitter",orb)
  3621. eff.Texture = "rbxassetid://296874871"
  3622. eff.LightEmission = 0.95
  3623. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3624. eff.Rate = 1000000000
  3625. eff.Lifetime = NumberRange.new(3)
  3626. 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)})
  3627. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3628. eff.Speed = NumberRange.new(30)
  3629. eff.Acceleration = vt(0,-15,0)
  3630. eff.Rotation = NumberRange.new(-500,500)
  3631. eff.VelocitySpread = 100000
  3632. eff.RotSpeed = NumberRange.new(-500,500)
  3633. coroutine.resume(coroutine.create(function()
  3634. wait(0.6)
  3635. eff.Enabled = false
  3636. end))
  3637. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3638. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3639. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3640. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3641. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3642. game:GetService("Debris"):AddItem(orb, 15)
  3643. end))
  3644. end))
  3645. for i = 0, 1, 0.1 do
  3646. swait()
  3647. 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)
  3648. 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)
  3649. 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)
  3650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3652. 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)
  3653. end
  3654. hum.WalkSpeed = storehumanoidWS
  3655. attack = false
  3656. end
  3657.  
  3658.  
  3659. function ChaosGroundStrike()
  3660. attack = true
  3661. for i = 0, 2, 0.1 do
  3662. swait()
  3663. 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)
  3664. 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)
  3665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3667. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3668. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3669. end
  3670. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3671. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3672. CameraEnshaking(4,12)
  3673. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3674. if v:FindFirstChild('Head') then
  3675. dmg(v)
  3676. end
  3677. end
  3678. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3679. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3680. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3681. for i = 0, 2, 0.1 do
  3682. swait()
  3683. 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)
  3684. 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)
  3685. 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)
  3686. 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)
  3687. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3688. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3690. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3691. end
  3692. attack = false
  3693. end
  3694.  
  3695.  
  3696.  
  3697. function Starfall()
  3698. attack = true
  3699. hum.WalkSpeed = 0
  3700. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3701. for i = 0, 5, 0.1 do
  3702. swait()
  3703. 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)
  3704. 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)
  3705. 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)
  3706. 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)
  3707. 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)
  3708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3709. 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)
  3710. 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)
  3711. end
  3712. local Overed = false
  3713. CameraEnshaking(2,20)
  3714. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3715. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3716. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3717. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3718. local orb = Instance.new("Part", char)
  3719. orb.Anchored = true
  3720. orb.BrickColor = BrickColor.new("Toothpaste")
  3721. orb.CanCollide = false
  3722. orb.FormFactor = 3
  3723. orb.Name = "Remenant"
  3724. orb.Material = "Neon"
  3725. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3726. orb.Size = Vector3.new(1, 1, 1)
  3727. orb.Transparency = 1
  3728. orb.TopSurface = 0
  3729. orb.BottomSurface = 0
  3730. hum.WalkSpeed = storehumanoidWS
  3731. coroutine.resume(coroutine.create(function()
  3732. for i = 0, 9 do
  3733. swait(10)
  3734. local lb = Instance.new("Part")
  3735. lb.Color = MAINRUINCOLOR.Color
  3736. lb.CanCollide = false
  3737. lb.Material = "Neon"
  3738. lb.Anchored = true
  3739. lb.TopSurface = 0
  3740. lb.BottomSurface = 0
  3741. lb.Transparency = 0
  3742. lb.Size = vt(1,1,1)
  3743. 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)))
  3744. lb.Anchored = false
  3745. lb.Parent = char
  3746. local thingery = Instance.new("SpecialMesh",lb)
  3747. thingery.MeshType = "Sphere"
  3748. thingery.Scale = vt(20,20,20)
  3749. game:GetService("Debris"):AddItem(lb, 10)
  3750. local bv = Instance.new("BodyVelocity")
  3751. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3752. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3753. bv.Parent = lb
  3754. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3755. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3756. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3757. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3758. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3759. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3760. local hitted = false
  3761. coroutine.resume(coroutine.create(function()
  3762. while true do
  3763. swait(1)
  3764. if lb.Parent ~= nil and hitted == false then
  3765. 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)
  3766. elseif lb.Parent == nil then
  3767. break
  3768. end
  3769. end
  3770. end))
  3771.  
  3772. game:GetService("Debris"):AddItem(a, 0.1)
  3773.  
  3774. coroutine.resume(coroutine.create(function()
  3775. swait(1)
  3776. lb.Touched:connect(function(hit)
  3777. if hitted == false then
  3778. hitted = true
  3779. lb.Transparency = 1
  3780. lb.Anchored = true
  3781. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3782. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3783. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3784. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3785. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3786. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3787. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3788. CameraEnshaking(1,5)
  3789. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3790. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3791. for i = 0, 9 do
  3792. 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)
  3793. end
  3794. for i = 0, 49 do
  3795. swait()
  3796. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3797. 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)
  3798. end
  3799. end
  3800. end)
  3801. end))
  3802. end
  3803. Overed = true
  3804. orb:Destroy()
  3805. end))
  3806.  
  3807. attack = false
  3808. end
  3809.  
  3810. function StarfallEX()
  3811. attack = true
  3812. hum.WalkSpeed = 0
  3813. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3814. for i = 0, 10, 0.1 do
  3815. swait()
  3816. 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)
  3817. 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)
  3818. 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)
  3819. 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)
  3820. 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)
  3821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3822. 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)
  3823. 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)
  3824. end
  3825. local Overed = false
  3826. CameraEnshaking(2,20)
  3827. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3828. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3829. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3830. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3831. local orb = Instance.new("Part", char)
  3832. orb.Anchored = true
  3833. orb.BrickColor = BrickColor.new("Toothpaste")
  3834. orb.CanCollide = false
  3835. orb.FormFactor = 3
  3836. orb.Name = "Remenant"
  3837. orb.Material = "Neon"
  3838. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3839. orb.Size = Vector3.new(1, 1, 1)
  3840. orb.Transparency = 1
  3841. orb.TopSurface = 0
  3842. orb.BottomSurface = 0
  3843. hum.WalkSpeed = storehumanoidWS
  3844. coroutine.resume(coroutine.create(function()
  3845. for i = 0, 4 do
  3846. swait(15)
  3847. local lb = Instance.new("Part")
  3848. lb.Color = MAINRUINCOLOR.Color
  3849. lb.CanCollide = false
  3850. lb.Material = "Neon"
  3851. lb.Anchored = true
  3852. lb.TopSurface = 0
  3853. lb.BottomSurface = 0
  3854. lb.Transparency = 0
  3855. lb.Size = vt(1,1,1)
  3856. 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)))
  3857. lb.Anchored = false
  3858. lb.Parent = char
  3859. local thingery = Instance.new("SpecialMesh",lb)
  3860. thingery.MeshType = "Sphere"
  3861. thingery.Scale = vt(50,50,50)
  3862. game:GetService("Debris"):AddItem(lb, 10)
  3863. local bv = Instance.new("BodyVelocity")
  3864. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3865. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3866. bv.Parent = lb
  3867. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3868. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3869. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3870. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3871. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3872. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3873. local hitted = false
  3874. coroutine.resume(coroutine.create(function()
  3875. while true do
  3876. swait(1)
  3877. if lb.Parent ~= nil and hitted == false then
  3878. 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)
  3879. elseif lb.Parent == nil then
  3880. break
  3881. end
  3882. end
  3883. end))
  3884.  
  3885. game:GetService("Debris"):AddItem(a, 0.1)
  3886.  
  3887. coroutine.resume(coroutine.create(function()
  3888. swait(1)
  3889. lb.Touched:connect(function(hit)
  3890. if hitted == false then
  3891. hitted = true
  3892. lb.Transparency = 1
  3893. lb.Anchored = true
  3894. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3895. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3896. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3897. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3898. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3899. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3900. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3901. CameraEnshaking(1,5)
  3902. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3903. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3904. for i = 0, 9 do
  3905. 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)
  3906. end
  3907. for i = 0, 99 do
  3908. swait()
  3909. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3910. 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)
  3911. end
  3912. end
  3913. end)
  3914. end))
  3915. end
  3916. Overed = true
  3917. orb:Destroy()
  3918. end))
  3919.  
  3920. attack = false
  3921. end
  3922.  
  3923. function DivineBlast()
  3924. attack = true
  3925. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3926. hum.WalkSpeed = 0
  3927. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3928. elocacenter.Anchored = true
  3929. elocacenter.CFrame = sorb.CFrame
  3930. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3931. eloca1.Anchored = true
  3932. eloca1.CFrame = elocacenter.CFrame
  3933. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3934. eloca2.Anchored = true
  3935. eloca2.CFrame = elocacenter.CFrame
  3936. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3937. eloca3.Anchored = true
  3938. eloca3.CFrame = elocacenter.CFrame
  3939. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3940. eloca4.Anchored = true
  3941. eloca4.CFrame = elocacenter.CFrame
  3942. local lookavec = 0
  3943. local speeds = 0
  3944. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3945. for i = 0, 3, 0.1 do
  3946. swait()
  3947. ---
  3948. lookavec = lookavec + 0.1
  3949. speeds = speeds + 10
  3950. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3951. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3952. 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)
  3953.  
  3954. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3955. 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)
  3956.  
  3957. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3958. 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)
  3959.  
  3960. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3961. 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)
  3962. ---
  3963. root.CFrame = FaceMouse()[1]
  3964. 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)
  3965. 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)
  3966. 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)
  3967. 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)
  3968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3969. 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)
  3970. end
  3971. for i = 0, 3, 0.1 do
  3972. swait()
  3973. ---
  3974. speeds = speeds + 10
  3975. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3976. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3977. 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)
  3978.  
  3979. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3980. 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)
  3981.  
  3982. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3983. 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)
  3984.  
  3985. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3986. 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)
  3987. ---
  3988. root.CFrame = FaceMouse()[1]
  3989. 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)
  3990. 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)
  3991. 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)
  3992. 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)
  3993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3994. 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)
  3995. end
  3996. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3997. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3998. for i = 0, 3, 0.1 do
  3999. swait()
  4000. ---
  4001. speeds = speeds + 10
  4002. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4003. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4004. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4005.  
  4006. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4007. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4008.  
  4009. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4010. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4011.  
  4012. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4013. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4014. ---
  4015. root.CFrame = FaceMouse()[1]
  4016. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4017. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4018. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4019. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4021. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4022. end
  4023. coroutine.resume(coroutine.create(function()
  4024. local a = Instance.new("Part",Character)
  4025. a.Name = "Direction"
  4026. a.Anchored = true
  4027. a.BrickColor = bc("White")
  4028. a.Material = "Neon"
  4029. a.Transparency = 0
  4030. a.Shape = "Cylinder"
  4031. a.CanCollide = false
  4032. local a2 = Instance.new("Part",Character)
  4033. a2.Name = "Direction"
  4034. a2.Anchored = true
  4035. a2.BrickColor = bc("Bright yellow")
  4036. a2.Material = "Neon"
  4037. a2.Transparency = 0
  4038. a2.Shape = "Cylinder"
  4039. a2.CanCollide = false
  4040. local b = Instance.new("Part",Character)
  4041. b.Name = "HitDirect"
  4042. b.Anchored = true
  4043. b.BrickColor = bc("Cool yellow")
  4044. b.Material = "Neon"
  4045. b.Transparency = 1
  4046. b.CanCollide = false
  4047. local ray = Ray.new(
  4048. elocacenter.CFrame.p, -- origin
  4049. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4050. )
  4051. local ignore = Character
  4052. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4053. a.BottomSurface = 10
  4054. a.TopSurface = 10
  4055. a2.BottomSurface = 10
  4056. a2.TopSurface = 10
  4057. local distance = (elocacenter.CFrame.p - position).magnitude
  4058. a.Size = Vector3.new(distance, 1, 1)
  4059. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4060. a2.Size = Vector3.new(distance, 1, 1)
  4061. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4062. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4063. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4064. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4065. game:GetService("Debris"):AddItem(a, 10)
  4066. game:GetService("Debris"):AddItem(a2, 10)
  4067. game:GetService("Debris"):AddItem(b, 10)
  4068. local eff = Instance.new("ParticleEmitter",b)
  4069. eff.Texture = "rbxassetid://2273224484"
  4070. eff.LightEmission = 1
  4071. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4072. eff.Rate = 500000
  4073. eff.Lifetime = NumberRange.new(0.5,2)
  4074. 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)})
  4075. 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)})
  4076. eff.Speed = NumberRange.new(20,250)
  4077. eff.Drag = 5
  4078. eff.Rotation = NumberRange.new(-500,500)
  4079. eff.VelocitySpread = 9000
  4080. eff.RotSpeed = NumberRange.new(-50,50)
  4081. coroutine.resume(coroutine.create(function()
  4082. wait(0.25)
  4083. eff.Enabled = false
  4084. end))
  4085. local msh = Instance.new("SpecialMesh",a)
  4086. msh.MeshType = "Cylinder"
  4087. msh.Scale = vt(1,2,2)
  4088. local msh2 = Instance.new("SpecialMesh",a2)
  4089. msh2.MeshType = "Cylinder"
  4090. msh2.Scale = vt(1,2.5,2.5)
  4091. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4092. coroutine.resume(coroutine.create(function()
  4093. for i = 0,10,0.1 do
  4094. swait()
  4095. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4096. a.Transparency = a.Transparency + 0.025
  4097. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4098. a2.Transparency = a2.Transparency + 0.05
  4099. end
  4100. a:Destroy()
  4101. a2:Destroy()
  4102. end))
  4103. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4104. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4105. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4106. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4107. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4108. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4109. MagniDamage(b, 25, 40,65, 0, "Normal")
  4110. for i = 0, 49 do
  4111. 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)
  4112. 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)
  4113. end
  4114. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4115. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4116. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4117. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4118. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4119. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4120. end))
  4121. game:GetService("Debris"):AddItem(elocacenter, 5)
  4122. hum.WalkSpeed = storehumanoidWS
  4123. attack = false
  4124. end
  4125.  
  4126. function StarDivision()
  4127. attack = true
  4128. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4129. for i = 0, 2, 0.1 do
  4130. swait()
  4131. 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)
  4132. 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)
  4133. 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)
  4134. 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)
  4135. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4136. 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)
  4137. end
  4138. local orb = Instance.new("Part", char)
  4139. orb.BrickColor = MAINRUINCOLOR
  4140. orb.CanCollide = false
  4141. orb.FormFactor = 3
  4142. orb.Name = "Ring"
  4143. orb.Material = "Neon"
  4144. orb.Size = Vector3.new(1, 1, 1)
  4145. orb.Transparency = 0
  4146. orb.TopSurface = 0
  4147. orb.BottomSurface = 0
  4148. local orbm = Instance.new("SpecialMesh", orb)
  4149. orbm.MeshType = "Sphere"
  4150. orbm.Name = "SizeMesh"
  4151. orbm.Scale = vt(2,2,2)
  4152. local a = Instance.new("Part",workspace)
  4153. a.Name = "Direction"
  4154. a.Anchored = true
  4155. a.BrickColor = bc("Bright red")
  4156. a.Material = "Neon"
  4157. a.Transparency = 1
  4158. a.CanCollide = false
  4159. local ray = Ray.new(
  4160. sorb.CFrame.p, -- origin
  4161. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4162. )
  4163. local ignore = sorb
  4164. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4165. a.BottomSurface = 10
  4166. a.TopSurface = 10
  4167. local distance = (sorb.CFrame.p - position).magnitude
  4168. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4169. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4170. orb.CFrame = a.CFrame
  4171. a:Destroy()
  4172. local bv = Instance.new("BodyVelocity")
  4173. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4174. bv.velocity = orb.CFrame.lookVector*100
  4175. bv.Parent = orb
  4176. local hitted = false
  4177. game:GetService("Debris"):AddItem(orb, 10)
  4178. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4179. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4180. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4181. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4182. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4183. coroutine.resume(coroutine.create(function()
  4184. while true do
  4185. swait(1)
  4186. if orb.Parent ~= nil and hitted == false then
  4187. 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)
  4188. elseif orb.Parent == nil then
  4189. break
  4190. end
  4191. end
  4192. end))
  4193. coroutine.resume(coroutine.create(function()
  4194. swait(1)
  4195. orb.Touched:connect(function(hit)
  4196. if hitted == false then
  4197. hitted = true
  4198. game:GetService("Debris"):AddItem(orb, 5)
  4199. orb.Transparency = 1
  4200. orb.Anchored = true
  4201. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4202. elocacenter.Anchored = true
  4203. elocacenter.CFrame = orb.CFrame
  4204. elocacenter.Orientation = vt(0,0,0)
  4205. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4206. eloca1.Anchored = true
  4207. eloca1.CFrame = elocacenter.CFrame
  4208. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4209. eloca2.Anchored = true
  4210. eloca2.CFrame = elocacenter.CFrame
  4211. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4212. eloca3.Anchored = true
  4213. eloca3.CFrame = elocacenter.CFrame
  4214. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4215. eloca4.Anchored = true
  4216. eloca4.CFrame = elocacenter.CFrame
  4217. local lookavec = 0
  4218. local speeds = 0
  4219. CameraEnshaking(1,1)
  4220. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4221. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4222. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4223. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4224. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4225. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4226. for i = 0, 99 do
  4227. swait()
  4228. lookavec = lookavec + 1
  4229. speeds = speeds + 0.1
  4230. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4231. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4232. 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)
  4233.  
  4234. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4235. 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)
  4236.  
  4237. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4238. 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)
  4239.  
  4240. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4241. 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)
  4242. end
  4243.  
  4244. for i = 0, 149 do
  4245. swait()
  4246. speeds = speeds + 0.1
  4247. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4248. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4249. 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)
  4250.  
  4251. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4252. 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)
  4253.  
  4254. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4255. 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)
  4256.  
  4257. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4258. 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)
  4259. end
  4260. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4261. if v:FindFirstChild('Head') then
  4262. dmg(v)
  4263. end
  4264. end
  4265. CameraEnshaking(7,30)
  4266. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4267. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4268. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4269. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4270. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4271. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4272. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4273. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4274. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4275. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4276. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4277. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4278. for i = 0, 24 do
  4279. 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)
  4280. 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)
  4281. 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)
  4282. 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)
  4283. end
  4284. coroutine.resume(coroutine.create(function()
  4285. for i = 0, 499 do
  4286. swait(1)
  4287. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4288. 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)
  4289. end
  4290. elocacenter:Destroy()
  4291. eloca1:Destroy()
  4292. eloca2:Destroy()
  4293. eloca3:Destroy()
  4294. eloca4:Destroy()
  4295. end))
  4296. end
  4297. end)
  4298. end))
  4299. attack = false
  4300. end
  4301.  
  4302.  
  4303. function THE_TRUE_POWER_OF_VIOLENCE()
  4304. attack = true
  4305. hum.WalkSpeed = 0
  4306. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4307. for i = 0, 10, 0.1 do
  4308. swait()
  4309. 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)
  4310. 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)
  4311. 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)
  4312. 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)
  4313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4314. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4315. 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)
  4316. end
  4317. local orb = Instance.new("Part", char)
  4318. orb.BrickColor = MAINRUINCOLOR
  4319. orb.CanCollide = false
  4320. orb.FormFactor = 3
  4321. orb.Name = "Ring"
  4322. orb.Material = "Neon"
  4323. orb.Size = Vector3.new(1, 1, 1)
  4324. orb.Transparency = 0
  4325. orb.TopSurface = 0
  4326. orb.BottomSurface = 0
  4327. orb.CFrame = sorb.CFrame
  4328. local orbm = Instance.new("SpecialMesh", orb)
  4329. orbm.MeshType = "Sphere"
  4330. orbm.Name = "SizeMesh"
  4331. orbm.Scale = vt(0,0,0)
  4332. local sbs = Instance.new("BodyPosition", orb)
  4333. sbs.P = 3000
  4334. sbs.D = 1000
  4335. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4336. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4337. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4338. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4339. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4340. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4341. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4342. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4343. for i = 0, 10, 0.1 do
  4344. swait()
  4345. 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)
  4346. 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)
  4347. 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)
  4348. 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)
  4349. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4350. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4351. 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)
  4352. end
  4353. orb.Anchored = true
  4354. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4355. elocacenter.Anchored = true
  4356. elocacenter.CFrame = orb.CFrame
  4357. elocacenter.Orientation = vt(0,0,0)
  4358. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4359. eloca1.Anchored = true
  4360. eloca1.CFrame = elocacenter.CFrame
  4361. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4362. eloca2.Anchored = true
  4363. eloca2.CFrame = elocacenter.CFrame
  4364. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4365. eloca3.Anchored = true
  4366. eloca3.CFrame = elocacenter.CFrame
  4367. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4368. eloca4.Anchored = true
  4369. eloca4.CFrame = elocacenter.CFrame
  4370. local lookavec = 0
  4371. local speeds = 0
  4372. CameraEnshaking(1,1)
  4373. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4374. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4375. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4376. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4377. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4378. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4379. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4380. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4381. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4382. for i = 0, 99 do
  4383. swait()
  4384. lookavec = lookavec + 2.5
  4385. speeds = speeds + 0.25
  4386. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4387. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4388. 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)
  4389.  
  4390. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4391. 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)
  4392.  
  4393. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4394. 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)
  4395.  
  4396. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4397. 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)
  4398. end
  4399.  
  4400. for i = 0, 149 do
  4401. swait()
  4402. speeds = speeds + 0.25
  4403. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4404. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4405. 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)
  4406.  
  4407. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4408. 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)
  4409.  
  4410. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4411. 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)
  4412.  
  4413. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4414. 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)
  4415. end
  4416. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4417. for i = 0, 99 do
  4418. swait()
  4419. lookavec = lookavec - 2.5
  4420. speeds = speeds + 0.25
  4421. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4422. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4423. 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)
  4424.  
  4425. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4426. 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)
  4427.  
  4428. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4429. 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)
  4430.  
  4431. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4432. 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)
  4433. end
  4434. local scaled = 0.1*75
  4435. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4436. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4437. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4438. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4439. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4440. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4441. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4442. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4443. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4444. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4445. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4446.  
  4447. for i = 0, 10, 0.1 do
  4448. swait()
  4449. scaled = scaled - 0.001*75
  4450. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4451. 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)
  4452. 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)
  4453. 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)
  4454. 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)
  4455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4457. 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)
  4458. end
  4459. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4460. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4461. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4462. for x = 0, 4 do
  4463. for i = 0, 9 do
  4464. 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)
  4465. end
  4466. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4467. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4468. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. for i = 0, 5, 0.1 do
  4474. swait()
  4475. 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)
  4476. 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)
  4477. 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)
  4478. 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)
  4479. 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)
  4480. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4481. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4483. end
  4484. end
  4485. local speedearn = 0
  4486. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4487. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4488. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4489. for i = 0, 30, 0.1 do
  4490. swait()
  4491. scaled = scaled - 0.001*75/10
  4492. speedearn = speedearn + 0.5
  4493. for i = 0, 4 do
  4494. 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)
  4495. end
  4496. 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)
  4497. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4498. 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)
  4499. 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)
  4500. 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)
  4501. 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)
  4502. 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)
  4503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4504. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4505. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4506. end
  4507. orb.Transparency = 1
  4508. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4509. if v:FindFirstChild('Head') then
  4510. dmg(v)
  4511. end
  4512. end
  4513. CameraEnshaking(7,30)
  4514. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4515. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4516. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4517. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4518. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4519. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4520. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4521. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4522. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4523. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4524. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4525. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4526. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4527. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4528. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4529. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4530. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4531. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4532. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4533. for i = 0, 99 do
  4534. 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)
  4535. 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)
  4536. end
  4537. for i = 0, 24 do
  4538. 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)
  4539. 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)
  4540. 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)
  4541. 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)
  4542. 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)
  4543. end
  4544. game:GetService("Debris"):AddItem(orb, 10)
  4545. hum.WalkSpeed = storehumanoidWS
  4546. attack = false
  4547. end
  4548.  
  4549.  
  4550. function ViolentRing()
  4551. attack = true
  4552. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4553. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4554. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4555. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4556. for i = 0, 2, 0.1 do
  4557. swait()
  4558. local snap = math.random(1,10)
  4559. if snap == 1 then
  4560. 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)
  4561. end
  4562. 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)
  4563. 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)
  4564. 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)
  4565. 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)
  4566. 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)
  4567. 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)
  4568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4570. 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)
  4571. RootPart.CFrame = FaceMouse()[1]
  4572. end
  4573. local orb = Instance.new("Part", char)
  4574. orb.BrickColor = MAINRUINCOLOR
  4575. orb.CanCollide = false
  4576. orb.FormFactor = 3
  4577. orb.Name = "Ring"
  4578. orb.Material = "Neon"
  4579. orb.Size = Vector3.new(1, 1, 1)
  4580. orb.Transparency = 0
  4581. orb.TopSurface = 0
  4582. orb.BottomSurface = 0
  4583. local orbm = Instance.new("SpecialMesh", orb)
  4584. orbm.MeshType = "Sphere"
  4585. orbm.Name = "SizeMesh"
  4586. orbm.Scale = vt(2,2,2)
  4587. orb.CFrame = mouse.Hit
  4588. local bv = Instance.new("BodyVelocity")
  4589. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4590. bv.velocity = orb.CFrame.lookVector*100
  4591. bv.Parent = orb
  4592. local hitted = false
  4593. coroutine.resume(coroutine.create(function()
  4594. game:GetService("Debris"):AddItem(orb, 5)
  4595. orb.Transparency = 1
  4596. orb.Anchored = true
  4597. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4598. elocacenter.Anchored = true
  4599. elocacenter.CFrame = orb.CFrame
  4600. elocacenter.Orientation = vt(0,0,0)
  4601. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4602. eloca1.Anchored = true
  4603. eloca1.CFrame = elocacenter.CFrame
  4604. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4605. eloca2.Anchored = true
  4606. eloca2.CFrame = elocacenter.CFrame
  4607. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4608. eloca3.Anchored = true
  4609. eloca3.CFrame = elocacenter.CFrame
  4610. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4611. eloca4.Anchored = true
  4612. eloca4.CFrame = elocacenter.CFrame
  4613. local lookavec = 0
  4614. local speeds = 0
  4615. CameraEnshaking(1,1)
  4616. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4617. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4618. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4619. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4620. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4621. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4622. for i = 0, 24 do
  4623. swait()
  4624. lookavec = lookavec + 3.5
  4625. speeds = speeds + 1
  4626. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4627. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4628. 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)
  4629.  
  4630. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4631. 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)
  4632.  
  4633. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4634. 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)
  4635.  
  4636. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4637. 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)
  4638. end
  4639.  
  4640. local risen = 0
  4641. for i = 0, 49 do
  4642. swait()
  4643. risen = risen + 0.05
  4644. speeds = speeds + 0.1
  4645. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4646. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4647. 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)
  4648.  
  4649. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4650. 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)
  4651.  
  4652. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4653. 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)
  4654.  
  4655. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4656. 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)
  4657. end
  4658. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4659. if v:FindFirstChild('Head') then
  4660. dmg(v)
  4661. end
  4662. end
  4663. CameraEnshaking(4,10)
  4664. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4665. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4666. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4667. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4668. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4669. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4670. local eff = Instance.new("ParticleEmitter",elocacenter)
  4671. eff.Texture = "rbxassetid://2273224484"
  4672. eff.LightEmission = 1
  4673. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4674. eff.Rate = 1000000
  4675. eff.Lifetime = NumberRange.new(0.5,2)
  4676. 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)})
  4677. 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)})
  4678. eff.Speed = NumberRange.new(20,250)
  4679. eff.Drag = 5
  4680. eff.Rotation = NumberRange.new(-500,500)
  4681. eff.VelocitySpread = 5000000
  4682. eff.RotSpeed = NumberRange.new(-50,50)
  4683. coroutine.resume(coroutine.create(function()
  4684. wait(1)
  4685. eff.Enabled = false
  4686. end))
  4687. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4688. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4689. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4690. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4691. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4692. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4693. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4694. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4695. for i = 0, 24 do
  4696. 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)
  4697. 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)
  4698. 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)
  4699. 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)
  4700. end
  4701. coroutine.resume(coroutine.create(function()
  4702. wait(10)
  4703. elocacenter:Destroy()
  4704. eloca1:Destroy()
  4705. eloca2:Destroy()
  4706. eloca3:Destroy()
  4707. eloca4:Destroy()
  4708. end))
  4709. end))
  4710. attack = false
  4711. end
  4712.  
  4713. function UniversalCollapse()
  4714. attack = true
  4715. local speedearn = 0
  4716. hum.WalkSpeed = 0
  4717. local sbs = Instance.new("BodyPosition", root)
  4718. sbs.P = 3000
  4719. sbs.D = 1000
  4720. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4721. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4722. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4723. for i = 0, 85, 0.1 do
  4724. swait()
  4725. speedearn = speedearn + 0.1
  4726. 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)
  4727. 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)
  4728. 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)
  4729. 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)
  4730. 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)
  4731. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4732. 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)
  4733. 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)
  4734. 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)
  4735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4736. 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)
  4737. 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)
  4738. end
  4739. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4740. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4741. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4742. for i = 0, 25, 0.1 do
  4743. swait()
  4744. speedearn = speedearn + 0.1
  4745. 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)
  4746. 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)
  4747. 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)
  4748. 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)
  4749. 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)
  4750. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4751. 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)
  4752. 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)
  4753. 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)
  4754. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4755. 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)
  4756. 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)
  4757. end
  4758. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4759. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4760. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4761. CameraEnshaking(5,50)
  4762. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4763. for i = 0, 2 do
  4764. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4765. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4766. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4767. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4768. end
  4769. for i = 0, 49 do
  4770. 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)
  4771. 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)
  4772. 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)
  4773. 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)
  4774. end
  4775. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4776. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4777. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4778. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4779. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4780. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4781. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4782. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4783. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4784. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4785. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4786. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4787. for i = 0, 99 do
  4788. 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)
  4789. 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)
  4790. end
  4791. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4792. if v:FindFirstChild('Head') then
  4793. dmg(v)
  4794. end
  4795. end
  4796. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4797. sbs:Destroy()
  4798. hum.WalkSpeed = storehumanoidWS
  4799. attack = false
  4800. end
  4801.  
  4802.  
  4803. function ChaosEND()
  4804. attack = true
  4805. local speedearn = 0
  4806. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4807. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4808. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4809. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4810. for i = 0, 15, 0.1 do
  4811. swait()
  4812. speedearn = speedearn + 0.25
  4813. 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)
  4814. 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)
  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))),25,25,10*speedearn,-0.25,BrickColor.random(),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))),25,25,10*speedearn,-0.25,BrickColor.random(),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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4818. 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)
  4819. 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)
  4820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4822. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4824. end
  4825. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4826. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4827. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4828. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4829. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4830. CameraEnshaking(5,25)
  4831. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4832. if v:FindFirstChild('Head') then
  4833. dmg(v)
  4834. end
  4835. end
  4836. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4837. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4838. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4839. for i = 0, 3, 0.1 do
  4840. swait()
  4841. 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)
  4842. 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)
  4843. 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)
  4844. 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)
  4845. 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)
  4846. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4847. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4848. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4849. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4850. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4851. end
  4852. attack = false
  4853. end
  4854.  
  4855. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4856. local orb = Instance.new("Part", char)
  4857. orb.Anchored = true
  4858. orb.BrickColor = color
  4859. orb.CanCollide = false
  4860. orb.FormFactor = 3
  4861. orb.Name = "Ring"
  4862. orb.Material = "Neon"
  4863. orb.Size = Vector3.new(1, 1, 1)
  4864. orb.Transparency = 0
  4865. orb.TopSurface = 0
  4866. orb.BottomSurface = 0
  4867. local orbm = Instance.new("SpecialMesh", orb)
  4868. orbm.MeshType = "Sphere"
  4869. orb.CFrame = positted
  4870. orbm.Name = "SizeMesh"
  4871. orbm.Scale = vt(1,1,1)
  4872. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4873. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4874. --[[for i = 0, 2 do
  4875. 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)
  4876. end]]--
  4877. coroutine.resume(coroutine.create(function()
  4878. wait(timer)
  4879. CameraEnshaking(3,ShakePower)
  4880. orb.Transparency = 1
  4881. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4882. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4883. --[[for i = 0, 4 do
  4884. 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)
  4885. end]]--
  4886. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4887. wait(3)
  4888. orb:Destroy()
  4889. end))
  4890. end
  4891.  
  4892. function orb_spawn(positted,timer)
  4893. local randomcol = math.random(1,2)
  4894. local orb = Instance.new("Part", char)
  4895. orb.Anchored = true
  4896. if randomcol == 1 then
  4897. orb.BrickColor = BrickColor.new("White")
  4898. elseif randomcol == 2 then
  4899. orb.BrickColor = BrickColor.new("Really black")
  4900. end
  4901. orb.CanCollide = false
  4902. orb.FormFactor = 3
  4903. orb.Name = "Ring"
  4904. orb.Material = "Neon"
  4905. orb.Size = Vector3.new(1, 1, 1)
  4906. orb.Transparency = 0
  4907. orb.TopSurface = 0
  4908. orb.BottomSurface = 0
  4909. local orbm = Instance.new("SpecialMesh", orb)
  4910. orbm.MeshType = "Sphere"
  4911. orb.CFrame = positted
  4912. orbm.Name = "SizeMesh"
  4913. orbm.Scale = vt(1,1,1)
  4914. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4915. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4916. for i = 0, 2 do
  4917. 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)
  4918. end
  4919. coroutine.resume(coroutine.create(function()
  4920. wait(timer)
  4921. CameraEnshaking(3,2)
  4922. orb.Transparency = 1
  4923. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4924. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4925. for i = 0, 4 do
  4926. 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)
  4927. end
  4928. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4929. wait(3)
  4930. orb:Destroy()
  4931. end))
  4932. end
  4933.  
  4934. function SingularityVoid()
  4935. attack = true
  4936. hum.WalkSpeed = 0
  4937. hum.JumpPower = 0
  4938. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4939. bosschatfunc("SingularityVoid?",MAINRUINCOLOR.Color,1)
  4940. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4941. local poste = 3
  4942. local rotation = 0
  4943. local rate = 0
  4944. local bgui,imgc = createBGCircle(0,root,Color3.new(0,0,0))
  4945. bgui.AlwaysOnTop = true
  4946. imgc.ImageTransparency = 1
  4947. imgc.Image = "rbxassetid://2076519836"
  4948. for i = 0, 124 do
  4949. swait()
  4950. bgui.Size = bgui.Size + UDim2.new(2.5,0,2.5,0)
  4951. imgc.ImageTransparency = imgc.ImageTransparency - 0.01
  4952. imgc.Rotation = imgc.Rotation - rotation/10
  4953. rotation = rotation + rate
  4954. poste = poste + 0.1
  4955. rate = rate + 0.1
  4956. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-25)),.1)
  4957. 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(25)),.1)
  4958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-25),math.rad(0),math.rad(0)),.1)
  4959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(90)),.1)
  4961. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-90)),.1)
  4962. end
  4963. CameraEnshaking(5,12)
  4964. local keptcolor = MAINRUINCOLOR
  4965. for i, v in pairs(FindNearestHead(root.CFrame.p, 125)) do
  4966. if v:FindFirstChild('Head') then
  4967. coroutine.resume(coroutine.create(function()
  4968. CFuncs["Sound"].Create("rbxassetid://1042716828", v.Head, 5, 0.5)
  4969. local vel = Instance.new("BodyPosition", v.Head)
  4970. vel.P = 12500
  4971. vel.D = 1000
  4972. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4973. vel.position = v.Head.CFrame.p + vt(0,10,0)
  4974. for i,v in pairs(v:GetChildren()) do
  4975. if v:IsA("Part") or v:IsA("MeshPart") then
  4976. coroutine.resume(coroutine.create(function()
  4977. local bld = Instance.new("ParticleEmitter",v)
  4978. bld.LightEmission = 0.75
  4979. bld.Texture = "rbxassetid://363275192" ---284205403
  4980. bld.Color = ColorSequence.new(keptcolor.Color)
  4981. bld.Rate = 500
  4982. bld.Lifetime = NumberRange.new(1)
  4983. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  4984. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  4985. bld.Speed = NumberRange.new(2,5)
  4986. bld.VelocitySpread = 50000
  4987. bld.Rotation = NumberRange.new(-500,500)
  4988. bld.RotSpeed = NumberRange.new(-500,500)
  4989. end))
  4990. end
  4991. end
  4992. local A1 = Instance.new("Attachment",root)
  4993. local A2 = Instance.new("Attachment",v.Head)
  4994. local Beem = Instance.new("Beam",v.Head)
  4995. Beem.Attachment0 = A1
  4996. Beem.Attachment1 = A2
  4997. Beem.LightEmission = 1
  4998. Beem.FaceCamera = true
  4999. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  5000. Beem.Width0 = 1
  5001. Beem.Width1 = 1
  5002. Beem.Texture = "rbxassetid://1134824633"
  5003. Beem.TextureMode = "Wrap"
  5004. Beem.TextureLength = 2
  5005. Beem.TextureSpeed = 5
  5006. Beem.Color = ColorSequence.new(keptcolor.Color)
  5007. wait(5)
  5008. coroutine.resume(coroutine.create(function()
  5009. local ref = Instance.new("Part", char)
  5010. ref.Anchored = true
  5011. ref.CanCollide = false
  5012. ref.Transparency = 1
  5013. ref.CFrame = v.Head.CFrame
  5014. sphere2(1,"Add",v.Head.CFrame,vt(25,25,25),-0.25,-0.25,-0.25,keptcolor)
  5015. sphere2(2,"Add",v.Head.CFrame,vt(25,25,25),-0.5,-0.5,-0.5,keptcolor)
  5016. sphere2(3,"Add",v.Head.CFrame,vt(25,25,25),-0.75,-0.75,-0.75,keptcolor)
  5017. for i = 0, 9 do
  5018. slash(math.random(10,25)/10,5,true,"Round","Add","Out",v.Head.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.001,0.5),-1,BrickColor.new("Really black"))
  5019. end
  5020. v.Head.Parent:Destroy()
  5021. CFuncs["Sound"].Create("rbxassetid://763718160", ref, 10, 1.1)
  5022. CFuncs["Sound"].Create("rbxassetid://782353443", ref, 10, 1)
  5023. CFuncs["Sound"].Create("rbxassetid://335657174", ref, 10, 1)
  5024. wait(5)
  5025. ref:Destroy()
  5026. end))
  5027. end))
  5028. end
  5029. end
  5030. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2, 1)
  5031. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 3, 1)
  5032. CFuncs["Sound"].Create("rbxassetid://167115397", char, 3, 1)
  5033. CFuncs["Sound"].Create("rbxassetid://782353443", char, 3, 0.9)
  5034. CFuncs["Sound"].Create("rbxassetid://782353443", char, 4, 0.8)
  5035. CFuncs["Sound"].Create("rbxassetid://782353443", char, 5, 0.7)
  5036. for i = 0, 49 do
  5037. slash(math.random(10,50)/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.25,0.01,0.25),math.random(150,1000)/250,BrickColor.new("Really black"))
  5038. end
  5039. coroutine.resume(coroutine.create(function()
  5040. local eff = Instance.new("ParticleEmitter",root)
  5041. eff.Texture = "rbxassetid://2273224484"
  5042. eff.LightEmission = 1
  5043. eff.Color = ColorSequence.new(BrickColor.new("Alder").Color)
  5044. eff.Rate = 5000000
  5045. eff.Lifetime = NumberRange.new(3)
  5046. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(0.2,8,0),NumberSequenceKeypoint.new(1,0.1,0)})
  5047. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5048. eff.Speed = NumberRange.new(150,1000)
  5049. eff.Drag = 5
  5050. eff.Rotation = NumberRange.new(-500,500)
  5051. eff.VelocitySpread = 9000
  5052. eff.RotSpeed = NumberRange.new(-100,100)
  5053. wait(0.5)
  5054. eff.Enabled = false
  5055. wait(6)
  5056. eff:Destroy()
  5057. end))
  5058. coroutine.resume(coroutine.create(function()
  5059. local eff = Instance.new("ParticleEmitter",root)
  5060. eff.Texture = "rbxassetid://363275192"
  5061. eff.LightEmission = 0.95
  5062. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5063. eff.Rate = 10000
  5064. eff.Lifetime = NumberRange.new(1)
  5065. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,80,0)})
  5066. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  5067. eff.Speed = NumberRange.new(100,500)
  5068. eff.Drag = 5
  5069. eff.Rotation = NumberRange.new(-500,500)
  5070. eff.VelocitySpread = 9000
  5071. eff.RotSpeed = NumberRange.new(-50,50)
  5072. wait(0.5)
  5073. eff.Enabled = false
  5074. wait(6)
  5075. eff:Destroy()
  5076. end))
  5077. sphere2(10,"Add",root.CFrame,vt(250,250,250),5,5,5,MAINRUINCOLOR)
  5078. sphere2(9,"Add",root.CFrame,vt(250,250,250),5,5,5,MAINRUINCOLOR)
  5079. sphere2(8,"Add",root.CFrame,vt(250,250,250),5,5,5,MAINRUINCOLOR)
  5080. sphere2(2,"Add",root.CFrame,vt(250,250,250),0.1,0.1,0.1,MAINRUINCOLOR)
  5081. coroutine.resume(coroutine.create(function()
  5082. wait(1)
  5083. rotation = 0
  5084. rate = 0
  5085. for i = 0, 49 do
  5086. swait()
  5087. bgui.Size = bgui.Size - UDim2.new(rate/2,0,rate/2,0)
  5088. imgc.Rotation = imgc.Rotation + rotation/20
  5089. rotation = rotation + rate
  5090. poste = poste + 1.5
  5091. rate = rate + 1.5
  5092. end
  5093. bgui:Destroy()
  5094. end))
  5095. hum.WalkSpeed = storehumanoidWS
  5096. hum.JumpPower = 50
  5097. attack = false
  5098. end
  5099.  
  5100. function scattercorrupt()
  5101. attack = true
  5102. hum.WalkSpeed = 0
  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(0),math.rad(0),math.rad(0)),.2)
  5106. 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)
  5107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),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(30)),.2)
  5110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5111. end
  5112. local rot = 0
  5113. local randomrotations = math.random(1,2)
  5114. local lookv = 2.5
  5115. local power = 7
  5116. local radm = math.random(1,3)
  5117. if radm == 1 then
  5118. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5119. elseif radm == 2 then
  5120. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5121. elseif radm == 3 then
  5122. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5123. end
  5124. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5125. for i = 0, 1, 0.1 do
  5126. swait()
  5127. 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)
  5128. 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)
  5129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5132. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5133. end
  5134. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5135. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5136. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5137. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5138. for i = 0, 9 do
  5139. 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)
  5140. end
  5141. local hite = Instance.new("Part", char)
  5142. hite.Anchored = true
  5143. hite.CanCollide = false
  5144. hite.FormFactor = 3
  5145. hite.Name = "Ring"
  5146. hite.Material = "Neon"
  5147. hite.Size = Vector3.new(1, 1, 1)
  5148. hite.Transparency = 1
  5149. hite.TopSurface = 0
  5150. hite.BottomSurface = 0
  5151. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5152. local rem = Instance.new("Part", char)
  5153. rem.Anchored = true
  5154. rem.CanCollide = false
  5155. rem.FormFactor = 3
  5156. rem.Name = "Ring"
  5157. rem.Material = "Neon"
  5158. rem.Size = Vector3.new(1, 1, 1)
  5159. rem.Transparency = 1
  5160. rem.TopSurface = 0
  5161. rem.BottomSurface = 0
  5162. rem.CFrame = hite.CFrame
  5163. local rem2 = rem:Clone()
  5164. rem2.Parent = char
  5165. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5166. local rem3 = rem:Clone()
  5167. rem3.Parent = char
  5168. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5169. local rem4 = rem:Clone()
  5170. rem4.Parent = char
  5171. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5172. hite:Destroy()
  5173. coroutine.resume(coroutine.create(function()
  5174. for i = 0, 24 do
  5175. swait(1)
  5176. if randomrotations == 1 then
  5177. rot = rot + 1
  5178. elseif randomrotations == 2 then
  5179. rot = rot - 1
  5180. end
  5181. power = power + 0.5
  5182. lookv = lookv + 7.5
  5183. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5184. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5185. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5186. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5187. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5188. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5189. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5190. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5191. end
  5192. end))
  5193. wait(2)
  5194. hum.WalkSpeed = storehumanoidWS
  5195. attack = false
  5196. end
  5197. function yinyangi()
  5198. attack = true
  5199. for i = 0, 2, 0.1 do
  5200. swait()
  5201. 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)
  5202. 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)
  5203. 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)
  5204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5205. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5207. end
  5208. local bv = Instance.new("BodyVelocity")
  5209. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5210. bv.velocity = root.CFrame.lookVector*175
  5211. bv.Parent = root
  5212. for Rotations = 0, 9 do
  5213. for i = 0, 1, 0.5 do
  5214. swait()
  5215. bv.velocity = root.CFrame.lookVector*175
  5216. 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)
  5217. 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)
  5218. 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)
  5219. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5221. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5222. end
  5223. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5224. for i = 0, 1, 0.5 do
  5225. swait()
  5226. bv.velocity = root.CFrame.lookVector*175
  5227. 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)
  5228. 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)
  5229. 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)
  5230. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5231. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5232. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5233. end
  5234. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5235. for i = 0, 1, 0.5 do
  5236. swait()
  5237. bv.velocity = root.CFrame.lookVector*175
  5238. 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)
  5239. 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)
  5240. 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)
  5241. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5242. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5243. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5244. end
  5245. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5246. for i = 0, 1, 0.5 do
  5247. swait()
  5248. bv.velocity = root.CFrame.lookVector*175
  5249. 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)
  5250. 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)
  5251. 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)
  5252. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5253. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5254. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5255. end
  5256. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5257. end
  5258. bv:Destroy()
  5259. attack = false
  5260. end
  5261.  
  5262. function createBGCircle(size,parent,color)
  5263. local bgui = Instance.new("BillboardGui",parent)
  5264. bgui.Size = UDim2.new(size, 0, size, 0)
  5265. local imgc = Instance.new("ImageLabel",bgui)
  5266. imgc.BackgroundTransparency = 1
  5267. imgc.ImageTransparency = 0
  5268. imgc.Size = UDim2.new(1,0,1,0)
  5269. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5270. imgc.ImageColor3 = color
  5271. return bgui,imgc
  5272. end
  5273.  
  5274. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5275. local bgui,imgc = createBGCircle(size,guipar,color)
  5276. bgui.AlwaysOnTop = true
  5277. imgc.Image = "rbxassetid://" ..img
  5278. local rrot = math.random(1,2)
  5279. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5280. coroutine.resume(coroutine.create(function()
  5281. for i = 0, 24*delay do
  5282. swait()
  5283. if rotationenabled == true then
  5284. if rrot == 1 then
  5285. imgc.Rotation = imgc.Rotation + rotsp
  5286. elseif rrot == 2 then
  5287. imgc.Rotation = imgc.Rotation - rotsp
  5288. end
  5289. end
  5290. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5291. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5292. end
  5293. bgui:Destroy()
  5294. end))
  5295. end
  5296. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5297. for i, v in pairs(mw2:GetChildren()) do
  5298. if v:IsA("Part") then
  5299. v.BrickColor = one
  5300. v.Material = "Neon"
  5301. end
  5302. end
  5303. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5304. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5305. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5306. tr1.Color = ColorSequence.new(one.Color)
  5307. tr2.Color = ColorSequence.new(one.Color)
  5308. tr3.Color = ColorSequence.new(one.Color)
  5309. for i, v in pairs(mw1:GetChildren()) do
  5310. if v:IsA("Part") then
  5311. if secondaryenabled == false then
  5312. v.Transparency = 1
  5313. elseif secondaryenabled == true then
  5314. v.Transparency = 0
  5315. end
  5316. v.BrickColor = two
  5317. v.Material = "Neon"
  5318. end
  5319. end
  5320. if secondaryenabled == false then
  5321. tl1.Enabled = false
  5322. tl2.Enabled = false
  5323. tl3.Enabled = false
  5324. elseif secondaryenabled == true then
  5325. tl1.Enabled = true
  5326. tl2.Enabled = true
  5327. tl3.Enabled = true
  5328. end
  5329. tl1.Color = ColorSequence.new(two.Color)
  5330. tl2.Color = ColorSequence.new(two.Color)
  5331. tl3.Color = ColorSequence.new(two.Color)
  5332. for i, v in pairs(m:GetChildren()) do
  5333. if v:IsA("Part") then
  5334. v.BrickColor = three
  5335. v.Material = "Ice"
  5336. end
  5337. end
  5338. for i, v in pairs(m2:GetChildren()) do
  5339. if v:IsA("Part") then
  5340. v.BrickColor = four
  5341. v.Material = "Ice"
  5342. end
  5343. end
  5344. for i, v in pairs(m3:GetChildren()) do
  5345. if v:IsA("Part") then
  5346. v.BrickColor = five
  5347. v.Material = "Neon"
  5348. end
  5349. end
  5350. for i, v in pairs(extrawingmod1:GetChildren()) do
  5351. if v:IsA("Part") then
  5352. v.Transparency = exonetran
  5353. v.BrickColor = exone
  5354. v.Material = "Neon"
  5355. end
  5356. end
  5357. for i, v in pairs(extrawingmod2:GetChildren()) do
  5358. if v:IsA("Part") then
  5359. v.Transparency = extwotran
  5360. v.BrickColor = extwo
  5361. v.Material = "Neon"
  5362. end
  5363. end
  5364. end
  5365.  
  5366.  
  5367. function normalmog()
  5368. attack = true
  5369. hum.WalkSpeed = 0
  5370. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5371. for i = 0,6,0.1 do
  5372. swait()
  5373. 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)
  5374. 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)
  5375. 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)
  5376. 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)
  5377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5378. 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)
  5379. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5380. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5381. end
  5382. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5383. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5384. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5385. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5386. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5387. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5388. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5389. rainbowmode = false
  5390. chaosmode = false
  5391. ModeOfGlitch = 1
  5392. storehumanoidWS = 16
  5393. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5394. RecolorTextAndRename("Hopeless",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5395. CameraEnshaking(5,2.5)
  5396. MAINRUINCOLOR = BrickColor.new("Really red")
  5397. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5398. for i = 0, 49 do
  5399. 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)
  5400. end
  5401. for i = 0, 24 do
  5402. 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)
  5403. 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"))
  5404. end
  5405. for i = 0,3,0.1 do
  5406. 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)
  5407. end
  5408. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5409. for i = 0,2,0.1 do
  5410. swait()
  5411. 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)
  5412. 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)
  5413. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5414. 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)
  5415. 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)
  5416. 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)
  5417. end
  5418. hum.WalkSpeed = storehumanoidWS
  5419. attack = false
  5420. end
  5421.  
  5422. function attackone()
  5423. attack = true
  5424. local keptcolor = MAINRUINCOLOR
  5425. for i = 0,1,0.1 do
  5426. swait()
  5427. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5428. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5429. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5430. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5431. 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)
  5432. 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)
  5433. end
  5434. local distlook = 5
  5435. coroutine.resume(coroutine.create(function()
  5436. for i = 0, 4 do
  5437. swait(2)
  5438. CameraEnshaking(2,3)
  5439. local hite = Instance.new("Part", char)
  5440. hite.Anchored = true
  5441. hite.CanCollide = false
  5442. hite.FormFactor = 3
  5443. hite.Name = "Ring"
  5444. hite.Material = "Neon"
  5445. hite.Size = Vector3.new(1, 1, 1)
  5446. hite.Transparency = 1
  5447. hite.TopSurface = 0
  5448. hite.BottomSurface = 0
  5449. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5450. 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)
  5451. 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)
  5452. 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)
  5453. 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)
  5454. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5455. for i = 0, 14 do
  5456. local rsiz = math.random(5,20)
  5457. 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)
  5458. end
  5459. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5460. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5461. game:GetService("Debris"):AddItem(hite, 5)
  5462. distlook = distlook + 10
  5463. end
  5464. end))
  5465. for i = 0,1,0.1 do
  5466. swait()
  5467. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5468. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5469. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5470. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5471. 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)
  5472. 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)
  5473. end
  5474. attack = false
  5475. end
  5476.  
  5477. function attacktwo()
  5478. attack = true
  5479. hum.WalkSpeed = 2
  5480. local keptcolor = MAINRUINCOLOR
  5481. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5482. 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)
  5483. 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)
  5484. for i = 0, 14 do
  5485. 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)
  5486. end
  5487. for i = 0,1,0.1 do
  5488. swait()
  5489. 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)
  5490. 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)
  5491. 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)
  5492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5494. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5495. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5496. end
  5497. for i = 0, 1 do
  5498. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5499. for i = 0,1,0.6 do
  5500. swait()
  5501. 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)
  5502. 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"))
  5503. 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)
  5504. 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)
  5505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5507. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5508. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5509. end
  5510. for i = 0,1,0.6 do
  5511. swait()
  5512. 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)
  5513. 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"))
  5514. 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)
  5515. 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)
  5516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5518. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5519. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5520. end
  5521. for i = 0,1,0.6 do
  5522. swait()
  5523. 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)
  5524. 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"))
  5525. 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)
  5526. 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)
  5527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5529. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5530. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5531. end
  5532. for i = 0,1,0.6 do
  5533. swait()
  5534. 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)
  5535. 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"))
  5536. 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)
  5537. 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)
  5538. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5540. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5541. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5542. end
  5543. local rot = 0
  5544. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5545. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5546. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5547. CreateMesh(dis,"Sphere",10,1,10)
  5548. local at1 = Instance.new("Attachment",dis)
  5549. at1.Position = vt(-5,0,0)
  5550. local at2 = Instance.new("Attachment",dis)
  5551. at2.Position = vt(5,0,0)
  5552. local trl = Instance.new('Trail',wed)
  5553. trl.Attachment0 = at1
  5554. trl.Attachment1 = at2
  5555. trl.Texture = "rbxassetid://1049219073"
  5556. trl.LightEmission = 1
  5557. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5558. trl.Color = ColorSequence.new(dis.Color)
  5559. trl.Lifetime = 0.6
  5560. local a = Instance.new("Part",workspace)
  5561. a.Name = "Direction"
  5562. a.Anchored = true
  5563. a.BrickColor = bc("Bright red")
  5564. a.Material = "Neon"
  5565. a.Transparency = 1
  5566. a.CanCollide = false
  5567. local ray = Ray.new(
  5568. dis.CFrame.p, -- origin
  5569. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5570. )
  5571. local ignore = dis
  5572. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5573. a.BottomSurface = 10
  5574. a.TopSurface = 10
  5575. local distance = (dis.CFrame.p - position).magnitude
  5576. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5577. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5578. dis.CFrame = a.CFrame
  5579. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5580. a:Destroy()
  5581. local bv = Instance.new("BodyVelocity")
  5582. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5583. bv.velocity = dis.CFrame.lookVector*250
  5584. bv.Parent = dis
  5585. game:GetService("Debris"):AddItem(dis, 5)
  5586. local hitted = false
  5587. coroutine.resume(coroutine.create(function()
  5588. dis.Touched:connect(function(hit)
  5589. if hitted == false and hit.Parent ~= char then
  5590. hitted = true
  5591. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5592. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5593. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5594. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5595. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5596. coroutine.resume(coroutine.create(function()
  5597. for i = 0, 9 do
  5598. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5599. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5600. local at1 = Instance.new("Attachment",disr)
  5601. at1.Position = vt(-5,0,0)
  5602. local at2 = Instance.new("Attachment",disr)
  5603. at2.Position = vt(5,0,0)
  5604. local trl = Instance.new('Trail',disr)
  5605. trl.Attachment0 = at1
  5606. trl.FaceCamera = true
  5607. trl.Attachment1 = at2
  5608. trl.Texture = "rbxassetid://2342682798"
  5609. trl.LightEmission = 1
  5610. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5611. trl.Color = ColorSequence.new(keptcolor.Color)
  5612. trl.Lifetime = 0.5
  5613. local bv = Instance.new("BodyVelocity")
  5614. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5615. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5616. bv.Parent = disr
  5617. local val = 0
  5618. coroutine.resume(coroutine.create(function()
  5619. swait(30)
  5620. for i = 0, 9 do
  5621. swait()
  5622. val = val + 0.1
  5623. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5624. end
  5625. game:GetService("Debris"):AddItem(disr, 3)
  5626. end))
  5627. end
  5628. local eff = Instance.new("ParticleEmitter",dis)
  5629. eff.Texture = "rbxassetid://2273224484"
  5630. eff.LightEmission = 1
  5631. eff.Color = ColorSequence.new(keptcolor.Color)
  5632. eff.Rate = 500000
  5633. eff.Lifetime = NumberRange.new(0.5,2)
  5634. 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)})
  5635. 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)})
  5636. eff.Speed = NumberRange.new(20,250)
  5637. eff.Drag = 5
  5638. eff.Rotation = NumberRange.new(-500,500)
  5639. eff.VelocitySpread = 9000
  5640. eff.RotSpeed = NumberRange.new(-50,50)
  5641. wait(0.25)
  5642. eff.Enabled = false
  5643. end))
  5644. for i = 0, 9 do
  5645. 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"))
  5646. end
  5647. for i = 0, 19 do
  5648. 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)
  5649. end
  5650. coroutine.resume(coroutine.create(function()
  5651. for i = 0, 19 do
  5652. swait()
  5653. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5654. end
  5655. hum.CameraOffset = vt(0,0,0)
  5656. end))
  5657. dis.Anchored = true
  5658. dis.Transparency = 1
  5659. wait(8)
  5660. dis:Destroy()
  5661. end
  5662. end)
  5663. end))
  5664. rot = rot - 15
  5665. end
  5666. for i = 0,2,0.1 do
  5667. swait()
  5668. 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)
  5669. 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)
  5670. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5671. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5672. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5673. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5674. end
  5675. attack = false
  5676. hum.WalkSpeed = storehumanoidWS
  5677. end
  5678.  
  5679. function attackthree()
  5680. attack = true
  5681. local keptcolor = MAINRUINCOLOR
  5682. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5683. for i = 0,2,0.1 do
  5684. swait()
  5685. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5686. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5687. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5688. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5689. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5690. 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)
  5691. 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)
  5692. end
  5693. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5694. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5695. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5696. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5697. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5698. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5699. for i = 0, 24 do
  5700. 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"))
  5701. end
  5702. for i = 0,4,0.1 do
  5703. swait()
  5704. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5705. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5706. CreateMesh(dis,"Sphere",1,1,1)
  5707. dis.Anchored = true
  5708. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5709. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5710. coroutine.resume(coroutine.create(function()
  5711. swait(30)
  5712. dis.Transparency = 1
  5713. coroutine.resume(coroutine.create(function()
  5714. for i = 0, 19 do
  5715. swait()
  5716. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5717. end
  5718. hum.CameraOffset = vt(0,0,0)
  5719. end))
  5720. coroutine.resume(coroutine.create(function()
  5721. local eff = Instance.new("ParticleEmitter",dis)
  5722. eff.Texture = "rbxassetid://2273224484"
  5723. eff.LightEmission = 1
  5724. eff.Color = ColorSequence.new(dis.Color)
  5725. eff.Rate = 500000
  5726. eff.Lifetime = NumberRange.new(0.5,2)
  5727. 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)})
  5728. 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)})
  5729. eff.Speed = NumberRange.new(50,450)
  5730. eff.Drag = 5
  5731. eff.Rotation = NumberRange.new(-500,500)
  5732. eff.VelocitySpread = 9000
  5733. eff.RotSpeed = NumberRange.new(-50,50)
  5734. wait(0.125)
  5735. eff.Enabled = false
  5736. end))
  5737. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5738. for i = 0, 2 do
  5739. 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)
  5740. end
  5741. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5742. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5743. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5744. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5745. end))
  5746. game:GetService("Debris"):AddItem(dis, 5)
  5747. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5748. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5749. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5750. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5751. 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)
  5752. 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)
  5753. end
  5754. attack = false
  5755. end
  5756. ----------------------------------- Abilities
  5757.  
  5758. function ExtinctiveHeartbreak()
  5759. local targetted = nil
  5760. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5761. targetted = mouse.Target.Parent
  5762. end
  5763. if targetted ~= nil then
  5764. attack = true
  5765. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5766. for i = 0, 9 do
  5767. 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)
  5768. end
  5769. for i = 0, 24 do
  5770. 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)
  5771. end
  5772. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5773. local originalpos = root.CFrame
  5774. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5775. for i = 0, 9 do
  5776. 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)
  5777. end
  5778. for i = 0, 24 do
  5779. 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)
  5780. end
  5781. hum.WalkSpeed = 0
  5782. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5783. local radm = math.random(1,3)
  5784. if radm == 1 then
  5785. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5786. elseif radm == 2 then
  5787. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5788. elseif radm == 3 then
  5789. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5790. end
  5791. for i = 0,2,0.1 do
  5792. swait()
  5793. 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)
  5794. 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)
  5795. 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)
  5796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5797. 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)
  5798. 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)
  5799. end
  5800. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5801. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5802. for i = 0,2,0.1 do
  5803. swait()
  5804. coroutine.resume(coroutine.create(function()
  5805. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5806. for i,v in pairs(targetted:GetChildren()) do
  5807. if v:IsA("Part") or v:IsA("MeshPart") then
  5808. v.Velocity = vt(0,0,0)
  5809. end
  5810. end
  5811. end))
  5812. 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)
  5813. 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)
  5814. 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)
  5815. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5816. 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)
  5817. 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)
  5818. end
  5819. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5820. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5821. for i = 0, 1 do
  5822. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5823. end
  5824. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5825. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5826. for i = 0,4,0.1 do
  5827. swait()
  5828. coroutine.resume(coroutine.create(function()
  5829. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5830. 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)))
  5831. local at1 = Instance.new("Attachment",dis)
  5832. at1.Position = vt(-25000,0,0)
  5833. local at2 = Instance.new("Attachment",dis)
  5834. at2.Position = vt(25000,0,0)
  5835. local trl = Instance.new('Trail',dis)
  5836. trl.Attachment0 = at1
  5837. trl.FaceCamera = true
  5838. trl.Attachment1 = at2
  5839. trl.Texture = "rbxassetid://1049219073"
  5840. trl.LightEmission = 1
  5841. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5842. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5843. trl.Lifetime = 5
  5844. local bv = Instance.new("BodyVelocity")
  5845. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5846. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5847. bv.Parent = dis
  5848. game:GetService("Debris"):AddItem(dis, 5)
  5849. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5850. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5851. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5852. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5853. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5854. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5855. 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)
  5856. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5857. for i = 0, 2 do
  5858. 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"))
  5859. end
  5860. 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)
  5861. for i,v in pairs(targetted:GetChildren()) do
  5862. if v:IsA("Part") or v:IsA("MeshPart") then
  5863. v.Velocity = vt(0,0,0)
  5864. end
  5865. end
  5866. end))
  5867. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5868. 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)
  5869. 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)
  5870. 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)
  5871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5872. 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)
  5873. 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)
  5874. end
  5875. hum.CameraOffset = vt(0,0,0)
  5876. for i = 0, 49 do
  5877. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5878. 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)))
  5879. local at1 = Instance.new("Attachment",dis)
  5880. at1.Position = vt(-50000,0,0)
  5881. local at2 = Instance.new("Attachment",dis)
  5882. at2.Position = vt(50000,0,0)
  5883. local trl = Instance.new('Trail',dis)
  5884. trl.Attachment0 = at1
  5885. trl.FaceCamera = true
  5886. trl.Attachment1 = at2
  5887. trl.Texture = "rbxassetid://1049219073"
  5888. trl.LightEmission = 1
  5889. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5890. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5891. trl.Lifetime = 5
  5892. local bv = Instance.new("BodyVelocity")
  5893. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5894. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5895. bv.Parent = dis
  5896. game:GetService("Debris"):AddItem(dis, 5)
  5897. end
  5898. for i = 0, 49 do
  5899. 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)
  5900. 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"))
  5901. end
  5902. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5903. for i = 0, 1 do
  5904. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5905. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5906. end
  5907. for i = 0, 4 do
  5908. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5909. end
  5910. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5911. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5912. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5913. dmg(targetted)
  5914. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5915. for i = 0, 9 do
  5916. 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)
  5917. end
  5918. for i = 0, 24 do
  5919. 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)
  5920. end
  5921. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5922. root.CFrame = originalpos
  5923. for i = 0, 9 do
  5924. 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)
  5925. end
  5926. for i = 0, 24 do
  5927. 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)
  5928. end
  5929. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5930. attack = false
  5931. hum.WalkSpeed = storehumanoidWS
  5932. end
  5933. end
  5934.  
  5935. function CorruptionEvent()
  5936. attack = true
  5937. hum.WalkSpeed = 0
  5938. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5939. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5940. local keptcolor = MAINRUINCOLOR
  5941. for i = 0,4,0.1 do
  5942. swait()
  5943. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5944. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5945. 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)
  5946. 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)
  5947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5948. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5949. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5950. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5951. end
  5952. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5953. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5954. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5955. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5956. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5957. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5958. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5959. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5960. hum.CameraOffset = vt(0,0,0)
  5961. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5962. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5963. for i = 0, 24 do
  5964. 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"))
  5965. end
  5966. local rrot = 0
  5967. coroutine.resume(coroutine.create(function()
  5968. for i = 0, 4 do
  5969. rrot = rrot + 45
  5970. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5971. xa.Anchored = true
  5972. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5973. xb.Anchored = true
  5974. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5975. xc.Anchored = true
  5976. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5977. xd.Anchored = true
  5978. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5979. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5980. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5981. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5982. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5983. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5984. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5985. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5986. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5987. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5988. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5989. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5990. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5991. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5992. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5993. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5994. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5995. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5996. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5997. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5998. for i = 0, 9 do
  5999. 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"))
  6000. 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"))
  6001. 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"))
  6002. 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"))
  6003. end
  6004. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6005. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6006. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6007. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6008. 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)
  6009. 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)
  6010. 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)
  6011. 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)
  6012. 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))
  6013. 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))
  6014. 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))
  6015. 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))
  6016. game:GetService("Debris"):AddItem(xa, 5)
  6017. game:GetService("Debris"):AddItem(xb, 5)
  6018. game:GetService("Debris"):AddItem(xc, 5)
  6019. game:GetService("Debris"):AddItem(xd, 5)
  6020. coroutine.resume(coroutine.create(function()
  6021. for i = 0, 19 do
  6022. swait()
  6023. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6024. end
  6025. hum.CameraOffset = vt(0,0,0)
  6026. end))
  6027. swait(9)
  6028. end
  6029. end))
  6030. for i = 0,2,0.1 do
  6031. swait()
  6032. 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)
  6033. 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)
  6034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6036. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6037. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6038. end
  6039. attack = false
  6040. hum.WalkSpeed = storehumanoidWS
  6041. end
  6042.  
  6043. function EndGROUND()
  6044. attack = true
  6045. hum.WalkSpeed = 0
  6046. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6047. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6048. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6049. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6050. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6051. local keptcolor = MAINRUINCOLOR
  6052. for i = 0,4,0.1 do
  6053. swait()
  6054. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6055. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6056. 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"))
  6057. 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)
  6058. 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)
  6059. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6061. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6062. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6063. end
  6064. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6065. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6066. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6067. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6068. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6069. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6070. coroutine.resume(coroutine.create(function()
  6071. local shval = 10
  6072. for i = 0, 99 do
  6073. swait()
  6074. shval = shval - 0.1
  6075. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6076. end
  6077. hum.CameraOffset = vt(0,0,0)
  6078. end))
  6079. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6080. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6081. for i = 0, 24 do
  6082. 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"))
  6083. end
  6084. local rrot = 0
  6085. local xam = 1
  6086. coroutine.resume(coroutine.create(function()
  6087. for i = 0, 14 do
  6088. --swait()
  6089. rrot = rrot + 40*xam
  6090. xam = xam + 0.25
  6091. local bonus = xam
  6092. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6093. xa.Anchored = true
  6094. xa.Color = Color3.new(0,0,0)
  6095. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6096. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6097. local xc = 0
  6098. coroutine.resume(coroutine.create(function()
  6099. for i = 0, 99 do
  6100. swait()
  6101. xc = xc + 0.01
  6102. xa.Color = Color3.new(xc,0,0)
  6103. end
  6104. xa.Transparency = 1
  6105. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6106. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6107. for i = 0, 9 do
  6108. 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"))
  6109. end
  6110. 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)
  6111. 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)
  6112. 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))
  6113. game:GetService("Debris"):AddItem(xa, 5)
  6114. coroutine.resume(coroutine.create(function()
  6115. for i = 0, 19 do
  6116. swait()
  6117. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6118. end
  6119. hum.CameraOffset = vt(0,0,0)
  6120. end))
  6121. end))
  6122. end
  6123. end))
  6124. for i = 0,2,0.1 do
  6125. swait()
  6126. 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)
  6127. 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)
  6128. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6129. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6130. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6131. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6132. end
  6133. attack = false
  6134. hum.WalkSpeed = storehumanoidWS
  6135. end
  6136.  
  6137. function HeavenlyDisk()
  6138. attack = true
  6139. hum.WalkSpeed = 2
  6140. local keptcolor = MAINRUINCOLOR
  6141. local radm = math.random(1,3)
  6142. if radm == 1 then
  6143. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6144. elseif radm == 2 then
  6145. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6146. elseif radm == 3 then
  6147. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6148. end
  6149. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6150. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6151. 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)
  6152. 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)
  6153. for i = 0, 14 do
  6154. 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)
  6155. end
  6156. for i = 0,2,0.1 do
  6157. swait()
  6158. 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)
  6159. 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)
  6160. 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)
  6161. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6162. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6163. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6164. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6165. end
  6166. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6167. for i = 0,1,0.6 do
  6168. swait()
  6169. 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)
  6170. 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"))
  6171. 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)
  6172. 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)
  6173. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6174. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6175. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6176. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6177. end
  6178. for i = 0,1,0.6 do
  6179. swait()
  6180. 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)
  6181. 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"))
  6182. 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)
  6183. 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)
  6184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6186. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6187. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6188. end
  6189. for i = 0,1,0.6 do
  6190. swait()
  6191. 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)
  6192. 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"))
  6193. 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)
  6194. 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)
  6195. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6196. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6197. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6198. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6199. end
  6200. for i = 0,1,0.6 do
  6201. swait()
  6202. 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)
  6203. 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"))
  6204. 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)
  6205. 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)
  6206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6208. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6209. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6210. end
  6211. local rot = 15
  6212. for i = 0, 2 do
  6213. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6214. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6215. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6216. CreateMesh(dis,"Sphere",10,1,10)
  6217. local at1 = Instance.new("Attachment",dis)
  6218. at1.Position = vt(-5,0,0)
  6219. local at2 = Instance.new("Attachment",dis)
  6220. at2.Position = vt(5,0,0)
  6221. local trl = Instance.new('Trail',wed)
  6222. trl.Attachment0 = at1
  6223. trl.Attachment1 = at2
  6224. trl.Texture = "rbxassetid://1049219073"
  6225. trl.LightEmission = 1
  6226. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6227. trl.Color = ColorSequence.new(dis.Color)
  6228. trl.Lifetime = 0.6
  6229. local a = Instance.new("Part",workspace)
  6230. a.Name = "Direction"
  6231. a.Anchored = true
  6232. a.BrickColor = bc("Bright red")
  6233. a.Material = "Neon"
  6234. a.Transparency = 1
  6235. a.CanCollide = false
  6236. local ray = Ray.new(
  6237. dis.CFrame.p, -- origin
  6238. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6239. )
  6240. local ignore = dis
  6241. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6242. a.BottomSurface = 10
  6243. a.TopSurface = 10
  6244. local distance = (dis.CFrame.p - position).magnitude
  6245. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6246. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6247. dis.CFrame = a.CFrame
  6248. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6249. a:Destroy()
  6250. local bv = Instance.new("BodyVelocity")
  6251. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6252. bv.velocity = dis.CFrame.lookVector*250
  6253. bv.Parent = dis
  6254. game:GetService("Debris"):AddItem(dis, 5)
  6255. local hitted = false
  6256. coroutine.resume(coroutine.create(function()
  6257. dis.Touched:connect(function(hit)
  6258. if hitted == false and hit.Parent ~= char then
  6259. hitted = true
  6260. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6261. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6262. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6263. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6264. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6265. coroutine.resume(coroutine.create(function()
  6266. for i = 0, 9 do
  6267. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6268. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6269. local at1 = Instance.new("Attachment",disr)
  6270. at1.Position = vt(-2,0,0)
  6271. local at2 = Instance.new("Attachment",disr)
  6272. at2.Position = vt(2,0,0)
  6273. local trl = Instance.new('Trail',disr)
  6274. trl.Attachment0 = at1
  6275. trl.FaceCamera = true
  6276. trl.Attachment1 = at2
  6277. trl.Texture = "rbxassetid://2342682798"
  6278. trl.LightEmission = 1
  6279. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6280. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6281. trl.Lifetime = 0.5
  6282. local bv = Instance.new("BodyVelocity")
  6283. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6284. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6285. bv.Parent = disr
  6286. local val = 0
  6287. coroutine.resume(coroutine.create(function()
  6288. swait(30)
  6289. for i = 0, 9 do
  6290. swait()
  6291. val = val + 0.1
  6292. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6293. end
  6294. game:GetService("Debris"):AddItem(disr, 3)
  6295. end))
  6296. end
  6297. local eff = Instance.new("ParticleEmitter",dis)
  6298. eff.Texture = "rbxassetid://2273224484"
  6299. eff.LightEmission = 1
  6300. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6301. eff.Rate = 500000
  6302. eff.Lifetime = NumberRange.new(0.5,2)
  6303. 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)})
  6304. 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)})
  6305. eff.Speed = NumberRange.new(20,250)
  6306. eff.Drag = 5
  6307. eff.Rotation = NumberRange.new(-500,500)
  6308. eff.VelocitySpread = 9000
  6309. eff.RotSpeed = NumberRange.new(-50,50)
  6310. wait(0.25)
  6311. eff.Enabled = false
  6312. end))
  6313. for i = 0, 9 do
  6314. 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"))
  6315. end
  6316. for i = 0, 19 do
  6317. 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)
  6318. end
  6319. coroutine.resume(coroutine.create(function()
  6320. for i = 0, 19 do
  6321. swait()
  6322. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6323. end
  6324. hum.CameraOffset = vt(0,0,0)
  6325. end))
  6326. dis.Anchored = true
  6327. dis.Transparency = 1
  6328. wait(8)
  6329. dis:Destroy()
  6330. end
  6331. end)
  6332. end))
  6333. rot = rot - 15
  6334. end
  6335. for i = 0,2,0.1 do
  6336. swait()
  6337. 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)
  6338. 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)
  6339. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6341. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6342. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6343. end
  6344. attack = false
  6345. hum.WalkSpeed = storehumanoidWS
  6346. end
  6347.  
  6348.  
  6349. function RapidBurst()
  6350. attack = true
  6351. hum.WalkSpeed = 0
  6352. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6353. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6354. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6355. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6356. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6357. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6358. local keptcolor = MAINRUINCOLOR
  6359. for i = 0,8,0.1 do
  6360. swait()
  6361. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6362. 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())
  6363. 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)
  6364. 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)
  6365. 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)
  6366. 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)
  6367. 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)
  6368. 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)
  6369. 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)
  6370. end
  6371. for i = 0, 99 do
  6372. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6373. 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)))
  6374. local at1 = Instance.new("Attachment",dis)
  6375. at1.Position = vt(-25000,0,0)
  6376. local at2 = Instance.new("Attachment",dis)
  6377. at2.Position = vt(25000,0,0)
  6378. local trl = Instance.new('Trail',dis)
  6379. trl.Attachment0 = at1
  6380. trl.FaceCamera = true
  6381. trl.Attachment1 = at2
  6382. trl.Texture = "rbxassetid://1049219073"
  6383. trl.LightEmission = 1
  6384. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6385. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6386. trl.Lifetime = 5
  6387. local bv = Instance.new("BodyVelocity")
  6388. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6389. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6390. bv.Parent = dis
  6391. game:GetService("Debris"):AddItem(dis, 5)
  6392. end
  6393. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6394. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6395. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6396. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6397. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6398. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6399. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6400. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6401. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6402. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6403. hum.CameraOffset = vt(0,0,0)
  6404. for i = 0, 24 do
  6405. 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())
  6406. end
  6407. local distam = 0
  6408. coroutine.resume(coroutine.create(function()
  6409. for i = 0, 99 do
  6410. wait()
  6411. distam = distam + 1
  6412. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6413. xa.Anchored = true
  6414. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6415. game:GetService("Debris"):AddItem(xa, 5)
  6416. for i = 0, 4 do
  6417. 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())
  6418. end
  6419. coroutine.resume(coroutine.create(function()
  6420. local eff = Instance.new("ParticleEmitter",xa)
  6421. eff.Texture = "rbxassetid://2273224484"
  6422. eff.LightEmission = 1
  6423. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6424. eff.Rate = 500000
  6425. eff.Lifetime = NumberRange.new(1,3)
  6426. 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)})
  6427. 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)})
  6428. eff.Speed = NumberRange.new(50,500)
  6429. eff.Drag = 5
  6430. eff.Rotation = NumberRange.new(-500,500)
  6431. eff.VelocitySpread = 9000
  6432. eff.RotSpeed = NumberRange.new(-50,50)
  6433. wait(0.25)
  6434. eff.Enabled = false
  6435. end))
  6436. coroutine.resume(coroutine.create(function()
  6437. for i = 0, 19 do
  6438. swait()
  6439. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6440. end
  6441. hum.CameraOffset = vt(0,0,0)
  6442. end))
  6443. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6444. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6445. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6446. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6447. end
  6448. end))
  6449. attack = false
  6450. hum.WalkSpeed = storehumanoidWS
  6451. end
  6452.  
  6453. function InsaneDrop()
  6454. attack = true
  6455. hum.WalkSpeed = 0
  6456. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6457. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6458. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6459. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6460. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6461. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6462. local keptcolor = MAINRUINCOLOR
  6463. for i = 0,8,0.1 do
  6464. swait()
  6465. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6466. 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())
  6467. 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)
  6468. 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)
  6469. 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)
  6470. 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)
  6471. 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)
  6472. 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)
  6473. 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)
  6474. end
  6475. for i = 0, 99 do
  6476. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6477. 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)))
  6478. local at1 = Instance.new("Attachment",dis)
  6479. at1.Position = vt(-25000,0,0)
  6480. local at2 = Instance.new("Attachment",dis)
  6481. at2.Position = vt(25000,0,0)
  6482. local trl = Instance.new('Trail',dis)
  6483. trl.Attachment0 = at1
  6484. trl.FaceCamera = true
  6485. trl.Attachment1 = at2
  6486. trl.Texture = "rbxassetid://1049219073"
  6487. trl.LightEmission = 1
  6488. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6489. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6490. trl.Lifetime = 5
  6491. local bv = Instance.new("BodyVelocity")
  6492. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6493. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6494. bv.Parent = dis
  6495. game:GetService("Debris"):AddItem(dis, 5)
  6496. end
  6497. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6498. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6499. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6500. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6501. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6502. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6503. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6504. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6505. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6506. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6507. hum.CameraOffset = vt(0,0,0)
  6508. for i = 0, 24 do
  6509. 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())
  6510. end
  6511. local distam = 0
  6512. coroutine.resume(coroutine.create(function()
  6513. for i = 0, 99 do
  6514. wait()
  6515. distam = distam + 1
  6516. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6517. xa.Anchored = true
  6518. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6519. game:GetService("Debris"):AddItem(xa, 5)
  6520. for i = 0, 4 do
  6521. 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())
  6522. end
  6523. coroutine.resume(coroutine.create(function()
  6524. local eff = Instance.new("ParticleEmitter",xa)
  6525. eff.Texture = "rbxassetid://2273224484"
  6526. eff.LightEmission = 1
  6527. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6528. eff.Rate = 500000
  6529. eff.Lifetime = NumberRange.new(1,3)
  6530. 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)})
  6531. 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)})
  6532. eff.Speed = NumberRange.new(50,500)
  6533. eff.Drag = 5
  6534. eff.Rotation = NumberRange.new(-500,500)
  6535. eff.VelocitySpread = 9000
  6536. eff.RotSpeed = NumberRange.new(-50,50)
  6537. wait(0.25)
  6538. eff.Enabled = false
  6539. end))
  6540. coroutine.resume(coroutine.create(function()
  6541. for i = 0, 19 do
  6542. swait()
  6543. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6544. end
  6545. hum.CameraOffset = vt(0,0,0)
  6546. end))
  6547. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6548. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6549. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6550. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6551. end
  6552. end))
  6553. attack = false
  6554. hum.WalkSpeed = storehumanoidWS
  6555. end
  6556.  
  6557. function FallenOrbs()
  6558. attack = true
  6559. hum.WalkSpeed = 2
  6560. local keptcolor = MAINRUINCOLOR
  6561. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6562. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6563. local radm = math.random(1,3)
  6564. if radm == 1 then
  6565. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6566. elseif radm == 2 then
  6567. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6568. elseif radm == 3 then
  6569. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6570. end
  6571. coroutine.resume(coroutine.create(function()
  6572. for i = 0, 29 do
  6573. swait(2)
  6574. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6575. dis.Anchored = true
  6576. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6577. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6578. CreateMesh(dis,"Sphere",2,2,2)
  6579. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6580. 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"))
  6581. coroutine.resume(coroutine.create(function()
  6582. wait(0.5)
  6583. dis.Anchored = false
  6584. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6585. local at1 = Instance.new("Attachment",dis)
  6586. at1.Position = vt(-1,0,0)
  6587. local at2 = Instance.new("Attachment",dis)
  6588. at2.Position = vt(1,0,0)
  6589. local trl = Instance.new('Trail',dis)
  6590. trl.Attachment0 = at1
  6591. trl.FaceCamera = true
  6592. trl.Attachment1 = at2
  6593. trl.Texture = "rbxassetid://1049219073"
  6594. trl.LightEmission = 1
  6595. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6596. trl.Color = ColorSequence.new(dis.Color)
  6597. trl.Lifetime = 0.6
  6598. local a = Instance.new("Part",workspace)
  6599. a.Name = "Direction"
  6600. a.Anchored = true
  6601. a.BrickColor = bc("Bright red")
  6602. a.Material = "Neon"
  6603. a.Transparency = 1
  6604. a.CanCollide = false
  6605. local ray = Ray.new(
  6606. dis.CFrame.p, -- origin
  6607. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6608. )
  6609. local ignore = dis
  6610. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6611. a.BottomSurface = 10
  6612. a.TopSurface = 10
  6613. local distance = (dis.CFrame.p - position).magnitude
  6614. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6615. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6616. dis.CFrame = a.CFrame
  6617. a:Destroy()
  6618. local bv = Instance.new("BodyVelocity")
  6619. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6620. bv.velocity = dis.CFrame.lookVector*500
  6621. bv.Parent = dis
  6622. game:GetService("Debris"):AddItem(dis, 5)
  6623. local hitted = false
  6624. coroutine.resume(coroutine.create(function()
  6625. dis.Touched:connect(function(hit)
  6626. if hitted == false and hit.Parent ~= char then
  6627. hitted = true
  6628. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6629. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6630. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6631. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6632. coroutine.resume(coroutine.create(function()
  6633. for i = 0, 4 do
  6634. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6635. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6636. local at1 = Instance.new("Attachment",disr)
  6637. at1.Position = vt(-10,0,0)
  6638. local at2 = Instance.new("Attachment",disr)
  6639. at2.Position = vt(10,0,0)
  6640. local trl = Instance.new('Trail',disr)
  6641. trl.Attachment0 = at1
  6642. trl.FaceCamera = true
  6643. trl.Attachment1 = at2
  6644. trl.Texture = "rbxassetid://2342682798"
  6645. trl.LightEmission = 1
  6646. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6647. trl.Color = ColorSequence.new(disr.Color)
  6648. trl.Lifetime = 0.5
  6649. local bv = Instance.new("BodyVelocity")
  6650. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6651. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6652. bv.Parent = disr
  6653. local val = 0
  6654. coroutine.resume(coroutine.create(function()
  6655. swait(30)
  6656. for i = 0, 9 do
  6657. swait()
  6658. val = val + 0.1
  6659. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6660. end
  6661. game:GetService("Debris"):AddItem(disr, 3)
  6662. end))
  6663. end
  6664. local eff = Instance.new("ParticleEmitter",dis)
  6665. eff.Texture = "rbxassetid://1049219073"
  6666. eff.LightEmission = 1
  6667. eff.Color = ColorSequence.new(dis.Color)
  6668. eff.Rate = 500000
  6669. eff.Lifetime = NumberRange.new(0.5,2)
  6670. 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)})
  6671. 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)})
  6672. eff.Speed = NumberRange.new(20,250)
  6673. eff.Drag = 5
  6674. eff.Rotation = NumberRange.new(-500,500)
  6675. eff.VelocitySpread = 9000
  6676. eff.RotSpeed = NumberRange.new(-50,50)
  6677. wait(0.5)
  6678. eff.Enabled = false
  6679. end))
  6680. for i = 0, 4 do
  6681. 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"))
  6682. end
  6683. coroutine.resume(coroutine.create(function()
  6684. for i = 0, 19 do
  6685. swait()
  6686. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6687. end
  6688. hum.CameraOffset = vt(0,0,0)
  6689. end))
  6690. dis.Anchored = true
  6691. dis.Transparency = 1
  6692. wait(8)
  6693. dis:Destroy()
  6694. end
  6695. end)
  6696. end))
  6697. end))
  6698. end
  6699. end))
  6700. for i = 0,9,0.1 do
  6701. swait()
  6702. 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)
  6703. 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)
  6704. 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)
  6705. 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)
  6706. 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)
  6707. 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)
  6708. 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)
  6709. end
  6710. attack = false
  6711. hum.WalkSpeed = storehumanoidWS
  6712. end
  6713.  
  6714. function CyberSlash()
  6715. local posit = -2
  6716. attack = true
  6717. hum.WalkSpeed = 5
  6718. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6719. local radm = math.random(1,3)
  6720. if radm == 1 then
  6721. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6722. elseif radm == 2 then
  6723. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6724. elseif radm == 3 then
  6725. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6726. end
  6727. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6728. for i = 0,2,0.1 do
  6729. swait()
  6730. 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)
  6731. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6732. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6733. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6734. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6735. 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)
  6736. 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)
  6737. end
  6738. for i = 0, 2 do
  6739. CameraEnshaking(1,2)
  6740. local hite = Instance.new("Part", char)
  6741. hite.Anchored = true
  6742. hite.CanCollide = false
  6743. hite.FormFactor = 3
  6744. hite.Name = "Ring"
  6745. hite.Material = "Neon"
  6746. hite.Size = Vector3.new(1, 1, 1)
  6747. hite.Transparency = 1
  6748. hite.TopSurface = 0
  6749. hite.BottomSurface = 0
  6750. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6751. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6752. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6753. coroutine.resume(coroutine.create(function()
  6754. for i = 0, 1 do
  6755. swait()
  6756. 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)
  6757. 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)
  6758. 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)
  6759. end
  6760. end))
  6761. 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)
  6762. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6763. game:GetService("Debris"):AddItem(hite, 5)
  6764. posit = posit + 2
  6765. end
  6766. for i = 0,1,0.1 do
  6767. swait()
  6768. 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)
  6769. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6770. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6771. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6772. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6773. 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)
  6774. 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)
  6775. end
  6776. for i = 0,1,0.1 do
  6777. swait()
  6778. 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)
  6779. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6781. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6782. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6783. 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)
  6784. 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)
  6785. end
  6786. posit = -6
  6787. for i = 0, 6 do
  6788. CameraEnshaking(1,3)
  6789. local hite = Instance.new("Part", char)
  6790. hite.Anchored = true
  6791. hite.CanCollide = false
  6792. hite.FormFactor = 3
  6793. hite.Name = "Ring"
  6794. hite.Material = "Neon"
  6795. hite.Size = Vector3.new(1, 1, 1)
  6796. hite.Transparency = 1
  6797. hite.TopSurface = 0
  6798. hite.BottomSurface = 0
  6799. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6800. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6801. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6802. 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)
  6803. coroutine.resume(coroutine.create(function()
  6804. for i = 0, 2 do
  6805. swait()
  6806. 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)
  6807. 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)
  6808. 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)
  6809. end
  6810. end))
  6811. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6812. game:GetService("Debris"):AddItem(hite, 5)
  6813. posit = posit + 2
  6814. end
  6815. for i = 0,1,0.1 do
  6816. swait()
  6817. 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)
  6818. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6822. 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)
  6823. 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)
  6824. end
  6825. hum.WalkSpeed = storehumanoidWS
  6826. attack = false
  6827. end
  6828.  
  6829. function EquinoxOrbs()
  6830. hum.WalkSpeed = 0
  6831. attack = true
  6832. local radm = math.random(1,3)
  6833. if radm == 1 then
  6834. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6835. elseif radm == 2 then
  6836. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6837. elseif radm == 3 then
  6838. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6839. end
  6840. for i = 0,1,0.1 do
  6841. swait()
  6842. 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)
  6843. 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)
  6844. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6848. end
  6849. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6850. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6851. for i = 0, 24 do
  6852. 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"))
  6853. end
  6854. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6855. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6856. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6857. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6858. for i = 0,4,0.1 do
  6859. swait()
  6860. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6861. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6862. CreateMesh(dis,"Sphere",1,1,1)
  6863. dis.Anchored = true
  6864. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6865. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6866. CreateMesh(dis2,"Sphere",1,1,1)
  6867. dis2.Anchored = true
  6868. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6869. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6870. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6871. coroutine.resume(coroutine.create(function()
  6872. swait(60)
  6873. dis.Transparency = 1
  6874. dis2.Transparency = 1
  6875. coroutine.resume(coroutine.create(function()
  6876. for i = 0, 19 do
  6877. swait()
  6878. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6879. end
  6880. hum.CameraOffset = vt(0,0,0)
  6881. end))
  6882. coroutine.resume(coroutine.create(function()
  6883. local eff = Instance.new("ParticleEmitter",dis)
  6884. eff.Texture = "rbxassetid://2273224484"
  6885. eff.LightEmission = 1
  6886. eff.Color = ColorSequence.new(dis.Color)
  6887. eff.Rate = 500000
  6888. eff.Lifetime = NumberRange.new(0.5,2)
  6889. 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)})
  6890. 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)})
  6891. eff.Speed = NumberRange.new(50,450)
  6892. eff.Drag = 5
  6893. eff.Rotation = NumberRange.new(-500,500)
  6894. eff.VelocitySpread = 9000
  6895. eff.RotSpeed = NumberRange.new(-50,50)
  6896. local eff2 = eff:Clone()
  6897. eff2.Parent = dis2
  6898. eff2.LightEmission = 0
  6899. eff2.Color = ColorSequence.new(dis2.Color)
  6900. wait(0.25)
  6901. eff.Enabled = false
  6902. eff2.Enabled = false
  6903. end))
  6904. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6905. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6906. for i = 0, 2 do
  6907. 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)
  6908. 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)
  6909. end
  6910. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6911. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6912. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6913. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6914. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6915. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6916. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6917. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6918. end))
  6919. game:GetService("Debris"):AddItem(dis, 5)
  6920. game:GetService("Debris"):AddItem(dis2, 5)
  6921. 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)
  6922. 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)
  6923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6924. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6925. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6926. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6927. end
  6928. attack = false
  6929. hum.WalkSpeed = storehumanoidWS
  6930. end
  6931. function FallenDEMISE()
  6932. attack = true
  6933. hum.WalkSpeed = 0
  6934. local keptcolor = MAINRUINCOLOR
  6935. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6936. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6937. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6938. for i = 0, 15, 0.1 do
  6939. swait()
  6940. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6941. 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)))
  6942. local at1 = Instance.new("Attachment",dis)
  6943. at1.Position = vt(-25000,0,0)
  6944. local at2 = Instance.new("Attachment",dis)
  6945. at2.Position = vt(25000,0,0)
  6946. local trl = Instance.new('Trail',dis)
  6947. trl.Attachment0 = at1
  6948. trl.FaceCamera = true
  6949. trl.Attachment1 = at2
  6950. trl.Texture = "rbxassetid://1049219073"
  6951. trl.LightEmission = 1
  6952. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6953. trl.Color = ColorSequence.new(dis.Color)
  6954. trl.Lifetime = 5
  6955. local bv = Instance.new("BodyVelocity")
  6956. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6957. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6958. bv.Parent = dis
  6959. game:GetService("Debris"):AddItem(dis, 1)
  6960. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6961. 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"))
  6962. 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"))
  6963. 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)
  6964. 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)
  6965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6966. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6967. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6968. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6969. end
  6970. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6971. for i = 0, 30, 0.1 do
  6972. swait()
  6973. coroutine.resume(coroutine.create(function()
  6974. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6975. if v:FindFirstChild('Head') then
  6976. dmg(v)
  6977. end
  6978. end
  6979. end))
  6980. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6981. 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)))
  6982. local at1 = Instance.new("Attachment",dis)
  6983. at1.Position = vt(-50000,0,0)
  6984. local at2 = Instance.new("Attachment",dis)
  6985. at2.Position = vt(50000,0,0)
  6986. local trl = Instance.new('Trail',dis)
  6987. trl.Attachment0 = at1
  6988. trl.FaceCamera = true
  6989. trl.Attachment1 = at2
  6990. trl.Texture = "rbxassetid://1049219073"
  6991. trl.LightEmission = 1
  6992. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6993. trl.Color = ColorSequence.new(dis.Color)
  6994. trl.Lifetime = 10
  6995. local bv = Instance.new("BodyVelocity")
  6996. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6997. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6998. bv.Parent = dis
  6999. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7000. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7001. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7002. 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"))
  7003. 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"))
  7004. 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"))
  7005. 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"))
  7006. for i = 0, 2 do
  7007. 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)
  7008. end
  7009. 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)
  7010. 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)
  7011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7013. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7014. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7015. end
  7016. attack = false
  7017. hum.WalkSpeed = storehumanoidWS
  7018. end
  7019.  
  7020. function SpeedDrop()
  7021. attack = true
  7022. hum.WalkSpeed = 0
  7023. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7024. local poste = 3
  7025. local rotation = 0
  7026. local rate = 0
  7027. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7028. for i = 0, 124 do
  7029. swait()
  7030. rotation = rotation + rate
  7031. poste = poste + 0.1
  7032. rate = rate + 0.1
  7033. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7034. 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)
  7035. 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)
  7036. 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)
  7037. 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)
  7038. 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)
  7039. 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)
  7040. 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)
  7041. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7042. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7044. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7045. end
  7046. CameraEnshaking(3,7)
  7047. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7048. local loc = Instance.new("Part", char)
  7049. loc.BrickColor = MAINRUINCOLOR
  7050. loc.CanCollide = false
  7051. loc.FormFactor = 3
  7052. loc.Name = "Ring"
  7053. loc.Material = "Neon"
  7054. loc.Size = Vector3.new(1, 1, 1)
  7055. loc.Transparency = 1
  7056. loc.TopSurface = 0
  7057. loc.BottomSurface = 0
  7058. loc.Anchored = true
  7059. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7060. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7061. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7062. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7063. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7064. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7065. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7066. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7067. coroutine.resume(coroutine.create(function()
  7068. local eff = Instance.new("ParticleEmitter",loc)
  7069. eff.Texture = "rbxassetid://363275192"
  7070. eff.LightEmission = 0.95
  7071. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7072. eff.Rate = 10000
  7073. eff.Lifetime = NumberRange.new(1)
  7074. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7075. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7076. eff.Speed = NumberRange.new(100,500)
  7077. eff.Drag = 5
  7078. eff.Rotation = NumberRange.new(-500,500)
  7079. eff.VelocitySpread = 9000
  7080. eff.RotSpeed = NumberRange.new(-50,50)
  7081. wait(0.5)
  7082. eff.Enabled = false
  7083. end))
  7084. for i = 0, 49 do
  7085. 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)
  7086. end
  7087. for i = 0, 9 do
  7088. 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)
  7089. end
  7090. game:GetService("Debris"):AddItem(loc, 5)
  7091. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7092. hum.WalkSpeed = storehumanoidWS
  7093. attack = false
  7094. end
  7095.  
  7096. function cutesigh()
  7097. attack = true
  7098. hum.WalkSpeed = 0
  7099. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7100. local blush = Instance.new("Decal",hed)
  7101. blush.Texture = "rbxassetid://898404027"
  7102. blush.Face = "Front"
  7103. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7104. for i = 0, 9, 0.1 do
  7105. swait()
  7106. 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)
  7107. 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)
  7108. 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)
  7109. 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)
  7110. 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)
  7111. 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)
  7112. end
  7113. coroutine.resume(coroutine.create(function()
  7114. for i = 0, 49 do
  7115. swait()
  7116. blush.Transparency = blush.Transparency + 0.02
  7117. end
  7118. blush:Destroy()
  7119. end))
  7120. hum.WalkSpeed = storehumanoidWS
  7121. attack = false
  7122. end
  7123.  
  7124. function smiter()
  7125. local targetted = nil
  7126. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7127. targetted = mouse.Target.Parent
  7128. end
  7129. if targetted ~= nil then
  7130. RootPart.CFrame = FaceMouse()[1]
  7131. attack = true
  7132. local radm = math.random(1,3)
  7133. if radm == 1 then
  7134. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7135. elseif radm == 2 then
  7136. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7137. elseif radm == 3 then
  7138. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7139. end
  7140. hum.WalkSpeed = 0
  7141. coroutine.resume(coroutine.create(function()
  7142. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7143. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7144. local vel = Instance.new("BodyPosition", targetted.Head)
  7145. vel.P = 12500
  7146. vel.D = 1000
  7147. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7148. vel.position = targetted.Head.CFrame.p
  7149. end))
  7150. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7151. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7152. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7153. for i = 0,4,0.1 do
  7154. swait()
  7155. 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)
  7156. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7157. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7158. 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)
  7159. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7160. 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)
  7161. 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)
  7162. end
  7163. coroutine.resume(coroutine.create(function()
  7164. CameraEnshaking(6,5)
  7165. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7166. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7167. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7168. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7169. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7170. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7171. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7172. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7173. coroutine.resume(coroutine.create(function()
  7174. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7175. eff.Texture = "rbxassetid://2273224484"
  7176. eff.LightEmission = 1
  7177. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7178. eff.Rate = 500000
  7179. eff.Lifetime = NumberRange.new(0.5,2)
  7180. 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)})
  7181. 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)})
  7182. eff.Speed = NumberRange.new(20,250)
  7183. eff.Drag = 5
  7184. eff.Rotation = NumberRange.new(-500,500)
  7185. eff.VelocitySpread = 9000
  7186. eff.RotSpeed = NumberRange.new(-50,50)
  7187. wait(0.25)
  7188. eff.Enabled = false
  7189. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7190. eff.Texture = "rbxassetid://363275192"
  7191. eff.LightEmission = 0.95
  7192. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7193. eff.Rate = 10000
  7194. eff.Lifetime = NumberRange.new(1.5)
  7195. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7196. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7197. eff.Speed = NumberRange.new(25,150)
  7198. eff.Drag = 5
  7199. eff.Rotation = NumberRange.new(-500,500)
  7200. eff.VelocitySpread = 9000
  7201. eff.RotSpeed = NumberRange.new(-50,50)
  7202. local eff2 = eff:Clone()
  7203. eff2.Parent = targetted.Head
  7204. eff2.Texture = "rbxassetid://284205403"
  7205. eff2.Rate = 10000
  7206. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7207. eff2.Drag = 5
  7208. eff2.Rotation = NumberRange.new(-500,500)
  7209. eff2.VelocitySpread = 9000
  7210. wait(0.5)
  7211. eff2.Enabled = false
  7212. eff.Enabled = false
  7213. end))
  7214. for i = 0, 9 do
  7215. 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)
  7216. end
  7217. for i = 0, 49 do
  7218. local rsiz = math.random(10,50)
  7219. 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)
  7220. end
  7221. game:GetService("Debris"):AddItem(vel,1)
  7222. dmg(targetted)
  7223. end))
  7224. for i = 0,1,0.1 do
  7225. swait()
  7226. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7227. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7228. 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)
  7229. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7230. 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)
  7231. 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)
  7232. end
  7233. attack = false
  7234. hum.WalkSpeed = storehumanoidWS
  7235. end
  7236. end
  7237.  
  7238. function shytaunty()
  7239. attack = true
  7240. hum.WalkSpeed = 0
  7241. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7242. local blush = Instance.new("Decal",hed)
  7243. blush.Texture = "rbxassetid://898404027"
  7244. blush.Face = "Front"
  7245. for i = 0, 13, 0.1 do
  7246. swait()
  7247. 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)
  7248. 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)
  7249. 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)
  7250. 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)
  7251. 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)
  7252. 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)
  7253. end
  7254. coroutine.resume(coroutine.create(function()
  7255. for i = 0, 49 do
  7256. swait()
  7257. blush.Transparency = blush.Transparency + 0.02
  7258. end
  7259. blush:Destroy()
  7260. end))
  7261. hum.WalkSpeed = storehumanoidWS
  7262. attack = false
  7263. end
  7264.  
  7265. function PureBomb()
  7266. attack = true
  7267. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7268. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7269. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7270. local orb = Instance.new("Part", char)
  7271. orb.Anchored = true
  7272. orb.BrickColor = BrickColor.new("Toothpaste")
  7273. orb.CanCollide = false
  7274. orb.FormFactor = 3
  7275. orb.Name = "Ring"
  7276. orb.Material = "Neon"
  7277. orb.Size = Vector3.new(1, 1, 1)
  7278. orb.Transparency = 0
  7279. orb.TopSurface = 0
  7280. orb.BottomSurface = 0
  7281. local orbm = Instance.new("SpecialMesh", orb)
  7282. orbm.MeshType = "Sphere"
  7283. orbm.Name = "SizeMesh"
  7284. orbm.Scale = vt(0,0,0)
  7285. local scaled = 0.1
  7286. local posid = 0
  7287. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7288. for i = 0, 5, 0.1 do
  7289. swait()
  7290. scaled = scaled - 0.001
  7291. posid = posid - scaled
  7292. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7293. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7294. 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)
  7295. 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)
  7296. 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)
  7297. 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)
  7298. 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)
  7299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7301. 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)
  7302. end
  7303. for i = 0, 2, 0.1 do
  7304. swait()
  7305. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7306. 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)
  7307. 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)
  7308. 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)
  7309. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7310. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7311. 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)
  7312. end
  7313. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7314. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7315. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7316. coroutine.resume(coroutine.create(function()
  7317. orb.Anchored = false
  7318. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7319. local a = Instance.new("Part",workspace)
  7320. a.Name = "Direction"
  7321. a.Anchored = true
  7322. a.BrickColor = bc("Bright red")
  7323. a.Material = "Neon"
  7324. a.Transparency = 1
  7325. a.CanCollide = false
  7326. local ray = Ray.new(
  7327. orb.CFrame.p, -- origin
  7328. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7329. )
  7330. local ignore = orb
  7331. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7332. a.BottomSurface = 10
  7333. a.TopSurface = 10
  7334. local distance = (orb.CFrame.p - position).magnitude
  7335. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7336. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7337. orb.CFrame = a.CFrame
  7338. a:Destroy()
  7339. local bv = Instance.new("BodyVelocity")
  7340. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7341. bv.velocity = orb.CFrame.lookVector*125
  7342. bv.Parent = orb
  7343. local hitted = false
  7344. game:GetService("Debris"):AddItem(orb, 15)
  7345. wait()
  7346. local hit =orb.Touched:connect(function(hit)
  7347. if hitted == false then
  7348. hitted = true
  7349. CameraEnshaking(10,2.5)
  7350. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7351. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7352. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7353. for i = 0, 49 do
  7354. 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)
  7355. end
  7356. local eff = Instance.new("ParticleEmitter",orb)
  7357. eff.Texture = "rbxassetid://2273224484"
  7358. eff.LightEmission = 1
  7359. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7360. eff.Rate = 500000
  7361. eff.Lifetime = NumberRange.new(0.5,2)
  7362. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  7363. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7364. eff.Speed = NumberRange.new(20,250)
  7365. eff.Drag = 5
  7366. eff.Rotation = NumberRange.new(-500,500)
  7367. eff.VelocitySpread = 9000
  7368. eff.RotSpeed = NumberRange.new(-50,50)
  7369. coroutine.resume(coroutine.create(function()
  7370. wait(0.25)
  7371. eff.Enabled = false
  7372. end))
  7373. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7374. for i = 0, 9 do
  7375. 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)
  7376. 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)
  7377. end
  7378. orb.Anchored = true
  7379. orb.Transparency = 1
  7380. local eff = Instance.new("ParticleEmitter",orb)
  7381. eff.Texture = "rbxassetid://2273224484"
  7382. eff.LightEmission = 1
  7383. eff.Color = ColorSequence.new(Color3.new(M))
  7384. eff.Rate = 500000
  7385. eff.Lifetime = NumberRange.new(0.5,2)
  7386. 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)})
  7387. 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)})
  7388. eff.Speed = NumberRange.new(20,250)
  7389. eff.Drag = 5
  7390. eff.Rotation = NumberRange.new(-500,500)
  7391. eff.VelocitySpread = 9000
  7392. eff.RotSpeed = NumberRange.new(-50,50)
  7393. coroutine.resume(coroutine.create(function()
  7394. wait(1)
  7395. eff.Enabled = false
  7396. end))
  7397. wait(8)
  7398. orb:Destroy()
  7399. end
  7400. end)
  7401. end))
  7402. for i = 0, 1, 0.1 do
  7403. swait()
  7404. 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)
  7405. 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)
  7406. 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)
  7407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7408. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7409. 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)
  7410. end
  7411. attack = false
  7412. end
  7413.  
  7414.  
  7415. function BeamOfDeath()
  7416. coroutine.resume(coroutine.create(function()
  7417. attack = true
  7418. hum.WalkSpeed = 0
  7419. for i = 0, 11, 0.1 do
  7420. swait()
  7421. 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)
  7422. 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)
  7423. 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)
  7424. 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)
  7425. 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)
  7426. 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)
  7427. end
  7428. for i = 0, 1, 0.1 do
  7429. swait()
  7430. 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)
  7431. 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)
  7432. 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)
  7433. 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)
  7434. 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)
  7435. 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)
  7436. end
  7437. hum.WalkSpeed = storehumanoidWS
  7438. attack = false
  7439. end))
  7440. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7441. local radm = math.random(1,3)
  7442. if radm == 1 then
  7443. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7444. elseif radm == 2 then
  7445. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7446. elseif radm == 3 then
  7447. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7448. end
  7449. local keptcolor = MAINRUINCOLOR
  7450. local orb = Instance.new("Part", char)
  7451. orb.BrickColor = keptcolor
  7452. orb.CanCollide = false
  7453. orb.FormFactor = 3
  7454. orb.Name = "Ring"
  7455. orb.Material = "Neon"
  7456. orb.Size = Vector3.new(1, 1, 1)
  7457. orb.Transparency = 1
  7458. orb.TopSurface = 0
  7459. orb.BottomSurface = 0
  7460. local orbm = Instance.new("SpecialMesh", orb)
  7461. orbm.MeshType = "Sphere"
  7462. orbm.Name = "SizeMesh"
  7463. orbm.Scale = vt(22.5,10000,22.5)
  7464. orb.CFrame = mouse.Hit
  7465. orb.Anchored = true
  7466. orb.Orientation = vt(0,0,0)
  7467. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7468. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7469. coroutine.resume(coroutine.create(function()
  7470. coroutine.resume(coroutine.create(function()
  7471. for i = 0, 175 do
  7472. swait()
  7473. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7474. orb.Transparency = orb.Transparency - 0.005
  7475. end
  7476. end))
  7477. wait(2)
  7478. coroutine.resume(coroutine.create(function()
  7479. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7480. if hfr ~= nil then
  7481. for i = 0, 24.5 do
  7482. local deb = Instance.new("Part", char)
  7483. deb.Anchored = true
  7484. deb.CanCollide = false
  7485. deb.FormFactor = 3
  7486. deb.Name = "Ring"
  7487. deb.Material = hitfloor.Material
  7488. deb.Color = hitfloor.Color
  7489. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7490. deb.Transparency = 0
  7491. deb.TopSurface = 0
  7492. deb.BottomSurface = 0
  7493. 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)))
  7494. local deb2 = Instance.new("Part", char)
  7495. deb2.CanCollide = false
  7496. deb2.FormFactor = 3
  7497. deb2.Name = "Ring"
  7498. deb2.Material = hitfloor.Material
  7499. deb2.Color = hitfloor.Color
  7500. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7501. deb2.Transparency = 0
  7502. deb2.TopSurface = 0
  7503. deb2.BottomSurface = 0
  7504. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7505. 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)))
  7506. local eff = Instance.new("ParticleEmitter",deb)
  7507. eff.Texture = "rbxassetid://363275192"
  7508. eff.LightEmission = 0.95
  7509. eff.Color = ColorSequence.new(keptcolor.Color)
  7510. eff.Rate = 100
  7511. eff.Lifetime = NumberRange.new(1)
  7512. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7513. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7514. eff.Speed = NumberRange.new(0,5)
  7515. eff.Rotation = NumberRange.new(-500,500)
  7516. eff.VelocitySpread = 9000
  7517. eff.RotSpeed = NumberRange.new(-10,10)
  7518. local at1 = Instance.new('Attachment',deb2)
  7519. at1.Position = vt(0,15,0)
  7520. local at2 = Instance.new('Attachment',deb2)
  7521. at2.Position = vt(0,-15,0)
  7522. local tl = Instance.new('Trail',deb2)
  7523. tl.Attachment0 = at1
  7524. tl.Attachment1 = at2
  7525. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7526. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7527. tl.Lifetime = 1
  7528. game:GetService("Debris"):AddItem(deb,30)
  7529. game:GetService("Debris"):AddItem(deb2,30)
  7530. coroutine.resume(coroutine.create(function()
  7531. wait(15)
  7532. eff.Enabled = false
  7533. for i = 0, 49 do
  7534. swait()
  7535. deb.Transparency = deb.Transparency + 0.02
  7536. end
  7537. wait(1)
  7538. deb:Destroy()
  7539. end))
  7540. end
  7541. end
  7542. end))
  7543. for i = 0, 199 do
  7544. swait(1.5)
  7545. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7546. if v:FindFirstChild('Head') then
  7547. dmg(v)
  7548. end
  7549. end
  7550. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7551. 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)
  7552. 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)
  7553. 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)
  7554. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7555. end
  7556. orb:Destroy()
  7557. end))
  7558. end
  7559.  
  7560. function Beams()
  7561. attack = true
  7562. hum.WalkSpeed = 0
  7563. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7564. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7565. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7566. local keptcolor = MAINRUINCOLOR
  7567. coroutine.resume(coroutine.create(function()
  7568. for i = 0, 96 do
  7569. swait(5)
  7570. local orb = Instance.new("Part", char)
  7571. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7572. orb.BrickColor = keptcolor
  7573. orb.CanCollide = false
  7574. orb.FormFactor = 3
  7575. orb.Name = "Ring"
  7576. orb.Material = "Neon"
  7577. orb.Size = Vector3.new(1, 1, 1)
  7578. orb.Transparency = 0
  7579. orb.TopSurface = 0
  7580. orb.BottomSurface = 0
  7581. orb.Anchored = true
  7582. local orbm = Instance.new("SpecialMesh", orb)
  7583. orbm.MeshType = "Sphere"
  7584. orbm.Name = "SizeMesh"
  7585. orbm.Scale = vt(1.25,1.25,1.25)
  7586. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7587. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7588. coroutine.resume(coroutine.create(function()
  7589. wait(0.5)
  7590. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7591. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7592. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7593. orb.Transparency = 1
  7594. local a = Instance.new("Part",char)
  7595. a.Name = "Direction"
  7596. a.Anchored = true
  7597. a.BrickColor = keptcolor
  7598. a.Material = "Neon"
  7599. a.Transparency = 0.25
  7600. a.Shape = "Cylinder"
  7601. local ht = Instance.new("Part",char)
  7602. ht.Name = "DirectionHit"
  7603. ht.Anchored = true
  7604. ht.BrickColor = keptcolor
  7605. ht.CanCollide = false
  7606. ht.Transparency = 1
  7607. ht.Size = vt(0.1,0.1,0.1)
  7608. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7609. a.CanCollide = false
  7610. local ray = Ray.new(
  7611. orb.CFrame.p, -- origin
  7612. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7613. )
  7614. local ignore = char
  7615. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7616. a.BottomSurface = 10
  7617. a.TopSurface = 10
  7618. local distance = (orb.CFrame.p - position).magnitude
  7619. a.Size = Vector3.new(distance,1,1)
  7620. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7621. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7622. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7623. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7624. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7625. coroutine.resume(coroutine.create(function()
  7626. local eff = Instance.new("ParticleEmitter",ht)
  7627. eff.Texture = "rbxassetid://284205403"
  7628. eff.LightEmission = 0.95
  7629. eff.Color = ColorSequence.new(keptcolor.Color)
  7630. eff.Rate = 500
  7631. eff.Lifetime = NumberRange.new(0.5)
  7632. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7633. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7634. eff.Speed = NumberRange.new(10,50)
  7635. eff.Drag = 5
  7636. eff.Rotation = NumberRange.new(-500,500)
  7637. eff.VelocitySpread = 9000
  7638. eff.RotSpeed = NumberRange.new(-500,500)
  7639. wait(0.25)
  7640. eff.Enabled = false
  7641. end))
  7642. for i = 0, 4 do
  7643. 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)
  7644. 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)
  7645. local rsiz = math.random(10,30)
  7646. 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)
  7647. end
  7648. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7649. local msh = Instance.new("SpecialMesh",a)
  7650. msh.MeshType = "Cylinder"
  7651. msh.Scale = vt(1,1,1)
  7652. for i = 0, 49 do
  7653. swait()
  7654. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7655. a.Transparency = a.Transparency + 0.02
  7656. end
  7657. orb:Destroy()
  7658. a:Destroy()
  7659. ht:Destroy()
  7660. end))
  7661. game:GetService("Debris"):AddItem(orb, 10)
  7662. end
  7663. end))
  7664. for i = 0,6,0.1 do
  7665. swait()
  7666. 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)
  7667. 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)
  7668. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7669. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7670. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7671. 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)
  7672. 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)
  7673. end
  7674. hum.WalkSpeed = storehumanoidWS
  7675. attack = false
  7676. end
  7677.  
  7678. function GalacticalBeams()
  7679. attack = true
  7680. local keptcolor = MAINRUINCOLOR
  7681. coroutine.resume(coroutine.create(function()
  7682. for i = 0, 0 do
  7683. swait(10)
  7684. local orb = Instance.new("Part", char)
  7685. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  7686. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  7687. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  7688. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  7689. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7690. orb.BrickColor = keptcolor
  7691. orb.CanCollide = false
  7692. orb.FormFactor = 3
  7693. orb.Name = "Ring"
  7694. orb.Material = "Neon"
  7695. orb.Size = Vector3.new(1, 1, 1)
  7696. orb.Transparency = 1
  7697. orb.TopSurface = 0
  7698. orb.BottomSurface = 0
  7699. orb.Anchored = true
  7700. local orbm = Instance.new("SpecialMesh", orb)
  7701. orbm.MeshType = "Sphere"
  7702. orbm.Name = "SizeMesh"
  7703. orbm.Scale = vt(1.25,1.25,1.25)
  7704. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  7705. coroutine.resume(coroutine.create(function()
  7706. orb.Transparency = 1
  7707. local a = Instance.new("Part",char)
  7708. a.Name = "Direction"
  7709. a.Anchored = true
  7710. a.BrickColor = keptcolor
  7711. a.Material = "Neon"
  7712. a.Transparency = 1
  7713. a.Shape = "Cylinder"
  7714. local x = Instance.new("Part",char)
  7715. x.Name = "Direction"
  7716. x.Anchored = true
  7717. x.BrickColor = keptcolor
  7718. x.Material = "Neon"
  7719. x.Transparency = 1
  7720. x.Shape = "Cylinder"
  7721. local ht = Instance.new("Part",char)
  7722. ht.Name = "DirectionHit"
  7723. ht.Anchored = true
  7724. ht.BrickColor = keptcolor
  7725. ht.CanCollide = false
  7726. ht.Transparency = 1
  7727. ht.Size = vt(0.1,0.1,0.1)
  7728. a.CanCollide = false
  7729. local ray = Ray.new(
  7730. orb.CFrame.p, -- origin
  7731. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  7732. )
  7733. local ignore = char
  7734. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7735. a.BottomSurface = 10
  7736. a.TopSurface = 10
  7737. local distance = (orb.CFrame.p - position).magnitude
  7738. a.Size = Vector3.new(distance,1,1)
  7739. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7740. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7741. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7742. local poste = 0
  7743. local rotation = 0
  7744. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  7745. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  7746. CameraEnshaking(2,2)
  7747. coroutine.resume(coroutine.create(function()
  7748. local eff = Instance.new("ParticleEmitter",orb)
  7749. eff.Texture = "rbxassetid://2273224484"
  7750. eff.LightEmission = 1
  7751. eff.Color = ColorSequence.new(keptcolor.Color)
  7752. eff.Rate = 15000
  7753. eff.Lifetime = NumberRange.new(2.5,5)
  7754. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,60,0),NumberSequenceKeypoint.new(0.2,3,0),NumberSequenceKeypoint.new(0.8,24,0),NumberSequenceKeypoint.new(1,0,0)})
  7755. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7756. eff.Speed = NumberRange.new(100,650)
  7757. eff.Drag = 5
  7758. eff.Rotation = NumberRange.new(-500,500)
  7759. eff.VelocitySpread = 9000
  7760. eff.RotSpeed = NumberRange.new(-50,50)
  7761. wait(0.35)
  7762. eff.Enabled = false
  7763. end))
  7764. for i = 0, 49 do
  7765. swait()
  7766. rotation = rotation + 5
  7767. poste = poste + 1
  7768. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7769. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7770. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7771. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7772. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7773. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7774. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7775. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7776. end
  7777. local A1 = Instance.new("Attachment",x)
  7778. local A2 = Instance.new("Attachment",ht)
  7779. local Beem = Instance.new("Beam",ht)
  7780. Beem.Attachment0 = A1
  7781. Beem.Attachment1 = A2
  7782. Beem.LightEmission = 1
  7783. Beem.FaceCamera = true
  7784. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  7785. Beem.Width0 = 125
  7786. Beem.Width1 = 125
  7787. Beem.Texture = "rbxassetid://1134824633"
  7788. Beem.TextureMode = "Wrap"
  7789. Beem.TextureLength = 200
  7790. Beem.TextureSpeed = 1.5
  7791. Beem.Color = ColorSequence.new(keptcolor.Color)
  7792. CameraEnshaking(3,6)
  7793. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 1.5, 1)
  7794. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  7795. a.Transparency = 0.25
  7796. for i = 0, 49 do
  7797. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  7798. disr.CFrame = ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7799. local at1 = Instance.new("Attachment",disr)
  7800. at1.Position = vt(-5,0,0)
  7801. local at2 = Instance.new("Attachment",disr)
  7802. at2.Position = vt(5,0,0)
  7803. local trl = Instance.new('Trail',disr)
  7804. trl.Attachment0 = at1
  7805. trl.FaceCamera = true
  7806. trl.Attachment1 = at2
  7807. trl.Texture = "rbxassetid://2325530138"
  7808. trl.LightEmission = 1
  7809. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7810. trl.Color = ColorSequence.new(keptcolor.Color)
  7811. trl.Lifetime = 0.5
  7812. local bv = Instance.new("BodyVelocity")
  7813. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7814. bv.velocity = disr.CFrame.lookVector*math.random(50,500)
  7815. bv.Parent = disr
  7816. local val = 0
  7817. coroutine.resume(coroutine.create(function()
  7818. swait(math.random(30,60))
  7819. for i = 0, 19 do
  7820. swait()
  7821. val = val + 0.05
  7822. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  7823. end
  7824. game:GetService("Debris"):AddItem(disr, 3)
  7825. end))
  7826. end
  7827. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  7828. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  7829. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  7830. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  7831. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  7832. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  7833. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  7834. local eff = Instance.new("ParticleEmitter",ht)
  7835. eff.Texture = "rbxassetid://2273224484"
  7836. eff.LightEmission = 1
  7837. eff.Color = ColorSequence.new(keptcolor.Color)
  7838. eff.Rate = 500
  7839. eff.Lifetime = NumberRange.new(1,3)
  7840. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,10,0),NumberSequenceKeypoint.new(1,0,0)})
  7841. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  7842. eff.Speed = NumberRange.new(80,700)
  7843. eff.Drag = 3
  7844. eff.Rotation = NumberRange.new(-500,500)
  7845. eff.VelocitySpread = 9000
  7846. eff.RotSpeed = NumberRange.new(-100,100)
  7847. for i = 0, 24 do
  7848. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  7849. local rsiz = math.random(10,50)
  7850. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  7851. end
  7852. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7853. local msh = Instance.new("SpecialMesh",a)
  7854. msh.MeshType = "Cylinder"
  7855. msh.Scale = vt(1,15,15)
  7856. for i = 0, 49 do
  7857. swait()
  7858. CameraEnshaking(1,4)
  7859. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  7860. rotation = rotation + 5
  7861. slash(math.random(30,90)/10,5,true,"Round","Add","Out",ht.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,450)/250,BrickColor.new("White"))
  7862. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  7863. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  7864. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  7865. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7866. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7867. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7868. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7869. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7870. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7871. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7872. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  7873. for i = 0, 2 do
  7874. local rsiz = math.random(50,250)
  7875. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  7876. end
  7877. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  7878. end
  7879. eff.Enabled = false
  7880. local visibility = 0
  7881. for i = 0, 49 do
  7882. swait()
  7883. visibility = visibility + 0.02
  7884. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  7885. rotation = rotation + 5
  7886. poste = poste - 1
  7887. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7888. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7889. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7890. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7891. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7892. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7893. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7894. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  7895. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  7896. a.Transparency = a.Transparency + 0.02
  7897. end
  7898. wait(1)
  7899. orb:Destroy()
  7900. a:Destroy()
  7901. ht:Destroy()
  7902. end))
  7903. game:GetService("Debris"):AddItem(orb, 10)
  7904. end
  7905. end))
  7906. hum.WalkSpeed = storehumanoidWS
  7907. attack = false
  7908. end
  7909.  
  7910. function CalamityTrans()
  7911. attack = true
  7912. rainbowmode = false
  7913. chaosmode = false
  7914. ModeOfGlitch = 8889
  7915. hum.WalkSpeed = 0
  7916. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7917. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7918. elocacenter.Anchored = true
  7919. elocacenter.CFrame = root.CFrame
  7920. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7921. eloca1.Anchored = true
  7922. eloca1.CFrame = elocacenter.CFrame
  7923. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7924. eloca2.Anchored = true
  7925. eloca2.CFrame = elocacenter.CFrame
  7926. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7927. eloca3.Anchored = true
  7928. eloca3.CFrame = elocacenter.CFrame
  7929. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7930. eloca4.Anchored = true
  7931. eloca4.CFrame = elocacenter.CFrame
  7932. local lookavec = 0
  7933. local speeds = 0
  7934. CameraEnshaking(3,2.5)
  7935. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7936. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7937. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7938. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7939. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7940. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7941. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7942. for i = 0, 5, 0.1 do
  7943. swait()
  7944. ---
  7945. lookavec = lookavec + 1
  7946. speeds = speeds + 10
  7947. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7948. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7949. 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)
  7950. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7951. 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)
  7952. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7953. 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)
  7954. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7955. 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)
  7956. ---
  7957. 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)
  7958. 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)
  7959. 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)
  7960. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7961. 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)
  7962. 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)
  7963. end
  7964. for i = 0, 5, 0.1 do
  7965. swait()
  7966. ---
  7967. speeds = speeds + 10
  7968. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7969. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7970. 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)
  7971. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7972. 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)
  7973. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7974. 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)
  7975. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7976. 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)
  7977. ---
  7978. 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)
  7979. 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)
  7980. 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)
  7981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7982. 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)
  7983. 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)
  7984. end
  7985. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7986. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7987. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7988. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7989. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7990. CameraEnshaking(1,3)
  7991. for i = 0, 24 do
  7992. 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)
  7993. 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)
  7994. 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)
  7995. 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)
  7996. end
  7997. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7998. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7999. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8000. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8001. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8002. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8003. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8004. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8005. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8006. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8007. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8008. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8009. for i = 0, 5, 0.1 do
  8010. swait()
  8011. ---
  8012. lookavec = lookavec - 1
  8013. speeds = speeds + 10
  8014. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  8015. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  8016. 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)
  8017. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  8018. 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)
  8019. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  8020. 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)
  8021. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  8022. 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)
  8023. ---
  8024. 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)
  8025. 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)
  8026. 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)
  8027. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  8028. 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)
  8029. 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)
  8030. end
  8031. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8032. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8033. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8034. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8035. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8036. for i = 0, 49 do
  8037. 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)
  8038. 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)
  8039. end
  8040. CameraEnshaking(5,6)
  8041. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  8042. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  8043. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  8044. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  8045. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  8046. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  8047. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  8048. storehumanoidWS = 100
  8049. hum.WalkSpeed = 100
  8050. rainbowmode = false
  8051. chaosmode = false
  8052. tl1.Enabled = true
  8053. tl2.Enabled = true
  8054. tl3.Enabled = true
  8055. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  8056. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8057. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8058. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8059. for i, v in pairs(mw2:GetChildren()) do
  8060. if v:IsA("Part") then
  8061. v.BrickColor = MAINRUINCOLOR
  8062. v.Material = "Neon"
  8063. end
  8064. end
  8065. for i, v in pairs(mw1:GetChildren()) do
  8066. if v:IsA("Part") then
  8067. v.Transparency = 0
  8068. v.BrickColor = MAINRUINCOLOR
  8069. v.Material = "Neon"
  8070. end
  8071. end
  8072. for i, v in pairs(m:GetChildren()) do
  8073. if v:IsA("Part") then
  8074. v.Color = Color3.new(0.5,0,1)
  8075. v.Material = "Neon"
  8076. end
  8077. end
  8078. for i, v in pairs(m2:GetChildren()) do
  8079. if v:IsA("Part") then
  8080. v.Color = Color3.new(0.25,0,1)
  8081. v.Material = "Neon"
  8082. end
  8083. end
  8084. for i, v in pairs(m3:GetChildren()) do
  8085. if v:IsA("Part") then
  8086. v.Color = Color3.new(0.45,0,1)
  8087. v.Material = "Neon"
  8088. end
  8089. end
  8090. for i, v in pairs(extrawingmod1:GetChildren()) do
  8091. if v:IsA("Part") then
  8092. v.Transparency = 0.75
  8093. v.Color = Color3.new(0.25,0,1)
  8094. v.Material = "Neon"
  8095. end
  8096. end
  8097. for i, v in pairs(extrawingmod2:GetChildren()) do
  8098. if v:IsA("Part") then
  8099. v.Transparency = 0.75
  8100. v.Color = Color3.new(0.5,0,1)
  8101. v.Material = "Neon"
  8102. end
  8103. end
  8104. attack = false
  8105. end
  8106.  
  8107. function InsaneTrans()
  8108. attack = true
  8109. rainbowmode = false
  8110. chaosmode = false
  8111. ModeOfGlitch = 8889
  8112. hum.WalkSpeed = 0
  8113. newThemeCust("rbxassetid://183142252",1,1,10)
  8114. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  8115. elocacenter.Anchored = true
  8116. elocacenter.CFrame = root.CFrame
  8117. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  8118. eloca1.Anchored = true
  8119. eloca1.CFrame = elocacenter.CFrame
  8120. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  8121. eloca2.Anchored = true
  8122. eloca2.CFrame = elocacenter.CFrame
  8123. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  8124. eloca3.Anchored = true
  8125. eloca3.CFrame = elocacenter.CFrame
  8126. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  8127. eloca4.Anchored = true
  8128. eloca4.CFrame = elocacenter.CFrame
  8129. local lookavec = 0
  8130. local speeds = 0
  8131. CameraEnshaking(3,2.5)
  8132. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  8133. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  8134. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  8135. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  8136. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  8137. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  8138. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  8139. for i = 0, 5, 0.1 do
  8140. swait()
  8141. ---
  8142. lookavec = lookavec + 1
  8143. speeds = speeds + 10
  8144. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  8145. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  8146. 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)
  8147. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  8148. 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)
  8149. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  8150. 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)
  8151. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  8152. 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)
  8153. ---
  8154. 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)
  8155. 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)
  8156. 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)
  8157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  8158. 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)
  8159. 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)
  8160. end
  8161. for i = 0, 5, 0.1 do
  8162. swait()
  8163. ---
  8164. speeds = speeds + 10
  8165. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  8166. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  8167. 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)
  8168. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  8169. 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)
  8170. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  8171. 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)
  8172. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  8173. 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)
  8174. ---
  8175. 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)
  8176. 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)
  8177. 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)
  8178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  8179. 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)
  8180. 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)
  8181. end
  8182. MAINRUINCOLOR = BrickColor.new("Really black")
  8183. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  8184. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  8185. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  8186. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  8187. CameraEnshaking(1,3)
  8188. for i = 0, 24 do
  8189. 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)
  8190. 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)
  8191. 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)
  8192. 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)
  8193. end
  8194. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8195. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8196. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8197. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8198. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8199. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8200. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8201. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8202. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8203. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8204. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8205. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8206. for i = 0, 5, 0.1 do
  8207. swait()
  8208. ---
  8209. lookavec = lookavec - 1
  8210. speeds = speeds + 10
  8211. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  8212. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  8213. 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)
  8214. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  8215. 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)
  8216. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  8217. 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)
  8218. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  8219. 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)
  8220. ---
  8221. 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)
  8222. 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)
  8223. 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)
  8224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  8225. 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)
  8226. 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)
  8227. end
  8228. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8229. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8230. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8231. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8232. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  8233. for i = 0, 49 do
  8234. 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)
  8235. 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)
  8236. end
  8237. CameraEnshaking(5,6)
  8238. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  8239. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  8240. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  8241. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  8242. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  8243. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  8244. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  8245. storehumanoidWS = 100
  8246. hum.WalkSpeed = 100
  8247. rainbowmode = false
  8248. chaosmode = false
  8249. tl1.Enabled = true
  8250. tl2.Enabled = true
  8251. tl3.Enabled = true
  8252. RecolorTextAndRename("The Big Black",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  8253. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8254. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8255. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8256. for i, v in pairs(mw2:GetChildren()) do
  8257. if v:IsA("Part") then
  8258. v.BrickColor = MAINRUINCOLOR
  8259. v.Material = "Neon"
  8260. end
  8261. end
  8262. for i, v in pairs(mw1:GetChildren()) do
  8263. if v:IsA("Part") then
  8264. v.Transparency = 0
  8265. v.BrickColor = MAINRUINCOLOR
  8266. v.Material = "Neon"
  8267. end
  8268. end
  8269. for i, v in pairs(m:GetChildren()) do
  8270. if v:IsA("Part") then
  8271. v.Color = Color3.new(170,0,0)
  8272. v.Material = "Neon"
  8273. end
  8274. end
  8275. for i, v in pairs(m2:GetChildren()) do
  8276. if v:IsA("Part") then
  8277. v.Color = Color3.new(0,0,0)
  8278. v.Material = "Neon"
  8279. end
  8280. end
  8281. for i, v in pairs(m3:GetChildren()) do
  8282. if v:IsA("Part") then
  8283. v.Color = Color3.new(0,0,0)
  8284. v.Material = "Neon"
  8285. end
  8286. end
  8287. for i, v in pairs(extrawingmod1:GetChildren()) do
  8288. if v:IsA("Part") then
  8289. v.Transparency = 0.75
  8290. v.Color = Color3.new(0,0,0)
  8291. v.Material = "Neon"
  8292. end
  8293. end
  8294. for i, v in pairs(extrawingmod2:GetChildren()) do
  8295. if v:IsA("Part") then
  8296. v.Transparency = 0.75
  8297. v.Color = Color3.new(0,0,0)
  8298. v.Material = "Neon"
  8299. end
  8300. end
  8301. attack = false
  8302. end
  8303.  
  8304. function GleamingBeam()
  8305. attack = true
  8306. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  8307. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8308. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8309. local rsiz = math.random(1,15)
  8310. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8311. hb.Anchored = true
  8312. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8313. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8314. for i = 0, 16, 0.1 do
  8315. swait()
  8316. rsiz = math.random(5,15)
  8317. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8318. 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)
  8319. 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)
  8320. 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)
  8321. 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)
  8322. 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)
  8323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8324. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8325. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8326. end
  8327. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8328. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8329. for i = 0, 2 do
  8330. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8331. end
  8332. 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)
  8333. 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)
  8334. 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)
  8335. for i = 0, 49 do
  8336. local rsiza = math.random(1,15)
  8337. 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)
  8338. end
  8339. local a = Instance.new("Part",Character)
  8340. a.Name = "Direction"
  8341. a.Anchored = true
  8342. a.BrickColor = MAINRUINCOLOR
  8343. a.Material = "Neon"
  8344. a.Transparency = 0
  8345. a.Shape = "Cylinder"
  8346. a.CanCollide = false
  8347. local ba = Instance.new("Part",Character)
  8348. ba.Name = "HitDirect"
  8349. ba.Anchored = true
  8350. ba.BrickColor = bc("Cool yellow")
  8351. ba.Material = "Neon"
  8352. ba.Transparency = 1
  8353. ba.CanCollide = false
  8354. local ray = Ray.new(
  8355. hb.CFrame.p, -- origin
  8356. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8357. )
  8358. local ignore = Character
  8359. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8360. a.BottomSurface = 10
  8361. a.TopSurface = 10
  8362. local distance = (hb.CFrame.p - position).magnitude
  8363. a.Size = Vector3.new(distance, 1, 1)
  8364. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8365. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8366. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8367. local msh = Instance.new("SpecialMesh",a)
  8368. msh.MeshType = "Cylinder"
  8369. msh.Scale = vt(1,4,4)
  8370. game:GetService("Debris"):AddItem(a, 30)
  8371. game:GetService("Debris"):AddItem(ba, 30)
  8372. for i = 0, 25, 0.1 do
  8373. swait()
  8374. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8375. ray = Ray.new(
  8376. hb.CFrame.p, -- origin
  8377. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8378. )
  8379. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8380. distance = (hb.CFrame.p - position).magnitude
  8381. a.Size = Vector3.new(distance, 1, 1)
  8382. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8383. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8384. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8385. rsiz = math.random(5,25)
  8386. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8387. 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)
  8388. for c = 0, 2 do
  8389. 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)
  8390. end
  8391. 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)
  8392. 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)
  8393. 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)
  8394. 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)
  8395. 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)
  8396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8397. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8398. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8399. end
  8400. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8401. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8402. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8403. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8404. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8405. 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)
  8406. 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)
  8407. 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)
  8408. 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)
  8409. 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)
  8410. 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)
  8411. for i = 0, 49 do
  8412. local rsiza = math.random(1,15)
  8413. 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)
  8414. end
  8415. for i = 0, 49 do
  8416. rsiz = math.random(1,8)
  8417. 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)
  8418. end
  8419. coroutine.resume(coroutine.create(function()
  8420. for i = 0, 99 do
  8421. swait()
  8422. a.Transparency = a.Transparency + 0.01
  8423. end
  8424. a:Destroy()
  8425. ba:Destroy()
  8426. end))
  8427. hb:Destroy()
  8428. attack = false
  8429. end
  8430.  
  8431. function DualGleamingBeam()
  8432. attack = true
  8433. hum.WalkSpeed = 0
  8434. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8435. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8436. local radm = math.random(1,3)
  8437. if radm == 1 then
  8438. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8439. elseif radm == 2 then
  8440. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8441. elseif radm == 3 then
  8442. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8443. end
  8444. local rsiz = math.random(1,15)
  8445. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8446. hb.Anchored = true
  8447. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8448. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8449. hb2.Anchored = true
  8450. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8451. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8452. for i = 0, 14, 0.1 do
  8453. swait()
  8454. rsiz = math.random(5,15)
  8455. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8456. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8457. 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)
  8458. 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)
  8459. 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)
  8460. 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"))
  8461. 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)
  8462. 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)
  8463. 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)
  8464. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8465. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8466. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8467. end
  8468. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8469. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8470. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8471. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8472. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8473. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8474. 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)
  8475. 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)
  8476. 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)
  8477. 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"))
  8478. 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"))
  8479. 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"))
  8480. for i = 0, 49 do
  8481. local rsiza = math.random(1,15)
  8482. 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)
  8483. 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)
  8484. end
  8485. local a = Instance.new("Part",Character)
  8486. a.Name = "Direction"
  8487. a.Anchored = true
  8488. a.BrickColor = MAINRUINCOLOR
  8489. a.Material = "Neon"
  8490. a.Transparency = 0
  8491. a.Shape = "Cylinder"
  8492. a.CanCollide = false
  8493. local a2 = Instance.new("Part",Character)
  8494. a2.Name = "Direction"
  8495. a2.Anchored = true
  8496. a2.BrickColor = MAINRUINCOLOR
  8497. a2.Material = "Neon"
  8498. a2.Transparency = 0
  8499. a2.Shape = "Cylinder"
  8500. a2.CanCollide = false
  8501. local ba = Instance.new("Part",Character)
  8502. ba.Name = "HitDirect"
  8503. ba.Anchored = true
  8504. ba.BrickColor = MAINRUINCOLOR
  8505. ba.Material = "Neon"
  8506. ba.Transparency = 1
  8507. ba.CanCollide = false
  8508. local ba2 = Instance.new("Part",Character)
  8509. ba2.Name = "HitDirect"
  8510. ba2.Anchored = true
  8511. ba2.BrickColor = MAINRUINCOLOR
  8512. ba2.Material = "Neon"
  8513. ba2.Transparency = 1
  8514. ba2.CanCollide = false
  8515. local ray = Ray.new(
  8516. hb.CFrame.p, -- origin
  8517. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8518. )
  8519. local ignore = Character
  8520. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8521. local ray2 = Ray.new(
  8522. hb2.CFrame.p, -- origin
  8523. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8524. )
  8525. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8526. local distance2 = (hb2.CFrame.p - position).magnitude
  8527.  
  8528. a.BottomSurface = 10
  8529. a.TopSurface = 10
  8530. local distance = (hb.CFrame.p - position).magnitude
  8531. a.Size = Vector3.new(distance, 1, 1)
  8532. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8533. a2.BottomSurface = 10
  8534. a2.TopSurface = 10
  8535. a2.Size = Vector3.new(distance2, 1, 1)
  8536. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8537. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8538. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8539. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8540. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8541. local msh = Instance.new("SpecialMesh",a)
  8542. msh.MeshType = "Cylinder"
  8543. msh.Scale = vt(1,4,4)
  8544. local msh2 = Instance.new("SpecialMesh",a2)
  8545. msh2.MeshType = "Cylinder"
  8546. msh2.Scale = vt(1,4,4)
  8547. game:GetService("Debris"):AddItem(a, 30)
  8548. game:GetService("Debris"):AddItem(a2, 30)
  8549. game:GetService("Debris"):AddItem(ba, 30)
  8550. game:GetService("Debris"):AddItem(ba2, 30)
  8551. for i = 0, 20, 0.1 do
  8552. swait()
  8553. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8554. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8555. ray = Ray.new(
  8556. hb.CFrame.p, -- origin
  8557. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8558. )
  8559. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8560. distance = (hb.CFrame.p - position).magnitude
  8561. ray2 = Ray.new(
  8562. hb2.CFrame.p, -- origin
  8563. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8564. )
  8565. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8566. distance2 = (hb2.CFrame.p - position).magnitude
  8567. a.Size = Vector3.new(distance, 1, 1)
  8568. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8569. a2.Size = Vector3.new(distance2, 1, 1)
  8570. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8571. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8572. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8573. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8574. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8575. rsiz = math.random(5,25)
  8576. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8577. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8578. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8579. if v:FindFirstChild('Head') then
  8580. dmg(v)
  8581. end
  8582. end
  8583. coroutine.resume(coroutine.create(function()
  8584. local bx = Instance.new("Part",Character)
  8585. bx.Name = "Location"
  8586. bx.Anchored = true
  8587. bx.BrickColor = MAINRUINCOLOR
  8588. bx.Material = "Neon"
  8589. bx.Transparency = 1
  8590. bx.CanCollide = false
  8591. bx.Position = ba.Position
  8592. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8593. wait(math.random(1,2))
  8594. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8595. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8596. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8597. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8598. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8599. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8600. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8601. if v:FindFirstChild('Head') then
  8602. dmg(v)
  8603. end
  8604. end
  8605. wait(5)
  8606. bx:Destroy()
  8607. end))
  8608. 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)
  8609. 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)
  8610. for c = 0, 2 do
  8611. 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)
  8612. end
  8613. 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)
  8614. 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)
  8615. 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)
  8616. 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)
  8617. 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)
  8618. 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)
  8619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8620. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8621. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8622. end
  8623. for i = 0, 1 do
  8624. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8625. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8626. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8627. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8628. end
  8629. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8630. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8631. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8632. if v:FindFirstChild('Head') then
  8633. dmg(v)
  8634. end
  8635. end
  8636. 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)
  8637. 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)
  8638. 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)
  8639. 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)
  8640. 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)
  8641. 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)
  8642. 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"))
  8643. 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"))
  8644. 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"))
  8645. for i = 0, 49 do
  8646. local rsiza = math.random(1,15)
  8647. 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)
  8648. 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)
  8649. end
  8650. for i = 0, 49 do
  8651. rsiz = math.random(1,8)
  8652. 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)
  8653. end
  8654. coroutine.resume(coroutine.create(function()
  8655. for i = 0, 99 do
  8656. swait()
  8657. a.Transparency = a.Transparency + 0.01
  8658. a2.Transparency = a2.Transparency + 0.01
  8659. end
  8660. a:Destroy()
  8661. ba:Destroy()
  8662. a2:Destroy()
  8663. ba2:Destroy()
  8664. end))
  8665. hum.WalkSpeed = storehumanoidWS
  8666. hb:Destroy()
  8667. hb2:Destroy()
  8668. attack = false
  8669. end
  8670.  
  8671. function dragin()
  8672. local targetted = nil
  8673. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8674. targetted = mouse.Target.Parent
  8675. end
  8676. if targetted ~= nil then
  8677. RootPart.CFrame = FaceMouse()[1]
  8678. attack = true
  8679. hum.WalkSpeed = 0
  8680. for x = 0, 1 do
  8681. for i = 0,1,0.5 do
  8682. swait()
  8683. 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)
  8684. 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)
  8685. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8687. 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)
  8688. 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)
  8689. end
  8690. for i = 0,1,0.5 do
  8691. swait()
  8692. 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)
  8693. 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)
  8694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8696. 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)
  8697. 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)
  8698. end
  8699. for i = 0,1,0.5 do
  8700. swait()
  8701. 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)
  8702. 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)
  8703. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8704. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8705. 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)
  8706. 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)
  8707. end
  8708. for i = 0,1,0.5 do
  8709. swait()
  8710. 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)
  8711. 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)
  8712. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8714. 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)
  8715. 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)
  8716. end
  8717. end
  8718. coroutine.resume(coroutine.create(function()
  8719. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8720. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8721. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8722. end))
  8723. local A1 = Instance.new("Attachment",targetted.Head)
  8724. local A2 = Instance.new("Attachment",sorb)
  8725. local Beem = Instance.new("Beam",tors)
  8726. Beem.Attachment0 = A1
  8727. Beem.Attachment1 = A2
  8728. Beem.Texture = "rbxassetid://897585362"
  8729. Beem.LightEmission = 0.75
  8730. Beem.FaceCamera = true
  8731. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8732. Beem.Width0 = 1
  8733. Beem.Width1 = 1
  8734. Beem.TextureMode = "Wrap"
  8735. Beem.TextureLength = 1
  8736. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8737. 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)
  8738. 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)
  8739. for x = 0, 24 do
  8740. local rsiz = math.random(5,15)
  8741. 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)
  8742. end
  8743.  
  8744. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8745. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8746. local radm = math.random(1,2)
  8747. if radm == 1 then
  8748. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8749. elseif radm == 2 then
  8750. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8751. end
  8752. for i = 0,3,0.1 do
  8753. swait()
  8754. coroutine.resume(coroutine.create(function()
  8755. local rsiz = math.random(5,15)
  8756. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8757. 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)
  8758. end))
  8759. 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)
  8760. 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)
  8761. 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)
  8762. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8763. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8764. 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)
  8765. 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)
  8766. end
  8767. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8768. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8769. local vel = Instance.new("BodyPosition", targetted.Head)
  8770. vel.P = 12500
  8771. vel.D = 1000
  8772. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8773. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8774. for i = 0,4,0.1 do
  8775. swait()
  8776. coroutine.resume(coroutine.create(function()
  8777. local rsiz = math.random(5,15)
  8778. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8779. 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)
  8780. end))
  8781. 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)
  8782. 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)
  8783. 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)
  8784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8786. 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)
  8787. 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)
  8788. end
  8789. local visibility = 0
  8790. coroutine.resume(coroutine.create(function()
  8791. for i = 0, 49 do
  8792. swait()
  8793. visibility = visibility + 0.02
  8794. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8795. end
  8796. Beem:Destroy()
  8797. A1:Destroy()
  8798. A2:Destroy()
  8799. end))
  8800. game:GetService("Debris"):AddItem(vel,0.75)
  8801. attack = false
  8802. hum.WalkSpeed = storehumanoidWS
  8803.  
  8804. end
  8805. end
  8806.  
  8807. function hugg()
  8808. attack = true
  8809. hum.WalkSpeed = 5
  8810. local rsiz = math.random(5,15)
  8811. for i = 0, 2, 0.1 do
  8812. swait()
  8813. 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)
  8814. 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)
  8815. 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)
  8816. 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)
  8817. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8818. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8819. end
  8820. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8821. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8822. hb.Anchored = true
  8823. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8824. local huggedperson = nil
  8825. local act = false
  8826. local alreadydid = false
  8827. for i = 0, 3, 0.1 do
  8828. swait()
  8829. if act == false then
  8830. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8831. if v:FindFirstChild('Head') then
  8832. if alreadydid == false then
  8833. huggedperson = v
  8834. hum.WalkSpeed = 0
  8835. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8836. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8837. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8838. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8839. local radm = math.random(1,3)
  8840. if radm == 1 then
  8841. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8842. elseif radm == 2 then
  8843. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8844. elseif radm == 3 then
  8845. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8846. end
  8847. root.Anchored = true
  8848. coroutine.resume(coroutine.create(function()
  8849. huggedperson.Humanoid.WalkSpeed = 0
  8850. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8851. end))
  8852. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8853. alreadydid = true
  8854. act = true
  8855. print(huggedperson.Name)
  8856. end
  8857. end
  8858. end
  8859. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8860. 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)
  8861. elseif act == true then
  8862. coroutine.resume(coroutine.create(function()
  8863. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8864. end))
  8865. rsiz = math.random(5,15)
  8866. 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)
  8867. 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)
  8868. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8869. end
  8870. 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)
  8871. 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)
  8872. 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)
  8873. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8874. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8875. end
  8876. hb:Destroy()
  8877. if act == true then
  8878. for x = 0, 2 do
  8879. for i = 0, 2, 0.1 do
  8880. swait()
  8881. coroutine.resume(coroutine.create(function()
  8882. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8883. end))
  8884. rsiz = math.random(5,15)
  8885. 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)
  8886. 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)
  8887. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8888. 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)
  8889. 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)
  8890. 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)
  8891. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8892. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8893. end
  8894. for i = 0, 2, 0.1 do
  8895. swait()
  8896. coroutine.resume(coroutine.create(function()
  8897. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8898. end))
  8899. rsiz = math.random(5,15)
  8900. 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)
  8901. 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)
  8902. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8903. 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)
  8904. 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)
  8905. 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)
  8906. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8907. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8908. end
  8909. end
  8910. end
  8911. hum.WalkSpeed = storehumanoidWS
  8912. root.Anchored = false
  8913. if act == true then
  8914. coroutine.resume(coroutine.create(function()
  8915. huggedperson.Humanoid.WalkSpeed = 16
  8916. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8917. end))
  8918. end
  8919. hum.WalkSpeed = storehumanoidWS
  8920. attack = false
  8921. end
  8922.  
  8923. function Counter()
  8924. hum.WalkSpeed = 0
  8925. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8926. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8927. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8928. attack = true
  8929. for i = 0,1,0.1 do
  8930. swait()
  8931. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8932. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8933. 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)
  8934. 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)
  8935. 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)
  8936. 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)
  8937. end
  8938. CameraEnshaking(3,4)
  8939. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8940. 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)
  8941. 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)
  8942. 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)
  8943. coroutine.resume(coroutine.create(function()
  8944. local eff = Instance.new("ParticleEmitter",root)
  8945. eff.Texture = "rbxassetid://363275192"
  8946. eff.LightEmission = 0.95
  8947. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8948. eff.Rate = 10000
  8949. eff.Lifetime = NumberRange.new(1)
  8950. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8951. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8952. eff.Speed = NumberRange.new(10,125)
  8953. eff.Drag = 5
  8954. eff.Rotation = NumberRange.new(-500,500)
  8955. eff.VelocitySpread = 9000
  8956. eff.RotSpeed = NumberRange.new(-50,50)
  8957. local eff2 = eff:Clone()
  8958. eff2.Parent = root
  8959. eff2.Texture = "rbxassetid://284205403"
  8960. eff2.Rate = 10000
  8961. 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)})
  8962. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8963. eff2.Drag = 5
  8964. eff2.Speed = NumberRange.new(10,50)
  8965. eff2.Rotation = NumberRange.new(-500,500)
  8966. eff2.VelocitySpread = 9000
  8967. wait(0.25)
  8968. eff2.Enabled = false
  8969. eff.Enabled = false
  8970. wait(3)
  8971. eff2:Destroy()
  8972. eff:Destroy()
  8973. end))
  8974. for i = 0, 9 do
  8975. 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)
  8976. end
  8977. for i = 0, 24 do
  8978. local rsiz = math.random(5,20)
  8979. 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)
  8980. end
  8981. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8982. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8983. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8984. for i = 0,2,0.1 do
  8985. swait()
  8986. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8987. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8988. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8989. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8990. 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)
  8991. 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)
  8992. end
  8993. hum.WalkSpeed = storehumanoidWS
  8994. attack = false
  8995. end
  8996.  
  8997. function superjump()
  8998. attack = true
  8999. hum.WalkSpeed = 0
  9000. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  9001. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  9002. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  9003. for i = 0, 2, 0.1 do
  9004. swait()
  9005. root.Velocity = vt(0,0,0)
  9006. 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"))
  9007. 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)
  9008. 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)
  9009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  9010. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  9011. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  9012. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  9013. end
  9014. MagniDamage(root, 28, 25,50, 25, "Normal")
  9015. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  9016. hum.Jump = true
  9017. swait()
  9018. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  9019. 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)
  9020. 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)
  9021. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  9022. for i = 0, 3, 0.1 do
  9023. swait()
  9024. 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)
  9025. 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)
  9026. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  9027. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  9028. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  9029. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  9030. end
  9031. attack = false
  9032. if equipped == false then
  9033. hum.WalkSpeed = 16
  9034. else
  9035. hum.WalkSpeed = 24
  9036. end
  9037. end
  9038.  
  9039.  
  9040. -------------------------------------
  9041.  
  9042.  
  9043.  
  9044. Humanoid.Animator.Parent = nil
  9045.  
  9046.  
  9047.  
  9048. -------------------------------------
  9049.  
  9050. local attacktype = 1
  9051. mouse.Button1Down:connect(function()
  9052. if attack == false and attacktype == 1 then
  9053. attacktype = 2
  9054. attackone()
  9055. elseif attack == false and attacktype == 2 then
  9056. attacktype = 3
  9057. attacktwo()
  9058. elseif attack == false and attacktype == 3 then
  9059. attacktype = 1
  9060. attackthree()
  9061. elseif attack == false and attacktype == 4 then
  9062. attacktype = 1
  9063. --attackfour()
  9064. end
  9065. end)
  9066. mouse.KeyDown:connect(function(k)
  9067. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  9068. --normalmog()
  9069. ModeOfGlitch = 1
  9070. storehumanoidWS = 16
  9071. hum.WalkSpeed = 16
  9072. rainbowmode = false
  9073. chaosmode = false
  9074. bosschatfunc("Hopeless!",MAINRUINCOLOR.Color,5)
  9075. newTheme("rbxassetid://367339030",48.6,1,0.85)
  9076. RecolorTextAndRename("Hopeless",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  9077. MAINRUINCOLOR = BrickColor.new("Really red")
  9078. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9079. end
  9080. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  9081. ModeOfGlitch = 2
  9082. storehumanoidWS = 16
  9083. hum.WalkSpeed = 16
  9084. rainbowmode = false
  9085. chaosmode = false
  9086. bosschatfunc("Mintflake!",MAINRUINCOLOR.Color,5)
  9087. RecolorTextAndRename("Mintflake",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  9088. newTheme("rbxassetid://1380840997",0,1,4)
  9089. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  9090. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9091. end
  9092. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  9093. ModeOfGlitch = 3
  9094. storehumanoidWS = 16
  9095. hum.WalkSpeed = 16
  9096. rainbowmode = false
  9097. chaosmode = false
  9098. bosschatfunc("CORRUPTION!",MAINRUINCOLOR.Color,5)
  9099. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  9100. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  9101. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9102. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9103. end
  9104. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  9105. ModeOfGlitch = 4
  9106. storehumanoidWS = 16
  9107. hum.WalkSpeed = 16
  9108. rainbowmode = false
  9109. chaosmode = true
  9110. bosschatfunc("CHAOS!",MAINRUINCOLOR.Color,5)
  9111. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  9112. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  9113. MAINRUINCOLOR = BrickColor.new("Black")
  9114. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9115. end
  9116. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  9117. ModeOfGlitch = 5
  9118. storehumanoidWS = 16
  9119. hum.WalkSpeed = 16
  9120. rainbowmode = false
  9121. chaosmode = false
  9122. bosschatfunc("DIVINITY!",MAINRUINCOLOR.Color,5)
  9123. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  9124. newTheme("rbxassetid://661079869",0,1.02,1.25)
  9125. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9126. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9127. end
  9128. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  9129. ModeOfGlitch = 6
  9130. storehumanoidWS = 100
  9131. hum.WalkSpeed = 100
  9132. rainbowmode = false
  9133. chaosmode = false
  9134. bosschatfunc("EQUINOX!",MAINRUINCOLOR.Color,5)
  9135. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  9136. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  9137. MAINRUINCOLOR = BrickColor.new("White")
  9138. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9139. end
  9140. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  9141. ModeOfGlitch = 8
  9142. storehumanoidWS = 140
  9143. hum.WalkSpeed = 140
  9144. rainbowmode = false
  9145. chaosmode = false
  9146. bosschatfunc("DESTINY!",MAINRUINCOLOR.Color,5)
  9147. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  9148. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  9149. MAINRUINCOLOR = BrickColor.new("Alder")
  9150. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9151. end
  9152. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  9153. ModeOfGlitch = 9
  9154. storehumanoidWS = 150
  9155. hum.WalkSpeed = 150
  9156. rainbowmode = false
  9157. chaosmode = false
  9158. bosschatfunc("INFESTATION!",MAINRUINCOLOR.Color,5)
  9159. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  9160. newTheme("rbxassetid://708334127",0,1.01,1.25)
  9161. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  9162. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9163. end
  9164. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  9165. ModeOfGlitch = 8889
  9166. storehumanoidWS = 180
  9167. hum.WalkSpeed = 180
  9168. rainbowmode = false
  9169. chaosmode = false
  9170. bosschatfunc("CALAMITY!",MAINRUINCOLOR.Color,5)
  9171. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  9172. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  9173. MAINRUINCOLOR = BrickColor.new("Lilac")
  9174. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9175. end
  9176. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  9177. ModeOfGlitch = 55469696922
  9178. storehumanoidWS = 275
  9179. hum.WalkSpeed = 275
  9180. rainbowmode = false
  9181. chaosmode = false
  9182. bosschatfunc("NANODEATH!",MAINRUINCOLOR.Color,5)
  9183. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  9184. newTheme("rbxassetid://582020393",0,1.005,1.25)
  9185. MAINRUINCOLOR = BrickColor.new("Hot pink")
  9186. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9187. end
  9188. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 44101 then
  9189. ModeOfGlitch = 44101
  9190. storehumanoidWS = 275
  9191. hum.WalkSpeed = 275
  9192. rainbowmode = false
  9193. chaosmode = false
  9194. bosschatfunc("Message lineDance!",MAINRUINCOLOR.Color,5)
  9195. RecolorTextAndRename("Message lineDance",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  9196. newTheme("rbxassetid://1160459818",0,1.005,1.25)
  9197. MAINRUINCOLOR = BrickColor.new("White")
  9198. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9199. end
  9200. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  9201. ModeOfGlitch = 4367677813
  9202. storehumanoidWS = 225
  9203. hum.WalkSpeed = 225
  9204. rainbowmode = false
  9205. chaosmode = false
  9206. bosschatfunc("SHD!",MAINRUINCOLOR.Color,5)
  9207. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  9208. newTheme("rbxassetid://363284685",0,1.01,1.25)
  9209. MAINRUINCOLOR = BrickColor.new("Baby blue")
  9210. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9211. end
  9212. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9213. ModeOfGlitch = 9999999921111
  9214. storehumanoidWS = 300
  9215. hum.WalkSpeed = 300
  9216. rainbowmode = false
  9217. chaosmode = false
  9218. bosschatfunc("OMEGA!",MAINRUINCOLOR.Color,5)
  9219. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  9220. newTheme("rbxassetid://643309199",0,1.01,1.25)
  9221. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  9222. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9223. end
  9224. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 10134 then
  9225. ModeOfGlitch = 10134
  9226. storehumanoidWS = 300
  9227. hum.WalkSpeed = 300
  9228. rainbowmode = false
  9229. chaosmode = false
  9230. RecolorTextAndRename("Nontok",BrickColor.new("Dark green").Color,BrickColor.new("Lime green").Color,"SciFi")
  9231. bosschatfunc("Nontok!",MAINRUINCOLOR.Color,5)
  9232. newTheme("rbxassetid://1283867221",0,1.01,5)
  9233. MAINRUINCOLOR = BrickColor.new("Dark green")
  9234. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9235. end
  9236. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9237. ModeOfGlitch = 9999999921111
  9238. storehumanoidWS = 300
  9239. hum.WalkSpeed = 300
  9240. rainbowmode = false
  9241. chaosmode = false
  9242. bosschatfunc("OMEGA!",MAINRUINCOLOR.Color,5)
  9243. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  9244. newTheme("rbxassetid://643309199",0,1.01,1.25)
  9245. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  9246. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9247. end
  9248. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 34101 then
  9249. ModeOfGlitch = 34101
  9250. bosschatfunc("Monika!",MAINRUINCOLOR.Color,5)
  9251. storehumanoidWS = 300
  9252. hum.WalkSpeed = 300
  9253. rainbowmode = false
  9254. chaosmode = false
  9255. RecolorTextAndRename("Monika",BrickColor.new("Pink").Color,BrickColor.new("White").Color,"SciFi")
  9256. newTheme("rbxassetid://1163840119",0,1.01,5)
  9257. MAINRUINCOLOR = BrickColor.new("Pink")
  9258. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9259. end
  9260. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  9261. ModeOfGlitch = 999999999556
  9262. storehumanoidWS = 500
  9263. hum.WalkSpeed = 500
  9264. rainbowmode = false
  9265. chaosmode = false
  9266. bosschatfunc("CRAZED!",MAINRUINCOLOR.Color,5)
  9267. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  9268. newTheme("rbxassetid://719008519",0,1.02,1.25)
  9269. MAINRUINCOLOR = BrickColor.new("Navy blue")
  9270. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9271. end
  9272. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9273. ModeOfGlitch = 1264532489
  9274. storehumanoidWS = 250
  9275. hum.WalkSpeed = 250
  9276. rainbowmode = false
  9277. chaosmode = false
  9278. bosschatfunc("FALLENX!",MAINRUINCOLOR.Color,5)
  9279. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9280. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9281. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9282. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9283. end
  9284. if k == "l" and mutedtog == false then
  9285. mutedtog = true
  9286. kan.Volume = 0
  9287. elseif k == "l" and mutedtog == true then
  9288. mutedtog = false
  9289. kan.Volume = 1.25
  9290. end
  9291. if k == "p" and toggleTag == false then
  9292. toggleTag = true
  9293. modet.TextTransparency = 0
  9294. modet.TextStrokeTransparency = 0
  9295. elseif k == "p" and toggleTag == true then
  9296. toggleTag = false
  9297. modet.TextTransparency = 1
  9298. modet.TextStrokeTransparency = 1
  9299. end
  9300. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9301. ExtinctiveHeartbreak()
  9302. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9303. HeavenlyDisk()
  9304. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9305. DualGleamingBeam()
  9306. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9307. BanishingOrb()
  9308. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9309. hugg()
  9310. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9311. cutesigh()
  9312. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9313. Counter()
  9314. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9315. superjump()
  9316. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9317. dragin()
  9318. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9319. UniversalCollapse()
  9320. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9321. PureBomb()
  9322. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9323. Beams()
  9324. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9325. BeamOfDeath()
  9326. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9327. THE_TRUE_POWER_OF_VIOLENCE()
  9328. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9329. GleamingBeam()
  9330. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9331. ViolentRing()
  9332. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9333. CorruptionEvent()
  9334. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9335. CorruptBlink()
  9336. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9337. scattercorrupt()
  9338. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9339. shytaunty()
  9340. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9341. RapidBurst()
  9342. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9343. InsaneDrop()
  9344. wait(2)
  9345. ChaosEND()
  9346. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9347. ChaosEND()
  9348. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9349. CyberSlash()
  9350. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9351. smiter()
  9352. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9353. SpeedDrop()
  9354. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9355. --DivineLights()
  9356. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9357. DivineBlast()
  9358. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9359. EquinoxOrbs()
  9360. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9361. yinyangi()
  9362. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9363. FallenOrbs()
  9364. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9365. StarfallEX()
  9366. end
  9367. if k == "z" and attack == false and ModeOfGlitch == 44101 then
  9368. Beams()
  9369. end
  9370. if k == "x" and attack == false and ModeOfGlitch == 44101 then
  9371. GalacticalBeams()
  9372. end
  9373. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9374. FallenDEMISE()
  9375. end
  9376. if k == "x" and attack == false and ModeOfGlitch == 3 then
  9377. SingularityVoid()
  9378. end
  9379. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9380. EndGROUND()
  9381. end
  9382. end)
  9383.  
  9384. bosschatfunc("PO[WCR] Star Glitcher Edit!",MAINRUINCOLOR.Color,5)
  9385.  
  9386. coroutine.resume(coroutine.create(function()
  9387. while true do
  9388. swait()
  9389. if ModeOfGlitch == 1 or 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
  9390. 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)
  9391. end
  9392. end
  9393. end))
  9394. --[[coroutine.resume(coroutine.create(function()
  9395. while true do
  9396. swait(2)
  9397. if chaosmode == true then
  9398. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9399. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9400. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9401. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9402. for i, v in pairs(mw1:GetChildren()) do
  9403. if v:IsA("Part") then
  9404. v.Transparency = 0.75
  9405. v.BrickColor = BrickColor.random()
  9406. v.Material = "Neon"
  9407. end
  9408. end
  9409. for i, v in pairs(m2:GetChildren()) do
  9410. if v:IsA("Part") then
  9411. v.BrickColor = BrickColor.random()
  9412. v.Material = "Neon"
  9413. end
  9414. end
  9415. end
  9416. end
  9417. end))]]--
  9418. Humanoid.Name = "STARGLITCHER"
  9419. Humanoid.MaxHealth = math.huge
  9420. Humanoid.Health = math.huge
  9421. Instance.new("ForceField",char).Visible = false
  9422.  
  9423. local bguis = Instance.new("BillboardGui",tors)
  9424. bguis.Size = UDim2.new(25, 0, 25, 0)
  9425. local imgca = Instance.new("ImageLabel",bguis)
  9426. imgca.BackgroundTransparency = 1
  9427. imgca.ImageTransparency = 1
  9428. imgca.Size = UDim2.new(1,0,1,0)
  9429. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9430. imgca.ImageColor3 = Color3.new(0,0,0)
  9431.  
  9432. idleanim=.4
  9433. while true do
  9434. if mutedtog == false then
  9435. kan.Volume = currentVol
  9436. elseif mutedtog == true then
  9437. kan.Volume = 0
  9438. end
  9439. kan.PlaybackSpeed = currentPitch
  9440. kan.Pitch = currentPitch
  9441. kan.SoundId = currentThemePlaying
  9442. kan.Looped = true
  9443. kan.Parent = char
  9444. kan:Resume()
  9445. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  9446. imgca.ImageTransparency = 1
  9447. elseif ModeOfGlitch == 1 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9448. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9449. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9450. end
  9451. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9452. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9453. coroutine.resume(coroutine.create(function()
  9454. if chaosmode == true then
  9455. for i, v in pairs(mw1:GetChildren()) do
  9456. if v:IsA("Part") then
  9457. v.Transparency = 0
  9458. v.BrickColor = BrickColor.random()
  9459. v.Material = "Neon"
  9460. end
  9461. end
  9462. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9463. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9464. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9465. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9466. end
  9467. end))
  9468. if chaosmode == false then
  9469. modet.Position = UDim2.new(0,0,0,0)
  9470. modet.Rotation = -5 * math.cos(sine / 32)
  9471. techc.Rotation = techc.Rotation + 1
  9472. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  9473. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  9474. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  9475. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  9476. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9477. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9478. else
  9479. techc.Rotation = techc.Rotation + 1
  9480. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9481. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9482. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9483. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9484. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9485. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9486. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9487. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9488. end
  9489. CameraManager()
  9490. swait()
  9491. if ModeOfGlitch ~= 1 and ModeOfGlitch ~= 2 and ModeOfGlitch ~= 3 and ModeOfGlitch ~= 4 and ModeOfGlitch ~= 5 and ModeOfGlitch ~= 6 and ModeOfGlitch ~= 7 and ModeOfGlitch ~= 10134 and ModeOfGlitch ~= 34101 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 66 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 6127843 and ModeOfGlitch ~= 6127843 and ModeOfGlitch ~= 101909 then
  9492. 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)
  9493. 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)
  9494. 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)
  9495. 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)
  9496. 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)
  9497. 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)
  9498. elseif ModeOfGlitch == 1 or ModeOfGlitch == 34101 or ModeOfGlitch == 1264532489 then
  9499. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 3600 * math.cos(sine / 360))),.3)
  9500. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 + 3600 * math.cos(sine / 360))),.3)
  9501. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 + 3600 * math.cos(sine / 360))),.3)
  9502. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 + 3600 * math.cos(sine / 360))),.3)
  9503. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 + 3600 * math.cos(sine / 360))),.3)
  9504. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 + 3600 * math.cos(sine / 360))),.3)
  9505. elseif ModeOfGlitch == 5 or ModeOfGlitch == 3 or ModeOfGlitch == 6 then
  9506. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 + 3600 * math.cos(sine / 360))),.3)
  9507. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 + 3600 * math.cos(sine / 360))),.3)
  9508. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 + 3600 * math.cos(sine / 360))),.3)
  9509. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 - 3600 * math.cos(sine / 720))),.3)
  9510. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 - 3600 * math.cos(sine / 720))),.3)
  9511. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 - 3600 * math.cos(sine / 720))),.3)
  9512. elseif ModeOfGlitch == 10134 or ModeOfGlitch == 4 or ModeOfGlitch == 1 or ModeOfGlitch == 101909 or ModeOfGlitch == 2 or ModeOfGlitch == 1000000 then
  9513. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 3600 * math.cos(sine / 360))),.3)
  9514. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 + 3600 * math.cos(sine / 360))),.3)
  9515. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 + 3600 * math.cos(sine / 360))),.3)
  9516. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 + 3600 * math.cos(sine / 360))),.3)
  9517. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 + 3600 * math.cos(sine / 360))),.3)
  9518. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),0)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 + 3600 * math.cos(sine / 360))),.3)
  9519. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 360))),.3)
  9520. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 360))),.3)
  9521. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 360))),.3)
  9522. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 360))),.3)
  9523. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 360))),.3)
  9524. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 360))),.3)
  9525. end
  9526. sine = sine + change
  9527. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9528. local velderp=RootPart.Velocity.y
  9529. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9530. coroutine.resume(coroutine.create(function()
  9531. if ModeOfGlitch == 1 or ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9532. if hitfloor ~= nil then
  9533. 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"))
  9534. if ModeOfGlitch == 1 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9535. 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)
  9536. end
  9537. end
  9538. end
  9539. end))
  9540. if equipped==true or equipped==false then
  9541. if attack==false then
  9542. idle=idle+1
  9543. else
  9544. idle=0
  9545. end
  9546. if idle>=500 then
  9547. if attack==false then
  9548. --Sheath()
  9549. end
  9550. end
  9551. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9552. Anim="Jump"
  9553. if attack==false then
  9554. 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)
  9555. 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)
  9556. 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)
  9557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9558. 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)
  9559. 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)
  9560. end
  9561. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9562. Anim="Fall"
  9563. if attack==false then
  9564. 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)
  9565. 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)
  9566. 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)
  9567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9568. 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)
  9569. 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)
  9570. end
  9571. elseif torvel<1 and hitfloor~=nil then
  9572. Anim="Idle"
  9573. if attack==false then
  9574. if ModeOfGlitch == 1 then
  9575. local snap = math.random(1,10)
  9576. if snap == 1 then
  9577. 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)
  9578. end
  9579. 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)
  9580. 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)
  9581. 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)
  9582. 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)
  9583. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  9584. 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)
  9585. elseif ModeOfGlitch == 2 then
  9586. 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)
  9587. 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)
  9588. 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)
  9589. 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)
  9590. 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)
  9591. 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)
  9592. elseif ModeOfGlitch == 3 then
  9593. local snap = math.random(1,32)
  9594. if snap == 1 then
  9595. 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)
  9596. end
  9597. 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)
  9598. 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)
  9599. 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)
  9600. 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)
  9601. 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)
  9602. 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)
  9603. elseif ModeOfGlitch == 4 then
  9604. local snap = math.random(1,5)
  9605. if snap == 1 then
  9606. 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)
  9607. 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)
  9608. 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)
  9609. end
  9610. 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)
  9611. 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)
  9612. 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)
  9613. 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)
  9614. 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)
  9615. 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)
  9616. elseif ModeOfGlitch == 5 then
  9617. 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)
  9618. 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)
  9619. 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)
  9620. 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)
  9621. 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)
  9622. 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)
  9623. elseif ModeOfGlitch == 6 then
  9624. 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)
  9625. 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)
  9626. 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)
  9627. 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)
  9628. 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)
  9629. 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)
  9630. elseif ModeOfGlitch == 8 then
  9631. 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)
  9632. 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)
  9633. 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)
  9634. 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)
  9635. 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)
  9636. 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)
  9637. elseif ModeOfGlitch == 9 then
  9638. 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)
  9639. 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))
  9640. 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)
  9641. 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)
  9642. 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)
  9643. 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)
  9644. 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)
  9645. 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)
  9646. elseif ModeOfGlitch == 10134 then
  9647. 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)
  9648. 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)
  9649. 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)
  9650. 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)
  9651. 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)
  9652. 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)
  9653. elseif ModeOfGlitch == 34101 then
  9654. 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)
  9655. 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)
  9656. 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)
  9657. 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)
  9658. 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)
  9659. 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)
  9660. elseif ModeOfGlitch == 44101 then
  9661. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  9662. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  9663. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  9664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  9665. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  9666. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  9667. elseif ModeOfGlitch == 8889 then
  9668. 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)
  9669. 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)
  9670. 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)
  9671. 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)
  9672. 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)
  9673. 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)
  9674. elseif ModeOfGlitch == 1264532489 then
  9675. sphere2(8,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
  9676. sphere2(8,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
  9677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  9678. 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)
  9679. 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)
  9680. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 50),0 + 0.25 * math.cos(sine / 43),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9681. 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)
  9682. 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(2 - 4 * math.cos(sine / 58)),math.rad(-65 + 1 * math.cos(sine / 45))),.1)
  9683. 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(6 - 5 * math.cos(sine / 59)),math.rad(73 - 3 * math.cos(sine / 45))),.1)
  9684. elseif ModeOfGlitch == 9999999921111 then
  9685. 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)
  9686. 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)
  9687. 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)
  9688. 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)
  9689. 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)
  9690. 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)
  9691. elseif ModeOfGlitch == 4367677813 then
  9692. 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)
  9693. 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)
  9694. 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)
  9695. 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)
  9696. 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)
  9697. 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)
  9698. elseif ModeOfGlitch == 55469696922 then
  9699. 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)
  9700. 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)
  9701. 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)
  9702. 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)
  9703. 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)
  9704. 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)
  9705. elseif ModeOfGlitch == 999999999556 then
  9706. 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)
  9707. 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)
  9708. 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)
  9709. 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)
  9710. 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)
  9711. 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)
  9712. end
  9713. end
  9714. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9715. Anim="Walk"
  9716. if attack==false then
  9717. 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)
  9718. 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)
  9719. 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)
  9720. 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)
  9721. 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)
  9722. 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)
  9723. end
  9724. elseif torvel>=22 and hitfloor~=nil then
  9725. Anim="Run"
  9726. if attack==false then
  9727. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  9728. 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)
  9729. 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)
  9730. 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)
  9731. 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)
  9732. 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)
  9733. 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)
  9734. if ModeOfGlitch == 9 then
  9735. 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)
  9736. 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))
  9737. 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)
  9738. end
  9739. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9740. 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)
  9741. 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)
  9742. 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)
  9743. 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)
  9744. 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)
  9745. 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)
  9746. end
  9747. end
  9748. end
  9749. end
  9750. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement