Advertisement
DarkScriptZEditors

Well i found Dat

Dec 23rd, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 493.75 KB | None | 0 0
  1. --DO NOT LEAK!
  2. if game:GetService("RunService"):IsClient() then error("For this script to work, you must use h/ instead of hl/.") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = RhiBel00351
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89.  
  90. wait(0.5)
  91.  
  92. warn([[Hyperion Glitcher Loaded.
  93. Hyperion has awoken once again.
  94. He's ready to kill those heroes again.
  95. Hyperion will take over the world!
  96.  
  97. Created, Reworked by NoobyGames12. Heavily edited by RhiBel00351.
  98. This ISN'T the regular Star Glitcher Rework.
  99. It's an edit of SGR.
  100. So if you want the regular, go find it yourself.
  101. And YES, I DO KNOW NoobyGames12.
  102. HEY! Make sure you don't abuse this!
  103. ]])
  104.  
  105.  
  106. ------------- ORIGINAL WIELDER OC: Velnorum
  107. print([[Moves:
  108. ?????? ]])
  109. warn([[Update Log:
  110. N - ???
  111. Extra modes:
  112. ???
  113. Info from RhiBel00351:
  114. Edit this if you want, I don't really care.
  115. Note:
  116. Lots of hard work on this. I won't be making this again if this gets deleted.
  117. DarkEccentric is gay
  118. Also just a reminder: That THIS script is FAR from completion, so expect some things not finished.]])
  119. --- its obs smooth af do not touch
  120. ---- Sources and functions might be taken from others
  121. plr = owner
  122. char = plr.Character
  123. hum = char.Humanoid
  124. local cam = game.Workspace.CurrentCamera
  125. Camera = cam
  126. local CamInterrupt = false
  127. local TwoD = false
  128. local TargetInfo = {nil, nil}
  129. cam.CameraType = "Custom"
  130. t = char.Torso
  131. h = char.Head
  132. ra = char["Right Arm"]
  133. la = char["Left Arm"]
  134. rl = char["Right Leg"]
  135. ll = char["Left Leg"]
  136. tors = char.Torso
  137. lleg = char["Left Leg"]
  138. root = char.HumanoidRootPart
  139. hed = char.Head
  140. rleg = char["Right Leg"]
  141. rarm = char["Right Arm"]
  142. larm = char["Left Arm"]
  143. radian = math.rad
  144. random = math.random
  145. Vec3 = Vector3.new
  146. Inst = Instance.new
  147. cFrame = CFrame.new
  148. Euler = CFrame.fromEulerAnglesXYZ
  149. vt = Vector3.new
  150. bc = BrickColor.new
  151. br = BrickColor.random
  152. it = Instance.new
  153. cf = CFrame.new
  154.  
  155. local Booleans = {
  156. CamFollow = true,
  157. GyroUse = true
  158. }
  159.  
  160. function lerp(object, newCFrame, alpha)
  161. return object:lerp(newCFrame, alpha)
  162. end
  163.  
  164. local Directer = Inst("BodyGyro", root)
  165. Directer.MaxTorque = Vec3(0, 0, 0)
  166. Directer.P = 600000
  167. local CPart = Inst("Part")
  168. CPart.Anchored = true
  169. CPart.CanCollide = false
  170. CPart.Locked = true
  171. CPart.Transparency = 1
  172.  
  173. local rainbowmode = false
  174. local chaosmode = false
  175.  
  176. local kan = Instance.new("Sound",char)
  177. kan.Volume = 1.25
  178. kan.TimePosition = 0
  179. kan.PlaybackSpeed = 1
  180. kan.Pitch = 1
  181. kan.SoundId = "rbxassetid://1057854857"
  182. kan.Name = "wrecked"
  183. kan.Looped = true
  184. kan:Play()
  185.  
  186. local currentThemePlaying = kan.SoundId
  187. local currentPitch = kan.Pitch
  188. local currentVol = kan.Volume
  189. function newTheme(ID,timepos,pitch,vol)
  190. local kanz = kan
  191. --kanz:Stop()
  192. kanz.Volume = vol
  193. --kanz.TimePosition = timepos
  194. kanz.PlaybackSpeed = pitch
  195. kanz.Pitch = pitch
  196. kanz.SoundId = ID
  197. kanz.Name = "wrecked"
  198. kanz.Looped = true
  199. currentThemePlaying = kanz.SoundId
  200. currentVol = kanz.Volume
  201. currentPitch = kanz.Pitch
  202. --kanz:Play()
  203. --coroutine.resume(coroutine.create(function()
  204. --wait(0.05)
  205. --end))
  206. end
  207.  
  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 = "STRESS HYPERION"
  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 = "???:"
  409. txtlb2.Font = "Arcade"
  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 = "SciFi"
  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 = "STRESS HYPERION"
  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. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  869. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  872. 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))
  873. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  875. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  876. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  878. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  879. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  881. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  882.  
  883. tl1 = Instance.new('Trail',wed)
  884. tl1.Attachment0 = A1
  885. tl1.Attachment1 = A0
  886. tl1.Texture = "rbxassetid://2108945559"
  887. tl1.LightEmission = 1
  888. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  889. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  890. tl1.Lifetime = 0.6
  891.  
  892. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  893. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  894. 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))
  895.  
  896. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  899. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  902. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  904. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  905. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  907. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  908. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  909. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  910. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  911. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  913. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  916. 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))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  919. 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))
  920. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  922. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  923. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  925. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  926.  
  927. tl2 = Instance.new('Trail',wed)
  928. tl2.Attachment0 = A1
  929. tl2.Attachment1 = A0
  930. tl2.Texture = "rbxassetid://2108945559"
  931. tl2.LightEmission = 1
  932. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  933. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  934. tl2.Lifetime = 0.6
  935.  
  936. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  937. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  938. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  939.  
  940. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  941. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  942. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  943. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  948. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  949. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  958. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  960. 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))
  961. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  963. 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))
  964. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  966. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  969. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  970.  
  971. tl3 = Instance.new('Trail',wed)
  972. tl3.Attachment0 = A1
  973. tl3.Attachment1 = A0
  974. tl3.Texture = "rbxassetid://2108945559"
  975. tl3.LightEmission = 1
  976. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  977. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  978. tl3.Lifetime = 0.6
  979.  
  980. tl1.Enabled = true
  981. tl2.Enabled = true
  982. tl3.Enabled = true
  983. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  984. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  985. 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))
  986.  
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  989. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  992. 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))
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,0.5,3)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,3,0.5)
  998. 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))
  999.  
  1000. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1001. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1002. 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))
  1003.  
  1004. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1007. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. 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))
  1010. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1012. 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))
  1013. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1015. 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))
  1016.  
  1017. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1018. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1019. 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))
  1020.  
  1021. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1022. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1023. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1024. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1025. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1026. 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))
  1027. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1028. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1029. 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))
  1030. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1032. 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))
  1033.  
  1034. -- Right wing.
  1035.  
  1036. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1037. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1038. 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))
  1039.  
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1048. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1049. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1051. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1052. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1053. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1054. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1055. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1056. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1057. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1058. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1059. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1060. 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))
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1063. 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))
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1066. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1069. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1070.  
  1071. tr1 = Instance.new('Trail',wed)
  1072. tr1.Attachment0 = A1
  1073. tr1.Attachment1 = A0
  1074. tr1.Texture = "rbxassetid://2108945559"
  1075. tr1.LightEmission = 1
  1076. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1077. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1078. tr1.Lifetime = 0.6
  1079.  
  1080. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1081. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1082. 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))
  1083.  
  1084. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1085. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1086. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1087. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1088. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1089. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1090. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1091. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1092. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1093. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1094. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1095. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1096. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1099. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1102. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1104. 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))
  1105. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1107. 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))
  1108. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1110. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1112. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1113. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1114.  
  1115. tr2 = Instance.new('Trail',wed)
  1116. tr2.Attachment0 = A1
  1117. tr2.Attachment1 = A0
  1118. tr2.Texture = "rbxassetid://2108945559"
  1119. tr2.LightEmission = 1
  1120. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1121. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1122. tr2.Lifetime = 0.6
  1123.  
  1124. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1125. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1126. 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))
  1127.  
  1128.  
  1129. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1130. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1131. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1132. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1133. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1134. 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))
  1135. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1136. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1137. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1138. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1139. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1140. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1141. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1143. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1146. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1147. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1148. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1149. 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))
  1150. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1151. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1152. 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))
  1153. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1154. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1155. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1156. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1157. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1158. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1159.  
  1160. tr3 = Instance.new('Trail',wed)
  1161. tr3.Attachment0 = A1
  1162. tr3.Attachment1 = A0
  1163. tr3.Texture = "rbxassetid://2108945559"
  1164. tr3.LightEmission = 1
  1165. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1166. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1167. tr3.Lifetime = 0.6
  1168.  
  1169. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1170. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1171. 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))
  1172.  
  1173. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1174. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1175. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1176. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1177. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1178. 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))
  1179. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1180. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1181. 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))
  1182. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1183. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1184. 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))
  1185.  
  1186. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1187. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1188. 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))
  1189.  
  1190. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1191. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1192. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1193. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1194. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1195. 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))
  1196. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1197. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1198. 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))
  1199. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1200. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1201. 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))
  1202.  
  1203. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1204. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1205. 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))
  1206.  
  1207. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1208. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1209. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1210. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1211. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1212. 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))
  1213. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1214. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1215. 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))
  1216. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1217. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1218. 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))
  1219.  
  1220.  
  1221. ---- HERES THE RING
  1222.  
  1223.  
  1224. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1225. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1226. 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))
  1227. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1228. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1229. 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))
  1230. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1231. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1232. 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))
  1233.  
  1234.  
  1235. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1236. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1237. 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))
  1238.  
  1239. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1240. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1241. 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))
  1242.  
  1243.  
  1244.  
  1245. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1246. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1247. 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))
  1248.  
  1249. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1250. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1251. 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))
  1252.  
  1253. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1254. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1255. 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))
  1256.  
  1257. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1258. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1259. 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))
  1260. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1261. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1262. 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))
  1263.  
  1264. --- second ring
  1265.  
  1266. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1267. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1268. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1269. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1270. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1271. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1272. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1273. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1274. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1275.  
  1276. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1277. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1278. 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))
  1279.  
  1280. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1281. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1282. 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))
  1283.  
  1284.  
  1285.  
  1286. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1287. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1288. 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))
  1289.  
  1290. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1291. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1292. 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))
  1293.  
  1294. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1295. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1296. 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))
  1297.  
  1298. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1299. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1300. 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))
  1301. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1302. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1303. 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))]]--
  1304.  
  1305.  
  1306.  
  1307. for i, v in pairs(m:GetChildren()) do
  1308. if v:IsA("Part") then
  1309. v.BrickColor = BrickColor.new("Really black")
  1310. v.Material = "Glass"
  1311. end
  1312. end
  1313. for i, v in pairs(m2:GetChildren()) do
  1314. if v:IsA("Part") then
  1315. v.BrickColor = BrickColor.new("Crimson")
  1316. v.Material = "Granite"
  1317. end
  1318. end
  1319. for i, v in pairs(m3:GetChildren()) do
  1320. if v:IsA("Part") then
  1321. v.BrickColor = BrickColor.new("Really red")
  1322. v.Material = "Neon"
  1323. end
  1324. end
  1325. for i, v in pairs(mw2:GetChildren()) do
  1326. if v:IsA("Part") then
  1327. v.BrickColor = BrickColor.new("Really red")
  1328. v.Material = "Neon"
  1329. end
  1330. end
  1331. for i, v in pairs(mw1:GetChildren()) do
  1332. if v:IsA("Part") then
  1333. v.Transparency = 1
  1334. v.BrickColor = BrickColor.new("Really red")
  1335. v.Material = "Neon"
  1336. end
  1337. end
  1338. for i, v in pairs(extrawingmod1:GetChildren()) do
  1339. if v:IsA("Part") then
  1340. v.Transparency = 1
  1341. v.BrickColor = BrickColor.new("White")
  1342. v.Material = "Neon"
  1343. end
  1344. end
  1345. for i, v in pairs(extrawingmod2:GetChildren()) do
  1346. if v:IsA("Part") then
  1347. v.Transparency = 1
  1348. v.BrickColor = BrickColor.new("White")
  1349. v.Material = "Neon"
  1350. end
  1351. end
  1352. local MAINRUINCOLOR = BrickColor.new("Really red")
  1353. ------
  1354.  
  1355.  
  1356. function RemoveOutlines(part)
  1357. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1358. end
  1359. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1360. local Part = Create("Part")({
  1361. Parent = Parent,
  1362. Reflectance = Reflectance,
  1363. Transparency = Transparency,
  1364. CanCollide = false,
  1365. Locked = true,
  1366. BrickColor = BrickColor.new(tostring(BColor)),
  1367. Name = Name,
  1368. Size = Size,
  1369. Material = Material
  1370. })
  1371. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1372. RemoveOutlines(Part)
  1373. return Part
  1374. end
  1375. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1376. local Msh = Create(Mesh)({
  1377. Parent = Part,
  1378. Offset = OffSet,
  1379. Scale = Scale
  1380. })
  1381. if Mesh == "SpecialMesh" then
  1382. Msh.MeshType = MeshType
  1383. Msh.MeshId = MeshId
  1384. end
  1385. return Msh
  1386. end
  1387. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1388. local Weld = Create("Weld")({
  1389. Parent = Parent,
  1390. Part0 = Part0,
  1391. Part1 = Part1,
  1392. C0 = C0,
  1393. C1 = C1
  1394. })
  1395. return Weld
  1396. end
  1397.  
  1398. Character=Player.Character
  1399. PlayerGui=Player.PlayerGui
  1400. Backpack=Player.Backpack
  1401. Torso=Character.Torso
  1402. Head=Character.Head
  1403. Humanoid=Character.Humanoid
  1404. m=Instance.new('Model',Character)
  1405. LeftArm=Character["Left Arm"]
  1406. LeftLeg=Character["Left Leg"]
  1407. RightArm=Character["Right Arm"]
  1408. RightLeg=Character["Right Leg"]
  1409. LS=Torso["Left Shoulder"]
  1410. LH=Torso["Left Hip"]
  1411. RS=Torso["Right Shoulder"]
  1412. RH=Torso["Right Hip"]
  1413. Face = Head.face
  1414. Neck=Torso.Neck
  1415. it=Instance.new
  1416. attacktype=1
  1417. vt=Vector3.new
  1418. cf=CFrame.new
  1419. euler=CFrame.fromEulerAnglesXYZ
  1420. angles=CFrame.Angles
  1421. cloaked=false
  1422. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1423. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1424. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1425. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1426. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1427. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1428. RootPart=Character.HumanoidRootPart
  1429. RootJoint=RootPart.RootJoint
  1430. RootCF=euler(-1.57,0,3.14)
  1431. attack = false
  1432. attackdebounce = false
  1433. deb=false
  1434. equipped=true
  1435. hand=false
  1436. combo=0
  1437. mana=0
  1438. trispeed=.2
  1439. attackmode='none'
  1440. local idle=0
  1441. local Anim="Idle"
  1442. local Effects={}
  1443. local gun=false
  1444. local shoot=false
  1445. local sine = 0
  1446. local change = 1
  1447.  
  1448. function RecolorTextAndRename(name,col1,col2,font)
  1449. modet.TextStrokeColor3 = col2
  1450. modet.TextColor3 = col1
  1451. modet.Font = font
  1452. modet.Text = name
  1453. techc.ImageColor3 = col2
  1454. circl.ImageColor3 = col2
  1455. circl2.ImageColor3 = col1
  1456. imgl2.ImageColor3 = col1
  1457. imgl2b.ImageColor3 = col2
  1458. ned.Text = name
  1459. ned.TextColor3 = col1
  1460. ned.TextStrokeColor3 = col2
  1461. end
  1462. --save shoulders
  1463. RSH, LSH=nil, nil
  1464. --welds
  1465. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1466. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1467. LH=Torso["Left Hip"]
  1468. RH=Torso["Right Hip"]
  1469. TorsoColor=Torso.BrickColor
  1470. function NoOutline(Part)
  1471. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1472. end
  1473. ch=Character
  1474. RSH=ch.Torso["Right Shoulder"]
  1475. LSH=ch.Torso["Left Shoulder"]
  1476. --
  1477. RSH.Parent=nil
  1478. LSH.Parent=nil
  1479. --
  1480. RW.Name="Right Shoulder"
  1481. RW.Part0=ch.Torso
  1482. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1483. RW.C1=cf(0, 0.5, 0)
  1484. RW.Part1=ch["Right Arm"]
  1485. RW.Parent=ch.Torso
  1486. --
  1487. LW.Name="Left Shoulder"
  1488. LW.Part0=ch.Torso
  1489. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1490. LW.C1=cf(0, 0.5, 0)
  1491. LW.Part1=ch["Left Arm"]
  1492. LW.Parent=ch.Torso
  1493.  
  1494. local Stats=Instance.new("BoolValue")
  1495. Stats.Name="Stats"
  1496. Stats.Parent=Character
  1497. local Atk=Instance.new("NumberValue")
  1498. Atk.Name="Damage"
  1499. Atk.Parent=Stats
  1500. Atk.Value=1
  1501. local Def=Instance.new("NumberValue")
  1502. Def.Name="Defense"
  1503. Def.Parent=Stats
  1504. Def.Value=1
  1505. local Speed=Instance.new("NumberValue")
  1506. Speed.Name="Speed"
  1507. Speed.Parent=Stats
  1508. Speed.Value=1
  1509. local Mvmt=Instance.new("NumberValue")
  1510. Mvmt.Name="Movement"
  1511. Mvmt.Parent=Stats
  1512. Mvmt.Value=1
  1513.  
  1514. local donum=0
  1515.  
  1516.  
  1517. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1518. local fp=it("Part")
  1519. fp.formFactor=formfactor
  1520. fp.Parent=parent
  1521. fp.Reflectance=reflectance
  1522. fp.Transparency=transparency
  1523. fp.CanCollide=false
  1524. fp.Locked=true
  1525. fp.BrickColor=brickcolor
  1526. fp.Name=name
  1527. fp.Size=size
  1528. fp.Position=Torso.Position
  1529. NoOutline(fp)
  1530. fp.Material="SmoothPlastic"
  1531. fp:BreakJoints()
  1532. return fp
  1533. end
  1534.  
  1535. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1536. local mesh=it(Mesh)
  1537. mesh.Parent=part
  1538. if Mesh=="SpecialMesh" then
  1539. mesh.MeshType=meshtype
  1540. if meshid~="nil" then
  1541. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1542. end
  1543. end
  1544. mesh.Offset=offset
  1545. mesh.Scale=scale
  1546. return mesh
  1547. end
  1548.  
  1549. function weld(parent,part0,part1,c0)
  1550. local weld=it("Weld")
  1551. weld.Parent=parent
  1552. weld.Part0=part0
  1553. weld.Part1=part1
  1554. weld.C0=c0
  1555. return weld
  1556. end
  1557.  
  1558. local Color1=Torso.BrickColor
  1559.  
  1560. local bodvel=Instance.new("BodyVelocity")
  1561. local bg=Instance.new("BodyGyro")
  1562.  
  1563. --------- SazEreno's Artificial HB --------------
  1564. ArtificialHB = Instance.new("BindableEvent", script)
  1565. ArtificialHB.Name = "ArtificialHB"
  1566.  
  1567. script:WaitForChild("ArtificialHB")
  1568. Frame_Speed = 1 / 60
  1569. frame = Frame_Speed
  1570. tf = 0
  1571. allowframeloss = false
  1572. tossremainder = false
  1573. lastframe = tick()
  1574. script.ArtificialHB:Fire()
  1575.  
  1576. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1577. tf = tf + s
  1578. if tf >= frame then
  1579. if allowframeloss then
  1580. script.ArtificialHB:Fire()
  1581. lastframe = tick()
  1582. else
  1583. for i = 1, math.floor(tf / frame) do
  1584. script.ArtificialHB:Fire()
  1585. end
  1586. lastframe = tick()
  1587. end
  1588. if tossremainder then
  1589. tf = 0
  1590. else
  1591. tf = tf - frame * math.floor(tf / frame)
  1592. end
  1593. end
  1594. end)
  1595.  
  1596. ------------------
  1597. function swait(num)
  1598. function swait(num)
  1599. if num==0 or num==nil then
  1600. game:service'RunService'.Stepped:wait(0)
  1601. else
  1602. for i=0,num do
  1603. game:service'RunService'.Stepped:wait(0)
  1604. end
  1605. end
  1606. end
  1607. end
  1608.  
  1609. -------- RAINBOW LEAVE IT TO ME
  1610. local r = 255
  1611. local g = 0
  1612. local b = 0
  1613. coroutine.resume(coroutine.create(function()
  1614. while wait() do
  1615. for i = 0, 254/5 do
  1616. swait()
  1617. g = g + 5
  1618. end
  1619. for i = 0, 254/5 do
  1620. swait()
  1621. r = r - 5
  1622. end
  1623. for i = 0, 254/5 do
  1624. swait()
  1625. b = b + 5
  1626. end
  1627. for i = 0, 254/5 do
  1628. swait()
  1629. g = g - 5
  1630. end
  1631. for i = 0, 254/5 do
  1632. swait()
  1633. r = r + 5
  1634. end
  1635. for i = 0, 254/5 do
  1636. swait()
  1637. b = b - 5
  1638. end
  1639. end
  1640. end))
  1641.  
  1642.  
  1643. so = function(id,par,vol,pit)
  1644. coroutine.resume(coroutine.create(function()
  1645. local sou = Instance.new("Sound",par or workspace)
  1646. sou.Volume=vol
  1647. sou.Pitch=pit or 1
  1648. sou.SoundId=id
  1649. swait()
  1650. sou:play()
  1651. game:GetService("Debris"):AddItem(sou,6)
  1652. end))
  1653. end
  1654.  
  1655. function clerp(a,b,t)
  1656. local qa = {QuaternionFromCFrame(a)}
  1657. local qb = {QuaternionFromCFrame(b)}
  1658. local ax, ay, az = a.x, a.y, a.z
  1659. local bx, by, bz = b.x, b.y, b.z
  1660. local _t = 1-t
  1661. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1662. end
  1663.  
  1664. function QuaternionFromCFrame(cf)
  1665. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1666. local trace = m00 + m11 + m22
  1667. if trace > 0 then
  1668. local s = math.sqrt(1 + trace)
  1669. local recip = 0.5/s
  1670. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1671. else
  1672. local i = 0
  1673. if m11 > m00 then
  1674. i = 1
  1675. end
  1676. if m22 > (i == 0 and m00 or m11) then
  1677. i = 2
  1678. end
  1679. if i == 0 then
  1680. local s = math.sqrt(m00-m11-m22+1)
  1681. local recip = 0.5/s
  1682. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1683. elseif i == 1 then
  1684. local s = math.sqrt(m11-m22-m00+1)
  1685. local recip = 0.5/s
  1686. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1687. elseif i == 2 then
  1688. local s = math.sqrt(m22-m00-m11+1)
  1689. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1690. end
  1691. end
  1692. end
  1693.  
  1694. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1695. local xs, ys, zs = x + x, y + y, z + z
  1696. local wx, wy, wz = w*xs, w*ys, w*zs
  1697. local xx = x*xs
  1698. local xy = x*ys
  1699. local xz = x*zs
  1700. local yy = y*ys
  1701. local yz = y*zs
  1702. local zz = z*zs
  1703. 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))
  1704. end
  1705.  
  1706. function QuaternionSlerp(a, b, t)
  1707. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1708. local startInterp, finishInterp;
  1709. if cosTheta >= 0.0001 then
  1710. if (1 - cosTheta) > 0.0001 then
  1711. local theta = math.acos(cosTheta)
  1712. local invSinTheta = 1/math.sin(theta)
  1713. startInterp = math.sin((1-t)*theta)*invSinTheta
  1714. finishInterp = math.sin(t*theta)*invSinTheta
  1715. else
  1716. startInterp = 1-t
  1717. finishInterp = t
  1718. end
  1719. else
  1720. if (1+cosTheta) > 0.0001 then
  1721. local theta = math.acos(-cosTheta)
  1722. local invSinTheta = 1/math.sin(theta)
  1723. startInterp = math.sin((t-1)*theta)*invSinTheta
  1724. finishInterp = math.sin(t*theta)*invSinTheta
  1725. else
  1726. startInterp = t-1
  1727. finishInterp = t
  1728. end
  1729. end
  1730. 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
  1731. end
  1732.  
  1733. local function CFrameFromTopBack(at, top, back)
  1734. local right = top:Cross(back)
  1735. return CFrame.new(at.x, at.y, at.z,
  1736. right.x, top.x, back.x,
  1737. right.y, top.y, back.y,
  1738. right.z, top.z, back.z)
  1739. end
  1740.  
  1741. function Triangle(a, b, c)
  1742. local edg1 = (c-a):Dot((b-a).unit)
  1743. local edg2 = (a-b):Dot((c-b).unit)
  1744. local edg3 = (b-c):Dot((a-c).unit)
  1745. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1746. a, b, c = a, b, c
  1747. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1748. a, b, c = b, c, a
  1749. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1750. a, b, c = c, a, b
  1751. else
  1752. assert(false, "unreachable")
  1753. end
  1754.  
  1755. local len1 = (c-a):Dot((b-a).unit)
  1756. local len2 = (b-a).magnitude - len1
  1757. local width = (a + (b-a).unit*len1 - c).magnitude
  1758.  
  1759. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1760.  
  1761. local list = {}
  1762.  
  1763. if len1 > 0.01 then
  1764. local w1 = Instance.new('WedgePart', m)
  1765. game:GetService("Debris"):AddItem(w1,5)
  1766. w1.Material = "SmoothPlastic"
  1767. w1.FormFactor = 'Custom'
  1768. w1.BrickColor = BrickColor.new("Really red")
  1769. w1.Transparency = 0
  1770. w1.Reflectance = 0
  1771. w1.Material = "SmoothPlastic"
  1772. w1.CanCollide = false
  1773. local l1 = Instance.new("PointLight",w1)
  1774. l1.Color = Color3.new(170,0,0)
  1775. NoOutline(w1)
  1776. local sz = Vector3.new(0.2, width, len1)
  1777. w1.Size = sz
  1778. local sp = Instance.new("SpecialMesh",w1)
  1779. sp.MeshType = "Wedge"
  1780. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1781. w1:BreakJoints()
  1782. w1.Anchored = true
  1783. w1.Parent = workspace
  1784. w1.Transparency = 0.7
  1785. table.insert(Effects,{w1,"Disappear",.01})
  1786. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1787. table.insert(list,w1)
  1788. end
  1789.  
  1790. if len2 > 0.01 then
  1791. local w2 = Instance.new('WedgePart', m)
  1792. game:GetService("Debris"):AddItem(w2,5)
  1793. w2.Material = "SmoothPlastic"
  1794. w2.FormFactor = 'Custom'
  1795. w2.BrickColor = BrickColor.new("Really red")
  1796. w2.Transparency = 0
  1797. w2.Reflectance = 0
  1798. w2.Material = "SmoothPlastic"
  1799. w2.CanCollide = false
  1800. local l2 = Instance.new("PointLight",w2)
  1801. l2.Color = Color3.new(170,0,0)
  1802. NoOutline(w2)
  1803. local sz = Vector3.new(0.2, width, len2)
  1804. w2.Size = sz
  1805. local sp = Instance.new("SpecialMesh",w2)
  1806. sp.MeshType = "Wedge"
  1807. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1808. w2:BreakJoints()
  1809. w2.Anchored = true
  1810. w2.Parent = workspace
  1811. w2.Transparency = 0.7
  1812. table.insert(Effects,{w2,"Disappear",.01})
  1813. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1814. table.insert(list,w2)
  1815. end
  1816. return unpack(list)
  1817. end
  1818.  
  1819.  
  1820. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1821. if hit.Parent == nil then
  1822. return
  1823. end
  1824. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1825. for _, v in pairs(hit.Parent:children()) do
  1826. if v:IsA("Humanoid") then
  1827. h = v
  1828. end
  1829. end
  1830. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1831. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1832. return
  1833. end
  1834. local c = Create("ObjectValue")({
  1835. Name = "creator",
  1836. Value = game:GetService("Players").LocalPlayer,
  1837. Parent = h
  1838. })
  1839. game:GetService("Debris"):AddItem(c, 0.5)
  1840. if HitSound ~= nil and HitPitch ~= nil then
  1841. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1842. end
  1843. local Damage = math.random(minim, maxim)
  1844. local blocked = false
  1845. local block = hit.Parent:findFirstChild("Block")
  1846. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1847. blocked = true
  1848. block.Value = block.Value - 1
  1849. print(block.Value)
  1850. end
  1851. if blocked == false then
  1852. HitHealth = h.Health
  1853. h.MaxHealth = 100
  1854. h.Health = h.Health - Damage
  1855. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1856. print("gained kill")
  1857. dmg(h.Parent)
  1858. end
  1859. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1860. else
  1861. h.Health = h.Health - Damage / 2
  1862. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1863. end
  1864. if Type == "Knockdown" then
  1865. local hum = hit.Parent.Humanoid
  1866. hum.PlatformStand = true
  1867. coroutine.resume(coroutine.create(function(HHumanoid)
  1868. swait(1)
  1869. HHumanoid.PlatformStand = false
  1870. end), hum)
  1871. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1872. local bodvol = Create("BodyVelocity")({
  1873. velocity = angle * knockback,
  1874. P = 5000,
  1875. maxForce = Vector3.new(8000, 8000, 8000),
  1876. Parent = hit
  1877. })
  1878. local rl = Create("BodyAngularVelocity")({
  1879. P = 3000,
  1880. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1881. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1882. Parent = hit
  1883. })
  1884. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1885. game:GetService("Debris"):AddItem(rl, 0.5)
  1886. elseif Type == "Normal" then
  1887. local vp = Create("BodyVelocity")({
  1888. P = 500,
  1889. maxForce = Vector3.new(math.huge, 0, math.huge),
  1890. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1891. })
  1892. if knockback > 0 then
  1893. vp.Parent = hit.Parent.Head
  1894. end
  1895. game:GetService("Debris"):AddItem(vp, 0.5)
  1896. elseif Type == "Up" then
  1897. local bodyVelocity = Create("BodyVelocity")({
  1898. velocity = Vector3.new(0, 20, 0),
  1899. P = 5000,
  1900. maxForce = Vector3.new(8000, 8000, 8000),
  1901. Parent = hit
  1902. })
  1903. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1904. local bodyVelocity = Create("BodyVelocity")({
  1905. velocity = Vector3.new(0, 20, 0),
  1906. P = 5000,
  1907. maxForce = Vector3.new(8000, 8000, 8000),
  1908. Parent = hit
  1909. })
  1910. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1911. elseif Type == "Leech" then
  1912. local hum = hit.Parent.Humanoid
  1913. if hum ~= nil then
  1914. for i = 0, 2 do
  1915. 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)
  1916. end
  1917. Humanoid.Health = Humanoid.Health + 10
  1918. end
  1919. elseif Type == "UpKnock" then
  1920. local hum = hit.Parent.Humanoid
  1921. hum.PlatformStand = true
  1922. if hum ~= nil then
  1923. hitr = true
  1924. end
  1925. coroutine.resume(coroutine.create(function(HHumanoid)
  1926. swait(5)
  1927. HHumanoid.PlatformStand = false
  1928. hitr = false
  1929. end), hum)
  1930. local bodyVelocity = Create("BodyVelocity")({
  1931. velocity = Vector3.new(0, 20, 0),
  1932. P = 5000,
  1933. maxForce = Vector3.new(8000, 8000, 8000),
  1934. Parent = hit
  1935. })
  1936. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1937. local bodyVelocity = Create("BodyVelocity")({
  1938. velocity = Vector3.new(0, 20, 0),
  1939. P = 5000,
  1940. maxForce = Vector3.new(8000, 8000, 8000),
  1941. Parent = hit
  1942. })
  1943. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1944. elseif Type == "Snare" then
  1945. local bp = Create("BodyPosition")({
  1946. P = 2000,
  1947. D = 100,
  1948. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1949. position = hit.Parent.Torso.Position,
  1950. Parent = hit.Parent.Torso
  1951. })
  1952. game:GetService("Debris"):AddItem(bp, 1)
  1953. elseif Type == "Slashnare" then
  1954. 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)
  1955. for i = 1, math.random(4, 5) do
  1956. 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)
  1957. end
  1958. local bp = Create("BodyPosition")({
  1959. P = 2000,
  1960. D = 100,
  1961. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1962. position = hit.Parent.Torso.Position,
  1963. Parent = hit.Parent.Torso
  1964. })
  1965. game:GetService("Debris"):AddItem(bp, 1)
  1966. elseif Type == "Spike" then
  1967. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1968. local bp = Create("BodyPosition")({
  1969. P = 2000,
  1970. D = 100,
  1971. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1972. position = hit.Parent.Torso.Position,
  1973. Parent = hit.Parent.Torso
  1974. })
  1975. game:GetService("Debris"):AddItem(bp, 1)
  1976. elseif Type == "Freeze" then
  1977. local BodPos = Create("BodyPosition")({
  1978. P = 50000,
  1979. D = 1000,
  1980. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1981. position = hit.Parent.Torso.Position,
  1982. Parent = hit.Parent.Torso
  1983. })
  1984. local BodGy = Create("BodyGyro")({
  1985. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1986. P = 20000,
  1987. Parent = hit.Parent.Torso,
  1988. cframe = hit.Parent.Torso.CFrame
  1989. })
  1990. hit.Parent.Torso.Anchored = true
  1991. coroutine.resume(coroutine.create(function(Part)
  1992. swait(1.5)
  1993. Part.Anchored = false
  1994. end), hit.Parent.Torso)
  1995. game:GetService("Debris"):AddItem(BodPos, 3)
  1996. game:GetService("Debris"):AddItem(BodGy, 3)
  1997. end
  1998. local debounce = Create("BoolValue")({
  1999. Name = "DebounceHit",
  2000. Parent = hit.Parent,
  2001. Value = true
  2002. })
  2003. game:GetService("Debris"):AddItem(debounce, Delay)
  2004. c = Instance.new("ObjectValue")
  2005. c.Name = "creator"
  2006. c.Value = Player
  2007. c.Parent = h
  2008. game:GetService("Debris"):AddItem(c, 0.5)
  2009. end
  2010. end
  2011. function ShowDamage(Pos, Text, Time, Color)
  2012. local Rate = 0.03333333333333333
  2013. local Pos = Pos or Vector3.new(0, 0, 0)
  2014. local Text = Text or ""
  2015. local Time = Time or 2
  2016. local Color = Color or Color3.new(1, 0, 1)
  2017. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2018. EffectPart.Anchored = true
  2019. local BillboardGui = Create("BillboardGui")({
  2020. Size = UDim2.new(3, 0, 3, 0),
  2021. Adornee = EffectPart,
  2022. Parent = EffectPart
  2023. })
  2024. local TextLabel = Create("TextLabel")({
  2025. BackgroundTransparency = 1,
  2026. Size = UDim2.new(1, 0, 1, 0),
  2027. Text = Text,
  2028. TextColor3 = Color,
  2029. TextScaled = true,
  2030. Font = Enum.Font.ArialBold,
  2031. Parent = BillboardGui
  2032. })
  2033. game.Debris:AddItem(EffectPart, Time + 0.1)
  2034. EffectPart.Parent = game:GetService("Workspace")
  2035. delay(0, function()
  2036. local Frames = Time / Rate
  2037. for Frame = 1, Frames do
  2038. wait(Rate)
  2039. local Percent = Frame / Frames
  2040. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2041. TextLabel.TextTransparency = Percent
  2042. end
  2043. if EffectPart and EffectPart.Parent then
  2044. EffectPart:Destroy()
  2045. end
  2046. end)
  2047. end
  2048. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2049. for _, c in pairs(workspace:children()) do
  2050. local hum = c:findFirstChildOfClass("Humanoid")
  2051. if hum ~= nil then
  2052. local head = c:findFirstChild("Head")
  2053. if head ~= nil then
  2054. local targ = head.Position - Part.Position
  2055. local mag = targ.magnitude
  2056. if magni >= mag and c.Name ~= Player.Name then
  2057. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2058. end
  2059. end
  2060. end
  2061. end
  2062. end
  2063.  
  2064. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2065. for _, c in pairs(workspace:children()) do
  2066. local hum = c:findFirstChild("Humanoid")
  2067. if hum ~= nil then
  2068. local head = c:findFirstChild("Torso")
  2069. if head ~= nil then
  2070. local targ = head.Position - Part.Position
  2071. local mag = targ.magnitude
  2072. if magni >= mag and c.Name ~= Player.Name then
  2073. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2074. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2075. end
  2076. end
  2077. end
  2078. end
  2079. end
  2080.  
  2081. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2082. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2083. end
  2084.  
  2085. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2086. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2087. prt.Anchored=true
  2088. prt.CFrame=cframe
  2089. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2090. --http://www.roblox.com/asset/?id=4770560
  2091. game:GetService("Debris"):AddItem(prt,2)
  2092. CF=prt.CFrame
  2093. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2094. for i=0,1,0.2 do
  2095. wait()
  2096. Part.CFrame=CF*cf(0,0,-0.4)
  2097. end
  2098. for i=0,1,delay do
  2099. wait()
  2100. --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)
  2101. Mesh.Scale=Mesh.Scale
  2102. end
  2103. for i=0,1,0.1 do
  2104. wait()
  2105. Part.Transparency=i
  2106. end
  2107. Part.Parent=nil
  2108. end),prt,msh,CF)
  2109. end
  2110.  
  2111. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2112. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2113. prt.Anchored=true
  2114. prt.Material = "Neon"
  2115. prt.CFrame=cframe
  2116. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2117. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2118. game:GetService("Debris"):AddItem(prt,5)
  2119. coroutine.resume(coroutine.create(function(Part,Mesh)
  2120. for i=0,1,delay do
  2121. swait()
  2122. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2123. Part.Transparency=i
  2124. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2125. end
  2126. Part.Parent=nil
  2127. end),prt,msh)
  2128. end
  2129.  
  2130. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt.Anchored=true
  2133. prt.Material = "Neon"
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2136. game:GetService("Debris"):AddItem(prt,5)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. local rtype = rottype
  2139. for i=0,1,delay do
  2140. swait()
  2141. if rtype == 1 then
  2142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2143. elseif rtype == 2 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2145. end
  2146. Part.Transparency=i
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=true
  2156. prt.CFrame=cframe
  2157. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2158. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2159. game:GetService("Debris"):AddItem(prt,5)
  2160. coroutine.resume(coroutine.create(function(Part,Mesh)
  2161. for i=0,1,delay do
  2162. wait()
  2163. Part.Transparency=i
  2164. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2165. end
  2166. Part.Parent=nil
  2167. end),prt,msh)
  2168. end
  2169.  
  2170. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,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. Part.Transparency=i
  2187. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2188. end
  2189. Part.Parent=nil
  2190. end),prt,msh)
  2191. end
  2192.  
  2193. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2194. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2195. prt.Anchored=true
  2196. prt.Material = "Neon"
  2197. prt.CFrame=cframe
  2198. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2199. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2200. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2201. game:GetService("Debris"):AddItem(prt,5)
  2202. coroutine.resume(coroutine.create(function(Part,Mesh)
  2203. local rtype = rottype
  2204. for i=0,1,delay do
  2205. swait()
  2206. if rtype == 1 then
  2207. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2208. elseif rtype == 2 then
  2209. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2210. end
  2211. dec.Transparency=i
  2212. dec2.Transparency=i
  2213. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2214. end
  2215. Part.Parent=nil
  2216. end),prt,msh)
  2217. end
  2218.  
  2219. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2220. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2221. prt.Anchored=true
  2222. prt.Material = "Neon"
  2223. prt.CFrame=cframe
  2224. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2225. game:GetService("Debris"):AddItem(prt,5)
  2226. coroutine.resume(coroutine.create(function(Part,Mesh)
  2227. local rtype = rottype
  2228. for i=0,1,delay do
  2229. swait()
  2230. if rtype == 1 then
  2231. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2232. elseif rtype == 2 then
  2233. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2234. end
  2235. prt.Transparency=i
  2236. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2237. end
  2238. Part.Parent=nil
  2239. end),prt,msh)
  2240. end
  2241.  
  2242. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2243. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2244. prt.Anchored=true
  2245. prt.Material = "Neon"
  2246. prt.CFrame=cframe
  2247. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2248. game:GetService("Debris"):AddItem(prt,5)
  2249. coroutine.resume(coroutine.create(function(Part,Mesh)
  2250. local rtype = rottype
  2251. for i=0,1,delay do
  2252. swait()
  2253. if rtype == 1 then
  2254. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2255. elseif rtype == 2 then
  2256. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2257. end
  2258. prt.Transparency=i
  2259. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2260. end
  2261. Part.Parent=nil
  2262. end),prt,msh)
  2263. end
  2264.  
  2265. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2266. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2267. prt.Anchored=true
  2268. prt.Material = "Neon"
  2269. prt.CFrame=cframe
  2270. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2271. game:GetService("Debris"):AddItem(prt,5)
  2272. coroutine.resume(coroutine.create(function(Part,Mesh)
  2273. local rtype = rottype
  2274. for i=0,1,delay do
  2275. swait()
  2276. if rtype == 1 then
  2277. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2278. elseif rtype == 2 then
  2279. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2280. end
  2281. prt.Transparency=i
  2282. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2283. end
  2284. Part.Parent=nil
  2285. end),prt,msh)
  2286. end
  2287.  
  2288. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2289. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt.Anchored=true
  2291. prt.Material = "Neon"
  2292. prt.CFrame=cframe
  2293. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2294. game:GetService("Debris"):AddItem(prt,5)
  2295. coroutine.resume(coroutine.create(function(Part,Mesh)
  2296. local rtype = rottype
  2297. for i=0,1,delay do
  2298. swait()
  2299. if rtype == 1 then
  2300. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2301. elseif rtype == 2 then
  2302. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2303. end
  2304. prt.Transparency=i
  2305. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2306. end
  2307. Part.Parent=nil
  2308. end),prt,msh)
  2309. end
  2310.  
  2311. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2312. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2313. prt.Anchored=false
  2314. prt.CFrame=cframe
  2315. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2316. local wld=weld(prt,prt,Parent,cframe)
  2317. game:GetService("Debris"):AddItem(prt,5)
  2318. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2319. for i=0,1,delay do
  2320. wait()
  2321. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2322. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2323. Part.Transparency=i
  2324. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2325. end
  2326. Part.Parent=nil
  2327. end),prt,msh,wld)
  2328. end
  2329.  
  2330. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2331. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2332. prt.Anchored=false
  2333. prt.CFrame=cframe
  2334. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2335. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2336. game:GetService("Debris"):AddItem(prt,5)
  2337. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2338. for i=0,1,delay do
  2339. wait()
  2340. Weld.C0=euler(i*20,0,0)
  2341. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2342. Part.Transparency=i
  2343. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2344. end
  2345. Part.Parent=nil
  2346. end),prt,msh,wld)
  2347. end
  2348.  
  2349. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2350. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2351. prt.Anchored=true
  2352. prt.CFrame=cframe
  2353. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2354. game:GetService("Debris"):AddItem(prt,2)
  2355. coroutine.resume(coroutine.create(function(Part,Mesh)
  2356. for i=0,1,delay do
  2357. wait()
  2358. Part.CFrame=Part.CFrame
  2359. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2360. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2361. prt2.Anchored=true
  2362. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2363. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2364. game:GetService("Debris"):AddItem(prt2,2)
  2365. coroutine.resume(coroutine.create(function(Part,Mesh)
  2366. for i=0,1,0.1 do
  2367. wait()
  2368. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2369. end
  2370. Part.Parent=nil
  2371. end),prt2,msh2)
  2372. end
  2373. for i=0,1,delay*2 do
  2374. wait()
  2375. Part.CFrame=Part.CFrame
  2376. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2377. end
  2378. Part.Parent=nil
  2379. end),prt,msh)
  2380. end
  2381.  
  2382. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2383. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2384. prt.Anchored=true
  2385. prt.CFrame=cframe
  2386. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2387. game:GetService("Debris"):AddItem(prt,2)
  2388. coroutine.resume(coroutine.create(function(Part,Mesh)
  2389. for i=0,1,delay do
  2390. wait()
  2391. Part.CFrame=Part.CFrame
  2392. Part.Transparency=i
  2393. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2394. end
  2395. Part.Parent=nil
  2396. end),prt,msh)
  2397. end
  2398.  
  2399. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2400. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2401. prt.Anchored=true
  2402. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2403. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2404. game:GetService("Debris"):AddItem(prt,2)
  2405. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2406. CF=Part.CFrame
  2407. Numbb=0
  2408. randnumb=math.random()/10
  2409. rand1=math.random()/10
  2410. for i=0,1,rand1 do
  2411. wait()
  2412. CF=CF*cf(0,math.random()/2,0)
  2413. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2414. Part.CFrame=CF*euler(Numbb,0,0)
  2415. Part.Transparency=i
  2416. Numbb=Numbb+randnumb
  2417. end
  2418. Part.Parent=nil
  2419. end),prt,CF,Numbb,randnumb)
  2420. end
  2421.  
  2422. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2423. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2424. prt.Anchored=true
  2425. prt.CFrame=cframe
  2426. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2427. game:GetService("Debris"):AddItem(prt,5)
  2428. coroutine.resume(coroutine.create(function(Part,Mesh)
  2429. for i=0,1,delay do
  2430. wait()
  2431. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2432. Part.Transparency=i
  2433. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2434. end
  2435. Part.Parent=nil
  2436. end),prt,msh)
  2437. end
  2438.  
  2439. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2440. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2441. prt.Anchored=true
  2442. prt.CFrame=cframe
  2443. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2444. game:GetService("Debris"):AddItem(prt,2)
  2445. coroutine.resume(coroutine.create(function(Part,Mesh)
  2446. for i=0,1,delay do
  2447. wait()
  2448. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2449. Part.Transparency=i
  2450. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2451. end
  2452. Part.Parent=nil
  2453. end),prt,msh)
  2454. end
  2455.  
  2456. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2457. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2458. prt.Anchored=true
  2459. prt.CFrame=cframe*cf(x,y,z)
  2460. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2461. game:GetService("Debris"):AddItem(prt,5)
  2462. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2463. local num=math.random()
  2464. local num2=math.random(-3,2)+math.random()
  2465. local numm=0
  2466. for i=0,1,delay*2 do
  2467. swait()
  2468. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2469. Part.Transparency=i
  2470. numm=numm+0.01
  2471. end
  2472. Part.Parent=nil
  2473. Mesh.Parent=nil
  2474. end),prt,msh,x,y,z)
  2475. end
  2476.  
  2477. function dmgstart(dmg,what)
  2478. hitcon = what.Touched:connect(function(hit)
  2479. local hum = hit.Parent:FindFirstChild("Humanoid")
  2480. if hum and not hum:IsDescendantOf(Character) then
  2481. hum:TakeDamage(dmg)
  2482. end
  2483. end)
  2484. end
  2485.  
  2486. function dmgstop()
  2487. hitcon:disconnect()
  2488. end
  2489.  
  2490. function Cloak()
  2491. Face.Parent=nil
  2492. cloaked=true
  2493. for _,v in pairs(Torso.Parent:children()) do
  2494. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2495. coroutine.resume(coroutine.create(function()
  2496. for i=0,1,0.2 do
  2497. wait()
  2498. v.Transparency=i
  2499. end
  2500. v.Transparency=1
  2501. end))
  2502. end
  2503. if v.className=="Hat" then
  2504. hatp=v.Handle
  2505. coroutine.resume(coroutine.create(function(derp)
  2506. for i=0,1,0.2 do
  2507. wait()
  2508. derp.Transparency=i
  2509. end
  2510. derp.Transparency=1
  2511. end),hatp)
  2512. end
  2513. end
  2514. for _,v in pairs(m:children()) do
  2515. if v.className=="Part" then
  2516. coroutine.resume(coroutine.create(function()
  2517. for i=0,1,0.2 do
  2518. wait()
  2519. v.Transparency=i
  2520. end
  2521. v.Transparency=1
  2522. end))
  2523. end
  2524. end
  2525. end
  2526.  
  2527. function UnCloak()
  2528. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2529. Face.Parent=Head
  2530. cloaked=false
  2531. for _,v in pairs(Torso.Parent:children()) do
  2532. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2533. coroutine.resume(coroutine.create(function()
  2534. for i=0,1,0.1 do
  2535. wait()
  2536. v.Transparency=v.Transparency-0.1
  2537. end
  2538. v.Transparency=0
  2539. end))
  2540. end
  2541. if v.className=="Hat" then
  2542. hatp=v.Handle
  2543. coroutine.resume(coroutine.create(function(derp)
  2544. for i=0,1,0.1 do
  2545. wait()
  2546. derp.Transparency=derp.Transparency-0.1
  2547. end
  2548. derp.Transparency=0
  2549. end),hatp)
  2550. end
  2551. end
  2552. for _,v in pairs(m:children()) do
  2553. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2554. coroutine.resume(coroutine.create(function()
  2555. for i=0,1,0.1 do
  2556. wait()
  2557. v.Transparency=v.Transparency-0.1
  2558. end
  2559. v.Transparency=0
  2560. end))
  2561. v.Transparency=0
  2562. end
  2563. end
  2564. end
  2565.  
  2566. local origcolor = BrickColor.new("Pastel light blue")
  2567. ---- This section of explosions.
  2568.  
  2569. ----
  2570.  
  2571.  
  2572. function ring(type,pos,scale,value)
  2573. local type = type
  2574. local rng = Instance.new("Part", char)
  2575. rng.Anchored = true
  2576. rng.BrickColor = origcolor
  2577. rng.CanCollide = false
  2578. rng.FormFactor = 3
  2579. rng.Name = "Ring"
  2580. rng.Size = Vector3.new(1, 1, 1)
  2581. rng.Transparency = 0
  2582. rng.TopSurface = 0
  2583. rng.BottomSurface = 0
  2584. rng.CFrame = pos
  2585. local rngm = Instance.new("SpecialMesh", rng)
  2586. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2587. rngm.Scale = scale
  2588. local scaler2 = 1
  2589. if type == "Add" then
  2590. scaler2 = 1*value
  2591. elseif type == "Divide" then
  2592. scaler2 = 1/value
  2593. end
  2594. coroutine.resume(coroutine.create(function()
  2595. for i = 0,10,0.1 do
  2596. swait()
  2597. if type == "Add" then
  2598. scaler2 = scaler2 - 0.01*value
  2599. elseif type == "Divide" then
  2600. scaler2 = scaler2 - 0.01/value
  2601. end
  2602. rng.Transparency = rng.Transparency + 0.01
  2603. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2604. end
  2605. rng:Destroy()
  2606. end))
  2607. end
  2608.  
  2609.  
  2610. function wave(type,pos,scale,value)
  2611. local type = type
  2612. local rng = Instance.new("Part", char)
  2613. rng.Anchored = true
  2614. rng.BrickColor = origcolor
  2615. rng.CanCollide = false
  2616. rng.FormFactor = 3
  2617. rng.Name = "Ring"
  2618. rng.Size = Vector3.new(1, 1, 1)
  2619. rng.Transparency = 0
  2620. rng.TopSurface = 0
  2621. rng.BottomSurface = 0
  2622. rng.CFrame = pos
  2623. local rngm = Instance.new("SpecialMesh", rng)
  2624. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2625. rngm.Scale = scale
  2626. local scaler2 = 1
  2627. if type == "Add" then
  2628. scaler2 = 1*value
  2629. elseif type == "Divide" then
  2630. scaler2 = 1/value
  2631. end
  2632. coroutine.resume(coroutine.create(function()
  2633. for i = 0,10,0.1 do
  2634. swait()
  2635. if type == "Add" then
  2636. scaler2 = scaler2 - 0.01*value
  2637. elseif type == "Divide" then
  2638. scaler2 = scaler2 - 0.01/value
  2639. end
  2640. rng.Transparency = rng.Transparency + 0.01
  2641. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2642. end
  2643. rng:Destroy()
  2644. end))
  2645. end
  2646.  
  2647. function wind(type,pos,scale,value,speed)
  2648. local type = type
  2649. local rng = Instance.new("Part", char)
  2650. rng.Anchored = true
  2651. rng.BrickColor = origcolor
  2652. rng.CanCollide = false
  2653. rng.FormFactor = 3
  2654. rng.Name = "Ring"
  2655. rng.Size = Vector3.new(1, 1, 1)
  2656. rng.Transparency = 0
  2657. rng.TopSurface = 0
  2658. rng.BottomSurface = 0
  2659. rng.CFrame = pos
  2660. local rngm = Instance.new("SpecialMesh", rng)
  2661. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2662. rngm.Scale = scale
  2663. local scaler2 = 1
  2664. if type == "Add" then
  2665. scaler2 = 1*value
  2666. elseif type == "Divide" then
  2667. scaler2 = 1/value
  2668. end
  2669. coroutine.resume(coroutine.create(function()
  2670. for i = 0,10,0.1 do
  2671. swait()
  2672. if type == "Add" then
  2673. scaler2 = scaler2 - 0.01*value
  2674. elseif type == "Divide" then
  2675. scaler2 = scaler2 - 0.01/value
  2676. end
  2677. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2678. rng.Transparency = rng.Transparency + 0.01
  2679. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2680. end
  2681. rng:Destroy()
  2682. end))
  2683. end
  2684.  
  2685. function groundwind(type,pos,scale,value,speed)
  2686. local type = type
  2687. local rng = Instance.new("Part", char)
  2688. rng.Anchored = true
  2689. rng.BrickColor = origcolor
  2690. rng.CanCollide = false
  2691. rng.FormFactor = 3
  2692. rng.Name = "Ring"
  2693. rng.Size = Vector3.new(1, 1, 1)
  2694. rng.Transparency = 0
  2695. rng.TopSurface = 0
  2696. rng.BottomSurface = 0
  2697. rng.CFrame = pos
  2698. local rngm = Instance.new("SpecialMesh", rng)
  2699. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2700. rngm.Scale = scale
  2701. local scaler2 = 1
  2702. if type == "Add" then
  2703. scaler2 = 1*value
  2704. elseif type == "Divide" then
  2705. scaler2 = 1/value
  2706. end
  2707. coroutine.resume(coroutine.create(function()
  2708. for i = 0,10,0.1 do
  2709. swait()
  2710. if type == "Add" then
  2711. scaler2 = scaler2 - 0.01*value
  2712. elseif type == "Divide" then
  2713. scaler2 = scaler2 - 0.01/value
  2714. end
  2715. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2716. rng.Transparency = rng.Transparency + 0.01
  2717. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2718. end
  2719. rng:Destroy()
  2720. end))
  2721. end
  2722.  
  2723. function CameraManager()
  2724. if TwoD and not CamInterrupt then
  2725. if Humanoid.Health > 0 then
  2726. Camera.CameraSubject = Humanoid
  2727. Camera.CameraType = "Scriptable"
  2728. Humanoid.AutoRotate = false
  2729. if Booleans.GyroUse then
  2730. Directer.MaxTorque = Vec3(0, huge, 0)
  2731. else
  2732. Directer.MaxTorque = Vec3(0, 0, 0)
  2733. end
  2734. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2735. if Booleans.CamFollow then
  2736. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2737. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2738. else
  2739. CPart.Position = RootPart.Position
  2740. end
  2741. else
  2742. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2743. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2744. end
  2745. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2746. else
  2747. Camera.CameraSubject = Humanoid
  2748. Camera.CameraType = "Custom"
  2749. Controller.Disabled = false
  2750. end
  2751. end
  2752. end
  2753.  
  2754. function ring(type,pos,scale,value)
  2755. local type = type
  2756. local rng = Instance.new("Part", char)
  2757. rng.Anchored = true
  2758. rng.BrickColor = origcolor
  2759. rng.CanCollide = false
  2760. rng.FormFactor = 3
  2761. rng.Name = "Ring"
  2762. rng.Size = Vector3.new(1, 1, 1)
  2763. rng.Transparency = 0
  2764. rng.TopSurface = 0
  2765. rng.BottomSurface = 0
  2766. rng.CFrame = pos
  2767. local rngm = Instance.new("SpecialMesh", rng)
  2768. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2769. rngm.Scale = scale
  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,0.1 do
  2778. swait()
  2779. if type == "Add" then
  2780. scaler2 = scaler2 - 0.01*value
  2781. elseif type == "Divide" then
  2782. scaler2 = scaler2 - 0.01/value
  2783. end
  2784. rng.Transparency = rng.Transparency + 0.01
  2785. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2786. end
  2787. rng:Destroy()
  2788. end))
  2789. end
  2790.  
  2791.  
  2792. function wave(type,pos,scale,value)
  2793. local type = type
  2794. local rng = Instance.new("Part", char)
  2795. rng.Anchored = true
  2796. rng.BrickColor = origcolor
  2797. rng.CanCollide = false
  2798. rng.FormFactor = 3
  2799. rng.Name = "Ring"
  2800. rng.Size = Vector3.new(1, 1, 1)
  2801. rng.Transparency = 0
  2802. rng.TopSurface = 0
  2803. rng.BottomSurface = 0
  2804. rng.CFrame = pos
  2805. local rngm = Instance.new("SpecialMesh", rng)
  2806. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2807. rngm.Scale = scale
  2808. local scaler2 = 1
  2809. if type == "Add" then
  2810. scaler2 = 1*value
  2811. elseif type == "Divide" then
  2812. scaler2 = 1/value
  2813. end
  2814. coroutine.resume(coroutine.create(function()
  2815. for i = 0,10,0.1 do
  2816. swait()
  2817. if type == "Add" then
  2818. scaler2 = scaler2 - 0.01*value
  2819. elseif type == "Divide" then
  2820. scaler2 = scaler2 - 0.01/value
  2821. end
  2822. rng.Transparency = rng.Transparency + 0.01
  2823. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2824. end
  2825. rng:Destroy()
  2826. end))
  2827. end
  2828.  
  2829. function sphere(bonuspeed,type,pos,scale,value,color)
  2830. local type = type
  2831. local rng = Instance.new("Part", char)
  2832. rng.Anchored = true
  2833. if ModeOfGlitch ~= 9 then
  2834. rng.BrickColor = color
  2835. elseif ModeOfGlitch == 9 then
  2836. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2837. end
  2838. rng.CanCollide = false
  2839. rng.FormFactor = 3
  2840. rng.Name = "Ring"
  2841. rng.Material = "Neon"
  2842. rng.Size = Vector3.new(1, 1, 1)
  2843. rng.Transparency = 0
  2844. rng.TopSurface = 0
  2845. rng.BottomSurface = 0
  2846. rng.CFrame = pos
  2847. local rngm = Instance.new("SpecialMesh", rng)
  2848. rngm.MeshType = "Sphere"
  2849. rngm.Scale = scale
  2850. if rainbowmode == true then
  2851. rng.Color = Color3.new(r/255,g/255,b/255)
  2852. end
  2853. if ModeOfGlitch == 9 then
  2854. coroutine.resume(coroutine.create(function()
  2855. while true do
  2856. swait()
  2857. if rng.Parent ~= nil then
  2858. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2859. else
  2860. break
  2861. end
  2862. end
  2863. end))
  2864. end
  2865. local scaler2 = 1
  2866. if type == "Add" then
  2867. scaler2 = 1*value
  2868. elseif type == "Divide" then
  2869. scaler2 = 1/value
  2870. end
  2871. coroutine.resume(coroutine.create(function()
  2872. for i = 0,10/bonuspeed,0.1 do
  2873. swait()
  2874. if rainbowmode == true then
  2875. rng.Color = Color3.new(r/255,g/255,b/255)
  2876. end
  2877. if type == "Add" then
  2878. scaler2 = scaler2 - 0.01*value/bonuspeed
  2879. elseif type == "Divide" then
  2880. scaler2 = scaler2 - 0.01/value*bonuspeed
  2881. end
  2882. if chaosmode == true then
  2883. rng.BrickColor = BrickColor.random()
  2884. end
  2885. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2886. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2887. end
  2888. rng:Destroy()
  2889. end))
  2890. end
  2891.  
  2892. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2893. local type = type
  2894. local rng = Instance.new("Part", char)
  2895. rng.Anchored = true
  2896. if ModeOfGlitch ~= 9 then
  2897. rng.BrickColor = color
  2898. elseif ModeOfGlitch == 9 then
  2899. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2900. end
  2901. rng.CanCollide = false
  2902. rng.FormFactor = 3
  2903. rng.Name = "Ring"
  2904. rng.Material = "Neon"
  2905. rng.Size = Vector3.new(1, 1, 1)
  2906. rng.Transparency = 0
  2907. rng.TopSurface = 0
  2908. rng.BottomSurface = 0
  2909. rng.CFrame = pos
  2910. local rngm = Instance.new("SpecialMesh", rng)
  2911. rngm.MeshType = "Sphere"
  2912. rngm.Scale = scale
  2913. local scaler2 = 1
  2914. local scaler2b = 1
  2915. local scaler2c = 1
  2916. if type == "Add" then
  2917. scaler2 = 1*value
  2918. scaler2b = 1*value2
  2919. scaler2c = 1*value3
  2920. elseif type == "Divide" then
  2921. scaler2 = 1/value
  2922. scaler2b = 1/value2
  2923. scaler2c = 1/value3
  2924. end
  2925. if ModeOfGlitch == 9 then
  2926. coroutine.resume(coroutine.create(function()
  2927. while true do
  2928. swait()
  2929. if rng.Parent ~= nil then
  2930. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2931. else
  2932. break
  2933. end
  2934. end
  2935. end))
  2936. end
  2937. coroutine.resume(coroutine.create(function()
  2938. for i = 0,10/bonuspeed,0.1 do
  2939. swait()
  2940. if type == "Add" then
  2941. scaler2 = scaler2 - 0.01*value/bonuspeed
  2942. scaler2b = scaler2b - 0.01*value/bonuspeed
  2943. scaler2c = scaler2c - 0.01*value/bonuspeed
  2944. elseif type == "Divide" then
  2945. scaler2 = scaler2 - 0.01/value*bonuspeed
  2946. scaler2b = scaler2b - 0.01/value*bonuspeed
  2947. scaler2c = scaler2c - 0.01/value*bonuspeed
  2948. end
  2949. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2950. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2951. end
  2952. rng:Destroy()
  2953. end))
  2954. end
  2955.  
  2956. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2957. local type = type
  2958. local rotenable = rotatingop
  2959. local rng = Instance.new("Part", char)
  2960. rng.Anchored = true
  2961. rng.BrickColor = color
  2962. rng.CanCollide = false
  2963. rng.FormFactor = 3
  2964. rng.Name = "Ring"
  2965. rng.Material = "Neon"
  2966. rng.Size = Vector3.new(1, 1, 1)
  2967. rng.Transparency = 0
  2968. if typeoftrans == "In" then
  2969. rng.Transparency = 1
  2970. end
  2971. rng.TopSurface = 0
  2972. rng.BottomSurface = 0
  2973. rng.CFrame = pos
  2974. local rngm = Instance.new("SpecialMesh", rng)
  2975. rngm.MeshType = "FileMesh"
  2976. if typeofshape == "Normal" then
  2977. rngm.MeshId = "rbxassetid://662586858"
  2978. elseif typeofshape == "Round" then
  2979. rngm.MeshId = "rbxassetid://662585058"
  2980. end
  2981. rngm.Scale = scale
  2982. local scaler2 = 1/10
  2983. if type == "Add" then
  2984. scaler2 = 1*value/10
  2985. elseif type == "Divide" then
  2986. scaler2 = 1/value/10
  2987. end
  2988. local randomrot = math.random(1,2)
  2989. coroutine.resume(coroutine.create(function()
  2990. for i = 0,10/bonuspeed,0.1 do
  2991. swait()
  2992. if type == "Add" then
  2993. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2994. elseif type == "Divide" then
  2995. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2996. end
  2997. if rotenable == true then
  2998. if randomrot == 1 then
  2999. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3000. elseif randomrot == 2 then
  3001. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3002. end
  3003. end
  3004. if typeoftrans == "Out" then
  3005. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3006. elseif typeoftrans == "In" then
  3007. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3008. end
  3009. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3010. end
  3011. rng:Destroy()
  3012. end))
  3013. end
  3014.  
  3015. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3016. local type = type
  3017. local rng = Instance.new("Part", char)
  3018. rng.Anchored = true
  3019. rng.BrickColor = color
  3020. rng.CanCollide = false
  3021. rng.FormFactor = 3
  3022. rng.Name = "Ring"
  3023. rng.Material = "Neon"
  3024. rng.Size = Vector3.new(1, 1, 1)
  3025. rng.Transparency = 0
  3026. rng.TopSurface = 0
  3027. rng.BottomSurface = 0
  3028. rng.CFrame = pos
  3029. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3030. local rngm = Instance.new("SpecialMesh", rng)
  3031. rngm.MeshType = "Brick"
  3032. rngm.Scale = vt(x1,y1,z1)
  3033. if rainbowmode == true then
  3034. rng.Color = Color3.new(r/255,g/255,b/255)
  3035. end
  3036. local scaler2 = 1
  3037. local speeder = FastSpeed/10
  3038. if type == "Add" then
  3039. scaler2 = 1*value
  3040. elseif type == "Divide" then
  3041. scaler2 = 1/value
  3042. end
  3043. coroutine.resume(coroutine.create(function()
  3044. for i = 0,10/bonuspeed,0.1 do
  3045. swait()
  3046. if rainbowmode == true then
  3047. rng.Color = Color3.new(r/255,g/255,b/255)
  3048. end
  3049. if type == "Add" then
  3050. scaler2 = scaler2 - 0.01*value/bonuspeed
  3051. elseif type == "Divide" then
  3052. scaler2 = scaler2 - 0.01/value*bonuspeed
  3053. end
  3054. if chaosmode == true then
  3055. rng.BrickColor = BrickColor.random()
  3056. end
  3057. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3058. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3059. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3060. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3061. end
  3062. rng:Destroy()
  3063. end))
  3064. end
  3065.  
  3066. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3067. local type = type
  3068. local rng = Instance.new("Part", char)
  3069. rng.Anchored = true
  3070. rng.BrickColor = color
  3071. rng.CanCollide = false
  3072. rng.FormFactor = 3
  3073. rng.Name = "Ring"
  3074. rng.Material = "Neon"
  3075. rng.Size = Vector3.new(1, 1, 1)
  3076. rng.Transparency = 0
  3077. rng.TopSurface = 0
  3078. rng.BottomSurface = 0
  3079. rng.CFrame = pos
  3080. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3081. local rngm = Instance.new("SpecialMesh", rng)
  3082. rngm.MeshType = "Brick"
  3083. rngm.Scale = vt(x1,y1,z1)
  3084. if rainbowmode == true then
  3085. rng.Color = Color3.new(r/255,g/255,b/255)
  3086. end
  3087. local scaler2 = 1
  3088. local speeder = FastSpeed/10
  3089. if type == "Add" then
  3090. scaler2 = 1*value
  3091. elseif type == "Divide" then
  3092. scaler2 = 1/value
  3093. end
  3094. coroutine.resume(coroutine.create(function()
  3095. for i = 0,10/bonuspeed,0.1 do
  3096. swait()
  3097. if rainbowmode == true then
  3098. rng.Color = Color3.new(r/255,g/255,b/255)
  3099. end
  3100. if type == "Add" then
  3101. scaler2 = scaler2 - 0.01*value/bonuspeed
  3102. elseif type == "Divide" then
  3103. scaler2 = scaler2 - 0.01/value*bonuspeed
  3104. end
  3105. if chaosmode == true then
  3106. rng.BrickColor = BrickColor.random()
  3107. end
  3108. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3109. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3110. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3111. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3112. end
  3113. rng:Destroy()
  3114. end))
  3115. end
  3116.  
  3117. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3118. local type = type
  3119. local rng = Instance.new("Part", char)
  3120. rng.Anchored = true
  3121. rng.BrickColor = color
  3122. rng.CanCollide = false
  3123. rng.FormFactor = 3
  3124. rng.Name = "Ring"
  3125. rng.Material = "Neon"
  3126. rng.Size = Vector3.new(1, 1, 1)
  3127. rng.Transparency = 0
  3128. rng.TopSurface = 0
  3129. rng.BottomSurface = 0
  3130. rng.CFrame = pos
  3131. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3132. local rngm = Instance.new("SpecialMesh", rng)
  3133. rngm.MeshType = "Brick"
  3134. rngm.Scale = vt(x1,y1,z1)
  3135. if rainbowmode == true then
  3136. rng.Color = Color3.new(r/255,g/255,b/255)
  3137. end
  3138. local scaler2 = 0
  3139. local speeder = FastSpeed/10
  3140. if type == "Add" then
  3141. scaler2 = 1*value
  3142. elseif type == "Divide" then
  3143. scaler2 = 1/value
  3144. end
  3145. coroutine.resume(coroutine.create(function()
  3146. for i = 0,10/bonuspeed,0.1 do
  3147. swait()
  3148. if rainbowmode == true then
  3149. rng.Color = Color3.new(r/255,g/255,b/255)
  3150. end
  3151. if type == "Add" then
  3152. scaler2 = scaler2 - 0.01*value/bonuspeed
  3153. elseif type == "Divide" then
  3154. scaler2 = scaler2 - 0.01/value*bonuspeed
  3155. end
  3156. if chaosmode == true then
  3157. rng.BrickColor = BrickColor.random()
  3158. end
  3159. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3160. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3161. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3162. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3163. end
  3164. rng:Destroy()
  3165. end))
  3166. end
  3167.  
  3168. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3169. local type = type
  3170. local rng = Instance.new("Part", char)
  3171. rng.Anchored = true
  3172. rng.BrickColor = color
  3173. rng.Color = color3
  3174. rng.CanCollide = false
  3175. rng.FormFactor = 3
  3176. rng.Name = "Ring"
  3177. rng.Material = "Neon"
  3178. rng.Size = Vector3.new(1, 1, 1)
  3179. rng.Transparency = 0
  3180. rng.TopSurface = 0
  3181. rng.BottomSurface = 0
  3182. rng.CFrame = pos
  3183. local rngm = Instance.new("SpecialMesh", rng)
  3184. rngm.MeshType = "Brick"
  3185. rngm.Scale = scale
  3186. local scaler2 = 1
  3187. local scaler2b = 1
  3188. local scaler2c = 1
  3189. if type == "Add" then
  3190. scaler2 = 1*value
  3191. scaler2b = 1*value2
  3192. scaler2c = 1*value3
  3193. elseif type == "Divide" then
  3194. scaler2 = 1/value
  3195. scaler2b = 1/value2
  3196. scaler2c = 1/value3
  3197. end
  3198. coroutine.resume(coroutine.create(function()
  3199. for i = 0,10/bonuspeed,0.1 do
  3200. swait()
  3201. if type == "Add" then
  3202. scaler2 = scaler2 - 0.01*value/bonuspeed
  3203. scaler2b = scaler2b - 0.01*value/bonuspeed
  3204. scaler2c = scaler2c - 0.01*value/bonuspeed
  3205. elseif type == "Divide" then
  3206. scaler2 = scaler2 - 0.01/value*bonuspeed
  3207. scaler2b = scaler2b - 0.01/value*bonuspeed
  3208. scaler2c = scaler2c - 0.01/value*bonuspeed
  3209. end
  3210. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3211. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3212. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3213. end
  3214. rng:Destroy()
  3215. end))
  3216. end
  3217.  
  3218. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3219. local type = type
  3220. local rng = Instance.new("Part", char)
  3221. rng.Anchored = true
  3222. if ModeOfGlitch ~= 9 then
  3223. rng.BrickColor = color
  3224. elseif ModeOfGlitch == 9 then
  3225. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3226. end
  3227. rng.CanCollide = false
  3228. rng.FormFactor = 3
  3229. rng.Name = "Ring"
  3230. rng.Material = "Neon"
  3231. rng.Size = Vector3.new(1, 1, 1)
  3232. rng.Transparency = 0
  3233. rng.TopSurface = 0
  3234. rng.BottomSurface = 0
  3235. rng.CFrame = pos
  3236. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3237. local rngm = Instance.new("SpecialMesh", rng)
  3238. rngm.MeshType = "Sphere"
  3239. rngm.Scale = vt(x1,y1,z1)
  3240. if rainbowmode == true then
  3241. rng.Color = Color3.new(r/255,g/255,b/255)
  3242. end
  3243. if ModeOfGlitch == 9 then
  3244. coroutine.resume(coroutine.create(function()
  3245. while true do
  3246. swait()
  3247. if rng.Parent ~= nil then
  3248. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3249. else
  3250. break
  3251. end
  3252. end
  3253. end))
  3254. end
  3255. local scaler2 = 1
  3256. local speeder = FastSpeed
  3257. if type == "Add" then
  3258. scaler2 = 1*value
  3259. elseif type == "Divide" then
  3260. scaler2 = 1/value
  3261. end
  3262. coroutine.resume(coroutine.create(function()
  3263. for i = 0,10/bonuspeed,0.1 do
  3264. swait()
  3265. if rainbowmode == true then
  3266. rng.Color = Color3.new(r/255,g/255,b/255)
  3267. end
  3268. if type == "Add" then
  3269. scaler2 = scaler2 - 0.01*value/bonuspeed
  3270. elseif type == "Divide" then
  3271. scaler2 = scaler2 - 0.01/value*bonuspeed
  3272. end
  3273. if chaosmode == true then
  3274. rng.BrickColor = BrickColor.random()
  3275. end
  3276. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3277. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3278. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3279. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3280. end
  3281. rng:Destroy()
  3282. end))
  3283. end
  3284.  
  3285.  
  3286. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3287. local type = type
  3288. local rng = Instance.new("Part", char)
  3289. rng.Anchored = true
  3290. if ModeOfGlitch ~= 9 then
  3291. rng.BrickColor = color
  3292. elseif ModeOfGlitch == 9 then
  3293. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3294. end
  3295. rng.CanCollide = false
  3296. rng.FormFactor = 3
  3297. rng.Name = "Ring"
  3298. rng.Material = "Neon"
  3299. rng.Size = Vector3.new(1, 1, 1)
  3300. rng.Transparency = 1
  3301. rng.TopSurface = 0
  3302. rng.BottomSurface = 0
  3303. rng.CFrame = pos
  3304. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3305. local rngm = Instance.new("SpecialMesh", rng)
  3306. rngm.MeshType = "Sphere"
  3307. rngm.Scale = vt(x1,y1,z1)
  3308. if rainbowmode == true then
  3309. rng.Color = Color3.new(r/255,g/255,b/255)
  3310. end
  3311. if ModeOfGlitch == 9 then
  3312. coroutine.resume(coroutine.create(function()
  3313. while true do
  3314. swait()
  3315. if rng.Parent ~= nil then
  3316. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3317. else
  3318. break
  3319. end
  3320. end
  3321. end))
  3322. end
  3323. local scaler2 = 1
  3324. local speeder = FastSpeed
  3325. if type == "Add" then
  3326. scaler2 = 1*value
  3327. elseif type == "Divide" then
  3328. scaler2 = 1/value
  3329. end
  3330. coroutine.resume(coroutine.create(function()
  3331. for i = 0,10/bonuspeed,0.1 do
  3332. swait()
  3333. if rainbowmode == true then
  3334. rng.Color = Color3.new(r/255,g/255,b/255)
  3335. end
  3336. if type == "Add" then
  3337. scaler2 = scaler2 - 0.01*value/bonuspeed
  3338. elseif type == "Divide" then
  3339. scaler2 = scaler2 - 0.01/value*bonuspeed
  3340. end
  3341. if chaosmode == true then
  3342. rng.BrickColor = BrickColor.random()
  3343. end
  3344. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3345. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3346. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3347. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3348. end
  3349. rng:Destroy()
  3350. end))
  3351. end
  3352.  
  3353. function dmg(dude)
  3354. if dude.Name ~= Character then
  3355. local keptcolor = MAINRUINCOLOR
  3356. local bgf = Instance.new("BodyGyro",dude.Head)
  3357. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3358. --[[local val = Instance.new("BoolValue",dude)
  3359. val.Name = "IsHit"]]--
  3360. local ds = coroutine.wrap(function()
  3361. dude:WaitForChild("Head"):BreakJoints()
  3362. for i, v in pairs(dude:GetChildren()) do
  3363. if v:IsA("Part") or v:IsA("MeshPart") then
  3364. v.Name = "DEMINISHED"
  3365. end
  3366. end
  3367. wait(0.5)
  3368. targetted = nil
  3369. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3370. coroutine.resume(coroutine.create(function()
  3371. for i, v in pairs(dude:GetChildren()) do
  3372. if v:IsA("Accessory") then
  3373. v:Destroy()
  3374. end
  3375. if v:IsA("Humanoid") then
  3376. v:Destroy()
  3377. end
  3378. if v:IsA("CharacterMesh") then
  3379. v:Destroy()
  3380. end
  3381. if v:IsA("Model") then
  3382. v:Destroy()
  3383. end
  3384. if v:IsA("Part") or v:IsA("MeshPart") then
  3385. for x, o in pairs(v:GetChildren()) do
  3386. if o:IsA("Decal") then
  3387. o:Destroy()
  3388. end
  3389. end
  3390. coroutine.resume(coroutine.create(function()
  3391. v.Material = "Neon"
  3392. v.CanCollide = false
  3393. v.Anchored = false
  3394. local bld = Instance.new("ParticleEmitter",v)
  3395. bld.LightEmission = 0.75
  3396. bld.Texture = "rbxassetid://363275192" ---284205403
  3397. bld.Color = ColorSequence.new(keptcolor.Color)
  3398. bld.Rate = 500
  3399. bld.Lifetime = NumberRange.new(1)
  3400. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3401. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3402. bld.Speed = NumberRange.new(2,5)
  3403. bld.VelocitySpread = 50000
  3404. bld.Rotation = NumberRange.new(-500,500)
  3405. bld.RotSpeed = NumberRange.new(-500,500)
  3406. local sbs = Instance.new("BodyPosition", v)
  3407. sbs.P = 3000
  3408. sbs.D = 1000
  3409. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3410. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3411. v.Color = keptcolor.Color
  3412. coroutine.resume(coroutine.create(function()
  3413. for i = 0, 49 do
  3414. swait(1)
  3415. v:BreakJoints()
  3416. v.Transparency = v.Transparency + 0.02
  3417. end
  3418. v:BreakJoints()
  3419. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3420. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3421. bld.Speed = NumberRange.new(10,25)
  3422. bld.Drag = 5
  3423. bld.Acceleration = vt(0,2,0)
  3424. wait(0.5)
  3425. bld.Enabled = false
  3426. wait(8)
  3427. v:Destroy()
  3428. dude:Destroy()
  3429. end))
  3430. end))
  3431. end
  3432. end
  3433. end))
  3434. end)
  3435. ds()
  3436. end
  3437. end
  3438.  
  3439.  
  3440. function FindNearestHead(Position, Distance, SinglePlayer)
  3441. if SinglePlayer then
  3442. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3443. end
  3444. local List = {}
  3445. for i, v in pairs(workspace:GetChildren()) do
  3446. if v:IsA("Model") then
  3447. if v:findFirstChild("Head") then
  3448. if v ~= Character then
  3449. if (v.Head.Position - Position).magnitude <= Distance then
  3450. table.insert(List, v)
  3451. end
  3452. end
  3453. end
  3454. end
  3455. end
  3456. return List
  3457. end
  3458.  
  3459. function FaceMouse()
  3460. Cam = workspace.CurrentCamera
  3461. return {
  3462. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3463. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3464. }
  3465. end
  3466.  
  3467. function FaceMouse2()
  3468. Cam = workspace.CurrentCamera
  3469. return {
  3470. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3471. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3472. }
  3473. end
  3474.  
  3475. local ModeOfGlitch = 1
  3476. -- Functions are ready.
  3477. local storehumanoidWS = 16
  3478.  
  3479. function CorruptBlink()
  3480. for i = 0, 14 do
  3481. 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)
  3482. end
  3483. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3484. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3485. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3486. CameraEnshaking(2,10)
  3487. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3488. if v:FindFirstChild('Head') then
  3489. dmg(v)
  3490. end
  3491. end
  3492. for i = 0, 14 do
  3493. 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)
  3494. end
  3495. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3496. end
  3497.  
  3498. function PureBomb()
  3499. attack = true
  3500. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  3501. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  3502. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  3503. local orb = Instance.new("Part", char)
  3504. orb.Anchored = true
  3505. orb.BrickColor = BrickColor.new("Toothpaste")
  3506. orb.CanCollide = false
  3507. orb.FormFactor = 3
  3508. orb.Name = "Ring"
  3509. orb.Material = "Neon"
  3510. orb.Size = Vector3.new(1, 1, 1)
  3511. orb.Transparency = 0
  3512. orb.TopSurface = 0
  3513. orb.BottomSurface = 0
  3514. local orbm = Instance.new("SpecialMesh", orb)
  3515. orbm.MeshType = "Sphere"
  3516. orbm.Name = "SizeMesh"
  3517. orbm.Scale = vt(0,0,0)
  3518. local scaled = 0.1
  3519. local posid = 0
  3520. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  3521. for i = 0, 5, 0.1 do
  3522. swait()
  3523. scaled = scaled - 0.001
  3524. posid = posid - scaled
  3525. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3526. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3527. 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)
  3528. 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)
  3529. 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)
  3530. 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)
  3531. 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)
  3532. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3533. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3534. 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)
  3535. end
  3536. for i = 0, 2, 0.1 do
  3537. swait()
  3538. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3539. 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)
  3540. 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)
  3541. 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)
  3542. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3543. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3544. 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)
  3545. end
  3546. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  3547. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  3548. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  3549. coroutine.resume(coroutine.create(function()
  3550. orb.Anchored = false
  3551. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  3552. local a = Instance.new("Part",workspace)
  3553. a.Name = "Direction"
  3554. a.Anchored = true
  3555. a.BrickColor = bc("Bright red")
  3556. a.Material = "Neon"
  3557. a.Transparency = 1
  3558. a.CanCollide = false
  3559. local ray = Ray.new(
  3560. orb.CFrame.p, -- origin
  3561. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3562. )
  3563. local ignore = orb
  3564. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3565. a.BottomSurface = 10
  3566. a.TopSurface = 10
  3567. local distance = (orb.CFrame.p - position).magnitude
  3568. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3569. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3570. orb.CFrame = a.CFrame
  3571. a:Destroy()
  3572. local bv = Instance.new("BodyVelocity")
  3573. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3574. bv.velocity = orb.CFrame.lookVector*125
  3575. bv.Parent = orb
  3576. local hitted = false
  3577. game:GetService("Debris"):AddItem(orb, 15)
  3578. wait()
  3579. local hit =orb.Touched:connect(function(hit)
  3580. if hitted == false then
  3581. hitted = true
  3582. CameraEnshaking(10,2.5)
  3583. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3584. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3585. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3586. for i = 0, 49 do
  3587. 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)
  3588. end
  3589. local eff = Instance.new("ParticleEmitter",orb)
  3590. eff.Texture = "rbxassetid://2273224484"
  3591. eff.LightEmission = 1
  3592. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  3593. eff.Rate = 500000
  3594. eff.Lifetime = NumberRange.new(0.5,2)
  3595. 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)})
  3596. 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)})
  3597. eff.Speed = NumberRange.new(20,250)
  3598. eff.Drag = 5
  3599. eff.Rotation = NumberRange.new(-500,500)
  3600. eff.VelocitySpread = 9000
  3601. eff.RotSpeed = NumberRange.new(-50,50)
  3602. coroutine.resume(coroutine.create(function()
  3603. wait(0.25)
  3604. eff.Enabled = false
  3605. end))
  3606. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  3607. for i = 0, 9 do
  3608. 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)
  3609. 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)
  3610. end
  3611. orb.Anchored = true
  3612. orb.Transparency = 1
  3613. local eff = Instance.new("ParticleEmitter",orb)
  3614. eff.Texture = "rbxassetid://2273224484"
  3615. eff.LightEmission = 1
  3616. eff.Color = ColorSequence.new(Color3.new(M))
  3617. eff.Rate = 500000
  3618. eff.Lifetime = NumberRange.new(0.5,2)
  3619. 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)})
  3620. 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)})
  3621. eff.Speed = NumberRange.new(20,250)
  3622. eff.Drag = 5
  3623. eff.Rotation = NumberRange.new(-500,500)
  3624. eff.VelocitySpread = 9000
  3625. eff.RotSpeed = NumberRange.new(-50,50)
  3626. coroutine.resume(coroutine.create(function()
  3627. wait(1)
  3628. eff.Enabled = false
  3629. end))
  3630. wait(8)
  3631. orb:Destroy()
  3632. end
  3633. end)
  3634. end))
  3635. for i = 0, 1, 0.1 do
  3636. swait()
  3637. 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)
  3638. 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)
  3639. 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)
  3640. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3641. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3642. 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)
  3643. end
  3644. attack = false
  3645. end
  3646.  
  3647. function BanishingOrb()
  3648. attack = true
  3649. hum.WalkSpeed = 0
  3650. local radm = math.random(1,3)
  3651. if radm == 1 then
  3652. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3653. elseif radm == 2 then
  3654. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3655. elseif radm == 3 then
  3656. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3657. end
  3658. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3659. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3660. local orb = Instance.new("Part", char)
  3661. orb.Anchored = true
  3662. orb.BrickColor = BrickColor.new("Lime green")
  3663. orb.CanCollide = false
  3664. orb.FormFactor = 3
  3665. orb.Name = "Ring"
  3666. orb.Material = "Neon"
  3667. orb.Size = Vector3.new(1, 1, 1)
  3668. orb.Transparency = 0
  3669. orb.TopSurface = 0
  3670. orb.BottomSurface = 0
  3671. local orbm = Instance.new("SpecialMesh", orb)
  3672. orbm.MeshType = "Sphere"
  3673. orbm.Name = "SizeMesh"
  3674. orbm.Scale = vt(0,0,0)
  3675. local scaled = 0.1
  3676. local posid = 0
  3677. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3678. for i = 0, 5, 0.1 do
  3679. swait()
  3680. scaled = scaled - 0.001
  3681. posid = posid - scaled
  3682. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3683. local scaled = 0.1
  3684. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3685. 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)
  3686. 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)
  3687. 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)
  3688. 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)
  3689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3691. 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)
  3692. end
  3693. for i = 0, 2, 0.1 do
  3694. swait()
  3695. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3696. 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)
  3697. 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)
  3698. 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)
  3699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3700. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3701. 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)
  3702. end
  3703. coroutine.resume(coroutine.create(function()
  3704. orb.Anchored = false
  3705. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3706. local a = Instance.new("Part",workspace)
  3707. a.Name = "Direction"
  3708. a.Anchored = true
  3709. a.BrickColor = bc("Lime green")
  3710. a.Material = "Neon"
  3711. a.Transparency = 1
  3712. a.CanCollide = false
  3713. local ray = Ray.new(
  3714. orb.CFrame.p, -- origin
  3715. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3716. )
  3717. local ignore = orb
  3718. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3719. a.BottomSurface = 10
  3720. a.TopSurface = 10
  3721. local distance = (orb.CFrame.p - position).magnitude
  3722. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3723. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3724. orb.CFrame = a.CFrame
  3725. a:Destroy()
  3726. local bv = Instance.new("BodyVelocity")
  3727. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3728. bv.velocity = orb.CFrame.lookVector*0
  3729. bv.Parent = orb
  3730. local hitted = false
  3731. local rate = 0
  3732. coroutine.resume(coroutine.create(function()
  3733. for i = 0, 24 do
  3734. wait(0.1)
  3735. rate = rate + 0.25
  3736. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3737. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3738. if v:FindFirstChild('Head') then
  3739. dmg(v)
  3740. end
  3741. end
  3742. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3743. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3744. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3745. end
  3746. orb.Anchored = true
  3747. orb.Transparency = 1
  3748. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3749. if v:FindFirstChild('Head') then
  3750. dmg(v)
  3751. end
  3752. end
  3753. local eff = Instance.new("ParticleEmitter",orb)
  3754. eff.Texture = "rbxassetid://296874871"
  3755. eff.LightEmission = 0.95
  3756. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3757. eff.Rate = 1000000000
  3758. eff.Lifetime = NumberRange.new(3)
  3759. 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)})
  3760. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3761. eff.Speed = NumberRange.new(30)
  3762. eff.Acceleration = vt(0,-15,0)
  3763. eff.Rotation = NumberRange.new(-500,500)
  3764. eff.VelocitySpread = 100000
  3765. eff.RotSpeed = NumberRange.new(-500,500)
  3766. coroutine.resume(coroutine.create(function()
  3767. wait(0.6)
  3768. eff.Enabled = false
  3769. end))
  3770. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3771. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3772. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3773. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3774. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3775. game:GetService("Debris"):AddItem(orb, 15)
  3776. end))
  3777. end))
  3778. for i = 0, 1, 0.1 do
  3779. swait()
  3780. 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)
  3781. 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)
  3782. 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)
  3783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3784. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3785. 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)
  3786. end
  3787. hum.WalkSpeed = storehumanoidWS
  3788. attack = false
  3789. end
  3790.  
  3791.  
  3792. function ChaosGroundStrike()
  3793. attack = true
  3794. for i = 0, 2, 0.1 do
  3795. swait()
  3796. 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)
  3797. 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)
  3798. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3799. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3800. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3801. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3802. end
  3803. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  3804. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  3805. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  3806. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3807. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3808. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2, 1)
  3809. CameraEnshaking(4,12)
  3810. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3811. if v:FindFirstChild('Head') then
  3812. dmg(v)
  3813. end
  3814. end
  3815. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3816. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3817. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3818. for i = 0, 2, 0.1 do
  3819. swait()
  3820. 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)
  3821. 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)
  3822. 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)
  3823. 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)
  3824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3825. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3826. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3827. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3828. end
  3829. attack = false
  3830. end
  3831.  
  3832. function Starfall()
  3833. attack = true
  3834. hum.WalkSpeed = 0
  3835. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3836. for i = 0, 5, 0.1 do
  3837. swait()
  3838. 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)
  3839. 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)
  3840. 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)
  3841. 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)
  3842. 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)
  3843. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3844. 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)
  3845. 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)
  3846. end
  3847. local Overed = false
  3848. CameraEnshaking(2,20)
  3849. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3850. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3851. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3852. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3853. local orb = Instance.new("Part", char)
  3854. orb.Anchored = true
  3855. orb.BrickColor = BrickColor.new("Toothpaste")
  3856. orb.CanCollide = false
  3857. orb.FormFactor = 3
  3858. orb.Name = "Remenant"
  3859. orb.Material = "Neon"
  3860. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3861. orb.Size = Vector3.new(1, 1, 1)
  3862. orb.Transparency = 1
  3863. orb.TopSurface = 0
  3864. orb.BottomSurface = 0
  3865. hum.WalkSpeed = storehumanoidWS
  3866. coroutine.resume(coroutine.create(function()
  3867. for i = 0, 9 do
  3868. swait(10)
  3869. local lb = Instance.new("Part")
  3870. lb.Color = MAINRUINCOLOR.Color
  3871. lb.CanCollide = false
  3872. lb.Material = "Neon"
  3873. lb.Anchored = true
  3874. lb.TopSurface = 0
  3875. lb.BottomSurface = 0
  3876. lb.Transparency = 0
  3877. lb.Size = vt(1,1,1)
  3878. 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)))
  3879. lb.Anchored = false
  3880. lb.Parent = char
  3881. local thingery = Instance.new("SpecialMesh",lb)
  3882. thingery.MeshType = "Sphere"
  3883. thingery.Scale = vt(20,20,20)
  3884. game:GetService("Debris"):AddItem(lb, 10)
  3885. local bv = Instance.new("BodyVelocity")
  3886. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3887. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3888. bv.Parent = lb
  3889. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3890. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3891. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3892. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3893. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3894. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3895. local hitted = false
  3896. coroutine.resume(coroutine.create(function()
  3897. while true do
  3898. swait(1)
  3899. if lb.Parent ~= nil and hitted == false then
  3900. 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)
  3901. elseif lb.Parent == nil then
  3902. break
  3903. end
  3904. end
  3905. end))
  3906.  
  3907. game:GetService("Debris"):AddItem(a, 0.1)
  3908.  
  3909. coroutine.resume(coroutine.create(function()
  3910. swait(1)
  3911. lb.Touched:connect(function(hit)
  3912. if hitted == false then
  3913. hitted = true
  3914. lb.Transparency = 1
  3915. lb.Anchored = true
  3916. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3917. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3918. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3919. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3920. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3921. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3922. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3923. CameraEnshaking(1,5)
  3924. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3925. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3926. for i = 0, 9 do
  3927. 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)
  3928. end
  3929. for i = 0, 49 do
  3930. swait()
  3931. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3932. 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)
  3933. end
  3934. end
  3935. end)
  3936. end))
  3937. end
  3938. Overed = true
  3939. orb:Destroy()
  3940. end))
  3941.  
  3942. attack = false
  3943. end
  3944.  
  3945. function StarfallEX()
  3946. attack = true
  3947. hum.WalkSpeed = 0
  3948. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3949. for i = 0, 10, 0.1 do
  3950. swait()
  3951. 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)
  3952. 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)
  3953. 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)
  3954. 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)
  3955. 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)
  3956. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3957. 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)
  3958. 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)
  3959. end
  3960. local Overed = false
  3961. CameraEnshaking(2,20)
  3962. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3963. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3964. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3965. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3966. local orb = Instance.new("Part", char)
  3967. orb.Anchored = true
  3968. orb.BrickColor = BrickColor.new("Toothpaste")
  3969. orb.CanCollide = false
  3970. orb.FormFactor = 3
  3971. orb.Name = "Remenant"
  3972. orb.Material = "Neon"
  3973. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3974. orb.Size = Vector3.new(1, 1, 1)
  3975. orb.Transparency = 1
  3976. orb.TopSurface = 0
  3977. orb.BottomSurface = 0
  3978. hum.WalkSpeed = storehumanoidWS
  3979. coroutine.resume(coroutine.create(function()
  3980. for i = 0, 4 do
  3981. swait(15)
  3982. local lb = Instance.new("Part")
  3983. lb.Color = MAINRUINCOLOR.Color
  3984. lb.CanCollide = false
  3985. lb.Material = "Neon"
  3986. lb.Anchored = true
  3987. lb.TopSurface = 0
  3988. lb.BottomSurface = 0
  3989. lb.Transparency = 0
  3990. lb.Size = vt(1,1,1)
  3991. 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)))
  3992. lb.Anchored = false
  3993. lb.Parent = char
  3994. local thingery = Instance.new("SpecialMesh",lb)
  3995. thingery.MeshType = "Sphere"
  3996. thingery.Scale = vt(50,50,50)
  3997. game:GetService("Debris"):AddItem(lb, 10)
  3998. local bv = Instance.new("BodyVelocity")
  3999. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4000. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  4001. bv.Parent = lb
  4002. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4003. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4004. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  4005. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  4006. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  4007. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  4008. local hitted = false
  4009. coroutine.resume(coroutine.create(function()
  4010. while true do
  4011. swait(1)
  4012. if lb.Parent ~= nil and hitted == false then
  4013. 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)
  4014. elseif lb.Parent == nil then
  4015. break
  4016. end
  4017. end
  4018. end))
  4019.  
  4020. game:GetService("Debris"):AddItem(a, 0.1)
  4021.  
  4022. coroutine.resume(coroutine.create(function()
  4023. swait(1)
  4024. lb.Touched:connect(function(hit)
  4025. if hitted == false then
  4026. hitted = true
  4027. lb.Transparency = 1
  4028. lb.Anchored = true
  4029. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  4030. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  4031. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  4032. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  4033. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  4034. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  4035. MagniDamage(lb, 50, 60,99, 0, "Normal")
  4036. CameraEnshaking(1,5)
  4037. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  4038. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  4039. for i = 0, 9 do
  4040. 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)
  4041. end
  4042. for i = 0, 99 do
  4043. swait()
  4044. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4045. 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)
  4046. end
  4047. end
  4048. end)
  4049. end))
  4050. end
  4051. Overed = true
  4052. orb:Destroy()
  4053. end))
  4054.  
  4055. attack = false
  4056. end
  4057.  
  4058. function DivineBlast()
  4059. attack = true
  4060. bosschatfunc("I WILL END YOU!",MAINRUINCOLOR.Color,0.7)
  4061. hum.WalkSpeed = 0
  4062. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4063. elocacenter.Anchored = true
  4064. elocacenter.CFrame = sorb.CFrame
  4065. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4066. eloca1.Anchored = true
  4067. eloca1.CFrame = elocacenter.CFrame
  4068. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4069. eloca2.Anchored = true
  4070. eloca2.CFrame = elocacenter.CFrame
  4071. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4072. eloca3.Anchored = true
  4073. eloca3.CFrame = elocacenter.CFrame
  4074. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4075. eloca4.Anchored = true
  4076. eloca4.CFrame = elocacenter.CFrame
  4077. local lookavec = 0
  4078. local speeds = 0
  4079. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4080. for i = 0, 3, 0.1 do
  4081. swait()
  4082. ---
  4083. lookavec = lookavec + 0.1
  4084. speeds = speeds + 10
  4085. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4086. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4087. 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)
  4088.  
  4089. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4090. 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)
  4091.  
  4092. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4093. 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)
  4094.  
  4095. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4096. 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)
  4097. ---
  4098. root.CFrame = FaceMouse()[1]
  4099. 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)
  4100. 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)
  4101. 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)
  4102. 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)
  4103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4104. 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)
  4105. end
  4106. for i = 0, 3, 0.1 do
  4107. swait()
  4108. ---
  4109. speeds = speeds + 10
  4110. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4111. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4112. 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)
  4113.  
  4114. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4115. 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)
  4116.  
  4117. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4118. 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)
  4119.  
  4120. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4121. 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)
  4122. ---
  4123. root.CFrame = FaceMouse()[1]
  4124. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4125. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4126. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4127. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4128. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4129. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4130. end
  4131. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4132. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4133. for i = 0, 3, 0.1 do
  4134. swait()
  4135. ---
  4136. speeds = speeds + 10
  4137. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4138. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4139. 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)
  4140.  
  4141. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4142. 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)
  4143.  
  4144. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4145. 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)
  4146.  
  4147. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4148. 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)
  4149. ---
  4150. root.CFrame = FaceMouse()[1]
  4151. 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)
  4152. 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)
  4153. 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)
  4154. 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)
  4155. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4156. 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)
  4157. end
  4158. coroutine.resume(coroutine.create(function()
  4159. local a = Instance.new("Part",Character)
  4160. a.Name = "Direction"
  4161. a.Anchored = true
  4162. a.BrickColor = bc("White")
  4163. a.Material = "Neon"
  4164. a.Transparency = 0
  4165. a.Shape = "Cylinder"
  4166. a.CanCollide = false
  4167. local a2 = Instance.new("Part",Character)
  4168. a2.Name = "Direction"
  4169. a2.Anchored = true
  4170. a2.BrickColor = bc("Bright yellow")
  4171. a2.Material = "Neon"
  4172. a2.Transparency = 0
  4173. a2.Shape = "Cylinder"
  4174. a2.CanCollide = false
  4175. local b = Instance.new("Part",Character)
  4176. b.Name = "HitDirect"
  4177. b.Anchored = true
  4178. b.BrickColor = bc("Cool yellow")
  4179. b.Material = "Neon"
  4180. b.Transparency = 1
  4181. b.CanCollide = false
  4182. local ray = Ray.new(
  4183. elocacenter.CFrame.p, -- origin
  4184. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4185. )
  4186. local ignore = Character
  4187. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4188. a.BottomSurface = 10
  4189. a.TopSurface = 10
  4190. a2.BottomSurface = 10
  4191. a2.TopSurface = 10
  4192. local distance = (elocacenter.CFrame.p - position).magnitude
  4193. a.Size = Vector3.new(distance, 1, 1)
  4194. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4195. a2.Size = Vector3.new(distance, 1, 1)
  4196. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4197. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4198. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4199. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4200. game:GetService("Debris"):AddItem(a, 10)
  4201. game:GetService("Debris"):AddItem(a2, 10)
  4202. game:GetService("Debris"):AddItem(b, 10)
  4203. local eff = Instance.new("ParticleEmitter",b)
  4204. eff.Texture = "rbxassetid://2273224484"
  4205. eff.LightEmission = 1
  4206. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4207. eff.Rate = 500000
  4208. eff.Lifetime = NumberRange.new(0.5,2)
  4209. 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)})
  4210. 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)})
  4211. eff.Speed = NumberRange.new(20,250)
  4212. eff.Drag = 5
  4213. eff.Rotation = NumberRange.new(-500,500)
  4214. eff.VelocitySpread = 9000
  4215. eff.RotSpeed = NumberRange.new(-50,50)
  4216. coroutine.resume(coroutine.create(function()
  4217. wait(0.25)
  4218. eff.Enabled = false
  4219. end))
  4220. local msh = Instance.new("SpecialMesh",a)
  4221. msh.MeshType = "Cylinder"
  4222. msh.Scale = vt(1,2,2)
  4223. local msh2 = Instance.new("SpecialMesh",a2)
  4224. msh2.MeshType = "Cylinder"
  4225. msh2.Scale = vt(1,2.5,2.5)
  4226. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4227. coroutine.resume(coroutine.create(function()
  4228. for i = 0,10,0.1 do
  4229. swait()
  4230. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4231. a.Transparency = a.Transparency + 0.025
  4232. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4233. a2.Transparency = a2.Transparency + 0.05
  4234. end
  4235. a:Destroy()
  4236. a2:Destroy()
  4237. end))
  4238. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4239. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4240. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4241. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4242. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4243. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4244. MagniDamage(b, 25, 40,65, 0, "Normal")
  4245. for i = 0, 49 do
  4246. 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)
  4247. 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)
  4248. end
  4249. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4250. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4251. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4252. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4253. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4254. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4255. end))
  4256. game:GetService("Debris"):AddItem(elocacenter, 5)
  4257. hum.WalkSpeed = storehumanoidWS
  4258. attack = false
  4259. end
  4260.  
  4261.  
  4262. function StarDivision()
  4263. attack = true
  4264. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4265. for i = 0, 2, 0.1 do
  4266. swait()
  4267. 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)
  4268. 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)
  4269. 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)
  4270. 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)
  4271. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4272. 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)
  4273. end
  4274. local orb = Instance.new("Part", char)
  4275. orb.BrickColor = MAINRUINCOLOR
  4276. orb.CanCollide = false
  4277. orb.FormFactor = 3
  4278. orb.Name = "Ring"
  4279. orb.Material = "Neon"
  4280. orb.Size = Vector3.new(1, 1, 1)
  4281. orb.Transparency = 0
  4282. orb.TopSurface = 0
  4283. orb.BottomSurface = 0
  4284. local orbm = Instance.new("SpecialMesh", orb)
  4285. orbm.MeshType = "Sphere"
  4286. orbm.Name = "SizeMesh"
  4287. orbm.Scale = vt(2,2,2)
  4288. local a = Instance.new("Part",workspace)
  4289. a.Name = "Direction"
  4290. a.Anchored = true
  4291. a.BrickColor = bc("Bright red")
  4292. a.Material = "Neon"
  4293. a.Transparency = 1
  4294. a.CanCollide = false
  4295. local ray = Ray.new(
  4296. sorb.CFrame.p, -- origin
  4297. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4298. )
  4299. local ignore = sorb
  4300. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4301. a.BottomSurface = 10
  4302. a.TopSurface = 10
  4303. local distance = (sorb.CFrame.p - position).magnitude
  4304. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4305. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4306. orb.CFrame = a.CFrame
  4307. a:Destroy()
  4308. local bv = Instance.new("BodyVelocity")
  4309. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4310. bv.velocity = orb.CFrame.lookVector*100
  4311. bv.Parent = orb
  4312. local hitted = false
  4313. game:GetService("Debris"):AddItem(orb, 10)
  4314. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4315. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4316. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4317. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4318. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4319. coroutine.resume(coroutine.create(function()
  4320. while true do
  4321. swait(1)
  4322. if orb.Parent ~= nil and hitted == false then
  4323. 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)
  4324. elseif orb.Parent == nil then
  4325. break
  4326. end
  4327. end
  4328. end))
  4329. coroutine.resume(coroutine.create(function()
  4330. swait(1)
  4331. orb.Touched:connect(function(hit)
  4332. if hitted == false then
  4333. hitted = true
  4334. game:GetService("Debris"):AddItem(orb, 5)
  4335. orb.Transparency = 1
  4336. orb.Anchored = true
  4337. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4338. elocacenter.Anchored = true
  4339. elocacenter.CFrame = orb.CFrame
  4340. elocacenter.Orientation = vt(0,0,0)
  4341. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4342. eloca1.Anchored = true
  4343. eloca1.CFrame = elocacenter.CFrame
  4344. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4345. eloca2.Anchored = true
  4346. eloca2.CFrame = elocacenter.CFrame
  4347. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4348. eloca3.Anchored = true
  4349. eloca3.CFrame = elocacenter.CFrame
  4350. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4351. eloca4.Anchored = true
  4352. eloca4.CFrame = elocacenter.CFrame
  4353. local lookavec = 0
  4354. local speeds = 0
  4355. CameraEnshaking(1,1)
  4356. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4357. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4358. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4359. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4360. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4361. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4362. for i = 0, 99 do
  4363. swait()
  4364. lookavec = lookavec + 1
  4365. speeds = speeds + 0.1
  4366. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4367. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4368. 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)
  4369.  
  4370. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4371. 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)
  4372.  
  4373. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4374. 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)
  4375.  
  4376. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4377. 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)
  4378. end
  4379.  
  4380. for i = 0, 149 do
  4381. swait()
  4382. speeds = speeds + 0.1
  4383. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4384. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4385. 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)
  4386.  
  4387. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4388. 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)
  4389.  
  4390. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4391. 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)
  4392.  
  4393. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4394. 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)
  4395. end
  4396. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4397. if v:FindFirstChild('Head') then
  4398. dmg(v)
  4399. end
  4400. end
  4401. CameraEnshaking(7,30)
  4402. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4403. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4404. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4405. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4406. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4407. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4408. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4409. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4410. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4411. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4412. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4413. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4414. for i = 0, 24 do
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. end
  4420. coroutine.resume(coroutine.create(function()
  4421. for i = 0, 499 do
  4422. swait(1)
  4423. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4424. 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)
  4425. end
  4426. elocacenter:Destroy()
  4427. eloca1:Destroy()
  4428. eloca2:Destroy()
  4429. eloca3:Destroy()
  4430. eloca4:Destroy()
  4431. end))
  4432. end
  4433. end)
  4434. end))
  4435. attack = false
  4436. end
  4437.  
  4438.  
  4439. function THE_TRUE_POWER_OF_VIOLENCE()
  4440. attack = true
  4441. hum.WalkSpeed = 0
  4442. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4443. for i = 0, 10, 0.1 do
  4444. swait()
  4445. 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)
  4446. 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)
  4447. 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)
  4448. 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)
  4449. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4450. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4451. 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)
  4452. end
  4453. local orb = Instance.new("Part", char)
  4454. orb.BrickColor = MAINRUINCOLOR
  4455. orb.CanCollide = false
  4456. orb.FormFactor = 3
  4457. orb.Name = "Ring"
  4458. orb.Material = "Neon"
  4459. orb.Size = Vector3.new(1, 1, 1)
  4460. orb.Transparency = 0
  4461. orb.TopSurface = 0
  4462. orb.BottomSurface = 0
  4463. orb.CFrame = sorb.CFrame
  4464. local orbm = Instance.new("SpecialMesh", orb)
  4465. orbm.MeshType = "Sphere"
  4466. orbm.Name = "SizeMesh"
  4467. orbm.Scale = vt(0,0,0)
  4468. local sbs = Instance.new("BodyPosition", orb)
  4469. sbs.P = 3000
  4470. sbs.D = 1000
  4471. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4472. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4473. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4474. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4475. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4476. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4477. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4478. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4479. for i = 0, 10, 0.1 do
  4480. swait()
  4481. 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)
  4482. 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)
  4483. 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)
  4484. 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)
  4485. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4486. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4487. 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)
  4488. end
  4489. orb.Anchored = true
  4490. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4491. elocacenter.Anchored = true
  4492. elocacenter.CFrame = orb.CFrame
  4493. elocacenter.Orientation = vt(0,0,0)
  4494. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4495. eloca1.Anchored = true
  4496. eloca1.CFrame = elocacenter.CFrame
  4497. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4498. eloca2.Anchored = true
  4499. eloca2.CFrame = elocacenter.CFrame
  4500. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4501. eloca3.Anchored = true
  4502. eloca3.CFrame = elocacenter.CFrame
  4503. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4504. eloca4.Anchored = true
  4505. eloca4.CFrame = elocacenter.CFrame
  4506. local lookavec = 0
  4507. local speeds = 0
  4508. CameraEnshaking(1,1)
  4509. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4510. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4511. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4512. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4513. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4514. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4515. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4516. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4517. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4518. for i = 0, 99 do
  4519. swait()
  4520. lookavec = lookavec + 2.5
  4521. speeds = speeds + 0.25
  4522. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4523. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4524. 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)
  4525.  
  4526. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4527. 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)
  4528.  
  4529. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4530. 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)
  4531.  
  4532. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4533. 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)
  4534. end
  4535.  
  4536. for i = 0, 149 do
  4537. swait()
  4538. speeds = speeds + 0.25
  4539. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4540. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4541. 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)
  4542.  
  4543. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4544. 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)
  4545.  
  4546. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4547. 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)
  4548.  
  4549. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4550. 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)
  4551. end
  4552. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4553. for i = 0, 99 do
  4554. swait()
  4555. lookavec = lookavec - 2.5
  4556. speeds = speeds + 0.25
  4557. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4558. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4559. 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)
  4560.  
  4561. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4562. 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)
  4563.  
  4564. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4565. 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)
  4566.  
  4567. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4568. 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)
  4569. end
  4570. local scaled = 0.1*75
  4571. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4572. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4573. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4574. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4575. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4576. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4577. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4578. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4579. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4580. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4581. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4582.  
  4583. for i = 0, 10, 0.1 do
  4584. swait()
  4585. scaled = scaled - 0.001*75
  4586. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4587. 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)
  4588. 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)
  4589. 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)
  4590. 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)
  4591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4592. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4593. 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)
  4594. end
  4595. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4596. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4597. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4598. for x = 0, 4 do
  4599. for i = 0, 9 do
  4600. 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)
  4601. end
  4602. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4603. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4604. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4605. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4606. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4607. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4608. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4609. for i = 0, 5, 0.1 do
  4610. swait()
  4611. 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)
  4612. 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)
  4613. 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)
  4614. 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)
  4615. 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)
  4616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4617. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4618. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4619. end
  4620. end
  4621. local speedearn = 0
  4622. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4623. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4624. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4625. for i = 0, 30, 0.1 do
  4626. swait()
  4627. scaled = scaled - 0.001*75/10
  4628. speedearn = speedearn + 0.5
  4629. for i = 0, 4 do
  4630. 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)
  4631. end
  4632. 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)
  4633. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4634. 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)
  4635. 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)
  4636. 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)
  4637. 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)
  4638. 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)
  4639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4640. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4642. end
  4643. orb.Transparency = 1
  4644. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4645. if v:FindFirstChild('Head') then
  4646. dmg(v)
  4647. end
  4648. end
  4649. CameraEnshaking(7,30)
  4650. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4651. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4652. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4653. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4654. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4655. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4656. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4657. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4658. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4659. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4660. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4661. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4662. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4663. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4664. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4665. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4666. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4667. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4668. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4669. for i = 0, 99 do
  4670. 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)
  4671. 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)
  4672. end
  4673. for i = 0, 24 do
  4674. 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)
  4675. 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)
  4676. 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)
  4677. 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)
  4678. 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)
  4679. end
  4680. game:GetService("Debris"):AddItem(orb, 10)
  4681. hum.WalkSpeed = storehumanoidWS
  4682. attack = false
  4683. end
  4684.  
  4685.  
  4686. function ViolentRing()
  4687. attack = true
  4688. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4689. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4690. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4691. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4692. for i = 0, 2, 0.1 do
  4693. swait()
  4694. local snap = math.random(1,10)
  4695. if snap == 1 then
  4696. 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)
  4697. end
  4698. 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)
  4699. 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)
  4700. 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)
  4701. 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)
  4702. 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)
  4703. 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)
  4704. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4705. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4706. 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)
  4707. RootPart.CFrame = FaceMouse()[1]
  4708. end
  4709. local orb = Instance.new("Part", char)
  4710. orb.BrickColor = MAINRUINCOLOR
  4711. orb.CanCollide = false
  4712. orb.FormFactor = 3
  4713. orb.Name = "Ring"
  4714. orb.Material = "Neon"
  4715. orb.Size = Vector3.new(1, 1, 1)
  4716. orb.Transparency = 0
  4717. orb.TopSurface = 0
  4718. orb.BottomSurface = 0
  4719. local orbm = Instance.new("SpecialMesh", orb)
  4720. orbm.MeshType = "Sphere"
  4721. orbm.Name = "SizeMesh"
  4722. orbm.Scale = vt(2,2,2)
  4723. orb.CFrame = mouse.Hit
  4724. local bv = Instance.new("BodyVelocity")
  4725. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4726. bv.velocity = orb.CFrame.lookVector*100
  4727. bv.Parent = orb
  4728. local hitted = false
  4729. coroutine.resume(coroutine.create(function()
  4730. game:GetService("Debris"):AddItem(orb, 5)
  4731. orb.Transparency = 1
  4732. orb.Anchored = true
  4733. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4734. elocacenter.Anchored = true
  4735. elocacenter.CFrame = orb.CFrame
  4736. elocacenter.Orientation = vt(0,0,0)
  4737. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4738. eloca1.Anchored = true
  4739. eloca1.CFrame = elocacenter.CFrame
  4740. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4741. eloca2.Anchored = true
  4742. eloca2.CFrame = elocacenter.CFrame
  4743. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4744. eloca3.Anchored = true
  4745. eloca3.CFrame = elocacenter.CFrame
  4746. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4747. eloca4.Anchored = true
  4748. eloca4.CFrame = elocacenter.CFrame
  4749. local lookavec = 0
  4750. local speeds = 0
  4751. CameraEnshaking(1,1)
  4752. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4753. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4754. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4755. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4756. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4757. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4758. for i = 0, 24 do
  4759. swait()
  4760. lookavec = lookavec + 3.5
  4761. speeds = speeds + 1
  4762. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4763. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4764. 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)
  4765.  
  4766. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4767. 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)
  4768.  
  4769. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4770. 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)
  4771.  
  4772. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4773. 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)
  4774. end
  4775.  
  4776. local risen = 0
  4777. for i = 0, 49 do
  4778. swait()
  4779. risen = risen + 0.05
  4780. speeds = speeds + 0.1
  4781. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4782. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4783. 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)
  4784.  
  4785. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4786. 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)
  4787.  
  4788. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4789. 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)
  4790.  
  4791. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4792. 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)
  4793. end
  4794. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4795. if v:FindFirstChild('Head') then
  4796. dmg(v)
  4797. end
  4798. end
  4799. CameraEnshaking(4,10)
  4800. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4801. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4802. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4803. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4804. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4805. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4806. local eff = Instance.new("ParticleEmitter",elocacenter)
  4807. eff.Texture = "rbxassetid://2273224484"
  4808. eff.LightEmission = 1
  4809. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4810. eff.Rate = 1000000
  4811. eff.Lifetime = NumberRange.new(0.5,2)
  4812. 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)})
  4813. 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)})
  4814. eff.Speed = NumberRange.new(20,250)
  4815. eff.Drag = 5
  4816. eff.Rotation = NumberRange.new(-500,500)
  4817. eff.VelocitySpread = 5000000
  4818. eff.RotSpeed = NumberRange.new(-50,50)
  4819. coroutine.resume(coroutine.create(function()
  4820. wait(1)
  4821. eff.Enabled = false
  4822. end))
  4823. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4824. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4825. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4826. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4827. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4828. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4829. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4830. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4831. for i = 0, 24 do
  4832. 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)
  4833. 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)
  4834. 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)
  4835. 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)
  4836. end
  4837. coroutine.resume(coroutine.create(function()
  4838. wait(10)
  4839. elocacenter:Destroy()
  4840. eloca1:Destroy()
  4841. eloca2:Destroy()
  4842. eloca3:Destroy()
  4843. eloca4:Destroy()
  4844. end))
  4845. end))
  4846. attack = false
  4847. end
  4848.  
  4849. function UniversalCollapse()
  4850. attack = true
  4851. local speedearn = 0
  4852. hum.WalkSpeed = 0
  4853. local sbs = Instance.new("BodyPosition", root)
  4854. sbs.P = 3000
  4855. sbs.D = 1000
  4856. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4857. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4858. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4859. for i = 0, 85, 0.1 do
  4860. swait()
  4861. speedearn = speedearn + 0.1
  4862. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4863. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4864. 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)
  4865. 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)
  4866. 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)
  4867. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4868. 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)
  4869. 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)
  4870. 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)
  4871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4872. 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)
  4873. 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)
  4874. end
  4875. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4876. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4877. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4878. for i = 0, 25, 0.1 do
  4879. swait()
  4880. speedearn = speedearn + 0.1
  4881. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4882. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4883. 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)
  4884. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4885. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4886. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4887. 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)
  4888. 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)
  4889. 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)
  4890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4891. 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)
  4892. 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)
  4893. end
  4894. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4895. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4896. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4897. CameraEnshaking(5,50)
  4898. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4899. for i = 0, 2 do
  4900. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4901. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4902. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4903. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4904. end
  4905. for i = 0, 49 do
  4906. 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)
  4907. 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)
  4908. 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)
  4909. 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)
  4910. end
  4911. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4912. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4913. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4914. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4915. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4916. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4917. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4918. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4919. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4920. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4921. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4922. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4923. for i = 0, 99 do
  4924. 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)
  4925. 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)
  4926. end
  4927. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4928. if v:FindFirstChild('Head') then
  4929. dmg(v)
  4930. end
  4931. end
  4932. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4933. sbs:Destroy()
  4934. hum.WalkSpeed = storehumanoidWS
  4935. attack = false
  4936. end
  4937.  
  4938. function ChaosEND()
  4939. attack = true
  4940. local speedearn = 0
  4941. bosschatfunc("THIS IS...",MAINRUINCOLOR.Color,1)
  4942. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4943. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4944. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4945. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 5, 1)
  4946. for i = 0, 15, 0.1 do
  4947. swait()
  4948. speedearn = speedearn + 0.25
  4949. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4950. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4951. 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)
  4952. 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)
  4953. 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)
  4954. 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)
  4955. 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)
  4956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4959. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4960. end
  4961. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4962. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4963. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,1)
  4964. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4965. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4966. CameraEnshaking(5,25)
  4967. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4968. if v:FindFirstChild('Head') then
  4969. dmg(v)
  4970. end
  4971. end
  4972. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4973. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4974. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4975. for i = 0, 3, 0.1 do
  4976. swait()
  4977. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4978. 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)
  4979. 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)
  4980. 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)
  4981. 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)
  4982. 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)
  4983. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4987. end
  4988. attack = false
  4989. end
  4990.  
  4991. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4992. local orb = Instance.new("Part", char)
  4993. orb.Anchored = true
  4994. orb.BrickColor = color
  4995. orb.CanCollide = false
  4996. orb.FormFactor = 3
  4997. orb.Name = "Ring"
  4998. orb.Material = "Neon"
  4999. orb.Size = Vector3.new(1, 1, 1)
  5000. orb.Transparency = 0
  5001. orb.TopSurface = 0
  5002. orb.BottomSurface = 0
  5003. local orbm = Instance.new("SpecialMesh", orb)
  5004. orbm.MeshType = "Sphere"
  5005. orb.CFrame = positted
  5006. orbm.Name = "SizeMesh"
  5007. orbm.Scale = vt(1,1,1)
  5008. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5009. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5010. --[[for i = 0, 2 do
  5011. 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)
  5012. end]]--
  5013. coroutine.resume(coroutine.create(function()
  5014. wait(timer)
  5015. CameraEnshaking(3,ShakePower)
  5016. orb.Transparency = 1
  5017. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5018. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5019. --[[for i = 0, 4 do
  5020. 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)
  5021. end]]--
  5022. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5023. wait(3)
  5024. orb:Destroy()
  5025. end))
  5026. end
  5027.  
  5028. function orb_spawn(positted,timer)
  5029. local randomcol = math.random(1,2)
  5030. local orb = Instance.new("Part", char)
  5031. orb.Anchored = true
  5032. if randomcol == 1 then
  5033. orb.BrickColor = BrickColor.new("White")
  5034. elseif randomcol == 2 then
  5035. orb.BrickColor = BrickColor.new("Really black")
  5036. end
  5037. orb.CanCollide = false
  5038. orb.FormFactor = 3
  5039. orb.Name = "Ring"
  5040. orb.Material = "Neon"
  5041. orb.Size = Vector3.new(1, 1, 1)
  5042. orb.Transparency = 0
  5043. orb.TopSurface = 0
  5044. orb.BottomSurface = 0
  5045. local orbm = Instance.new("SpecialMesh", orb)
  5046. orbm.MeshType = "Sphere"
  5047. orb.CFrame = positted
  5048. orbm.Name = "SizeMesh"
  5049. orbm.Scale = vt(1,1,1)
  5050. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5051. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5052. for i = 0, 2 do
  5053. 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)
  5054. end
  5055. coroutine.resume(coroutine.create(function()
  5056. wait(timer)
  5057. CameraEnshaking(3,2)
  5058. orb.Transparency = 1
  5059. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5060. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5061. for i = 0, 4 do
  5062. 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)
  5063. end
  5064. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5065. wait(3)
  5066. orb:Destroy()
  5067. end))
  5068. end
  5069.  
  5070. function scattercorrupt()
  5071. attack = true
  5072. hum.WalkSpeed = 0
  5073. for i = 0, 2, 0.1 do
  5074. swait()
  5075. 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)
  5076. 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)
  5077. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5079. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5080. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5081. end
  5082. local rot = 0
  5083. local randomrotations = math.random(1,2)
  5084. local lookv = 2.5
  5085. local power = 7
  5086. local radm = math.random(1,3)
  5087. if radm == 1 then
  5088. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5089. elseif radm == 2 then
  5090. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5091. elseif radm == 3 then
  5092. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5093. end
  5094. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5095. for i = 0, 1, 0.1 do
  5096. swait()
  5097. 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)
  5098. 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)
  5099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5101. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5102. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5103. end
  5104. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5105. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5106. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5107. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5108. for i = 0, 9 do
  5109. 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)
  5110. end
  5111. local hite = Instance.new("Part", char)
  5112. hite.Anchored = true
  5113. hite.CanCollide = false
  5114. hite.FormFactor = 3
  5115. hite.Name = "Ring"
  5116. hite.Material = "Neon"
  5117. hite.Size = Vector3.new(1, 1, 1)
  5118. hite.Transparency = 1
  5119. hite.TopSurface = 0
  5120. hite.BottomSurface = 0
  5121. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5122. local rem = Instance.new("Part", char)
  5123. rem.Anchored = true
  5124. rem.CanCollide = false
  5125. rem.FormFactor = 3
  5126. rem.Name = "Ring"
  5127. rem.Material = "Neon"
  5128. rem.Size = Vector3.new(1, 1, 1)
  5129. rem.Transparency = 1
  5130. rem.TopSurface = 0
  5131. rem.BottomSurface = 0
  5132. rem.CFrame = hite.CFrame
  5133. local rem2 = rem:Clone()
  5134. rem2.Parent = char
  5135. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5136. local rem3 = rem:Clone()
  5137. rem3.Parent = char
  5138. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5139. local rem4 = rem:Clone()
  5140. rem4.Parent = char
  5141. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5142. hite:Destroy()
  5143. coroutine.resume(coroutine.create(function()
  5144. for i = 0, 24 do
  5145. swait(1)
  5146. if randomrotations == 1 then
  5147. rot = rot + 1
  5148. elseif randomrotations == 2 then
  5149. rot = rot - 1
  5150. end
  5151. power = power + 0.5
  5152. lookv = lookv + 7.5
  5153. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5154. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5155. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5156. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5157. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5158. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5159. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5160. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5161. end
  5162. end))
  5163. wait(2)
  5164. hum.WalkSpeed = storehumanoidWS
  5165. attack = false
  5166. end
  5167.  
  5168. function yinyangi()
  5169. attack = true
  5170. for i = 0, 2, 0.1 do
  5171. swait()
  5172. bosschatfunc("YAAAAAHHHHHHH!",MAINRUINCOLOR.Color,1)
  5173. CFuncs["Sound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  5174. 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)
  5175. 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)
  5176. 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)
  5177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5178. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5179. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5180. end
  5181. local bv = Instance.new("BodyVelocity")
  5182. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5183. bv.velocity = root.CFrame.lookVector*175
  5184. bv.Parent = root
  5185. for Rotations = 0, 9 do
  5186. for i = 0, 1, 0.5 do
  5187. swait()
  5188. bv.velocity = root.CFrame.lookVector*175
  5189. 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)
  5190. 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)
  5191. 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)
  5192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5193. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5195. end
  5196. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5197. for i = 0, 1, 0.5 do
  5198. swait()
  5199. bv.velocity = root.CFrame.lookVector*175
  5200. 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)
  5201. 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)
  5202. 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)
  5203. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5204. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5205. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5206. end
  5207. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5208. for i = 0, 1, 0.5 do
  5209. swait()
  5210. bv.velocity = root.CFrame.lookVector*175
  5211. 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)
  5212. 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)
  5213. 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)
  5214. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5215. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5216. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5217. end
  5218. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5219. for i = 0, 1, 0.5 do
  5220. swait()
  5221. bv.velocity = root.CFrame.lookVector*175
  5222. 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)
  5223. 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)
  5224. 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)
  5225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5227. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5228. end
  5229. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5230. end
  5231. bv:Destroy()
  5232. attack = false
  5233. end
  5234.  
  5235. function createBGCircle(size,parent,color)
  5236. local bgui = Instance.new("BillboardGui",parent)
  5237. bgui.Size = UDim2.new(size, 0, size, 0)
  5238. local imgc = Instance.new("ImageLabel",bgui)
  5239. imgc.BackgroundTransparency = 1
  5240. imgc.ImageTransparency = 0
  5241. imgc.Size = UDim2.new(1,0,1,0)
  5242. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5243. imgc.ImageColor3 = color
  5244. return bgui,imgc
  5245. end
  5246.  
  5247. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5248. local bgui,imgc = createBGCircle(size,guipar,color)
  5249. bgui.AlwaysOnTop = true
  5250. imgc.Image = "rbxassetid://" ..img
  5251. local rrot = math.random(1,2)
  5252. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5253. coroutine.resume(coroutine.create(function()
  5254. for i = 0, 24*delay do
  5255. swait()
  5256. if rotationenabled == true then
  5257. if rrot == 1 then
  5258. imgc.Rotation = imgc.Rotation + rotsp
  5259. elseif rrot == 2 then
  5260. imgc.Rotation = imgc.Rotation - rotsp
  5261. end
  5262. end
  5263. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5264. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5265. end
  5266. bgui:Destroy()
  5267. end))
  5268. end
  5269. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5270. for i, v in pairs(mw2:GetChildren()) do
  5271. if v:IsA("Part") then
  5272. v.BrickColor = one
  5273. v.Material = "Neon"
  5274. end
  5275. end
  5276. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5277. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5278. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5279. tr1.Color = ColorSequence.new(one.Color)
  5280. tr2.Color = ColorSequence.new(one.Color)
  5281. tr3.Color = ColorSequence.new(one.Color)
  5282. for i, v in pairs(mw1:GetChildren()) do
  5283. if v:IsA("Part") then
  5284. if secondaryenabled == false then
  5285. v.Transparency = 1
  5286. elseif secondaryenabled == true then
  5287. v.Transparency = 0
  5288. end
  5289. v.BrickColor = two
  5290. v.Material = "Neon"
  5291. end
  5292. end
  5293. if secondaryenabled == false then
  5294. tl1.Enabled = false
  5295. tl2.Enabled = false
  5296. tl3.Enabled = false
  5297. elseif secondaryenabled == true then
  5298. tl1.Enabled = true
  5299. tl2.Enabled = true
  5300. tl3.Enabled = true
  5301. end
  5302. tl1.Color = ColorSequence.new(two.Color)
  5303. tl2.Color = ColorSequence.new(two.Color)
  5304. tl3.Color = ColorSequence.new(two.Color)
  5305. for i, v in pairs(m:GetChildren()) do
  5306. if v:IsA("Part") then
  5307. v.BrickColor = three
  5308. v.Material = "Ice"
  5309. end
  5310. end
  5311. for i, v in pairs(m2:GetChildren()) do
  5312. if v:IsA("Part") then
  5313. v.BrickColor = four
  5314. v.Material = "Ice"
  5315. end
  5316. end
  5317. for i, v in pairs(m3:GetChildren()) do
  5318. if v:IsA("Part") then
  5319. v.BrickColor = five
  5320. v.Material = "Neon"
  5321. end
  5322. end
  5323. for i, v in pairs(extrawingmod1:GetChildren()) do
  5324. if v:IsA("Part") then
  5325. v.Transparency = exonetran
  5326. v.BrickColor = exone
  5327. v.Material = "Neon"
  5328. end
  5329. end
  5330. for i, v in pairs(extrawingmod2:GetChildren()) do
  5331. if v:IsA("Part") then
  5332. v.Transparency = extwotran
  5333. v.BrickColor = extwo
  5334. v.Material = "Neon"
  5335. end
  5336. end
  5337. end
  5338.  
  5339.  
  5340. function normalmog()
  5341. attack = true
  5342. hum.WalkSpeed = 0
  5343. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 35, 1.25)
  5344. bosschatfunc("YOUR EXISTANCE IS WASTED!!!!!!",MAINRUINCOLOR.Color,1)
  5345. for i = 0,6,0.1 do
  5346. swait()
  5347. 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)
  5348. 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)
  5349. 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)
  5350. 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)
  5351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5352. 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)
  5353. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5354. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5355. end
  5356. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5357. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5358. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5359. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5360. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5361. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5362. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5363. rainbowmode = false
  5364. chaosmode = false
  5365. ModeOfGlitch = 1
  5366. storehumanoidWS = 16
  5367. newTheme("rbxassetid://1057854857",48.6,1,1.25)
  5368. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5369. CameraEnshaking(5,2.5)
  5370. MAINRUINCOLOR = BrickColor.new("Really red")
  5371. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5372. for i = 0, 49 do
  5373. 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)
  5374. end
  5375. for i = 0, 24 do
  5376. 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)
  5377. 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"))
  5378. end
  5379. for i = 0,3,0.1 do
  5380. 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)
  5381. end
  5382. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5383. for i = 0,2,0.1 do
  5384. swait()
  5385. 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)
  5386. 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)
  5387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5388. 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)
  5389. 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)
  5390. 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)
  5391. end
  5392. hum.WalkSpeed = storehumanoidWS
  5393. attack = false
  5394. end
  5395.  
  5396. function attackone()
  5397. attack = true
  5398. for i = 0,1,0.1 do
  5399. swait()
  5400. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5401. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5402. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5403. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5404. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  5405. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  5406. end
  5407. local distlook = 5
  5408. for i = 0, 4 do
  5409. swait(2)
  5410. CameraEnshaking(2,3)
  5411. local hite = Instance.new("Part", char)
  5412. hite.Anchored = true
  5413. hite.CanCollide = false
  5414. hite.FormFactor = 3
  5415. hite.Name = "Ring"
  5416. hite.Material = "Neon"
  5417. hite.Size = Vector3.new(1, 1, 1)
  5418. hite.Transparency = 1
  5419. hite.TopSurface = 0
  5420. hite.BottomSurface = 0
  5421. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5422. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5423. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5424. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5425. for i = 0, 2 do
  5426. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5427. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5428. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5429. end
  5430. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5431. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5432. game:GetService("Debris"):AddItem(hite, 5)
  5433. distlook = distlook + 10
  5434. end
  5435. attack = false
  5436. end
  5437.  
  5438. function attacktwo()
  5439. attack = true
  5440. hum.WalkSpeed = 2
  5441. local keptcolor = MAINRUINCOLOR
  5442. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5443. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2, 1)
  5444. 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)
  5445. 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)
  5446. for i = 0, 14 do
  5447. 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)
  5448. end
  5449. for i = 0,1,0.1 do
  5450. swait()
  5451. 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)
  5452. 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)
  5453. 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)
  5454. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5456. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5457. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5458. end
  5459. for i = 0, 1 do
  5460. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5461. for i = 0,1,0.6 do
  5462. swait()
  5463. 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)
  5464. 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"))
  5465. 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)
  5466. 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)
  5467. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5469. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5470. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5471. end
  5472. for i = 0,1,0.6 do
  5473. swait()
  5474. 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)
  5475. 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"))
  5476. 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)
  5477. 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)
  5478. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5479. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5480. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5481. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5482. end
  5483. for i = 0,1,0.6 do
  5484. swait()
  5485. 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)
  5486. 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"))
  5487. 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)
  5488. 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)
  5489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5490. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5491. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5492. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5493. end
  5494. for i = 0,1,0.6 do
  5495. swait()
  5496. 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)
  5497. 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"))
  5498. 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)
  5499. 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)
  5500. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5502. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5503. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5504. end
  5505. local rot = 0
  5506. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5507. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5508. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5509. CreateMesh(dis,"Sphere",10,1,10)
  5510. local at1 = Instance.new("Attachment",dis)
  5511. at1.Position = vt(-5,0,0)
  5512. local at2 = Instance.new("Attachment",dis)
  5513. at2.Position = vt(5,0,0)
  5514. local trl = Instance.new('Trail',wed)
  5515. trl.Attachment0 = at1
  5516. trl.Attachment1 = at2
  5517. trl.Texture = "rbxassetid://1049219073"
  5518. trl.LightEmission = 1
  5519. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5520. trl.Color = ColorSequence.new(dis.Color)
  5521. trl.Lifetime = 0.6
  5522. local a = Instance.new("Part",workspace)
  5523. a.Name = "Direction"
  5524. a.Anchored = true
  5525. a.BrickColor = bc("Bright red")
  5526. a.Material = "Neon"
  5527. a.Transparency = 1
  5528. a.CanCollide = false
  5529. local ray = Ray.new(
  5530. dis.CFrame.p, -- origin
  5531. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5532. )
  5533. local ignore = dis
  5534. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5535. a.BottomSurface = 10
  5536. a.TopSurface = 10
  5537. local distance = (dis.CFrame.p - position).magnitude
  5538. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5539. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5540. dis.CFrame = a.CFrame
  5541. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5542. a:Destroy()
  5543. local bv = Instance.new("BodyVelocity")
  5544. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5545. bv.velocity = dis.CFrame.lookVector*250
  5546. bv.Parent = dis
  5547. game:GetService("Debris"):AddItem(dis, 5)
  5548. local hitted = false
  5549. coroutine.resume(coroutine.create(function()
  5550. dis.Touched:connect(function(hit)
  5551. if hitted == false and hit.Parent ~= char then
  5552. hitted = true
  5553. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5554. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5555. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5556. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5557. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5558. coroutine.resume(coroutine.create(function()
  5559. for i = 0, 9 do
  5560. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5561. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5562. local at1 = Instance.new("Attachment",disr)
  5563. at1.Position = vt(-5,0,0)
  5564. local at2 = Instance.new("Attachment",disr)
  5565. at2.Position = vt(5,0,0)
  5566. local trl = Instance.new('Trail',disr)
  5567. trl.Attachment0 = at1
  5568. trl.FaceCamera = true
  5569. trl.Attachment1 = at2
  5570. trl.Texture = "rbxassetid://2342682798"
  5571. trl.LightEmission = 1
  5572. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5573. trl.Color = ColorSequence.new(keptcolor.Color)
  5574. trl.Lifetime = 0.5
  5575. local bv = Instance.new("BodyVelocity")
  5576. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5577. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5578. bv.Parent = disr
  5579. local val = 0
  5580. coroutine.resume(coroutine.create(function()
  5581. swait(30)
  5582. for i = 0, 9 do
  5583. swait()
  5584. val = val + 0.1
  5585. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5586. end
  5587. game:GetService("Debris"):AddItem(disr, 3)
  5588. end))
  5589. end
  5590. local eff = Instance.new("ParticleEmitter",dis)
  5591. eff.Texture = "rbxassetid://2273224484"
  5592. eff.LightEmission = 1
  5593. eff.Color = ColorSequence.new(keptcolor.Color)
  5594. eff.Rate = 500000
  5595. eff.Lifetime = NumberRange.new(0.5,2)
  5596. 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)})
  5597. 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)})
  5598. eff.Speed = NumberRange.new(20,250)
  5599. eff.Drag = 5
  5600. eff.Rotation = NumberRange.new(-500,500)
  5601. eff.VelocitySpread = 9000
  5602. eff.RotSpeed = NumberRange.new(-50,50)
  5603. wait(0.25)
  5604. eff.Enabled = false
  5605. end))
  5606. for i = 0, 9 do
  5607. 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"))
  5608. end
  5609. for i = 0, 19 do
  5610. 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)
  5611. end
  5612. coroutine.resume(coroutine.create(function()
  5613. for i = 0, 19 do
  5614. swait()
  5615. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5616. end
  5617. hum.CameraOffset = vt(0,0,0)
  5618. end))
  5619. dis.Anchored = true
  5620. dis.Transparency = 1
  5621. wait(8)
  5622. dis:Destroy()
  5623. end
  5624. end)
  5625. end))
  5626. rot = rot - 15
  5627. end
  5628. for i = 0,2,0.1 do
  5629. swait()
  5630. 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)
  5631. 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)
  5632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5634. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5635. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5636. end
  5637. attack = false
  5638. hum.WalkSpeed = storehumanoidWS
  5639. end
  5640.  
  5641. function attackthree()
  5642. attack = true
  5643. local keptcolor = MAINRUINCOLOR
  5644. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  5645. for i = 0,1,0.1 do
  5646. swait()
  5647. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  5648. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5649. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  5650. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  5651. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  5652. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  5653. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  5654. end
  5655. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  5656. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  5657. local angle = -25
  5658. coroutine.resume(coroutine.create(function()
  5659. for i = 0, 2 do
  5660. local orb = Instance.new("Part", char)
  5661. orb.BrickColor = MAINRUINCOLOR
  5662. orb.CanCollide = false
  5663. orb.FormFactor = 3
  5664. orb.Name = "Ring"
  5665. orb.Material = "Neon"
  5666. orb.Size = Vector3.new(1, 1, 1)
  5667. orb.Transparency = 0.5
  5668. orb.TopSurface = 0
  5669. orb.BottomSurface = 0
  5670. local orbm = Instance.new("SpecialMesh", orb)
  5671. orbm.MeshType = "Sphere"
  5672. orbm.Name = "SizeMesh"
  5673. orbm.Scale = vt(3,3,3)
  5674. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  5675. local bv = Instance.new("BodyVelocity")
  5676. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5677. bv.velocity = orb.CFrame.lookVector*100
  5678. bv.Parent = orb
  5679. game:GetService("Debris"):AddItem(orb, 10)
  5680. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5681. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5682. coroutine.resume(coroutine.create(function()
  5683. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5684. for i = 0, 7 do
  5685. swait(2.5)
  5686. CameraEnshaking(1,2)
  5687. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5688. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  5689. for i = 0, 4 do
  5690. local rsiz = math.random(5,10)
  5691. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  5692. sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5693. end
  5694. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5695. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5696. end
  5697. orb.Transparency = 1
  5698. orb.Anchored = false
  5699. wait(10)
  5700. orb:Destroy()
  5701. end))
  5702. angle = angle + 25
  5703. end
  5704. end))
  5705. for i = 0,1,0.1 do
  5706. swait()
  5707. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5708. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5709. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  5710. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  5711. 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)
  5712. 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)
  5713. end
  5714. attack = false
  5715. end
  5716. ----------------------------------- Abilities
  5717.  
  5718. function ExtinctiveHeartbreak()
  5719. local targetted = nil
  5720. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5721. targetted = mouse.Target.Parent
  5722. end
  5723. if targetted ~= nil then
  5724. attack = true
  5725. bosschatfunc("I AM THE MIGHTIEST!!",MAINRUINCOLOR.Color,1)
  5726. CFuncs["EchoSound"].Create("rbxassetid://357202141", char, 1.5, 1,0,10,0.15,0.5,1)
  5727. CFuncs["EchoSound"].Create("rbxassetid://357202141", root, 10, 1,0,10,0.15,0.5,1)
  5728. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2.5,1)
  5729. for i = 0, 9 do
  5730. 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)
  5731. end
  5732. for i = 0, 24 do
  5733. 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)
  5734. end
  5735. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5736. local originalpos = root.CFrame
  5737. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5738. for i = 0, 9 do
  5739. 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)
  5740. end
  5741. for i = 0, 24 do
  5742. 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)
  5743. end
  5744. hum.WalkSpeed = 0
  5745. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5746. local radm = math.random(1,3)
  5747. if radm == 1 then
  5748. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5749. elseif radm == 2 then
  5750. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5751. elseif radm == 3 then
  5752. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5753. end
  5754. for i = 0,2,0.1 do
  5755. swait()
  5756. 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)
  5757. 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)
  5758. 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)
  5759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5760. 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)
  5761. 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)
  5762. end
  5763. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5764. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5765. for i = 0,2,0.1 do
  5766. swait()
  5767. coroutine.resume(coroutine.create(function()
  5768. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5769. for i,v in pairs(targetted:GetChildren()) do
  5770. if v:IsA("Part") or v:IsA("MeshPart") then
  5771. v.Velocity = vt(0,0,0)
  5772. end
  5773. end
  5774. end))
  5775. 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)
  5776. 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)
  5777. 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)
  5778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5779. 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)
  5780. 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)
  5781. end
  5782. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5783. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5784. for i = 0, 1 do
  5785. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5786. end
  5787. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5788. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5789. for i = 0,4,0.1 do
  5790. swait()
  5791. coroutine.resume(coroutine.create(function()
  5792. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5793. 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)))
  5794. local at1 = Instance.new("Attachment",dis)
  5795. at1.Position = vt(-25000,0,0)
  5796. local at2 = Instance.new("Attachment",dis)
  5797. at2.Position = vt(25000,0,0)
  5798. local trl = Instance.new('Trail',dis)
  5799. trl.Attachment0 = at1
  5800. trl.FaceCamera = true
  5801. trl.Attachment1 = at2
  5802. trl.Texture = "rbxassetid://1049219073"
  5803. trl.LightEmission = 1
  5804. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5805. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5806. trl.Lifetime = 5
  5807. local bv = Instance.new("BodyVelocity")
  5808. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5809. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5810. bv.Parent = dis
  5811. game:GetService("Debris"):AddItem(dis, 5)
  5812. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5813. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5814. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5815. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5816. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5817. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5818. 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)
  5819. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5820. for i = 0, 2 do
  5821. 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"))
  5822. end
  5823. 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)
  5824. for i,v in pairs(targetted:GetChildren()) do
  5825. if v:IsA("Part") or v:IsA("MeshPart") then
  5826. v.Velocity = vt(0,0,0)
  5827. end
  5828. end
  5829. end))
  5830. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5831. 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)
  5832. 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)
  5833. 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)
  5834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5835. 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)
  5836. 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)
  5837. end
  5838. hum.CameraOffset = vt(0,0,0)
  5839. for i = 0, 49 do
  5840. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5841. 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)))
  5842. local at1 = Instance.new("Attachment",dis)
  5843. at1.Position = vt(-50000,0,0)
  5844. local at2 = Instance.new("Attachment",dis)
  5845. at2.Position = vt(50000,0,0)
  5846. local trl = Instance.new('Trail',dis)
  5847. trl.Attachment0 = at1
  5848. trl.FaceCamera = true
  5849. trl.Attachment1 = at2
  5850. trl.Texture = "rbxassetid://1049219073"
  5851. trl.LightEmission = 1
  5852. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5853. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5854. trl.Lifetime = 5
  5855. local bv = Instance.new("BodyVelocity")
  5856. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5857. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5858. bv.Parent = dis
  5859. game:GetService("Debris"):AddItem(dis, 5)
  5860. end
  5861. for i = 0, 49 do
  5862. 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)
  5863. 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"))
  5864. end
  5865. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5866. for i = 0, 1 do
  5867. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5868. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5869. end
  5870. for i = 0, 4 do
  5871. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5872. end
  5873. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5874. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5875. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5876. dmg(targetted)
  5877. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5878. for i = 0, 9 do
  5879. 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)
  5880. end
  5881. for i = 0, 24 do
  5882. 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)
  5883. end
  5884. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5885. root.CFrame = originalpos
  5886. for i = 0, 9 do
  5887. 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)
  5888. end
  5889. for i = 0, 24 do
  5890. 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)
  5891. end
  5892. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5893. attack = false
  5894. hum.WalkSpeed = storehumanoidWS
  5895. end
  5896. end
  5897.  
  5898. function CorruptionEvent()
  5899. attack = true
  5900. hum.WalkSpeed = 0
  5901. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  5902. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  5903. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  5904. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5905. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5906. local keptcolor = MAINRUINCOLOR
  5907. for i = 0,4,0.1 do
  5908. swait()
  5909. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5910. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5911. 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)
  5912. 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)
  5913. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5914. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5915. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5916. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5917. end
  5918. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5919. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5920. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5921. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5922. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5923. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5924. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5925. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5926. hum.CameraOffset = vt(0,0,0)
  5927. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5928. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5929. for i = 0, 24 do
  5930. 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"))
  5931. end
  5932. local rrot = 0
  5933. coroutine.resume(coroutine.create(function()
  5934. for i = 0, 4 do
  5935. rrot = rrot + 45
  5936. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5937. xa.Anchored = true
  5938. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5939. xb.Anchored = true
  5940. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5941. xc.Anchored = true
  5942. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5943. xd.Anchored = true
  5944. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5945. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5946. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5947. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5948. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5949. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5950. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5951. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5952. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5953. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5954. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5955. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5956. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5957. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5958. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5959. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5960. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5961. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5962. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5963. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5964. for i = 0, 9 do
  5965. 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"))
  5966. 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"))
  5967. 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"))
  5968. 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"))
  5969. end
  5970. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5971. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5972. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5973. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5974. 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)
  5975. 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)
  5976. 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)
  5977. 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)
  5978. 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))
  5979. 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))
  5980. 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))
  5981. 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))
  5982. game:GetService("Debris"):AddItem(xa, 5)
  5983. game:GetService("Debris"):AddItem(xb, 5)
  5984. game:GetService("Debris"):AddItem(xc, 5)
  5985. game:GetService("Debris"):AddItem(xd, 5)
  5986. coroutine.resume(coroutine.create(function()
  5987. for i = 0, 19 do
  5988. swait()
  5989. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5990. end
  5991. hum.CameraOffset = vt(0,0,0)
  5992. end))
  5993. swait(9)
  5994. end
  5995. end))
  5996. for i = 0,2,0.1 do
  5997. swait()
  5998. 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)
  5999. 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)
  6000. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6002. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6003. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6004. end
  6005. attack = false
  6006. hum.WalkSpeed = storehumanoidWS
  6007. end
  6008.  
  6009. function EndGROUND()
  6010. attack = true
  6011. hum.WalkSpeed = 0
  6012. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6013. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6014. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6015. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6016. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6017. local keptcolor = MAINRUINCOLOR
  6018. for i = 0,4,0.1 do
  6019. swait()
  6020. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6021. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6022. 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"))
  6023. 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)
  6024. 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)
  6025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6027. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6028. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6029. end
  6030. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6031. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6032. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6033. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6034. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6035. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6036. coroutine.resume(coroutine.create(function()
  6037. local shval = 10
  6038. for i = 0, 99 do
  6039. swait()
  6040. shval = shval - 0.1
  6041. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6042. end
  6043. hum.CameraOffset = vt(0,0,0)
  6044. end))
  6045. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6046. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6047. for i = 0, 24 do
  6048. 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"))
  6049. end
  6050. local rrot = 0
  6051. local xam = 1
  6052. coroutine.resume(coroutine.create(function()
  6053. for i = 0, 14 do
  6054. --swait()
  6055. rrot = rrot + 40*xam
  6056. xam = xam + 0.25
  6057. local bonus = xam
  6058. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6059. xa.Anchored = true
  6060. xa.Color = Color3.new(0,0,0)
  6061. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6062. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6063. local xc = 0
  6064. coroutine.resume(coroutine.create(function()
  6065. for i = 0, 99 do
  6066. swait()
  6067. xc = xc + 0.01
  6068. xa.Color = Color3.new(xc,0,0)
  6069. end
  6070. xa.Transparency = 1
  6071. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6072. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6073. for i = 0, 9 do
  6074. 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"))
  6075. end
  6076. 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)
  6077. 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)
  6078. 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))
  6079. game:GetService("Debris"):AddItem(xa, 5)
  6080. coroutine.resume(coroutine.create(function()
  6081. for i = 0, 19 do
  6082. swait()
  6083. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6084. end
  6085. hum.CameraOffset = vt(0,0,0)
  6086. end))
  6087. end))
  6088. end
  6089. end))
  6090. for i = 0,2,0.1 do
  6091. swait()
  6092. 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)
  6093. 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)
  6094. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6095. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6096. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6097. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6098. end
  6099. attack = false
  6100. hum.WalkSpeed = storehumanoidWS
  6101. end
  6102.  
  6103.  
  6104. function HeavenlyDisk()
  6105. attack = true
  6106. hum.WalkSpeed = 2
  6107. local keptcolor = MAINRUINCOLOR
  6108. local radm = math.random(1,3)
  6109. if radm == 1 then
  6110. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  6111. elseif radm == 2 then
  6112. bosschatfunc("I really don't have a choice...",MAINRUINCOLOR.Color,1)
  6113. elseif radm == 3 then
  6114. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6115. end
  6116. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6117. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 4, 1,0,10,0.15,0.5,1)
  6118. 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)
  6119. 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)
  6120. for i = 0, 14 do
  6121. PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new(MULTIRUINCOLOR),0)
  6122. end
  6123. for i = 0,2,0.1 do
  6124. swait()
  6125. 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)
  6126. 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)
  6127. 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)
  6128. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6129. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6130. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6131. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6132. end
  6133. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6134. for i = 0,1,0.6 do
  6135. swait()
  6136. 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)
  6137. 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"))
  6138. 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)
  6139. 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)
  6140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6142. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6143. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6144. end
  6145. for i = 0,1,0.6 do
  6146. swait()
  6147. 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)
  6148. 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"))
  6149. 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)
  6150. 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)
  6151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6152. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6153. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6154. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6155. end
  6156. for i = 0,1,0.6 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. 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"))
  6160. 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)
  6161. 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)
  6162. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6165. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6166. end
  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(270)),.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. local rot = 15
  6179. for i = 0, 2 do
  6180. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new(MULTIRUINCOLOR))
  6181. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6182. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6183. CreateMesh(dis,"Sphere",10,1,10)
  6184. local at1 = Instance.new("Attachment",dis)
  6185. at1.Position = vt(-5,0,0)
  6186. local at2 = Instance.new("Attachment",dis)
  6187. at2.Position = vt(5,0,0)
  6188. local trl = Instance.new('Trail',wed)
  6189. trl.Attachment0 = at1
  6190. trl.Attachment1 = at2
  6191. trl.Texture = "rbxassetid://1049219073"
  6192. trl.LightEmission = 1
  6193. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6194. trl.Color = ColorSequence.new(dis.Color)
  6195. trl.Lifetime = 0.6
  6196. local a = Instance.new("Part",workspace)
  6197. a.Name = "Direction"
  6198. a.Anchored = true
  6199. a.BrickColor = bc("Bright red")
  6200. a.Material = "Neon"
  6201. a.Transparency = 1
  6202. a.CanCollide = false
  6203. local ray = Ray.new(
  6204. dis.CFrame.p, -- origin
  6205. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6206. )
  6207. local ignore = dis
  6208. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6209. a.BottomSurface = 10
  6210. a.TopSurface = 10
  6211. local distance = (dis.CFrame.p - position).magnitude
  6212. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6213. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6214. dis.CFrame = a.CFrame
  6215. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6216. a:Destroy()
  6217. local bv = Instance.new("BodyVelocity")
  6218. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6219. bv.velocity = dis.CFrame.lookVector*250
  6220. bv.Parent = dis
  6221. game:GetService("Debris"):AddItem(dis, 5)
  6222. local hitted = false
  6223. coroutine.resume(coroutine.create(function()
  6224. dis.Touched:connect(function(hit)
  6225. if hitted == false and hit.Parent ~= char then
  6226. hitted = true
  6227. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6228. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6229. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6230. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6231. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6232. coroutine.resume(coroutine.create(function()
  6233. for i = 0, 9 do
  6234. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6235. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6236. local at1 = Instance.new("Attachment",disr)
  6237. at1.Position = vt(-2,0,0)
  6238. local at2 = Instance.new("Attachment",disr)
  6239. at2.Position = vt(2,0,0)
  6240. local trl = Instance.new('Trail',disr)
  6241. trl.Attachment0 = at1
  6242. trl.FaceCamera = true
  6243. trl.Attachment1 = at2
  6244. trl.Texture = "rbxassetid://2342682798"
  6245. trl.LightEmission = 1
  6246. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6247. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6248. trl.Lifetime = 0.5
  6249. local bv = Instance.new("BodyVelocity")
  6250. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6251. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6252. bv.Parent = disr
  6253. local val = 0
  6254. coroutine.resume(coroutine.create(function()
  6255. swait(30)
  6256. for i = 0, 9 do
  6257. swait()
  6258. val = val + 0.1
  6259. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6260. end
  6261. game:GetService("Debris"):AddItem(disr, 3)
  6262. end))
  6263. end
  6264. local eff = Instance.new("ParticleEmitter",dis)
  6265. eff.Texture = "rbxassetid://2273224484"
  6266. eff.LightEmission = 1
  6267. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6268. eff.Rate = 500000
  6269. eff.Lifetime = NumberRange.new(0.5,2)
  6270. 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)})
  6271. 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)})
  6272. eff.Speed = NumberRange.new(20,250)
  6273. eff.Drag = 5
  6274. eff.Rotation = NumberRange.new(-500,500)
  6275. eff.VelocitySpread = 9000
  6276. eff.RotSpeed = NumberRange.new(-50,50)
  6277. wait(0.25)
  6278. eff.Enabled = false
  6279. end))
  6280. for i = 0, 9 do
  6281. 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"))
  6282. end
  6283. for i = 0, 19 do
  6284. 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)
  6285. end
  6286. coroutine.resume(coroutine.create(function()
  6287. for i = 0, 19 do
  6288. swait()
  6289. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6290. end
  6291. hum.CameraOffset = vt(0,0,0)
  6292. end))
  6293. dis.Anchored = true
  6294. dis.Transparency = 1
  6295. wait(8)
  6296. dis:Destroy()
  6297. end
  6298. end)
  6299. end))
  6300. rot = rot - 15
  6301. end
  6302. for i = 0,2,0.1 do
  6303. swait()
  6304. 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)
  6305. 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)
  6306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6309. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6310. end
  6311. attack = false
  6312. hum.WalkSpeed = storehumanoidWS
  6313. end
  6314.  
  6315. function RapidBurst()
  6316. attack = true
  6317. hum.WalkSpeed = 0
  6318. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6319. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6320. CFuncs["Sound"].Create("rbxassetid://138677306", root, 10, 0.5)
  6321. CFuncs["EchoSound"].Create("rbxassetid://358080429", char, 4, 1,0,10,0.15,0.5,1)
  6322. CFuncs["EchoSound"].Create("rbxassetid://2014087015", char, 4, 1,0,10,0.15,0.5,1)
  6323. bosschatfunc("ENOUGH!!",MAINRUINCOLOR.Color,2)
  6324. local keptcolor = MAINRUINCOLOR
  6325. for i = 0,8,0.1 do
  6326. swait()
  6327. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6328. 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())
  6329. 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)
  6330. 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)
  6331. 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)
  6332. 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)
  6333. 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)
  6334. 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)
  6335. 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)
  6336. end
  6337. for i = 0, 99 do
  6338. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6339. 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)))
  6340. local at1 = Instance.new("Attachment",dis)
  6341. at1.Position = vt(-25000,0,0)
  6342. local at2 = Instance.new("Attachment",dis)
  6343. at2.Position = vt(25000,0,0)
  6344. local trl = Instance.new('Trail',dis)
  6345. trl.Attachment0 = at1
  6346. trl.FaceCamera = true
  6347. trl.Attachment1 = at2
  6348. trl.Texture = "rbxassetid://1049219073"
  6349. trl.LightEmission = 1
  6350. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6351. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6352. trl.Lifetime = 5
  6353. local bv = Instance.new("BodyVelocity")
  6354. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6355. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6356. bv.Parent = dis
  6357. game:GetService("Debris"):AddItem(dis, 5)
  6358. end
  6359. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6360. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6361. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6362. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6363. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6364. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6365. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6366. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6367. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6368. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6369. hum.CameraOffset = vt(0,0,0)
  6370. for i = 0, 24 do
  6371. 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())
  6372. end
  6373. local distam = 0
  6374. coroutine.resume(coroutine.create(function()
  6375. for i = 0, 99 do
  6376. wait()
  6377. distam = distam + 1
  6378. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6379. xa.Anchored = true
  6380. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6381. game:GetService("Debris"):AddItem(xa, 5)
  6382. for i = 0, 4 do
  6383. 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())
  6384. end
  6385. coroutine.resume(coroutine.create(function()
  6386. local eff = Instance.new("ParticleEmitter",xa)
  6387. eff.Texture = "rbxassetid://2273224484"
  6388. eff.LightEmission = 1
  6389. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6390. eff.Rate = 500000
  6391. eff.Lifetime = NumberRange.new(1,3)
  6392. 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)})
  6393. 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)})
  6394. eff.Speed = NumberRange.new(50,500)
  6395. eff.Drag = 5
  6396. eff.Rotation = NumberRange.new(-500,500)
  6397. eff.VelocitySpread = 9000
  6398. eff.RotSpeed = NumberRange.new(-50,50)
  6399. wait(0.25)
  6400. eff.Enabled = false
  6401. end))
  6402. coroutine.resume(coroutine.create(function()
  6403. for i = 0, 19 do
  6404. swait()
  6405. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6406. end
  6407. hum.CameraOffset = vt(0,0,0)
  6408. end))
  6409. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6410. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6411. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6412. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6413. end
  6414. end))
  6415. attack = false
  6416. hum.WalkSpeed = storehumanoidWS
  6417. end
  6418.  
  6419.  
  6420. function FallenOrbs()
  6421. attack = true
  6422. hum.WalkSpeed = 2
  6423. local keptcolor = MAINRUINCOLOR
  6424. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6425. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6426. local radm = math.random(1,3)
  6427. if radm == 1 then
  6428. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6429. elseif radm == 2 then
  6430. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  6431. elseif radm == 3 then
  6432. bosschatfunc("FREAKING DIE ALREADY!!",MAINRUINCOLOR.Color,1)
  6433. end
  6434. coroutine.resume(coroutine.create(function()
  6435. for i = 0, 29 do
  6436. swait(2)
  6437. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6438. dis.Anchored = true
  6439. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6440. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6441. CreateMesh(dis,"Sphere",2,2,2)
  6442. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6443. 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"))
  6444. coroutine.resume(coroutine.create(function()
  6445. wait(0.5)
  6446. dis.Anchored = false
  6447. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6448. local at1 = Instance.new("Attachment",dis)
  6449. at1.Position = vt(-1,0,0)
  6450. local at2 = Instance.new("Attachment",dis)
  6451. at2.Position = vt(1,0,0)
  6452. local trl = Instance.new('Trail',dis)
  6453. trl.Attachment0 = at1
  6454. trl.FaceCamera = true
  6455. trl.Attachment1 = at2
  6456. trl.Texture = "rbxassetid://1049219073"
  6457. trl.LightEmission = 1
  6458. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6459. trl.Color = ColorSequence.new(dis.Color)
  6460. trl.Lifetime = 0.6
  6461. local a = Instance.new("Part",workspace)
  6462. a.Name = "Direction"
  6463. a.Anchored = true
  6464. a.BrickColor = bc("Bright red")
  6465. a.Material = "Neon"
  6466. a.Transparency = 1
  6467. a.CanCollide = false
  6468. local ray = Ray.new(
  6469. dis.CFrame.p, -- origin
  6470. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6471. )
  6472. local ignore = dis
  6473. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6474. a.BottomSurface = 10
  6475. a.TopSurface = 10
  6476. local distance = (dis.CFrame.p - position).magnitude
  6477. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6478. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6479. dis.CFrame = a.CFrame
  6480. a:Destroy()
  6481. local bv = Instance.new("BodyVelocity")
  6482. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6483. bv.velocity = dis.CFrame.lookVector*500
  6484. bv.Parent = dis
  6485. game:GetService("Debris"):AddItem(dis, 5)
  6486. local hitted = false
  6487. coroutine.resume(coroutine.create(function()
  6488. dis.Touched:connect(function(hit)
  6489. if hitted == false and hit.Parent ~= char then
  6490. hitted = true
  6491. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6492. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6493. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6494. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6495. coroutine.resume(coroutine.create(function()
  6496. for i = 0, 4 do
  6497. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6498. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6499. local at1 = Instance.new("Attachment",disr)
  6500. at1.Position = vt(-10,0,0)
  6501. local at2 = Instance.new("Attachment",disr)
  6502. at2.Position = vt(10,0,0)
  6503. local trl = Instance.new('Trail',disr)
  6504. trl.Attachment0 = at1
  6505. trl.FaceCamera = true
  6506. trl.Attachment1 = at2
  6507. trl.Texture = "rbxassetid://2342682798"
  6508. trl.LightEmission = 1
  6509. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6510. trl.Color = ColorSequence.new(disr.Color)
  6511. trl.Lifetime = 0.5
  6512. local bv = Instance.new("BodyVelocity")
  6513. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6514. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6515. bv.Parent = disr
  6516. local val = 0
  6517. coroutine.resume(coroutine.create(function()
  6518. swait(30)
  6519. for i = 0, 9 do
  6520. swait()
  6521. val = val + 0.1
  6522. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6523. end
  6524. game:GetService("Debris"):AddItem(disr, 3)
  6525. end))
  6526. end
  6527. local eff = Instance.new("ParticleEmitter",dis)
  6528. eff.Texture = "rbxassetid://1049219073"
  6529. eff.LightEmission = 1
  6530. eff.Color = ColorSequence.new(dis.Color)
  6531. eff.Rate = 500000
  6532. eff.Lifetime = NumberRange.new(0.5,2)
  6533. 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)})
  6534. 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)})
  6535. eff.Speed = NumberRange.new(20,250)
  6536. eff.Drag = 5
  6537. eff.Rotation = NumberRange.new(-500,500)
  6538. eff.VelocitySpread = 9000
  6539. eff.RotSpeed = NumberRange.new(-50,50)
  6540. wait(0.5)
  6541. eff.Enabled = false
  6542. end))
  6543. for i = 0, 4 do
  6544. 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"))
  6545. end
  6546. coroutine.resume(coroutine.create(function()
  6547. for i = 0, 19 do
  6548. swait()
  6549. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6550. end
  6551. hum.CameraOffset = vt(0,0,0)
  6552. end))
  6553. dis.Anchored = true
  6554. dis.Transparency = 1
  6555. wait(8)
  6556. dis:Destroy()
  6557. end
  6558. end)
  6559. end))
  6560. end))
  6561. end
  6562. end))
  6563. for i = 0,9,0.1 do
  6564. swait()
  6565. 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)
  6566. 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)
  6567. 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)
  6568. 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)
  6569. 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)
  6570. 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)
  6571. 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)
  6572. end
  6573. attack = false
  6574. hum.WalkSpeed = storehumanoidWS
  6575. end
  6576.  
  6577. function EquinoxOrbs()
  6578. hum.WalkSpeed = 0
  6579. attack = true
  6580. for i = 0,1,0.1 do
  6581. swait()
  6582. 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)
  6583. 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)
  6584. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6585. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6586. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6587. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6588. end
  6589. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6590. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6591. for i = 0, 24 do
  6592. --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"))
  6593. end
  6594. bosschatfunc("TAKE THIS!",MAINRUINCOLOR.Color,1)
  6595. CFuncs["EchoSound"].Create("rbxassetid://313205954", char, 4, 1,0,10,0.15,0.5,1)
  6596. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6597. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6598. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6599. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6600. for i = 0,1,0.1 do
  6601. swait()
  6602. 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)
  6603. 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)
  6604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6606. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6607. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6608. end
  6609. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6610. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6611. for i = 0, 24 do
  6612. 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"))
  6613. end
  6614. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6615. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6616. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6617. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6618. for i = 0,4,0.1 do
  6619. swait()
  6620. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6621. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6622. CreateMesh(dis,"Sphere",1,1,1)
  6623. dis.Anchored = true
  6624. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6625. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6626. CreateMesh(dis2,"Sphere",1,1,1)
  6627. dis2.Anchored = true
  6628. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6629. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6630. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6631. coroutine.resume(coroutine.create(function()
  6632. swait(60)
  6633. dis.Transparency = 1
  6634. dis2.Transparency = 1
  6635. coroutine.resume(coroutine.create(function()
  6636. for i = 0, 19 do
  6637. swait()
  6638. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6639. end
  6640. hum.CameraOffset = vt(0,0,0)
  6641. end))
  6642. coroutine.resume(coroutine.create(function()
  6643. local eff = Instance.new("ParticleEmitter",dis)
  6644. eff.Texture = "rbxassetid://2273224484"
  6645. eff.LightEmission = 1
  6646. eff.Color = ColorSequence.new(dis.Color)
  6647. eff.Rate = 500000
  6648. eff.Lifetime = NumberRange.new(0.5,2)
  6649. 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)})
  6650. 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)})
  6651. eff.Speed = NumberRange.new(50,450)
  6652. eff.Drag = 5
  6653. eff.Rotation = NumberRange.new(-500,500)
  6654. eff.VelocitySpread = 9000
  6655. eff.RotSpeed = NumberRange.new(-50,50)
  6656. local eff2 = eff:Clone()
  6657. eff2.Parent = dis2
  6658. eff2.LightEmission = 0
  6659. eff2.Color = ColorSequence.new(dis2.Color)
  6660. wait(0.25)
  6661. eff.Enabled = false
  6662. eff2.Enabled = false
  6663. end))
  6664. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6665. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6666. for i = 0, 2 do
  6667. 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)
  6668. 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)
  6669. end
  6670. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6671. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6672. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6673. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6674. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6675. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6676. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6677. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6678. end))
  6679. game:GetService("Debris"):AddItem(dis, 5)
  6680. game:GetService("Debris"):AddItem(dis2, 5)
  6681. 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)
  6682. 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)
  6683. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6685. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6686. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6687. end
  6688. attack = false
  6689. hum.WalkSpeed = storehumanoidWS
  6690. end
  6691.  
  6692. function FallenDEMISE()
  6693. attack = true
  6694. hum.WalkSpeed = 0
  6695. local keptcolor = MAINRUINCOLOR
  6696. bosschatfunc("HOW ABOUT THIS!?",MAINRUINCOLOR.Color,3)
  6697. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6698. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6699. for i = 0, 15, 0.1 do
  6700. swait()
  6701. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6702. 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)))
  6703. local at1 = Instance.new("Attachment",dis)
  6704. at1.Position = vt(-25000,0,0)
  6705. local at2 = Instance.new("Attachment",dis)
  6706. at2.Position = vt(25000,0,0)
  6707. local trl = Instance.new('Trail',dis)
  6708. trl.Attachment0 = at1
  6709. trl.FaceCamera = true
  6710. trl.Attachment1 = at2
  6711. trl.Texture = "rbxassetid://1049219073"
  6712. trl.LightEmission = 1
  6713. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6714. trl.Color = ColorSequence.new(dis.Color)
  6715. trl.Lifetime = 5
  6716. local bv = Instance.new("BodyVelocity")
  6717. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6718. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6719. bv.Parent = dis
  6720. game:GetService("Debris"):AddItem(dis, 1)
  6721. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6722. 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"))
  6723. 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"))
  6724. 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)
  6725. 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)
  6726. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6727. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6728. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6729. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6730. end
  6731. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6732. for i = 0, 30, 0.1 do
  6733. swait()
  6734. coroutine.resume(coroutine.create(function()
  6735. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6736. if v:FindFirstChild('Head') then
  6737. dmg(v)
  6738. end
  6739. end
  6740. end))
  6741. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6742. 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)))
  6743. local at1 = Instance.new("Attachment",dis)
  6744. at1.Position = vt(-50000,0,0)
  6745. local at2 = Instance.new("Attachment",dis)
  6746. at2.Position = vt(50000,0,0)
  6747. local trl = Instance.new('Trail',dis)
  6748. trl.Attachment0 = at1
  6749. trl.FaceCamera = true
  6750. trl.Attachment1 = at2
  6751. trl.Texture = "rbxassetid://1049219073"
  6752. trl.LightEmission = 1
  6753. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6754. trl.Color = ColorSequence.new(dis.Color)
  6755. trl.Lifetime = 10
  6756. local bv = Instance.new("BodyVelocity")
  6757. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6758. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6759. bv.Parent = dis
  6760. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6761. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6762. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6763. 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"))
  6764. 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"))
  6765. 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"))
  6766. 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"))
  6767. for i = 0, 2 do
  6768. 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)
  6769. end
  6770. 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)
  6771. 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)
  6772. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6773. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6774. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6775. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6776. end
  6777. attack = false
  6778. hum.WalkSpeed = storehumanoidWS
  6779. end
  6780.  
  6781. function EightBitMegaBlade()
  6782. attack = true
  6783. hum.WalkSpeed = 0
  6784. hum.JumpPower = 0
  6785. CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
  6786. local OverCut = false
  6787. cam.CameraSubject = Humanoid
  6788. cam.CameraType = "Scriptable"
  6789. coroutine.resume(coroutine.create(function()
  6790. while true do
  6791. swait()
  6792. if OverCut == false then
  6793. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(1, 1.5, -6) * ceuler(math.rad(10), math.rad(170), math.rad(-20)), 0.1)
  6794. else
  6795. break
  6796. end
  6797. end
  6798. end))
  6799. for i = 0, 10, 0.1 do
  6800. swait()
  6801. 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,50)/250,BrickColor.new("White"))
  6802. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,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.1,-0.01,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6803. slash(math.random(20,40)/10,5,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
  6804. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6805. 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(30),math.rad(3)),.3)
  6806. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  6807. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(50)),.3)
  6808. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  6809. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(170),math.rad(10),math.rad(0)),.3)
  6810. end
  6811. OverCut = true
  6812. local orb = Instance.new("Part", char)
  6813. orb.Anchored = true
  6814. orb.BrickColor = BrickColor.new("Toothpaste")
  6815. orb.CanCollide = false
  6816. orb.FormFactor = 3
  6817. orb.Name = "Ring"
  6818. orb.Material = "Neon"
  6819. orb.Size = Vector3.new(1, 1, 1)
  6820. orb.Transparency = 0.5
  6821. orb.TopSurface = 0
  6822. orb.BottomSurface = 0
  6823. local orbm = Instance.new("SpecialMesh", orb)
  6824. orbm.MeshType = "FileMesh"
  6825. orbm.MeshId = "rbxassetid://361629844"
  6826. orbm.Scale = vt(30,60,60)
  6827. orb.CFrame = root.CFrame*CFrame.new(0,50,0)
  6828. for i = 0, 24 do
  6829. slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  6830. end
  6831. sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6832. sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6833. sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6834. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
  6835. local a = Instance.new("Part",workspace)
  6836. a.Name = "Direction"
  6837. a.Anchored = true
  6838. a.Transparency = 1
  6839. a.CanCollide = false
  6840. local ray = Ray.new(
  6841. orb.CFrame.p, -- origin
  6842. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6843. )
  6844. local ignore = orb
  6845. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6846. a.BottomSurface = 10
  6847. a.TopSurface = 10
  6848. local distance = (orb.CFrame.p - position).magnitude
  6849. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6850. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6851. orb.CFrame = a.CFrame
  6852. for i = 0, 8, 0.1 do
  6853. swait()
  6854. sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6855. ray = Ray.new(
  6856. orb.CFrame.p, -- origin
  6857. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6858. )
  6859. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6860. distance = (orb.CFrame.p - position).magnitude
  6861. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6862. orb.CFrame = a.CFrame
  6863. 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,50)/250,BrickColor.new("White"))
  6864. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(20, 65, 55) * ceuler(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
  6865. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6866. 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(40),math.rad(3)),.3)
  6867. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  6868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  6869. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-20),math.rad(20)),.3)
  6870. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(100),math.rad(0),math.rad(60)),.3)
  6871. end
  6872. cam.CameraType = "Custom"
  6873. orb.Anchored = false
  6874. a:Destroy()
  6875. local bv = Instance.new("BodyVelocity")
  6876. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6877. bv.velocity = orb.CFrame.lookVector*250
  6878. bv.Parent = orb
  6879. local hitted = false
  6880. CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
  6881. waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Cyan"))
  6882. waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Royal purple"))
  6883. coroutine.resume(coroutine.create(function()
  6884. while true do
  6885. swait(2)
  6886. if hitted == false and orb.Parent ~= nil then
  6887. slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
  6888. elseif hitted == true and orb.Parent == nil then
  6889. break
  6890. end
  6891. end
  6892. end))
  6893. orb.Touched:connect(function(hit)
  6894. if hitted == false and hit.Parent ~= char then
  6895. hitted = true
  6896. MagniDamage(orb, 30, 72,95, 0, "Normal",153092213)
  6897. CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
  6898. CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
  6899. for i = 0, 24 do
  6900. slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.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.001,0.01),math.random(125,250)/400,BrickColor.new("White"))
  6901. end
  6902. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),1.5,BrickColor.new("White"))
  6903. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),2,BrickColor.new("White"))
  6904. sphere2(1,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6905. sphere2(1.5,"Add",orb.CFrame,vt(10,10,10),1.1,1.1,1.1,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6906. sphere2(2,"Add",orb.CFrame,vt(10,10,10),1.2,1.2,1.2,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6907. orb.Anchored = true
  6908. orb.Transparency = 1
  6909. coroutine.resume(coroutine.create(function()
  6910. for i = 0, 4, 0.1 do
  6911. swait()
  6912. slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Royal purple"))
  6913. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  6914. end
  6915. hum.CameraOffset = vt(0,0,0)
  6916. end))
  6917. wait(10)
  6918. orb:Destroy()
  6919. end
  6920. end)
  6921. game:GetService("Debris"):AddItem(orb, 10)
  6922. for i = 0, 2, 0.1 do
  6923. swait()
  6924. 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,50)/250,BrickColor.new("White"))
  6925. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6926. 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(30),math.rad(3)),.3)
  6927. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  6928. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  6929. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  6930. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  6931. end
  6932. attack = false
  6933. hum.WalkSpeed = 24
  6934. hum.JumpPower = 50
  6935. end
  6936.  
  6937. function BladeSpinAgain()
  6938. attack = true
  6939. hum.WalkSpeed = 4
  6940. hum.JumpPower = 0
  6941. CFuncs["Sound"].Create("rbxassetid://1368598393", rarmor, 2, 1)
  6942. CFuncs["Sound"].Create("rbxassetid://1368583274", rarmor, 2.5, 1)
  6943. for x = 0, 9 do
  6944. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  6945. CFuncs["Sound"].Create("rbxassetid://200633108", rarmor, 2, 1.05)
  6946. CFuncs["Sound"].Create("rbxassetid://234365573", rarmor, 2.5, 1.025)
  6947. for i = 0, 1, 0.6 do
  6948. swait()
  6949. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  6950. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  6951. 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,50)/250,BrickColor.new("White"))
  6952. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6953. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6954. 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(-10)),.2)
  6955. 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(30),math.rad(0)),.2)
  6956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  6958. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  6959. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6960. end
  6961. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  6962. for i = 0, 1, 0.6 do
  6963. swait()
  6964. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  6965. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  6966. 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,50)/250,BrickColor.new("White"))
  6967. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6968. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6969. 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(-10)),.2)
  6970. 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(30),math.rad(0)),.2)
  6971. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6972. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  6973. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  6974. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6975. end
  6976. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  6977. for i = 0, 1, 0.6 do
  6978. swait()
  6979. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  6980. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  6981. 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,50)/250,BrickColor.new("White"))
  6982. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6983. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6984. 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(-10)),.2)
  6985. 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(30),math.rad(0)),.2)
  6986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  6988. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  6989. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6990. end
  6991. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  6992. for i = 0, 1, 0.6 do
  6993. swait()
  6994. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  6995. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  6996. 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,50)/250,BrickColor.new("White"))
  6997. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6998. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6999. 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(-10)),.2)
  7000. 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(30),math.rad(0)),.2)
  7001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7002. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7003. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7004. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7005. end
  7006. local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
  7007. hitb.Anchored = true
  7008. hitb.CFrame = root.CFrame + root.CFrame.lookVector*8
  7009. hitb.CFrame = hitb.CFrame*CFrame.new(0,1,0)
  7010. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7011. sphere2(5,"Add",hitb.CFrame,vt(2.1,2.1,2),-0.02,-0.02,5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7012. sphere2(5,"Add",hitb.CFrame,vt(2,2,2),-0.02,-0.02,4,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7013. for i = 0, 24 do
  7014. slash(math.random(20,100)/10,5,true,"Round","Add","Out",hitb.CFrame*CFrame.new(0,0,math.random(-60,60))*CFrame.Angles(math.rad(90),0,0),vt(0.01,0.01,0.01),math.random(10,100)/1000,BrickColor.new("White"))
  7015. end
  7016. CFuncs["Sound"].Create("rbxassetid://313205954", root, 4,1)
  7017. CFuncs["Sound"].Create("rbxassetid://1368637781", rarmor, 4,1)
  7018. CFuncs["Sound"].Create("rbxassetid://763718160", rarmor, 5, 1.1)
  7019. CFuncs["Sound"].Create("rbxassetid://782353443", rarmor, 6, 1)
  7020. --CFuncs["Sound"].Create("rbxassetid://1548538202", rarmor, 4,1)
  7021. for i = 0, 2, 0.1 do
  7022. swait()
  7023. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7024. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  7025. 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(-20),math.rad(-10)),.9)
  7026. 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(0)),.9)
  7027. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.9)
  7028. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-80)),.9)
  7029. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(70)),.9)
  7030. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-60)),.9)
  7031. end
  7032. hum.CameraOffset = vt(0,0,0)
  7033. hitb:Destroy()
  7034. attack = false
  7035. hum.WalkSpeed = 24
  7036. hum.JumpPower = 50
  7037. end
  7038.  
  7039. function SpinnyBlade()
  7040. attack = true
  7041. hum.WalkSpeed = 1
  7042. hum.JumpPower = 0
  7043. CFuncs["Sound"].Create("rbxassetid://1368583274", root, 4.5, 1)
  7044. local bgui = Instance.new("BillboardGui",root)
  7045. bgui.Size = UDim2.new(25, 0, 25, 0)
  7046. local imgc = Instance.new("ImageLabel",bgui)
  7047. imgc.BackgroundTransparency = 1
  7048. imgc.ImageTransparency = 1
  7049. imgc.Size = UDim2.new(1,0,1,0)
  7050. imgc.Image = "rbxassetid://997291547"
  7051. imgc.ImageColor3 = Color3.new(0,0.5,1)
  7052. local imgc2 = imgc:Clone()
  7053. imgc2.Parent = bgui
  7054. imgc2.Position = UDim2.new(-0.5,0,-0.5,0)
  7055. imgc2.Size = UDim2.new(2,0,2,0)
  7056. imgc2.ImageColor3 = Color3.new(0.5,0,1)
  7057. for i = 0, 10, 0.1 do
  7058. swait()
  7059. imgc.ImageTransparency = imgc.ImageTransparency - 0.01
  7060. imgc.Rotation = imgc.Rotation + 1
  7061. imgc2.ImageTransparency = imgc2.ImageTransparency - 0.01
  7062. imgc2.Rotation = imgc2.Rotation - 1
  7063. bgui.Size = bgui.Size - UDim2.new(0.25, 0, 0.25, 0)
  7064. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.1,0.01,0.1),math.random(25,50)/250,BrickColor.new("White"))
  7065. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7066. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  7067. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7068. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7069. waveEff(5,"Add","In",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(15,0.25,15),-0.075,0.05,BrickColor.new("White"))
  7070. RH.C0=clerp(RH.C0,cf(1,-0.5,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-40),math.rad(10)),.2)
  7071. 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)),.2)
  7072. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.1,0.2,-0.3)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  7073. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  7074. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.65)*angles(math.rad(100),math.rad(0),math.rad(-23)),.3)
  7075. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(110),math.rad(0),math.rad(-85)),.3)
  7076. end
  7077. imgc.ImageTransparency = 1
  7078. hum.CameraOffset = vt(0,0,0)
  7079. waveEff(2,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.8,BrickColor.new("White"))
  7080. waveEff(3,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.4,BrickColor.new("White"))
  7081. waveEff(4,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.2,BrickColor.new("White"))
  7082. waveEff(5,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.1,BrickColor.new("White"))
  7083. waveEff(6,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.05,BrickColor.new("White"))
  7084. for i = 0, 9 do
  7085. slash(math.random(10,25)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,0,math.random(-30,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.1,0.01,0.1),math.random(75,250)/250,BrickColor.new("White"))
  7086. end
  7087. CFuncs["Sound"].Create("rbxassetid://430315987", root, 1.5, 1)
  7088. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 3, 1)
  7089. for x = 0, 14 do
  7090. CFuncs["Sound"].Create("rbxassetid://200633281", rarmor, 1, 1.05)
  7091. CFuncs["Sound"].Create("rbxassetid://161006195", rarmor, 1.5, 1.025)
  7092. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7093. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7094. slash(5,5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7095. for i = 0, 1, 0.6 do
  7096. swait()
  7097. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7098. root.CFrame = root.CFrame + root.CFrame.lookVector*2
  7099. root.Velocity = vt(0,0,0)
  7100. 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(0)),.2)
  7101. 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(0)),.2)
  7102. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7103. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7104. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7105. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7106. end
  7107. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7108. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7109. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7110. for i = 0, 1, 0.6 do
  7111. swait()
  7112. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7113. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7114. root.Velocity = vt(0,0,0)
  7115. 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(0)),.2)
  7116. 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(0)),.2)
  7117. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7118. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7119. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7120. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7121. end
  7122. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7123. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7124. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7125. for i = 0, 1, 0.6 do
  7126. swait()
  7127. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7128. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7129. root.Velocity = vt(0,0,0)
  7130. 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(0)),.2)
  7131. 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(0)),.2)
  7132. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(180),math.rad(0),math.rad(90)),.3)
  7133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7134. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7135. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7136. end
  7137. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7138. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7139. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7140. for i = 0, 1, 0.6 do
  7141. swait()
  7142. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7143. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7144. root.Velocity = vt(0,0,0)
  7145. 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(0)),.2)
  7146. 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(0)),.2)
  7147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(270),math.rad(0),math.rad(90)),.3)
  7148. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7149. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7150. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7151. end
  7152. end
  7153. hum.WalkSpeed = 0
  7154. for i = 0, 5, 0.1 do
  7155. swait()
  7156. 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(-20)),.2)
  7157. LH.C0=clerp(LH.C0,cf(-1,-0.6,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-12)),.2)
  7158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.1,0.2,-0.35)*angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  7159. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(40)),.2)
  7160. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(110)),.2)
  7161. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(-20)),.2)
  7162. end
  7163. bgui:Destroy()
  7164. attack = false
  7165. hum.WalkSpeed = 24
  7166. hum.JumpPower = 50
  7167. end
  7168. end
  7169.  
  7170. function GleamingBeam()
  7171. attack = true
  7172. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7173. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7174. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7175. local rsiz = math.random(1,15)
  7176. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7177. hb.Anchored = true
  7178. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7179. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7180. for i = 0, 16, 0.1 do
  7181. swait()
  7182. rsiz = math.random(5,15)
  7183. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7184. 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)
  7185. 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)
  7186. 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)
  7187. 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)
  7188. 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)
  7189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7191. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7192. end
  7193. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7194. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7195. for i = 0, 2 do
  7196. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7197. end
  7198. 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)
  7199. 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)
  7200. 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)
  7201. for i = 0, 49 do
  7202. local rsiza = math.random(1,15)
  7203. 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)
  7204. end
  7205. local a = Instance.new("Part",Character)
  7206. a.Name = "Direction"
  7207. a.Anchored = true
  7208. a.BrickColor = MAINRUINCOLOR
  7209. a.Material = "Neon"
  7210. a.Transparency = 0
  7211. a.Shape = "Cylinder"
  7212. a.CanCollide = false
  7213. local ba = Instance.new("Part",Character)
  7214. ba.Name = "HitDirect"
  7215. ba.Anchored = true
  7216. ba.BrickColor = bc("Cool yellow")
  7217. ba.Material = "Neon"
  7218. ba.Transparency = 1
  7219. ba.CanCollide = false
  7220. local ray = Ray.new(
  7221. hb.CFrame.p, -- origin
  7222. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7223. )
  7224. local ignore = Character
  7225. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7226. a.BottomSurface = 10
  7227. a.TopSurface = 10
  7228. local distance = (hb.CFrame.p - position).magnitude
  7229. a.Size = Vector3.new(distance, 1, 1)
  7230. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7231. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7232. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7233. local msh = Instance.new("SpecialMesh",a)
  7234. msh.MeshType = "Cylinder"
  7235. msh.Scale = vt(1,4,4)
  7236. game:GetService("Debris"):AddItem(a, 30)
  7237. game:GetService("Debris"):AddItem(ba, 30)
  7238. for i = 0, 25, 0.1 do
  7239. swait()
  7240. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7241. ray = Ray.new(
  7242. hb.CFrame.p, -- origin
  7243. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7244. )
  7245. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7246. distance = (hb.CFrame.p - position).magnitude
  7247. a.Size = Vector3.new(distance, 1, 1)
  7248. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7249. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7250. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7251. rsiz = math.random(5,25)
  7252. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7253. 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)
  7254. for c = 0, 2 do
  7255. 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)
  7256. end
  7257. 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)
  7258. 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)
  7259. 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)
  7260. 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)
  7261. 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)
  7262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7263. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7264. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7265. end
  7266. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7267. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7268. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7269. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7270. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7271. 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)
  7272. 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)
  7273. 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)
  7274. 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)
  7275. 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)
  7276. 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)
  7277. for i = 0, 49 do
  7278. local rsiza = math.random(1,15)
  7279. 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)
  7280. end
  7281. for i = 0, 49 do
  7282. rsiz = math.random(1,8)
  7283. 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)
  7284. end
  7285. coroutine.resume(coroutine.create(function()
  7286. for i = 0, 99 do
  7287. swait()
  7288. a.Transparency = a.Transparency + 0.01
  7289. end
  7290. a:Destroy()
  7291. ba:Destroy()
  7292. end))
  7293. hb:Destroy()
  7294. attack = false
  7295. end
  7296.  
  7297. function SHDTwist()
  7298. attack = true
  7299. hum.WalkSpeed = 2
  7300. local radm = math.random(1,4)
  7301. if radm == 1 then
  7302. bosschatfunc("YOU FOOL!",MAINRUINCOLOR.Color,1)
  7303. elseif radm == 2 then
  7304. bosschatfunc("SUBMIT TO ME!",MAINRUINCOLOR.Color,1)
  7305. elseif radm == 3 then
  7306. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  7307. elseif radm == 4 then
  7308. bosschatfunc("YOU DARE FIGHT ME?",MAINRUINCOLOR.Color,1)
  7309. end
  7310. CFuncs["EchoSound"].Create("rbxassetid://1448033299", rarm, 1.5,1.25)
  7311. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1.5,1.25)
  7312. local obj1 = script.chring2:Clone()
  7313. obj1.Parent = char
  7314. obj1.Transparency = 1
  7315. obj1.Size = vt(1,1,1)
  7316. obj1.Color = BrickColor.new("Pink").Color
  7317. local obj2 = script.spball:Clone()
  7318. obj2.Parent = char
  7319. obj2.Transparency = 1
  7320. obj2.Size = vt(1,1,1)
  7321. obj2.Color = MAINRUINCOLOR.Color
  7322. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7323. cfor.Anchored = true
  7324. cfor.CFrame = obj2.CFrame
  7325. local cef = Instance.new("ParticleEmitter",cfor)
  7326. cef.Texture = "rbxassetid://2344870656"
  7327. cef.LightEmission = 1
  7328. cef.Color = ColorSequence.new(obj2.Color)
  7329. cef.Rate = 150
  7330. cef.Lifetime = NumberRange.new(0.25)
  7331. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  7332. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  7333. cef.Speed = NumberRange.new(0)
  7334. local rval = 0
  7335. local eval = 1
  7336. for i = 0,7,0.1 do
  7337. swait()
  7338. rval = rval + math.random(30,40)
  7339. eval = eval + 0.45
  7340. obj1.Transparency = obj1.Transparency - 0.005
  7341. obj1.Size = obj1.Size + vt(0.3,0.3,0.1)
  7342. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  7343. obj2.Transparency = obj2.Transparency - 0.007
  7344. obj2.Size = obj2.Size + vt(0.15,0.15,0.15)
  7345. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  7346. obj2.CFrame = root.CFrame*CFrame.new(0,1,-7)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  7347. cfor.CFrame = obj2.CFrame
  7348. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7349. sphere2(10,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.15,-0.01,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7350. 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)
  7351. 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)
  7352. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-50)),.3)
  7353. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2 * math.cos(sine / 37)),math.rad(10 + 1 * math.cos(sine / 58)),math.rad(50 + 2 * math.cos(sine / 53))),.3)
  7354. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(10 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(5 + 2 * math.cos(sine / 45))),.3)
  7355. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-50 - 4 * math.cos(sine / 45))),.3)
  7356. end
  7357. cef.Enabled = false
  7358. coroutine.resume(coroutine.create(function()
  7359. for i = 0,49 do
  7360. swait()
  7361. rval = rval + 100
  7362. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  7363. obj2.Transparency = obj2.Transparency + 0.02
  7364. obj2.Size = obj2.Size + vt(5,5,5)
  7365. obj1.Transparency = obj1.Transparency + 0.02
  7366. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  7367. end
  7368. obj1:Destroy()
  7369. obj2:Destroy()
  7370. cfor:Destroy()
  7371. end))
  7372. local lva = 1
  7373. local ica = 0
  7374. local cent = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7375. CFuncs["Sound"].Create("rbxassetid://1177785010", cent, 10, 1)
  7376. cent.CFrame = root.CFrame*CFrame.Angles(0,0,0) + root.CFrame.lookVector*5
  7377. sphere2(2,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7378. sphere2(3,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7379.  
  7380. local a = Instance.new("Part",workspace)
  7381. a.Name = "Direction"
  7382. a.Anchored = true
  7383. a.BrickColor = bc("Bright red")
  7384. a.Material = "Neon"
  7385. a.Transparency = 1
  7386. a.CanCollide = false
  7387. local ray = Ray.new(
  7388. cent.CFrame.p, -- origin
  7389. (mouse.Hit.p - cent.CFrame.p).unit * 500 -- direction
  7390. )
  7391. local ignore = cent
  7392. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7393. a.BottomSurface = 10
  7394. a.TopSurface = 10
  7395. local distance = (cent.CFrame.p - position).magnitude
  7396. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7397. a.CFrame = CFrame.new(cent.CFrame.p, position) * CFrame.new(0, 0, 0)
  7398. cent.CFrame = a.CFrame
  7399. a:Destroy()
  7400. local bv = Instance.new("BodyVelocity")
  7401. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7402. bv.velocity = cent.CFrame.lookVector*0
  7403. bv.Parent = cent
  7404. game:GetService("Debris"):AddItem(cent, 20)
  7405. local hitted = false
  7406. coroutine.resume(coroutine.create(function()
  7407. while true do
  7408. swait(1)
  7409. if hitted == false and cent.Parent ~= nil then
  7410. ica = ica + 4*lva
  7411. lva = lva + 0.1
  7412. bv.velocity = cent.CFrame.lookVector*ica
  7413. sphere2(3,"Add",cent.CFrame,vt(5,5,5),-0.05,-0.05,-0.05,BrickColor.new("Pastel light blue"))
  7414. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,-5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pink"))
  7415. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pastel light blue"))
  7416. elseif hitted == true or cent.Parent == nil then
  7417. break
  7418. end
  7419. end
  7420. end))
  7421. coroutine.resume(coroutine.create(function()
  7422. cent.Touched:connect(function(hit)
  7423. if hitted == false and hit.Parent ~= char then
  7424. hitted = true
  7425. cent.Anchored = true
  7426. CFuncs["Sound"].Create("rbxassetid://782353443", cent, 10, 1)
  7427. CFuncs["Sound"].Create("rbxassetid://1368637781", cent, 8, 1)
  7428. CFuncs["Sound"].Create("rbxassetid://763717897", cent, 5, 1)
  7429. CFuncs["EchoSound"].Create("rbxassetid://1177785010", cent, 8, 1.1,0,10,0.15,0.5,1)
  7430. MagniDamage(cent, 50, 50,99999, 0, "Normal")
  7431. sphere2(2,"Add",cent.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7432. sphere2(3,"Add",cent.CFrame,vt(1,1,1),1.2,1.2,1.2,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7433. for i = 0, 19 do
  7434. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,400)/250,BrickColor.new("Pink"))
  7435. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,300)/250,BrickColor.new("Pastel light blue"))
  7436. end
  7437. coroutine.resume(coroutine.create(function()
  7438. local eff = Instance.new("ParticleEmitter",cent)
  7439. eff.Texture = "rbxassetid://2344870656"
  7440. eff.LightEmission = 1
  7441. eff.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  7442. eff.Rate = 10000000
  7443. eff.Enabled = true
  7444. --eff.EmissionDirection = "Front"
  7445. eff.Lifetime = NumberRange.new(5)
  7446. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,60,0),NumberSequenceKeypoint.new(1,80,0)})
  7447. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7448. eff.Speed = NumberRange.new(350)
  7449. eff.Drag = 5
  7450. eff.Rotation = NumberRange.new(-500,500)
  7451. eff.SpreadAngle = Vector2.new(0,900)
  7452. eff.RotSpeed = NumberRange.new(-500,500)
  7453. local eff2 = eff:Clone()
  7454. eff2.Parent = cent
  7455. eff2.Speed = NumberRange.new(250)
  7456. eff2.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  7457. wait(0.2)
  7458. eff.Enabled = false
  7459. eff2.Enabled = false
  7460. end))
  7461. end
  7462. end)
  7463. end))
  7464. attack = false
  7465. hum.WalkSpeed = storehumanoidWS
  7466. end
  7467.  
  7468. function dragin()
  7469. local targetted = nil
  7470. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7471. targetted = mouse.Target.Parent
  7472. end
  7473. if targetted ~= nil then
  7474. RootPart.CFrame = FaceMouse()[1]
  7475. attack = true
  7476. hum.WalkSpeed = 0
  7477. for x = 0, 1 do
  7478. for i = 0,1,0.5 do
  7479. swait()
  7480. 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)
  7481. 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)
  7482. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7483. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7484. 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)
  7485. 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)
  7486. end
  7487. for i = 0,1,0.5 do
  7488. swait()
  7489. 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)
  7490. 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)
  7491. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  7492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7493. 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)
  7494. 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)
  7495. end
  7496. for i = 0,1,0.5 do
  7497. swait()
  7498. 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)
  7499. 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)
  7500. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  7501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7502. 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)
  7503. 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)
  7504. end
  7505. for i = 0,1,0.5 do
  7506. swait()
  7507. 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)
  7508. 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)
  7509. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7511. 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)
  7512. 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)
  7513. end
  7514. end
  7515. coroutine.resume(coroutine.create(function()
  7516. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  7517. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  7518. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  7519. end))
  7520. local A1 = Instance.new("Attachment",targetted.Head)
  7521. local A2 = Instance.new("Attachment",sorb)
  7522. local Beem = Instance.new("Beam",tors)
  7523. Beem.Attachment0 = A1
  7524. Beem.Attachment1 = A2
  7525. Beem.Texture = "rbxassetid://897585362"
  7526. Beem.LightEmission = 0.75
  7527. Beem.FaceCamera = true
  7528. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  7529. Beem.Width0 = 1
  7530. Beem.Width1 = 1
  7531. Beem.TextureMode = "Wrap"
  7532. Beem.TextureLength = 1
  7533. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7534. 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)
  7535. 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)
  7536. for x = 0, 24 do
  7537. local rsiz = math.random(5,15)
  7538. 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)
  7539. end
  7540.  
  7541. CFuncs["EchoSound"].Create("rbxassetid://131228548", char, 7, 1,0,10,0.15,0.5,1)
  7542. CFuncs["EchoSound"].Create("rbxassetid://131228548", root, 60, 1,0,10,0.15,0.5,1)
  7543. local radm = math.random(1,2)
  7544. if radm == 1 then
  7545. bosschatfunc("GET OVER HERE!",MAINRUINCOLOR.Color,1)
  7546. elseif radm == 2 then
  7547. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  7548. end
  7549. for i = 0,3,0.1 do
  7550. swait()
  7551. coroutine.resume(coroutine.create(function()
  7552. local rsiz = math.random(5,15)
  7553. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7554. 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)
  7555. end))
  7556. 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)
  7557. 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)
  7558. 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)
  7559. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  7560. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  7561. 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)
  7562. 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)
  7563. end
  7564. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  7565. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  7566. local vel = Instance.new("BodyPosition", targetted.Head)
  7567. vel.P = 12500
  7568. vel.D = 1000
  7569. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7570. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  7571. for i = 0,4,0.1 do
  7572. swait()
  7573. coroutine.resume(coroutine.create(function()
  7574. local rsiz = math.random(5,15)
  7575. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7576. 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)
  7577. end))
  7578. 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)
  7579. 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)
  7580. 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)
  7581. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  7582. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  7583. 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)
  7584. 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)
  7585. end
  7586. local visibility = 0
  7587. coroutine.resume(coroutine.create(function()
  7588. for i = 0, 49 do
  7589. swait()
  7590. visibility = visibility + 0.02
  7591. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  7592. end
  7593. Beem:Destroy()
  7594. A1:Destroy()
  7595. A2:Destroy()
  7596. end))
  7597. game:GetService("Debris"):AddItem(vel,0.75)
  7598. attack = false
  7599. hum.WalkSpeed = storehumanoidWS
  7600.  
  7601. end
  7602. end
  7603.  
  7604. function DualGleamingBeam()
  7605. attack = true
  7606. hum.WalkSpeed = 0
  7607. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7608. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7609. local radm = math.random(1,3)
  7610. if radm == 1 then
  7611. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7612. elseif radm == 2 then
  7613. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7614. elseif radm == 3 then
  7615. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7616. end
  7617. local rsiz = math.random(1,15)
  7618. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7619. hb.Anchored = true
  7620. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7621. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7622. hb2.Anchored = true
  7623. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7624. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7625. CFuncs["Sound"].Create("rbxassetid://138677306", sorb, 8,0.25)
  7626. for i = 0, 14, 0.1 do
  7627. swait()
  7628. rsiz = math.random(5,15)
  7629. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7630. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7631. 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)
  7632. 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)
  7633. 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)
  7634. 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"))
  7635. 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)
  7636. 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)
  7637. 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)
  7638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7640. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7641. end
  7642. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7643. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7644. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7645. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7646. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7647. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7648. 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)
  7649. 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)
  7650. 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)
  7651. 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"))
  7652. 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"))
  7653. 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"))
  7654. for i = 0, 49 do
  7655. local rsiza = math.random(1,15)
  7656. 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)
  7657. 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)
  7658. end
  7659. local a = Instance.new("Part",Character)
  7660. a.Name = "Direction"
  7661. a.Anchored = true
  7662. a.BrickColor = MAINRUINCOLOR
  7663. a.Material = "Neon"
  7664. a.Transparency = 0
  7665. a.Shape = "Cylinder"
  7666. a.CanCollide = false
  7667. local a2 = Instance.new("Part",Character)
  7668. a2.Name = "Direction"
  7669. a2.Anchored = true
  7670. a2.BrickColor = MAINRUINCOLOR
  7671. a2.Material = "Neon"
  7672. a2.Transparency = 0
  7673. a2.Shape = "Cylinder"
  7674. a2.CanCollide = false
  7675. local ba = Instance.new("Part",Character)
  7676. ba.Name = "HitDirect"
  7677. ba.Anchored = true
  7678. ba.BrickColor = MAINRUINCOLOR
  7679. ba.Material = "Neon"
  7680. ba.Transparency = 1
  7681. ba.CanCollide = false
  7682. local ba2 = Instance.new("Part",Character)
  7683. ba2.Name = "HitDirect"
  7684. ba2.Anchored = true
  7685. ba2.BrickColor = MAINRUINCOLOR
  7686. ba2.Material = "Neon"
  7687. ba2.Transparency = 1
  7688. ba2.CanCollide = false
  7689. local ray = Ray.new(
  7690. hb.CFrame.p, -- origin
  7691. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7692. )
  7693. local ignore = Character
  7694. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7695. local ray2 = Ray.new(
  7696. hb2.CFrame.p, -- origin
  7697. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7698. )
  7699. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7700. local distance2 = (hb2.CFrame.p - position).magnitude
  7701.  
  7702. a.BottomSurface = 10
  7703. a.TopSurface = 10
  7704. local distance = (hb.CFrame.p - position).magnitude
  7705. a.Size = Vector3.new(distance, 1, 1)
  7706. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7707. a2.BottomSurface = 10
  7708. a2.TopSurface = 10
  7709. a2.Size = Vector3.new(distance2, 1, 1)
  7710. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7711. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7712. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7713. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7714. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7715. local msh = Instance.new("SpecialMesh",a)
  7716. msh.MeshType = "Cylinder"
  7717. msh.Scale = vt(1,4,4)
  7718. local msh2 = Instance.new("SpecialMesh",a2)
  7719. msh2.MeshType = "Cylinder"
  7720. msh2.Scale = vt(1,4,4)
  7721. game:GetService("Debris"):AddItem(a, 30)
  7722. game:GetService("Debris"):AddItem(a2, 30)
  7723. game:GetService("Debris"):AddItem(ba, 30)
  7724. game:GetService("Debris"):AddItem(ba2, 30)
  7725. for i = 0, 20, 0.1 do
  7726. swait()
  7727. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7728. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7729. ray = Ray.new(
  7730. hb.CFrame.p, -- origin
  7731. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7732. )
  7733. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7734. distance = (hb.CFrame.p - position).magnitude
  7735. ray2 = Ray.new(
  7736. hb2.CFrame.p, -- origin
  7737. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7738. )
  7739. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7740. distance2 = (hb2.CFrame.p - position).magnitude
  7741. a.Size = Vector3.new(distance, 1, 1)
  7742. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7743. a2.Size = Vector3.new(distance2, 1, 1)
  7744. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7745. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7746. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7747. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7748. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7749. rsiz = math.random(5,25)
  7750. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  7751. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  7752. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  7753. if v:FindFirstChild('Head') then
  7754. dmg(v)
  7755. end
  7756. end
  7757. coroutine.resume(coroutine.create(function()
  7758. local bx = Instance.new("Part",Character)
  7759. bx.Name = "Location"
  7760. bx.Anchored = true
  7761. bx.BrickColor = MAINRUINCOLOR
  7762. bx.Material = "Neon"
  7763. bx.Transparency = 1
  7764. bx.CanCollide = false
  7765. bx.Position = ba.Position
  7766. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  7767. wait(math.random(1,2))
  7768. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  7769. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  7770. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  7771. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  7772. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  7773. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  7774. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  7775. if v:FindFirstChild('Head') then
  7776. dmg(v)
  7777. end
  7778. end
  7779. wait(5)
  7780. bx:Destroy()
  7781. end))
  7782. 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)
  7783. 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)
  7784. for c = 0, 2 do
  7785. 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)
  7786. end
  7787. 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)
  7788. 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)
  7789. 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)
  7790. 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)
  7791. 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)
  7792. 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)
  7793. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  7794. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  7795. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  7796. end
  7797. for i = 0, 1 do
  7798. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7799. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7800. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7801. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7802. end
  7803. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  7804. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  7805. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  7806. if v:FindFirstChild('Head') then
  7807. dmg(v)
  7808. end
  7809. end
  7810. 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)
  7811. 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)
  7812. 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)
  7813. 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)
  7814. 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)
  7815. 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)
  7816. 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"))
  7817. 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"))
  7818. 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"))
  7819. for i = 0, 49 do
  7820. local rsiza = math.random(1,15)
  7821. 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)
  7822. 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)
  7823. end
  7824. for i = 0, 49 do
  7825. rsiz = math.random(1,8)
  7826. 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)
  7827. end
  7828. coroutine.resume(coroutine.create(function()
  7829. for i = 0, 99 do
  7830. swait()
  7831. a.Transparency = a.Transparency + 0.01
  7832. a2.Transparency = a2.Transparency + 0.01
  7833. end
  7834. a:Destroy()
  7835. ba:Destroy()
  7836. a2:Destroy()
  7837. ba2:Destroy()
  7838. end))
  7839. hum.WalkSpeed = storehumanoidWS
  7840. hb:Destroy()
  7841. hb2:Destroy()
  7842. attack = false
  7843. end
  7844.  
  7845. function Counter()
  7846. hum.WalkSpeed = 0
  7847. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  7848. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  7849. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  7850. attack = true
  7851. for i = 0,1,0.1 do
  7852. swait()
  7853. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  7854. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  7855. 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)
  7856. 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)
  7857. 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)
  7858. 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)
  7859. end
  7860. CameraEnshaking(3,4)
  7861. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  7862. 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)
  7863. 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)
  7864. 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)
  7865. coroutine.resume(coroutine.create(function()
  7866. local eff = Instance.new("ParticleEmitter",root)
  7867. eff.Texture = "rbxassetid://363275192"
  7868. eff.LightEmission = 0.95
  7869. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7870. eff.Rate = 10000
  7871. eff.Lifetime = NumberRange.new(1)
  7872. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  7873. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7874. eff.Speed = NumberRange.new(10,125)
  7875. eff.Drag = 5
  7876. eff.Rotation = NumberRange.new(-500,500)
  7877. eff.VelocitySpread = 9000
  7878. eff.RotSpeed = NumberRange.new(-50,50)
  7879. local eff2 = eff:Clone()
  7880. eff2.Parent = root
  7881. eff2.Texture = "rbxassetid://284205403"
  7882. eff2.Rate = 10000
  7883. 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)})
  7884. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7885. eff2.Drag = 5
  7886. eff2.Speed = NumberRange.new(10,50)
  7887. eff2.Rotation = NumberRange.new(-500,500)
  7888. eff2.VelocitySpread = 9000
  7889. wait(0.25)
  7890. eff2.Enabled = false
  7891. eff.Enabled = false
  7892. wait(3)
  7893. eff2:Destroy()
  7894. eff:Destroy()
  7895. end))
  7896. for i = 0, 9 do
  7897. 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)
  7898. end
  7899. for i = 0, 24 do
  7900. local rsiz = math.random(5,20)
  7901. 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)
  7902. end
  7903. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  7904. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  7905. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  7906. for i = 0,2,0.1 do
  7907. swait()
  7908. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  7909. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  7910. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  7911. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  7912. 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)
  7913. 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)
  7914. end
  7915. hum.WalkSpeed = storehumanoidWS
  7916. attack = false
  7917. end
  7918.  
  7919. function CyberSlash()
  7920. local posit = -2
  7921. attack = true
  7922. hum.WalkSpeed = 5
  7923. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  7924. local radm = math.random(1,3)
  7925. if radm == 1 then
  7926. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  7927. elseif radm == 2 then
  7928. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  7929. elseif radm == 3 then
  7930. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  7931. end
  7932. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  7933. for i = 0,2,0.1 do
  7934. swait()
  7935. 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)
  7936. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  7937. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  7938. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  7939. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  7940. 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)
  7941. 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)
  7942. end
  7943. for i = 0, 2 do
  7944. CameraEnshaking(1,2)
  7945. local hite = Instance.new("Part", char)
  7946. hite.Anchored = true
  7947. hite.CanCollide = false
  7948. hite.FormFactor = 3
  7949. hite.Name = "Ring"
  7950. hite.Material = "Neon"
  7951. hite.Size = Vector3.new(1, 1, 1)
  7952. hite.Transparency = 1
  7953. hite.TopSurface = 0
  7954. hite.BottomSurface = 0
  7955. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  7956. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  7957. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  7958. coroutine.resume(coroutine.create(function()
  7959. for i = 0, 1 do
  7960. swait()
  7961. 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)
  7962. 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)
  7963. 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)
  7964. end
  7965. end))
  7966. 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)
  7967. MagniDamage(hite, 3, 30,40, 0, "Normal")
  7968. game:GetService("Debris"):AddItem(hite, 5)
  7969. posit = posit + 2
  7970. end
  7971. for i = 0,1,0.1 do
  7972. swait()
  7973. 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)
  7974. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  7975. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  7976. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  7977. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  7978. 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)
  7979. 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)
  7980. end
  7981. for i = 0,1,0.1 do
  7982. swait()
  7983. 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)
  7984. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  7985. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  7986. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  7987. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  7988. 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)
  7989. 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)
  7990. end
  7991. posit = -6
  7992. for i = 0, 6 do
  7993. CameraEnshaking(1,3)
  7994. local hite = Instance.new("Part", char)
  7995. hite.Anchored = true
  7996. hite.CanCollide = false
  7997. hite.FormFactor = 3
  7998. hite.Name = "Ring"
  7999. hite.Material = "Neon"
  8000. hite.Size = Vector3.new(1, 1, 1)
  8001. hite.Transparency = 1
  8002. hite.TopSurface = 0
  8003. hite.BottomSurface = 0
  8004. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  8005. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  8006. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  8007. 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)
  8008. coroutine.resume(coroutine.create(function()
  8009. for i = 0, 2 do
  8010. swait()
  8011. 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)
  8012. 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)
  8013. 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)
  8014. end
  8015. end))
  8016. MagniDamage(hite, 5, 40,70, 0, "Normal")
  8017. game:GetService("Debris"):AddItem(hite, 5)
  8018. posit = posit + 2
  8019. end
  8020. for i = 0,1,0.1 do
  8021. swait()
  8022. 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)
  8023. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  8024. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  8025. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  8026. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  8027. 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)
  8028. 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)
  8029. end
  8030. hum.WalkSpeed = storehumanoidWS
  8031. attack = false
  8032. end
  8033.  
  8034. function Beams()
  8035. attack = true
  8036. hum.WalkSpeed = 0
  8037. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  8038. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  8039. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  8040. local keptcolor = MAINRUINCOLOR
  8041. coroutine.resume(coroutine.create(function()
  8042. for i = 0, 96 do
  8043. swait(5)
  8044. local orb = Instance.new("Part", char)
  8045. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  8046. orb.BrickColor = keptcolor
  8047. orb.CanCollide = false
  8048. orb.FormFactor = 3
  8049. orb.Name = "Ring"
  8050. orb.Material = "Neon"
  8051. orb.Size = Vector3.new(1, 1, 1)
  8052. orb.Transparency = 0
  8053. orb.TopSurface = 0
  8054. orb.BottomSurface = 0
  8055. orb.Anchored = true
  8056. local orbm = Instance.new("SpecialMesh", orb)
  8057. orbm.MeshType = "Sphere"
  8058. orbm.Name = "SizeMesh"
  8059. orbm.Scale = vt(1.25,1.25,1.25)
  8060. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  8061. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8062. coroutine.resume(coroutine.create(function()
  8063. wait(0.5)
  8064. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  8065. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8066. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8067. orb.Transparency = 1
  8068. local a = Instance.new("Part",char)
  8069. a.Name = "Direction"
  8070. a.Anchored = true
  8071. a.BrickColor = keptcolor
  8072. a.Material = "Neon"
  8073. a.Transparency = 0.25
  8074. a.Shape = "Cylinder"
  8075. local ht = Instance.new("Part",char)
  8076. ht.Name = "DirectionHit"
  8077. ht.Anchored = true
  8078. ht.BrickColor = keptcolor
  8079. ht.CanCollide = false
  8080. ht.Transparency = 1
  8081. ht.Size = vt(0.1,0.1,0.1)
  8082. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  8083. a.CanCollide = false
  8084. local ray = Ray.new(
  8085. orb.CFrame.p, -- origin
  8086. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  8087. )
  8088. local ignore = char
  8089. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8090. a.BottomSurface = 10
  8091. a.TopSurface = 10
  8092. local distance = (orb.CFrame.p - position).magnitude
  8093. a.Size = Vector3.new(distance,1,1)
  8094. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8095. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8096. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  8097. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  8098. MagniDamage(ht, 9, 30,60, 0, "Normal")
  8099. coroutine.resume(coroutine.create(function()
  8100. local eff = Instance.new("ParticleEmitter",ht)
  8101. eff.Texture = "rbxassetid://284205403"
  8102. eff.LightEmission = 0.95
  8103. eff.Color = ColorSequence.new(keptcolor.Color)
  8104. eff.Rate = 500
  8105. eff.Lifetime = NumberRange.new(0.5)
  8106. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  8107. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8108. eff.Speed = NumberRange.new(10,50)
  8109. eff.Drag = 5
  8110. eff.Rotation = NumberRange.new(-500,500)
  8111. eff.VelocitySpread = 9000
  8112. eff.RotSpeed = NumberRange.new(-500,500)
  8113. wait(0.25)
  8114. eff.Enabled = false
  8115. end))
  8116. for i = 0, 4 do
  8117. 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)
  8118. 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)
  8119. local rsiz = math.random(10,30)
  8120. 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)
  8121. end
  8122. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8123. local msh = Instance.new("SpecialMesh",a)
  8124. msh.MeshType = "Cylinder"
  8125. msh.Scale = vt(1,1,1)
  8126. for i = 0, 49 do
  8127. swait()
  8128. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  8129. a.Transparency = a.Transparency + 0.02
  8130. end
  8131. orb:Destroy()
  8132. a:Destroy()
  8133. ht:Destroy()
  8134. end))
  8135. game:GetService("Debris"):AddItem(orb, 10)
  8136. end
  8137. end))
  8138. for i = 0,6,0.1 do
  8139. swait()
  8140. 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)
  8141. 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)
  8142. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  8143. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  8144. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  8145. 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)
  8146. 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)
  8147. end
  8148. hum.WalkSpeed = storehumanoidWS
  8149. attack = false
  8150. end
  8151.  
  8152. function hugg()
  8153. attack = true
  8154. hum.WalkSpeed = 5
  8155. local rsiz = math.random(5,15)
  8156. for i = 0, 2, 0.1 do
  8157. swait()
  8158. 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)
  8159. 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)
  8160. 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)
  8161. 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)
  8162. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8163. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8164. end
  8165. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8166. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8167. hb.Anchored = true
  8168. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8169. local huggedperson = nil
  8170. local act = false
  8171. local alreadydid = false
  8172. for i = 0, 3, 0.1 do
  8173. swait()
  8174. if act == false then
  8175. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8176. if v:FindFirstChild('Head') then
  8177. if alreadydid == false then
  8178. huggedperson = v
  8179. hum.WalkSpeed = 0
  8180. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8181. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8182. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8183. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8184. local radm = math.random(1,3)
  8185. if radm == 1 then
  8186. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8187. elseif radm == 2 then
  8188. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8189. elseif radm == 3 then
  8190. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8191. end
  8192. root.Anchored = true
  8193. coroutine.resume(coroutine.create(function()
  8194. huggedperson.Humanoid.WalkSpeed = 0
  8195. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8196. end))
  8197. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8198. alreadydid = true
  8199. act = true
  8200. print(huggedperson.Name)
  8201. end
  8202. end
  8203. end
  8204. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8205. 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)
  8206. elseif act == true then
  8207. coroutine.resume(coroutine.create(function()
  8208. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8209. end))
  8210. rsiz = math.random(5,15)
  8211. 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)
  8212. 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)
  8213. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8214. end
  8215. 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)
  8216. 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)
  8217. 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)
  8218. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8219. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8220. end
  8221. hb:Destroy()
  8222. if act == true then
  8223. for x = 0, 2 do
  8224. for i = 0, 2, 0.1 do
  8225. swait()
  8226. coroutine.resume(coroutine.create(function()
  8227. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8228. end))
  8229. rsiz = math.random(5,15)
  8230. 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)
  8231. 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)
  8232. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8233. 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)
  8234. 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)
  8235. 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)
  8236. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8237. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8238. end
  8239. for i = 0, 2, 0.1 do
  8240. swait()
  8241. coroutine.resume(coroutine.create(function()
  8242. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8243. end))
  8244. rsiz = math.random(5,15)
  8245. 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)
  8246. 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)
  8247. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8248. 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)
  8249. 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)
  8250. 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)
  8251. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8252. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8253. end
  8254. end
  8255. end
  8256. hum.WalkSpeed = storehumanoidWS
  8257. root.Anchored = false
  8258. if act == true then
  8259. coroutine.resume(coroutine.create(function()
  8260. huggedperson.Humanoid.WalkSpeed = 16
  8261. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8262. end))
  8263. end
  8264. hum.WalkSpeed = storehumanoidWS
  8265. attack = false
  8266. end
  8267.  
  8268. function shytaunty()
  8269. attack = true
  8270. hum.WalkSpeed = 0
  8271. bosschatfunc("*Blushes and giggles*",MAINRUINCOLOR.Color,1)
  8272. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  8273. local blush = Instance.new("Decal",hed)
  8274. blush.Texture = "rbxassetid://898404027"
  8275. blush.Face = "Front"
  8276. for i = 0, 13, 0.1 do
  8277. swait()
  8278. 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)
  8279. 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)
  8280. 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)
  8281. 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)
  8282. 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)
  8283. 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)
  8284. end
  8285. coroutine.resume(coroutine.create(function()
  8286. for i = 0, 49 do
  8287. swait()
  8288. blush.Transparency = blush.Transparency + 0.02
  8289. end
  8290. blush:Destroy()
  8291. end))
  8292. hum.WalkSpeed = storehumanoidWS
  8293. attack = false
  8294. end
  8295.  
  8296. function smiter()
  8297. local targetted = nil
  8298. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8299. targetted = mouse.Target.Parent
  8300. end
  8301. if targetted ~= nil then
  8302. RootPart.CFrame = FaceMouse()[1]
  8303. attack = true
  8304. local radm = math.random(1,3)
  8305. if radm == 1 then
  8306. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  8307. elseif radm == 2 then
  8308. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  8309. elseif radm == 3 then
  8310. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  8311. end
  8312. hum.WalkSpeed = 0
  8313. coroutine.resume(coroutine.create(function()
  8314. CFuncs["Sound"].Create("rbxassetid://2556945475", char, 1.5, 1)
  8315. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  8316. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  8317. local vel = Instance.new("BodyPosition", targetted.Head)
  8318. vel.P = 12500
  8319. vel.D = 1000
  8320. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8321. vel.position = targetted.Head.CFrame.p
  8322. end))
  8323. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  8324. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  8325. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  8326. for i = 0,4,0.1 do
  8327. swait()
  8328. 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)
  8329. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8330. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8331. 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)
  8332. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8333. 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)
  8334. 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)
  8335. end
  8336. coroutine.resume(coroutine.create(function()
  8337. CameraEnshaking(6,5)
  8338. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  8339. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  8340. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  8341. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  8342. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  8343. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  8344. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  8345. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  8346. coroutine.resume(coroutine.create(function()
  8347. local eff = Instance.new("ParticleEmitter",targetted.Head)
  8348. eff.Texture = "rbxassetid://2273224484"
  8349. eff.LightEmission = 1
  8350. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  8351. eff.Rate = 500000
  8352. eff.Lifetime = NumberRange.new(0.5,2)
  8353. 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)})
  8354. 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)})
  8355. eff.Speed = NumberRange.new(20,250)
  8356. eff.Drag = 5
  8357. eff.Rotation = NumberRange.new(-500,500)
  8358. eff.VelocitySpread = 9000
  8359. eff.RotSpeed = NumberRange.new(-50,50)
  8360. wait(0.25)
  8361. eff.Enabled = false
  8362. local eff = Instance.new("ParticleEmitter",targetted.Head)
  8363. eff.Texture = "rbxassetid://363275192"
  8364. eff.LightEmission = 0.95
  8365. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8366. eff.Rate = 10000
  8367. eff.Lifetime = NumberRange.new(1.5)
  8368. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  8369. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8370. eff.Speed = NumberRange.new(25,150)
  8371. eff.Drag = 5
  8372. eff.Rotation = NumberRange.new(-500,500)
  8373. eff.VelocitySpread = 9000
  8374. eff.RotSpeed = NumberRange.new(-50,50)
  8375. local eff2 = eff:Clone()
  8376. eff2.Parent = targetted.Head
  8377. eff2.Texture = "rbxassetid://284205403"
  8378. eff2.Rate = 10000
  8379. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8380. eff2.Drag = 5
  8381. eff2.Rotation = NumberRange.new(-500,500)
  8382. eff2.VelocitySpread = 9000
  8383. wait(0.5)
  8384. eff2.Enabled = false
  8385. eff.Enabled = false
  8386. end))
  8387. for i = 0, 9 do
  8388. 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)
  8389. end
  8390. for i = 0, 49 do
  8391. local rsiz = math.random(10,50)
  8392. 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)
  8393. end
  8394. game:GetService("Debris"):AddItem(vel,1)
  8395. dmg(targetted)
  8396. end))
  8397. for i = 0,1,0.1 do
  8398. swait()
  8399. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  8400. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  8401. 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)
  8402. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8403. 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)
  8404. 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)
  8405. end
  8406. attack = false
  8407. hum.WalkSpeed = storehumanoidWS
  8408. end
  8409.  
  8410. function SpeedDrop()
  8411. attack = true
  8412. hum.WalkSpeed = 0
  8413. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  8414. local poste = 3
  8415. local rotation = 0
  8416. local rate = 0
  8417. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  8418. for i = 0, 124 do
  8419. swait()
  8420. rotation = rotation + rate
  8421. poste = poste + 0.1
  8422. rate = rate + 0.1
  8423. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  8424. 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)
  8425. 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)
  8426. 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)
  8427. 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)
  8428. 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)
  8429. 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)
  8430. 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)
  8431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  8432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  8433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  8434. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  8435. end
  8436. CameraEnshaking(3,7)
  8437. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  8438. local loc = Instance.new("Part", char)
  8439. loc.BrickColor = MAINRUINCOLOR
  8440. loc.CanCollide = false
  8441. loc.FormFactor = 3
  8442. loc.Name = "Ring"
  8443. loc.Material = "Neon"
  8444. loc.Size = Vector3.new(1, 1, 1)
  8445. loc.Transparency = 1
  8446. loc.TopSurface = 0
  8447. loc.BottomSurface = 0
  8448. loc.Anchored = true
  8449. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  8450. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  8451. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  8452. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  8453. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  8454. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8455. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8456. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8457. coroutine.resume(coroutine.create(function()
  8458. local eff = Instance.new("ParticleEmitter",loc)
  8459. eff.Texture = "rbxassetid://363275192"
  8460. eff.LightEmission = 0.95
  8461. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8462. eff.Rate = 10000
  8463. eff.Lifetime = NumberRange.new(1)
  8464. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  8465. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8466. eff.Speed = NumberRange.new(100,500)
  8467. eff.Drag = 5
  8468. eff.Rotation = NumberRange.new(-500,500)
  8469. eff.VelocitySpread = 9000
  8470. eff.RotSpeed = NumberRange.new(-50,50)
  8471. wait(0.5)
  8472. eff.Enabled = false
  8473. end))
  8474. for i = 0, 49 do
  8475. 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)
  8476. end
  8477. for i = 0, 9 do
  8478. 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)
  8479. end
  8480. game:GetService("Debris"):AddItem(loc, 5)
  8481. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  8482. hum.WalkSpeed = storehumanoidWS
  8483. attack = false
  8484. end
  8485.  
  8486. function HolyBarrier()
  8487. attack = true
  8488. shielding = true
  8489. for i = 0, 2, 0.1 do
  8490. swait()
  8491. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  8492. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  8493. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  8494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  8495. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  8496. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  8497. end
  8498. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  8499. stash = Instance.new("Model",workspace)
  8500. local barrier = Instance.new("Part",stash)
  8501. barrier.Anchored = true
  8502. barrier.CanCollide = false
  8503. barrier.Size = Vector3.new(20,20,20)
  8504. barrier.CFrame = root.CFrame
  8505. barrier.Transparency = 0.6
  8506. barrier.BrickColor = MAINRUINCOLOR
  8507. barrier.Material = Enum.Material.Neon
  8508. barrier.Shape = Enum.PartType.Ball
  8509. barrier.CFrame = root.CFrame
  8510. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  8511. Torso.Anchored = true
  8512. for i=1,50 do
  8513. local p = Instance.new("Part",stash)
  8514. p.Anchored = true
  8515. p.Transparency = 1
  8516. p.Size = Vector3.new(11,11,11)
  8517. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  8518. end
  8519. repeat
  8520. swait(5)
  8521. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  8522. until shielding == false
  8523. stash:Remove()
  8524. Torso.Anchored = false
  8525. shielding = false
  8526. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  8527. attack = false
  8528. end
  8529.  
  8530. function Judgement()
  8531. attack = true
  8532. judgement = true
  8533. hum.WalkSpeed = 0
  8534. local p = Instance.new("Part",root)
  8535. p.Anchored = true
  8536. p.CanCollide = false
  8537. p.BrickColor = MAINRUINCOLOR
  8538. p.Material = Enum.Material.Neon
  8539. p.Size = Vector3.new(1,1,1)
  8540. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8541. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8542. local m = Instance.new("SpecialMesh",p)
  8543. m.MeshType = "Cylinder"
  8544. m.Scale = Vector3.new(2000,2,2)
  8545. local targ = Instance.new("Part",root)
  8546. targ.Anchored = true
  8547. targ.Transparency = 1
  8548. targ.CanCollide = false
  8549. targ.Size = Vector3.new(1,1,1)
  8550. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8551. local s = Instance.new("Sound",targ)
  8552. s.SoundId = "https://roblox.com/asset/?id=115327352"
  8553. s.Looped = true
  8554. s.Pitch = 1.2
  8555. s.Volume = 3
  8556. spawn(function()
  8557. swait(15)
  8558. s:Play()
  8559. end)
  8560. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  8561. for i = 1,15 do
  8562. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8563. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  8564. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  8565. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  8566. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  8567. 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(-20)),.2)
  8568. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  8569. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  8570. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  8571. m.Scale = m.Scale+Vector3.new(0,1,1)
  8572. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8573. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8574. swait()
  8575. end
  8576. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  8577. repeat
  8578. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8579. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  8580. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  8581. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8582. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8583. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  8584. swait()
  8585. until judgement == false
  8586. for i =1,15 do
  8587. m.Scale = m.Scale-Vector3.new(1,1,1)
  8588. p.Transparency = i / 15
  8589. s.Pitch = s.Pitch - 0.4
  8590. swait()
  8591. end
  8592. p:Destroy()
  8593. hum.WalkSpeed = storehumanoidWS
  8594. attack = false
  8595. end
  8596.  
  8597. function vistaunty()
  8598. attack = true
  8599. hum.WalkSpeed = 0
  8600. local rd = math.random(1,5)
  8601. if rd == 1 then
  8602. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8603. elseif rd == 2 then
  8604. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8605. elseif rd == 3 then
  8606. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8607. elseif rd == 4 then
  8608. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8609. elseif rd == 5 then
  8610. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8611. end
  8612. for i = 0, 8, 0.1 do
  8613. swait()
  8614. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  8615. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  8616. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  8617. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  8618. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  8619. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  8620. end
  8621. hum.WalkSpeed = storehumanoidWS
  8622. attack = false
  8623. end
  8624.  
  8625. function BinaryBLINK()
  8626. for i = 0, 9 do
  8627. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8628. end
  8629. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8630. coroutine.resume(coroutine.create(function()
  8631. local eff = Instance.new("ParticleEmitter",root)
  8632. eff.Texture = "rbxassetid://1175838406"
  8633. eff.LightEmission = 0.95
  8634. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8635. eff.Rate = 10000
  8636. eff.Lifetime = NumberRange.new(1)
  8637. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  8638. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8639. eff.Speed = NumberRange.new(30,160)
  8640. eff.Drag = 5
  8641. eff.Rotation = NumberRange.new(-500,500)
  8642. eff.VelocitySpread = 100000
  8643. wait(0.25)
  8644. eff.Enabled = false
  8645. wait(4)
  8646. eff:Destroy()
  8647. end))
  8648. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  8649. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  8650. CameraEnshaking(2,10)
  8651. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  8652. if v:FindFirstChild('Head') then
  8653. dmg(v)
  8654. end
  8655. end
  8656. for i = 0, 9 do
  8657. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8658. end
  8659. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8660. end
  8661.  
  8662. function AZUREFINALE()
  8663. attack = true
  8664. duringend = true
  8665. hum.WalkSpeed = 0
  8666. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  8667. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  8668. local hite = Instance.new("Part", char)
  8669. hite.Anchored = true
  8670. hite.CanCollide = false
  8671. hite.FormFactor = 3
  8672. hite.Name = "Ring"
  8673. hite.Material = "Neon"
  8674. hite.Size = Vector3.new(1, 1, 1)
  8675. hite.Transparency = 0
  8676. hite.TopSurface = 0
  8677. hite.BottomSurface = 0
  8678. hite.BrickColor = MAINRUINCOLOR
  8679. local orbm = Instance.new("SpecialMesh", hite)
  8680. orbm.MeshType = "Sphere"
  8681. orbm.Name = "SizeMesh"
  8682. orbm.Scale = vt(0,0,0)
  8683. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  8684. for i = 0,70,0.1 do
  8685. swait()
  8686. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  8687. rsiz = math.random(10,45)
  8688. kan.Volume = kan.Volume + 0.01
  8689. kan.Pitch = kan.Pitch - 0.00135
  8690. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  8691. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  8692. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8693. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8694. 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)
  8695. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8696. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8697. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8698. end
  8699. kan.Pitch = 0.1
  8700. hite.Transparency = 1
  8701. for i = 0,2 do
  8702. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  8703. end
  8704. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  8705. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  8706. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  8707. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  8708. coroutine.resume(coroutine.create(function()
  8709. local eff = Instance.new("ParticleEmitter",hite)
  8710. eff.Texture = "rbxassetid://284205403"
  8711. eff.LightEmission = 0.95
  8712. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8713. eff.Rate = 10000
  8714. eff.Lifetime = NumberRange.new(5)
  8715. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  8716. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8717. eff.Speed = NumberRange.new(600,1250)
  8718. eff.Drag = 5
  8719. eff.Rotation = NumberRange.new(-500,500)
  8720. eff.VelocitySpread = 9000
  8721. eff.RotSpeed = NumberRange.new(-500,500)
  8722. wait(1)
  8723. eff.Enabled = false
  8724. end))
  8725. for i = 0,5,0.1 do
  8726. swait()
  8727. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8728. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8729. 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)
  8730. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8731. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8732. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8733. end
  8734. local adsc = 0
  8735. local radiatezone = 0
  8736. for i = 0,20,0.1 do
  8737. swait()
  8738. adsc = adsc + 0.025
  8739. radiatezone = radiatezone + 1.25
  8740. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8741. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8742. if v:FindFirstChild('Head') then
  8743. dmg(v)
  8744. end
  8745. end
  8746. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8747. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8748. 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)
  8749. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8750. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8751. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8752. end
  8753. for i = 0,2 do
  8754. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  8755. end
  8756. for i = 0,40,0.1 do
  8757. swait()
  8758. adsc = adsc + 0.05
  8759. radiatezone = radiatezone + 2.5
  8760. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8761. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8762. if v:FindFirstChild('Head') then
  8763. dmg(v)
  8764. end
  8765. end
  8766. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8767. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8768. 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)
  8769. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8770. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8771. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8772. end
  8773. for i = 0,4 do
  8774. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  8775. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  8776. end
  8777. for i = 0,80,0.1 do
  8778. swait()
  8779. adsc = adsc + 0.075
  8780. radiatezone = radiatezone + 3.75
  8781. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8782. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8783. if v:FindFirstChild('Head') then
  8784. dmg(v)
  8785. end
  8786. end
  8787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8788. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8789. 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)
  8790. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8791. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8792. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8793. end
  8794. hite:Destroy()
  8795. duringend = false
  8796. hum.WalkSpeed = storehumanoidWS
  8797. attack = false
  8798. end
  8799.  
  8800. function WarpedDash()
  8801. attack = true
  8802. hum.WalkSpeed = 0
  8803. hum.JumpPower = 0
  8804. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  8805. local poste = 3
  8806. local rotation = 0
  8807. local rate = 0
  8808. for i = 0, 124 do
  8809. swait()
  8810. rotation = rotation + rate
  8811. poste = poste + 0.1
  8812. rate = rate + 0.1
  8813. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  8814. 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)
  8815. 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)
  8816. 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)
  8817. 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)
  8818. 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)
  8819. 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)
  8820. 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)
  8821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  8822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  8823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  8824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  8825. end
  8826. CameraEnshaking(3,7)
  8827. local loc = Instance.new("Part", char)
  8828. loc.BrickColor = MAINRUINCOLOR
  8829. loc.CanCollide = false
  8830. loc.FormFactor = 3
  8831. loc.Name = "Ring"
  8832. loc.Material = "Neon"
  8833. loc.Size = Vector3.new(1, 1, 1)
  8834. loc.Transparency = 1
  8835. loc.TopSurface = 0
  8836. loc.BottomSurface = 0
  8837. loc.Anchored = true
  8838. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  8839. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  8840. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  8841. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  8842. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  8843. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8844. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8845. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8846. coroutine.resume(coroutine.create(function()
  8847. local eff = Instance.new("ParticleEmitter",loc)
  8848. eff.Texture = "rbxassetid://363275192"
  8849. eff.LightEmission = 0.95
  8850. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8851. eff.Rate = 10000
  8852. eff.Lifetime = NumberRange.new(1)
  8853. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  8854. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8855. eff.Speed = NumberRange.new(100,500)
  8856. eff.Drag = 5
  8857. eff.Rotation = NumberRange.new(-500,500)
  8858. eff.VelocitySpread = 9000
  8859. eff.RotSpeed = NumberRange.new(-50,50)
  8860. wait(0.5)
  8861. eff.Enabled = false
  8862. end))
  8863. for i = 0, 49 do
  8864. 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)
  8865. end
  8866. for i = 0, 9 do
  8867. 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)
  8868. end
  8869. game:GetService("Debris"):AddItem(loc, 5)
  8870. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  8871. hum.WalkSpeed = storehumanoidWS
  8872. hum.JumpPower = 50
  8873. attack = false
  8874. end
  8875.  
  8876. function Suicidal()
  8877. hum.WalkSpeed = 0
  8878. attack = true
  8879. local keptcolor = MAINRUINCOLOR
  8880. local locat = Instance.new("Part", char)
  8881. locat.CanCollide = false
  8882. locat.FormFactor = 3
  8883. locat.Name = "Ring"
  8884. locat.Material = "Neon"
  8885. locat.Size = Vector3.new(1, 1, 1)
  8886. locat.Transparency = 1
  8887. locat.TopSurface = 0
  8888. locat.BottomSurface = 0
  8889. locat.Anchored = true
  8890. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  8891. local poste = 0
  8892. local rotation = 0
  8893. local upperpos = 0
  8894. local rate = 0
  8895. local x = locat
  8896. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
  8897. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
  8898. sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  8899. CameraEnshaking(2,5)
  8900. for i = 0, 49 do
  8901. swait()
  8902. rotation = rotation + 5
  8903. poste = poste + 1
  8904. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8905. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8906. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8908. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8909. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8910. end
  8911. for i = 0, 49 do
  8912. swait()
  8913. rotation = rotation + 5
  8914. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  8915. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  8916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  8917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  8918. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  8919. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  8920. end
  8921. ModeOfGlitch = 432
  8922. storehumanoidWS = 300
  8923. hum.WalkSpeed = 16
  8924. rainbowmode = false
  8925. chaosmode = false
  8926. RecolorTextAndRename("THE ULTIMATE FORM",BrickColor.new("Black").Color,BrickColor.new("Really red").Color,"Antique")
  8927. newThemeCust("rbxassetid://1891600872",0,0.9,1.5)
  8928. MAINRUINCOLOR = BrickColor.new("Really red")
  8929. keptcolor = MAINRUINCOLOR
  8930. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  8931. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  8932. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
  8933. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue"))
  8934. attack = false
  8935. hum.WalkSpeed = storehumanoidWS
  8936. for i = 0, 49 do
  8937. local rsiz = math.random(150,450)
  8938. end
  8939. coroutine.resume(coroutine.create(function()
  8940. local eff = Instance.new("ParticleEmitter",x)
  8941. eff.Texture = "rbxassetid://284205403"
  8942. eff.LightEmission = 0.95
  8943. eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color)
  8944. eff.Rate = 50000
  8945. eff.Lifetime = NumberRange.new(2.5)
  8946. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  8947. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8948. eff.Speed = NumberRange.new(250,1000)
  8949. eff.Drag = 5
  8950. eff.Rotation = NumberRange.new(-500,500)
  8951. eff.VelocitySpread = 9000
  8952. eff.RotSpeed = NumberRange.new(-500,500)
  8953. wait(0.5)
  8954. eff.Enabled = false
  8955. end))
  8956. --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
  8957. if v:FindFirstChild('Head') then
  8958. dmg(v)
  8959. end
  8960. end]]--
  8961. CameraEnshaking(8,10)
  8962. for i = 0, 99 do
  8963. swait()
  8964. rotation = rotation + 5
  8965. poste = poste + 1
  8966. upperpos = upperpos + rate
  8967. rate = rate + 0.1
  8968. end
  8969. x:Destroy()
  8970. end
  8971.  
  8972. function Technobeam()
  8973. attack = true
  8974. hum.WalkSpeed = 3.01
  8975. for i = 0, 4, 0.1 do
  8976. swait()
  8977. hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
  8978. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2)
  8979. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  8980. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  8981. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  8982. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  8983. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  8984. end
  8985. for i = 0, 2, 0.1 do
  8986. swait()
  8987. hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
  8988. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(40)), 0.2)
  8989. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
  8990. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-25)), 0.2)
  8991. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(25)), 0.2)
  8992. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  8993. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  8994. end
  8995. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, MAINRUINCOLOR, "Sphere")
  8996. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, MAINRUINCOLOR, "Sphere")
  8997. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, MAINRUINCOLOR, "Sphere")
  8998. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, MAINRUINCOLOR, "Sphere")
  8999. CameraEnshaking(4, 5)
  9000. Cso("206049428", char, 10, 1)
  9001. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  9002. if v:FindFirstChild("Head") then
  9003. Eviscerate(v)
  9004. end
  9005. end
  9006. for i = 0, 2, 0.1 do
  9007. swait()
  9008. hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
  9009. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2)
  9010. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  9011. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  9012. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  9013. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  9014. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  9015. end
  9016. hum.WalkSpeed = storehumanoidWS
  9017. attack = false
  9018. end
  9019.  
  9020. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  9021. local orb = Instance.new("Part", char)
  9022. orb.Anchored = true
  9023. orb.BrickColor = color
  9024. orb.CanCollide = false
  9025. orb.FormFactor = 3
  9026. orb.Name = "Ring"
  9027. orb.Material = "Neon"
  9028. orb.Size = Vector3.new(1, 1, 1)
  9029. orb.Transparency = 0
  9030. orb.TopSurface = 0
  9031. orb.BottomSurface = 0
  9032. local orbm = Instance.new("SpecialMesh", orb)
  9033. orbm.MeshType = "Sphere"
  9034. orb.CFrame = positted
  9035. orbm.Name = "SizeMesh"
  9036. orbm.Scale = vt(1,1,1)
  9037. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  9038. Sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  9039. --[[for i = 0, 2 do
  9040. 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)
  9041. end]]--
  9042. coroutine.resume(coroutine.create(function()
  9043. wait(timer)
  9044. CameraEnshaking(3,ShakePower)
  9045. orb.Transparency = 1
  9046. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  9047. Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  9048. --[[for i = 0, 4 do
  9049. 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)
  9050. end]]--
  9051. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  9052. wait(3)
  9053. orb:Destroy()
  9054. end))
  9055. end
  9056.  
  9057. function GalacticalBeams()
  9058. attack = true
  9059. local keptcolor = MAINRUINCOLOR
  9060. coroutine.resume(coroutine.create(function()
  9061. for i = 0, 0 do
  9062. swait(10)
  9063. local orb = Instance.new("Part", char)
  9064. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  9065. orb.BrickColor = keptcolor
  9066. orb.CanCollide = false
  9067. orb.FormFactor = 3
  9068. orb.Name = "Ring"
  9069. orb.Material = "Neon"
  9070. orb.Size = Vector3.new(1, 1, 1)
  9071. orb.Transparency = 1
  9072. orb.TopSurface = 0
  9073. orb.BottomSurface = 0
  9074. orb.Anchored = true
  9075. local orbm = Instance.new("SpecialMesh", orb)
  9076. orbm.MeshType = "Sphere"
  9077. orbm.Name = "SizeMesh"
  9078. orbm.Scale = vt(1.25,1.25,1.25)
  9079. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  9080. coroutine.resume(coroutine.create(function()
  9081. orb.Transparency = 1
  9082. local a = Instance.new("Part",char)
  9083. a.Name = "Direction"
  9084. a.Anchored = true
  9085. a.BrickColor = keptcolor
  9086. a.Material = "Neon"
  9087. a.Transparency = 1
  9088. a.Shape = "Cylinder"
  9089. local x = Instance.new("Part",char)
  9090. x.Name = "Direction"
  9091. x.Anchored = true
  9092. x.BrickColor = keptcolor
  9093. x.Material = "Neon"
  9094. x.Transparency = 1
  9095. x.Shape = "Cylinder"
  9096. local ht = Instance.new("Part",char)
  9097. ht.Name = "DirectionHit"
  9098. ht.Anchored = true
  9099. ht.BrickColor = keptcolor
  9100. ht.CanCollide = false
  9101. ht.Transparency = 1
  9102. ht.Size = vt(0.1,0.1,0.1)
  9103. a.CanCollide = false
  9104. local ray = Ray.new(
  9105. orb.CFrame.p, -- origin
  9106. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  9107. )
  9108. local ignore = char
  9109. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9110. a.BottomSurface = 10
  9111. a.TopSurface = 10
  9112. local distance = (orb.CFrame.p - position).magnitude
  9113. a.Size = Vector3.new(distance,1,1)
  9114. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  9115. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  9116. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  9117. local poste = 0
  9118. local rotation = 0
  9119. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  9120. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  9121. CameraEnshaking(2,2)
  9122. for i = 0, 49 do
  9123. swait()
  9124. rotation = rotation + 5
  9125. poste = poste + 1
  9126. 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)
  9127. 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)
  9128. 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)
  9129. 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)
  9130. 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)
  9131. 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)
  9132. 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)
  9133. 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)
  9134. end
  9135. local A1 = Instance.new("Attachment",x)
  9136. local A2 = Instance.new("Attachment",ht)
  9137. local Beem = Instance.new("Beam",ht)
  9138. Beem.Attachment0 = A1
  9139. Beem.Attachment1 = A2
  9140. Beem.LightEmission = 1
  9141. Beem.FaceCamera = true
  9142. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  9143. Beem.Width0 = 125
  9144. Beem.Width1 = 125
  9145. Beem.Texture = "rbxassetid://1134824633"
  9146. Beem.TextureMode = "Wrap"
  9147. Beem.TextureLength = 200
  9148. Beem.TextureSpeed = 1.5
  9149. Beem.Color = ColorSequence.new(keptcolor.Color)
  9150. CameraEnshaking(3,6)
  9151. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  9152. a.Transparency = 0.25
  9153. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  9154. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  9155. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9156. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9157. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  9158. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  9159. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  9160. local eff = Instance.new("ParticleEmitter",ht)
  9161. eff.Texture = "rbxassetid://284205403"
  9162. eff.LightEmission = 0.95
  9163. eff.Color = ColorSequence.new(keptcolor.Color)
  9164. eff.Rate = 500
  9165. eff.Lifetime = NumberRange.new(1)
  9166. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  9167. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  9168. eff.Speed = NumberRange.new(80,500)
  9169. eff.Drag = 5
  9170. eff.Rotation = NumberRange.new(-500,500)
  9171. eff.VelocitySpread = 9000
  9172. eff.RotSpeed = NumberRange.new(-500,500)
  9173. for i = 0, 24 do
  9174. 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)
  9175. local rsiz = math.random(10,50)
  9176. 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)
  9177. end
  9178. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  9179. local msh = Instance.new("SpecialMesh",a)
  9180. msh.MeshType = "Cylinder"
  9181. msh.Scale = vt(1,15,15)
  9182. for i = 0, 49 do
  9183. swait()
  9184. CameraEnshaking(1,4)
  9185. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  9186. rotation = rotation + 5
  9187. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9188. 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)
  9189. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  9190. 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)
  9191. 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)
  9192. 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)
  9193. 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)
  9194. 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)
  9195. 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)
  9196. 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)
  9197. 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)
  9198. for i = 0, 2 do
  9199. local rsiz = math.random(50,250)
  9200. 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)
  9201. end
  9202. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  9203. end
  9204. eff.Enabled = false
  9205. local visibility = 0
  9206. for i = 0, 49 do
  9207. swait()
  9208. visibility = visibility + 0.02
  9209. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  9210. rotation = rotation + 5
  9211. poste = poste - 1
  9212. 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)
  9213. 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)
  9214. 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)
  9215. 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)
  9216. 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)
  9217. 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)
  9218. 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)
  9219. 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)
  9220. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  9221. a.Transparency = a.Transparency + 0.02
  9222. end
  9223. wait(1)
  9224. orb:Destroy()
  9225. a:Destroy()
  9226. ht:Destroy()
  9227. end))
  9228. game:GetService("Debris"):AddItem(orb, 10)
  9229. end
  9230. end))
  9231. hum.WalkSpeed = storehumanoidWS
  9232. attack = false
  9233. end
  9234. end
  9235. -------------------------------------
  9236.  
  9237. Humanoid.Animator.Parent = nil
  9238.  
  9239. -------------------------------------
  9240.  
  9241. local attacktype = 1
  9242. mouse.Button1Down:connect(function()
  9243. if attack == false and attacktype == 1 then
  9244. attacktype = 2
  9245. attackone()
  9246. elseif attack == false and attacktype == 2 then
  9247. attacktype = 3
  9248. attacktwo()
  9249. elseif attack == false and attacktype == 3 then
  9250. attacktype = 1
  9251. attackthree()
  9252. elseif attack == false and attacktype == 4 then
  9253. attacktype = 1
  9254. --attackfour()
  9255. end
  9256. end)
  9257. mouse.KeyDown:connect(function(k)
  9258. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  9259. --normalmog() ---Disabled due to crashing... only in VSB
  9260. ModeOfGlitch = 1
  9261. storehumanoidWS = 17
  9262. hum.WalkSpeed = 17
  9263. rainbowmode = false
  9264. chaosmode = false
  9265. newTheme("rbxassetid://561833161",48.6,1,1.25)
  9266. RecolorTextAndRename("Lunar",Color3.new(0,1,1),Color3.new(0,1,1),"Code")
  9267. MAINRUINCOLOR = BrickColor.new("Really red")
  9268. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9269. end
  9270. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  9271. ModeOfGlitch = 2
  9272. storehumanoidWS = 25
  9273. hum.WalkSpeed = 25
  9274. rainbowmode = false
  9275. chaosmode = false
  9276. RecolorTextAndRename("Chronos",Color3.new(75,151,75),Color3.new(75,151,75),"Code")
  9277. newTheme("rbxassetid://432493949",0,1,1)
  9278. MAINRUINCOLOR = BrickColor.new("Bright green")
  9279. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9280. end
  9281. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  9282. ModeOfGlitch = 3
  9283. storehumanoidWS = 25
  9284. hum.WalkSpeed = 25
  9285. rainbowmode = false
  9286. chaosmode = false
  9287. RecolorTextAndRename("Terra",Color3.new(0,0,0),Color3.new(150,112,159),"Antique")
  9288. newTheme("rbxassetid://157460916",58.15,0.98,1.25)
  9289. MAINRUINCOLOR = BrickColor.new("Dirt brown")
  9290. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9291. end
  9292. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  9293. ModeOfGlitch = 4
  9294. storehumanoidWS = 20
  9295. hum.WalkSpeed = 20
  9296. rainbowmode = false
  9297. chaosmode = false
  9298. RecolorTextAndRename("None-Sense",Color3.new(159,195,233),Color3.new(159,195,233),"Arcade")
  9299. newTheme("rbxassetid://1497785701",0,1.01,1.25)
  9300. MAINRUINCOLOR = BrickColor.new("Navy blue")
  9301. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9302. end
  9303. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  9304. ModeOfGlitch = 5
  9305. storehumanoidWS = 55
  9306. hum.WalkSpeed = 55
  9307. rainbowmode = false
  9308. chaosmode = false
  9309. RecolorTextAndRename("The Lost",Color3.new(0,0,0),Color3.new(0,0,0),"SciFi")
  9310. newTheme("rbxassetid://723652641",0,1,1)
  9311. MAINRUINCOLOR = BrickColor.new("Black")
  9312. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9313. end
  9314. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  9315. ModeOfGlitch = 6
  9316. storehumanoidWS = 100
  9317. hum.WalkSpeed = 100
  9318. rainbowmode = false
  9319. chaosmode = false
  9320. RecolorTextAndRename("FAIRY",Color3.new(255,152,220),BrickColor.new("Carnation pink").Color,"Arcade")
  9321. newTheme("rbxassetid://228428389",0,1,1)
  9322. MAINRUINCOLOR = BrickColor.new("Carnation pink")
  9323. RecolorThing(MAINRUINCOLOR,BrickColor.new("Carnation pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9324. end
  9325. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  9326. ModeOfGlitch = 8
  9327. storehumanoidWS = 140
  9328. hum.WalkSpeed = 140
  9329. rainbowmode = false
  9330. chaosmode = false
  9331. RecolorTextAndRename("90's",Color3.new(0,0,0),BrickColor.new("White").Color,"Code")
  9332. newTheme("rbxassetid://1166995642",0,1.01,1.25)
  9333. MAINRUINCOLOR = BrickColor.new("Black")
  9334. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9335. end
  9336. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 83 then
  9337. ModeOfGlitch = 83
  9338. storehumanoidWS = 180
  9339. hum.WalkSpeed = 180
  9340. rainbowmode = false
  9341. chaosmode = true
  9342. RecolorTextAndRename("NCS",BrickColor.new("Black").Color,BrickColor.new("Really black").Color,"Antique")
  9343. newTheme("rbxassetid://2347469019",0,1,1)
  9344. MAINRUINCOLOR = BrickColor.new("Really black")
  9345. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9346. end
  9347. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 95 then
  9348. ModeOfGlitch = 95
  9349. storehumanoidWS = 180
  9350. hum.WalkSpeed = 180
  9351. rainbowmode = true
  9352. chaosmode = false
  9353. RecolorTextAndRename("SOLAR",BrickColor.new("Neon orange").Color,BrickColor.new("Neon orange").Color,"Antique")
  9354. newTheme("rbxassetid://561833161",0,1,1)
  9355. MAINRUINCOLOR = BrickColor.new("Neon orange")
  9356. RecolorThing(MAINRUINCOLOR,BrickColor.new("Neon orange"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9357. end
  9358. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 150 then
  9359. ModeOfGlitch = 150
  9360. storehumanoidWS = 180
  9361. hum.WalkSpeed = 180
  9362. rainbowmode = true
  9363. chaosmode = false
  9364. RecolorTextAndRename("VANTA-X",BrickColor.new("Royal purple").Color,BrickColor.new("Royal purple").Color,"Antique")
  9365. newTheme("rbxassetid://190845741",0,1,1)
  9366. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  9367. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9368. end
  9369. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  9370. ModeOfGlitch = 9
  9371. storehumanoidWS = 180
  9372. hum.WalkSpeed = 180
  9373. rainbowmode = true
  9374. chaosmode = false
  9375. RecolorTextAndRename("Randomizer",BrickColor.new("Really red").Color,BrickColor.new("Crimson").Color,"Antique")
  9376. newTheme("rbxassetid://410533850",0,1,1)
  9377. MAINRUINCOLOR = BrickColor.new("Really red")
  9378. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9379. end
  9380. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 652 then
  9381. ModeOfGlitch = 652
  9382. storehumanoidWS = 180
  9383. hum.WalkSpeed = 180
  9384. rainbowmode = true
  9385. chaosmode = false
  9386. RecolorTextAndRename("SUPERIOR",BrickColor.new("Black").Color,BrickColor.new("Really red").Color,"Antique")
  9387. newTheme("rbxassetid://1873219898",0,1,1)
  9388. MAINRUINCOLOR = BrickColor.new("Really black")
  9389. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9390. end
  9391. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  9392. ModeOfGlitch = 8889
  9393. storehumanoidWS = 180
  9394. hum.WalkSpeed = 180
  9395. rainbowmode = false
  9396. chaosmode = false
  9397. RecolorTextAndRename("THE END",BrickColor.new("Electric blue").Color,BrickColor.new("Toothpaste").Color,"Antique")
  9398. newTheme("rbxassetid://1930926455",0,1,1)
  9399. MAINRUINCOLOR = BrickColor.new("Electric blue")
  9400. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9401. end
  9402. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  9403. ModeOfGlitch = 55469696922
  9404. storehumanoidWS = 275
  9405. hum.WalkSpeed = 275
  9406. rainbowmode = false
  9407. chaosmode = false
  9408. RecolorTextAndRename("The Origins",Color3.new(1,1,1),Color3.new(1,1,1),"Arcade")
  9409. newTheme("rbxassetid://265913095",0,1,1)
  9410. MAINRUINCOLOR = BrickColor.new("Alder")
  9411. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9412. end
  9413. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9414. ModeOfGlitch = 9999999921111
  9415. storehumanoidWS = 300
  9416. hum.WalkSpeed = 300
  9417. rainbowmode = false
  9418. chaosmode = false
  9419. RecolorTextAndRename("80's",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  9420. newTheme("rbxassetid://1141556798",0,1,1)
  9421. MAINRUINCOLOR = BrickColor.new("Really black")
  9422. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9423. end
  9424.  
  9425. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9426. ModeOfGlitch = 1264532489
  9427. storehumanoidWS = 250
  9428. hum.WalkSpeed = 250
  9429. rainbowmode = false
  9430. chaosmode = false
  9431. RecolorTextAndRename("THE BIG BLACK",Color3.new(0,0,0),BrickColor.new("Really black").Color,"Garamond")
  9432. newTheme("rbxassetid://183142252",0,1,1)
  9433. MAINRUINCOLOR = BrickColor.new("Really black")
  9434. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9435. end
  9436. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 7536 then
  9437. ModeOfGlitch = 7536
  9438. storehumanoidWS = 250
  9439. hum.WalkSpeed = 250
  9440. rainbowmode = false
  9441. chaosmode = false
  9442. RecolorTextAndRename("DEVIL",Color3.new(0,0,0),Color3.new(196,40,28),"Arcade")
  9443. newTheme("rbxassetid://919231299",0,1,1)
  9444. MAINRUINCOLOR = BrickColor.new("Bright red")
  9445. RecolorThing(MAINRUINCOLOR,BrickColor.new("Maroon"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9446. end
  9447. if k == "l" and mutedtog == false then
  9448. mutedtog = true
  9449. kan.Volume = 0
  9450. elseif k == "l" and mutedtog == true then
  9451. mutedtog = false
  9452. kan.Volume = 1.25
  9453. end
  9454. if k == "p" and toggleTag == false then
  9455. toggleTag = true
  9456. modet.TextTransparency = 0
  9457. modet.TextStrokeTransparency = 0
  9458. elseif k == "p" and toggleTag == true then
  9459. toggleTag = false
  9460. modet.TextTransparency = 1
  9461. modet.TextStrokeTransparency = 1
  9462. end
  9463. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9464. ExtinctiveHeartbreak()
  9465. elseif k == "c" and attack == false and ModeOfGlitch == 1 then
  9466. FallenOrbs()
  9467. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9468. HeavenlyDisk()
  9469. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  9470. PureOrb()
  9471. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9472. harmonytaunty()
  9473. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9474. CorruptionEvent()
  9475. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  9476. DivineBlast()
  9477. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9478. scattercorrupt()
  9479. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9480. CorruptBlink()
  9481. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  9482. ChaosEND()
  9483. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9484. attacktwo()
  9485. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  9486. ChaosGroundStrike()
  9487. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  9488. FallenOrbs()
  9489. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9490. RapidBurst()
  9491. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  9492. InsaneDrop()
  9493. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  9494. SpeedDrop()
  9495. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9496. DivineLights()
  9497. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9498. vistaunty()
  9499. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9500. EquinoxOrbs()
  9501. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  9502. shytaunty()
  9503. elseif k == "c" and attack == false and ModeOfGlitch == 6 then
  9504. cutesigh()
  9505. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9506. Counter()
  9507. elseif k == "b" and attack == false and ModeOfGlitch == 6 then
  9508. hugg()
  9509. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  9510. yinyangi()
  9511. elseif k == "x" and attack == false and ModeOfGlitch == 9 then
  9512. smiter()
  9513. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9514. HolyBarrier()
  9515. elseif k == "v" and attack == false and ModeOfGlitch == 9 then
  9516. Judgement()
  9517. elseif k == "m" and attack == false and ModeOfGlitch == 9 then
  9518. Suicidal()
  9519. elseif k == "z" and attack == false and ModeOfGlitch == 83 then
  9520. ViolentRing()
  9521. elseif k == "x" and attack == false and ModeOfGlitch == 83 then
  9522. THE_TRUE_POWER_OF_VIOLENCE()
  9523. elseif k == "z" and attack == false and ModeOfGlitch == 999 then
  9524. ExtinctiveHeartbreak()
  9525. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9526. attackone()
  9527. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9528. UniversalCollapse()
  9529. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9530. FallenOrbs()
  9531. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  9532. FallenOrbs()
  9533. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9534. EquinoxOrbs()
  9535. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9536. CyberSlash()
  9537. elseif k == "b" and attack == false and ModeOfGlitch == 8889 then
  9538. CardStorm()
  9539. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  9540. BinaryBLINK()
  9541. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9542. BeamOfDeath()
  9543. elseif k == "c" and attack == false and ModeOfGlitch == 55469696922 then
  9544. GalacticalBeams()
  9545. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9546. WarpedDash()
  9547. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  9548. Technobeam()
  9549. elseif k == "c" and attack == false and ModeOfGlitch == 999999999556 then
  9550. FinalCalamity()
  9551. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  9552. EndGROUND()
  9553. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  9554. StarDivision()
  9555. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9556. GleamingBeam()
  9557. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9558. DualGleamingBeam()
  9559. elseif k == "b" and attack == false and ModeOfGlitch == 9999999921111 then
  9560. dragin()
  9561. elseif k == "m" and attack == false and ModeOfGlitch == 9999999921111 then
  9562. Beams()
  9563. elseif k == "x" and attack == false and ModeOfGlitch == 1264532489 then
  9564. AZUREFINALE()
  9565. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9566. FallenOrbs()
  9567. end
  9568. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9569. FallenDEMISE()
  9570. end
  9571. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9572. EndGROUND()
  9573. end
  9574. end)
  9575.  
  9576. --[[coroutine.resume(coroutine.create(function()
  9577. while true do
  9578. swait(2)
  9579. if chaosmode == true then
  9580. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9581. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9582. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9583. RecolorTextAndRename("PRISM",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9584. for i, v in pairs(mw1:GetChildren()) do
  9585. if v:IsA("Part") then
  9586. v.Transparency = 0.75
  9587. v.BrickColor = BrickColor.random()
  9588. v.Material = "Neon"
  9589. end
  9590. end
  9591. for i, v in pairs(m2:GetChildren()) do
  9592. if v:IsA("Part") then
  9593. v.BrickColor = BrickColor.random()
  9594. v.Material = "Neon"
  9595. end
  9596. end
  9597. end
  9598. end
  9599. end))]]--
  9600. Humanoid.Name = "STARGLITCHER"
  9601. Humanoid.MaxHealth = math.huge
  9602. Humanoid.Health = math.huge
  9603. Instance.new("ForceField",char).Visible = false
  9604.  
  9605. local bguis = Instance.new("BillboardGui",tors)
  9606. bguis.Size = UDim2.new(25, 0, 25, 0)
  9607. local imgca = Instance.new("ImageLabel",bguis)
  9608. imgca.BackgroundTransparency = 1
  9609. imgca.ImageTransparency = 1
  9610. imgca.Size = UDim2.new(1,0,1,0)
  9611. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9612. imgca.ImageColor3 = Color3.new(0,0,0)
  9613.  
  9614. idleanim=.4
  9615. while true do
  9616. if mutedtog == false then
  9617. kan.Volume = currentVol
  9618. elseif mutedtog == true then
  9619. kan.Volume = 0
  9620. end
  9621. kan.PlaybackSpeed = currentPitch
  9622. kan.Pitch = currentPitch
  9623. kan.SoundId = currentThemePlaying
  9624. kan.Looped = true
  9625. kan.Parent = char
  9626. kan:Resume()
  9627. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  9628. imgca.ImageTransparency = 1
  9629. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9630. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9631. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9632. end
  9633. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9634. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9635. coroutine.resume(coroutine.create(function()
  9636. if chaosmode == true then
  9637. for i, v in pairs(mw1:GetChildren()) do
  9638. if v:IsA("Part") then
  9639. v.Transparency = 0
  9640. v.BrickColor = BrickColor.random()
  9641. v.Material = "Neon"
  9642. end
  9643. end
  9644. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9645. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9646. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9647. RecolorTextAndRename("SANITY-LESS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9648. end
  9649. end))
  9650.  
  9651. if chaosmode == false then
  9652. modet.Position = UDim2.new(0,0,0,0)
  9653. modet.Rotation = -5 * math.cos(sine / 32)
  9654. techc.Rotation = techc.Rotation + 1
  9655. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  9656. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  9657. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  9658. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  9659. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9660. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9661. else
  9662. techc.Rotation = techc.Rotation + 1
  9663. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9664. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9665. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9666. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9667. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9668. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9669. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9670. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9671. end
  9672. CameraManager()
  9673. swait()
  9674. 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)
  9675. 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)
  9676. 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)
  9677. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  9678. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  9679. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  9680. 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)
  9681. 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)
  9682. 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)
  9683. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  9684. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  9685. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  9686. sine = sine + change
  9687. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9688. local velderp=RootPart.Velocity.y
  9689. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9690. if equipped==true or equipped==false then
  9691. if attack==false then
  9692. idle=idle+1
  9693. else
  9694. idle=0
  9695. end
  9696. if idle>=500 then
  9697. if attack==false then
  9698. --Sheath()
  9699. end
  9700. end
  9701. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9702. Anim="Jump"
  9703. if attack==false then
  9704. 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)
  9705. 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)
  9706. 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)
  9707. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9708. 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)
  9709. 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)
  9710. end
  9711. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9712. Anim="Fall"
  9713. if attack==false then
  9714. 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)
  9715. 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)
  9716. 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)
  9717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9718. 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)
  9719. 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)
  9720. end
  9721. elseif torvel<1 and hitfloor~=nil then
  9722. Anim="Idle"
  9723. if attack==false then
  9724. if ModeOfGlitch == 1 then
  9725. local snap = math.random(1,10)
  9726. if snap == 1 then
  9727. 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)
  9728. end
  9729. 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)
  9730. 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)
  9731. 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)
  9732. 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)
  9733. 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)
  9734. 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)
  9735. elseif ModeOfGlitch == 2 then
  9736. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9737. 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)
  9738. 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)
  9739. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9740. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9741. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9742. elseif ModeOfGlitch == 3 then
  9743. local snap = math.random(1,32)
  9744. if snap == 1 then
  9745. 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)
  9746. end
  9747. 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)
  9748. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9749. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9750. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9751. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  9752. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9753. elseif ModeOfGlitch == 4 then
  9754. local snap = math.random(1,5)
  9755. if snap == 1 then
  9756. 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)
  9757. 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)
  9758. 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)
  9759. end
  9760. sphere2(8,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.random(),BrickColor.random().Color)
  9761. sphere2(8,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.random(),BrickColor.random().Color)
  9762. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1)
  9763. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1)
  9764. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1)
  9765. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
  9766. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1)
  9767. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1)
  9768. elseif ModeOfGlitch == 5 then
  9769. 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)
  9770. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Alder"),Color3.new(0,1,0))
  9771. 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)
  9772. 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)
  9773. 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)
  9774. 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)
  9775. 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)
  9776. 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)
  9777. elseif ModeOfGlitch == 6 then
  9778. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  9779. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  9780. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  9781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  9782. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  9783. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  9784. elseif ModeOfGlitch == 8 then
  9785. 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)
  9786. 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)
  9787. 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)
  9788. 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)
  9789. 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)
  9790. 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)
  9791. elseif ModeOfGlitch == 9 then
  9792. local snap = math.random(1,32)
  9793. if snap == 1 then
  9794. 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)
  9795. end
  9796. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9797. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9798. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9799. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9800. 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)
  9801. 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)
  9802. elseif ModeOfGlitch == 10 then
  9803. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  9804. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  9805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  9806. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  9807. RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1)
  9808. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  9809. elseif ModeOfGlitch == 83 then
  9810. 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)
  9811. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9814. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1)
  9815. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1)
  9816. elseif ModeOfGlitch == 95 then
  9817. 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)
  9818. 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)
  9819. 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)
  9820. 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)
  9821. 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)
  9822. 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)
  9823. elseif ModeOfGlitch == 150 then
  9824. local snap = math.random(1,5)
  9825. if snap == 1 then
  9826. 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)
  9827. 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)
  9828. 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)
  9829. end
  9830. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9831. 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)
  9832. 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)
  9833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9834. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9835. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9836. elseif ModeOfGlitch == 432 then
  9837. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(95),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9838. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9839. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9841. 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)
  9842. 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)
  9843. elseif ModeOfGlitch == 500 then
  9844. 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)
  9845. 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)
  9846. 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)
  9847. 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)
  9848. 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)
  9849. 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)
  9850. elseif ModeOfGlitch == 652 then
  9851. local snap = math.random(1,2)
  9852. if snap == 1 then
  9853. 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)
  9854. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9855. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9856. end
  9857. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  9858. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  9859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9860. 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)
  9861. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-15 + 3 * math.cos(sine / 45))),.1)
  9862. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1)
  9863. elseif ModeOfGlitch == 666 then
  9864. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9865. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9867. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9868. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  9869. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  9870. elseif ModeOfGlitch == 789 then
  9871. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  9872. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  9873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  9874. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9875. 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)
  9876. 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)
  9877. elseif ModeOfGlitch == 999 then
  9878. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  9879. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  9880. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  9881. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  9882. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  9883. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  9884. elseif ModeOfGlitch == 7536 then
  9885. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(0 - 6 * math.cos(sine / 40)),math.rad(-6 + 2 * math.cos(sine / 20) - 6 * math.cos(sine / 40))),.1)
  9886. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(10 - 6 * math.cos(sine / 40)),math.rad(3 - 2 * math.cos(sine / 20) - 3 * math.cos(sine / 40))),.1)
  9887. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.06 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(-20 + 6 * math.cos(sine / 40))),.1)
  9888. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6),math.rad(0 - 2 * math.cos(sine / 42)),math.rad(20 - 6 * math.cos(sine / 40))),.1)
  9889. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 + 3 * math.cos(sine / 26)),math.rad(-20 - 3 * math.cos(sine / 24)),math.rad(20 - 5 * math.cos(sine / 34))),.1)
  9890. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 3 * math.cos(sine / 25)),math.rad(10 + 3 * math.cos(sine / 24)),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9891. elseif ModeOfGlitch == 8889 then
  9892. 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)
  9893. 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("Toothpaste"),Color3.new(0,1,0))
  9894. 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)), 0.1)
  9895. 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)), 0.1)
  9896. 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)), 0.1)
  9897. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  9898. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  9899. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  9900. elseif ModeOfGlitch == 1264532489 then
  9901. 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)
  9902. 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)
  9903. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-60)),.1)
  9904. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1)
  9905. 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)
  9906. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9907. elseif ModeOfGlitch == 9999999921111 then
  9908. local snap = math.random(1,10)
  9909. if snap == 1 then
  9910. 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)
  9911. end
  9912. 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)
  9913. 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)
  9914. 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)
  9915. 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)
  9916. 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)
  9917. 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)
  9918. elseif ModeOfGlitch == 4367677813 then
  9919. 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)
  9920. 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)
  9921. 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)
  9922. 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)
  9923. 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)
  9924. 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)
  9925. elseif ModeOfGlitch == 55469696922 then
  9926. 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)
  9927. 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)
  9928. 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)
  9929. 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)
  9930. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9931. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  9932. 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)
  9933. elseif ModeOfGlitch == 999999999556 then
  9934. 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)
  9935. 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)
  9936. 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)
  9937. 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)
  9938. 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)
  9939. 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)
  9940. end
  9941. end
  9942. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9943. Anim="Walk"
  9944. if attack==false then
  9945. 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)
  9946. 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)
  9947. 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)
  9948. 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)
  9949. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-15 + 3 * math.cos(sine / 45))),.1)
  9950. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1)
  9951. end
  9952. elseif torvel>=22 and hitfloor~=nil then
  9953. Anim="Run"
  9954. if attack==false then
  9955. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 7536 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  9956. 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)
  9957. 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)
  9958. 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)
  9959. 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)
  9960. 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)
  9961. 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)
  9962. if ModeOfGlitch == 9 then
  9963. --
  9964. end
  9965. elseif ModeOfGlitch == 6 or ModeOfGlitch == 10 or ModeofGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9966. 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)
  9967. 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)
  9968. 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)
  9969. 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)
  9970. 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)
  9971. 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)
  9972. end
  9973. end
  9974. end
  9975. end
  9976. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement