Advertisement
memberhero

SGR V2

Feb 21st, 2019
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 348.24 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = RhiBel00351
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76. local Mouse = Player:GetMouse()
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88.  
  89. wait(0.2)
  90. function sandbox(var,func)
  91. local env = getfenv(func)
  92. local newenv = setmetatable({},{
  93. __index = function(self,k)
  94. if k=="script" then
  95. return var
  96. else
  97. return env[k]
  98. end
  99. end,
  100. })
  101. setfenv(func,newenv)
  102. return func
  103. end
  104. cors = {}
  105. mas = Instance.new("Model",game:GetService("Lighting"))
  106. Folder0 = Instance.new("Folder")
  107. LocalScript1 = Instance.new("LocalScript")
  108. LocalScript2 = Instance.new("LocalScript")
  109. IntValue3 = Instance.new("IntValue")
  110. IntValue4 = Instance.new("IntValue")
  111. MeshPart5 = Instance.new("MeshPart")
  112. MeshPart6 = Instance.new("MeshPart")
  113. MeshPart7 = Instance.new("MeshPart")
  114. Folder0.Name = "Effects"
  115. Folder0.Parent = mas
  116. LocalScript1.Name = "Stunner"
  117. LocalScript1.Parent = Folder0
  118. table.insert(cors,sandbox(LocalScript1,function()
  119. local me = owner;
  120. local ch = me.Character;
  121.  
  122. local AHB = Instance.new("BindableEvent")
  123.  
  124. local FPS = 120
  125.  
  126. local TimeFrame = 0
  127.  
  128. local LastFrame = tick()
  129. local Frame = 1/FPS
  130.  
  131. game:service'RunService'.Heartbeat:connect(function(s,p)
  132. TimeFrame = TimeFrame + s
  133. if(TimeFrame >= Frame)then
  134. for i = 1,math.floor(TimeFrame/Frame) do
  135. AHB:Fire()
  136. end
  137. LastFrame=tick()
  138. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  139. end
  140. end)
  141.  
  142.  
  143. function swait(dur)
  144. if(dur == 0 or typeof(dur) ~= 'number')then
  145. AHB.Event:wait()
  146. else
  147. for i = 1, dur*FPS do
  148. AHB.Event:wait()
  149. end
  150. end
  151. end
  152.  
  153. local mc = require(me:WaitForChild'PlayerScripts':WaitForChild'ControlScript':WaitForChild'MasterControl')
  154. repeat swait() until mc and mc.ControlState;
  155.  
  156. mc:Disable()
  157.  
  158. repeat swait() until ch:FindFirstChild'ResumeControl'
  159. ch.ResumeControl:destroy()
  160. mc:Enable()
  161. script:destroy()
  162. end))
  163. LocalScript1.Disabled = true
  164. LocalScript2.Name = "CamShake"
  165. LocalScript2.Parent = Folder0
  166. table.insert(cors,sandbox(LocalScript2,function()
  167. local me = owner
  168. local ch = me.Character
  169. local hum = ch:FindFirstChildOfClass'Humanoid'
  170.  
  171. local times = script:WaitForChild'times'.Value
  172. local intense = script:WaitForChild'intensity'.Value
  173. local origin
  174.  
  175.  
  176. coroutine.wrap(function()
  177. if(script:WaitForChild'origin')then
  178. origin = script:WaitForChild'origin'.Value
  179. end
  180. end)()
  181.  
  182. local cam = workspace.CurrentCamera
  183. local intensity = intense
  184.  
  185. local ArtificialHB = Instance.new("BindableEvent", script)
  186. ArtificialHB.Name = "Heartbeat"
  187.  
  188. script:WaitForChild("Heartbeat")
  189.  
  190. local tf = 0
  191. local allowframeloss = false
  192. local tossremainder = false
  193. local lastframe = tick()
  194. local frame = 1/60
  195. ArtificialHB:Fire()
  196.  
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.Heartbeat:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. ArtificialHB:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216.  
  217. function swait(num)
  218. if num == 0 or num == nil then
  219. ArtificialHB.Event:wait()
  220. else
  221. for i = 0, num do
  222. ArtificialHB.Event:wait()
  223. end
  224. end
  225. end
  226.  
  227. if(hum and not hum:FindFirstChild'CamShaking')then
  228. local cam = workspace.CurrentCamera
  229. local oCO = hum.CameraOffset
  230. local cs = Instance.new("BoolValue",hum)
  231. cs.Name = "CamShaking"
  232. for i = 1, times do
  233. local camDistFromOrigin
  234. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  235. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/12.5
  236. elseif(typeof(origin) == 'Vector3')then
  237. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/12.5
  238. end
  239. if(camDistFromOrigin)then
  240. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  241. end
  242. --cam.CoordinateFrame = cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  243. if(hum)then
  244. hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/50,math.random(-intensity,intensity)/50,math.random(-intensity,intensity)/50)
  245. end
  246. swait()
  247. end
  248. if(hum)then
  249. hum.CameraOffset = oCO
  250. end
  251. cs:destroy()
  252. end
  253. script:Destroy()
  254. end))
  255. LocalScript2.Disabled = true
  256. IntValue3.Name = "intensity"
  257. IntValue3.Parent = LocalScript2
  258. IntValue3.Value = 16
  259. IntValue4.Name = "times"
  260. IntValue4.Parent = LocalScript2
  261. IntValue4.Value = 5
  262. MeshPart5.Name = "chring"
  263. MeshPart5.Parent = mas
  264. MeshPart5.CFrame = CFrame.new(-9.3403244, 17.185894, -70.3027039, 1.91068547e-15, -4.37113883e-08, 1, -1, -4.37113883e-08, 0, 4.37113883e-08, -1, -4.37113883e-08)
  265. MeshPart5.Orientation = Vector3.new(0, 90, -90)
  266. MeshPart5.Position = Vector3.new(-9.3403244, 17.185894, -70.3027039)
  267. MeshPart5.Rotation = Vector3.new(-90, 90, 0)
  268. MeshPart5.Transparency = 1
  269. MeshPart5.Size = Vector3.new(3, 15, 15)
  270. MeshPart5.Anchored = true
  271. MeshPart5.CanCollide = false
  272. MeshPart5.Material = Enum.Material.Neon
  273. MeshPart6.Name = "chring2"
  274. MeshPart6.Parent = mas
  275. MeshPart6.CFrame = CFrame.new(-32.8803635, 45.9588852, -69.7627258, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  276. MeshPart6.Position = Vector3.new(-32.8803635, 45.9588852, -69.7627258)
  277. MeshPart6.Transparency = 1
  278. MeshPart6.Size = Vector3.new(3, 3, 1)
  279. MeshPart6.Anchored = true
  280. MeshPart6.CanCollide = false
  281. MeshPart6.Material = Enum.Material.Neon
  282. MeshPart7.Name = "spball"
  283. MeshPart7.Parent = mas
  284. MeshPart7.CFrame = CFrame.new(-9.3403244, 20.1858063, -70.3027039, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  285. MeshPart7.Position = Vector3.new(-9.3403244, 20.1858063, -70.3027039)
  286. MeshPart7.Transparency = 1
  287. MeshPart7.Size = Vector3.new(10, 10, 10)
  288. MeshPart7.Anchored = true
  289. MeshPart7.CanCollide = false
  290. MeshPart7.Material = Enum.Material.Neon
  291. for i,v in pairs(mas:GetChildren()) do
  292. v.Parent = script
  293. pcall(function() v:MakeJoints() end)
  294. end
  295. mas:Destroy()
  296. for i,v in pairs(cors) do
  297. spawn(function()
  298. pcall(v)
  299. end)
  300. end
  301. wait(1)
  302. local currentuser = owner
  303. print("Welcome "..currentuser.Name.." Your Script Has Loaded")
  304. warn([[SG AWAKEN Loaded.
  305. The super switcher.
  306. Velnorum is one of the first wielders.
  307.  
  308. Created, Reworked by NoobyGames12
  309. ]])
  310.  
  311.  
  312. ------------- ORIGINAL WIELDER OC: Velnorum
  313. print([[Icons:
  314. ! = New
  315. ? = Spoilers
  316. * = Exclusivity
  317. C = Changes
  318.  
  319. ]])
  320. warn([[V 4.1 Update Log:
  321. !C? - Mostly about 7-9 main modes added.
  322. ! - Non-canon [N] modes are added from few modes:
  323. > Mayhem: NANODEATH
  324. > Purity: SHD
  325. > Chaos: CRAZED
  326. > Divinity: FALLENX
  327. > Destiny: OMEGA
  328. ! - Added back CALAMITY and INFESTATION.
  329. C - Two main click attacks changed.
  330. !C - Moves are added back, with severe change and difference.]])
  331. --- its obs smooth af do not touch
  332. ---- Sources and functions might be taken from others
  333. plr = owner
  334. char = plr.Character
  335. hum = char.Humanoid
  336.  
  337. local cam = game.Workspace.CurrentCamera
  338. Camera = cam
  339. local CamInterrupt = false
  340. local TwoD = false
  341. local TargetInfo = {nil, nil}
  342. cam.CameraType = "Custom"
  343. t = char.Torso
  344. h = char.Head
  345. ra = char["Right Arm"]
  346. la = char["Left Arm"]
  347. rl = char["Right Leg"]
  348. ll = char["Left Leg"]
  349. tors = char.Torso
  350. lleg = char["Left Leg"]
  351. root = char.HumanoidRootPart
  352. hed = char.Head
  353. rleg = char["Right Leg"]
  354. rarm = char["Right Arm"]
  355. larm = char["Left Arm"]
  356. rainbowmode = false
  357. radian = math.rad
  358. random = math.random
  359. Vec3 = Vector3.new
  360. Inst = Instance.new
  361. cFrame = CFrame.new
  362. Euler = CFrame.fromEulerAnglesXYZ
  363. vt = Vector3.new
  364. bc = BrickColor.new
  365. br = BrickColor.random
  366. it = Instance.new
  367. cf = CFrame.new
  368.  
  369. local Booleans = {
  370. CamFollow = true,
  371. GyroUse = true
  372. }
  373.  
  374. function lerp(object, newCFrame, alpha)
  375. return object:lerp(newCFrame, alpha)
  376. end
  377.  
  378. local Directer = Inst("BodyGyro", root)
  379. Directer.MaxTorque = Vec3(0, 0, 0)
  380. Directer.P = 600000
  381. local CPart = Inst("Part")
  382. CPart.Anchored = true
  383. CPart.CanCollide = false
  384. CPart.Locked = true
  385. CPart.Transparency = 1
  386.  
  387. local rainbowmode = false
  388. local chaosmode = false
  389.  
  390. local kan = Instance.new("Sound",char)
  391. kan.Volume = 1.25
  392. kan.TimePosition = 0
  393. kan.PlaybackSpeed = 1
  394. kan.Pitch = 1
  395. kan.SoundId = "rbxassetid://614032233"
  396. kan.Name = "wrecked"
  397. kan.Looped = true
  398. kan:Play()
  399.  
  400. local currentThemePlaying = kan.SoundId
  401. local currentPitch = kan.Pitch
  402. local currentVol = kan.Volume
  403. function newTheme(ID,timepos,pitch,vol)
  404. local kanz = kan
  405. --kanz:Stop()
  406. kanz.Volume = vol
  407. --kanz.TimePosition = timepos
  408. kanz.PlaybackSpeed = pitch
  409. kanz.Pitch = pitch
  410. kanz.SoundId = ID
  411. kanz.Name = "wrecked"
  412. kanz.Looped = true
  413. currentThemePlaying = kanz.SoundId
  414. currentVol = kanz.Volume
  415. currentPitch = kanz.Pitch
  416. --kanz:Play()
  417. --coroutine.resume(coroutine.create(function()
  418. --wait(0.05)
  419. --end))
  420. end
  421.  
  422.  
  423. function newThemeCust(ID,timepos,pitch,vol)
  424. local kanz = kan
  425. kanz:Stop()
  426. kanz.Volume = vol
  427. kanz.TimePosition = timepos
  428. kanz.PlaybackSpeed = pitch
  429. kanz.Pitch = pitch
  430. kanz.SoundId = ID
  431. kanz.Name = "wrecked"
  432. kanz.Looped = true
  433. currentThemePlaying = kanz.SoundId
  434. currentVol = kanz.Volume
  435. currentPitch = kanz.Pitch
  436. kanz:Play()
  437. coroutine.resume(coroutine.create(function()
  438. wait(0.05)
  439. end))
  440. end
  441.  
  442. local mutedtog = false
  443.  
  444. function CameraEnshaking(Length,Intensity)
  445. coroutine.resume(coroutine.create(function()
  446. local intensity = 1*Intensity
  447. local rotM = 0.01*Intensity
  448. for i = 0, Length, 0.1 do
  449. swait()
  450. intensity = intensity - 0.05*Intensity/Length
  451. rotM = rotM - 0.0005*Intensity/Length
  452. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  453. 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)
  454. end
  455. Humanoid.CameraOffset = Vec3(0, 0, 0)
  456. end))
  457. end
  458. CamShake=function(Part,Distan,Power,Times)
  459. local de=Part.Position
  460. for i,v in pairs(workspace:children()) do
  461. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  462. for _,c in pairs(v:children()) do
  463. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  464. local Noob=v.Humanoid
  465. if Noob~=nil then
  466. coroutine.resume(coroutine.create(function()
  467. FV = Instance.new("BoolValue", Noob)
  468. FV.Name = "CameraShake"
  469. for ShakeNum=1,Times do
  470. swait()
  471. local ef=Power
  472. if ef>=1 then
  473. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  474. else
  475. ef=Power*10
  476. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  477. end
  478. end
  479. Humanoid.CameraOffset = Vector3.new(0,0,0)
  480. FV:Destroy()
  481. end))
  482. CameraShake(Times, Power, Noob)
  483. end
  484. end
  485. end
  486. end
  487. end
  488. end
  489.  
  490. local toggleTag = true
  491. local bilguit = Instance.new("BillboardGui", hed)
  492. bilguit.Adornee = nil
  493. bilguit.Name = "ModeName"
  494. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  495. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  496. local modet = Instance.new("TextLabel", bilguit)
  497. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  498. modet.FontSize = "Size8"
  499. modet.TextScaled = true
  500. modet.TextTransparency = 0
  501. modet.BackgroundTransparency = 1
  502. modet.TextTransparency = 0
  503. modet.TextStrokeTransparency = 0
  504. modet.Font = "Antique"
  505. modet.TextStrokeColor3 = Color3.new(1,0,0)
  506. modet.TextColor3 = Color3.new(0.25,0,0)
  507. modet.Text = "MAYHEM"
  508.  
  509.  
  510. function chatfunc(text,color,typet,font,timeex)
  511. local chat = coroutine.wrap(function()
  512. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  513. Character:FindFirstChild("TalkingBillBoard"):destroy()
  514. end
  515. local naeeym2 = Instance.new("BillboardGui",Character)
  516. naeeym2.Size = UDim2.new(0,100,0,40)
  517. naeeym2.StudsOffset = Vector3.new(0,3,0)
  518. naeeym2.Adornee = Character.Head
  519. naeeym2.Name = "TalkingBillBoard"
  520. local tecks2 = Instance.new("TextLabel",naeeym2)
  521. tecks2.BackgroundTransparency = 1
  522. tecks2.BorderSizePixel = 0
  523. tecks2.Text = ""
  524. tecks2.Font = font
  525. tecks2.TextSize = 30
  526. tecks2.TextStrokeTransparency = 0
  527. tecks2.TextColor3 = color
  528. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  529. tecks2.Size = UDim2.new(1,0,0.5,0)
  530. local tecks3 = Instance.new("TextLabel",naeeym2)
  531. tecks3.BackgroundTransparency = 1
  532. tecks3.BorderSizePixel = 0
  533. tecks3.Text = ""
  534. tecks3.Font = font
  535. tecks3.TextSize = 30
  536. tecks3.TextStrokeTransparency = 0
  537. if typet == "Inverted" then
  538. tecks3.TextColor3 = Color3.new(0,0,0)
  539. tecks3.TextStrokeColor3 = color
  540. elseif typet == "Normal" then
  541. tecks3.TextColor3 = color
  542. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  543. end
  544. tecks3.Size = UDim2.new(1,0,0.5,0)
  545. coroutine.resume(coroutine.create(function()
  546. while true do
  547. swait(1)
  548. if chaosmode == true then
  549. tecks2.TextColor3 = BrickColor.random().Color
  550. tecks3.TextStrokeColor3 = BrickColor.random().Color
  551. end
  552. end
  553. end))
  554. modet.TextTransparency = modet.TextTransparency + 1
  555. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  556. for i = 0, 74*timeex do
  557. swait()
  558. modet.TextTransparency = 1
  559. modet.TextStrokeTransparency = 1
  560. tecks2.Text = text
  561. tecks3.Text = text
  562. end
  563. local randomrot = math.random(1,2)
  564. if randomrot == 1 then
  565. for i = 1, 50 do
  566. swait()
  567. tecks2.Text = text
  568. tecks3.Text = text
  569. modet.TextTransparency = modet.TextTransparency - .02
  570. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  571. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  572. tecks2.TextTransparency = tecks2.TextTransparency + .04
  573. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  574. tecks3.TextTransparency = tecks2.TextTransparency + .04
  575. end
  576. elseif randomrot == 2 then
  577. for i = 1, 50 do
  578. swait()
  579. tecks2.Text = text
  580. tecks3.Text = text
  581. modet.TextTransparency = modet.TextTransparency - .02
  582. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  583. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  584. tecks2.TextTransparency = tecks2.TextTransparency + .04
  585. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  586. tecks3.TextTransparency = tecks2.TextTransparency + .04
  587. end
  588. end
  589. modet.TextTransparency = 0
  590. modet.TextStrokeTransparency = 0
  591. if toggleTag == false then
  592. modet.TextTransparency = 1
  593. modet.TextStrokeTransparency = 1
  594. end
  595. naeeym2:Destroy()
  596. end)
  597. chat()
  598. end
  599.  
  600. function bosschatfunc(text,color,watval)
  601. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  602. coroutine.resume(coroutine.create(function()
  603. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  604. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  605. end
  606. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  607. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  608. scrg.Name = "Dialog"
  609. local txtlb = Instance.new("TextLabel",scrg)
  610. txtlb.Text = ""
  611. txtlb.Font = "Bodoni"
  612. txtlb.TextColor3 = Color3.new(0,0,0)
  613. txtlb.TextStrokeTransparency = 0
  614. txtlb.BackgroundTransparency = 0.75
  615. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  616. txtlb.TextStrokeColor3 = color
  617. txtlb.TextScaled = true
  618. txtlb.Size = UDim2.new(1,0,0.25,0)
  619. txtlb.TextXAlignment = "Left"
  620. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  621. local txtlb2 = Instance.new("TextLabel",scrg)
  622. txtlb2.Text = "???:"
  623. txtlb2.Font = "Arcade"
  624. txtlb2.TextColor3 = Color3.new(0,0,0)
  625. txtlb2.TextStrokeTransparency = 0
  626. txtlb2.BackgroundTransparency = 1
  627. txtlb2.TextStrokeColor3 = color
  628. txtlb2.TextSize = 40
  629. txtlb2.Size = UDim2.new(1,0,0.25,0)
  630. txtlb2.TextXAlignment = "Left"
  631. txtlb2.Position = UDim2.new(0,0,1,0)
  632. local fvalen = 0.55
  633. local fval = -0.49
  634. coroutine.resume(coroutine.create(function()
  635. while true do
  636. swait()
  637. if chaosmode == true then
  638. txtlb.Rotation = math.random(-1,1)
  639. txtlb2.Rotation = math.random(-1,1)
  640. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  641. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  642. txtlb.TextStrokeColor3 = BrickColor.random().Color
  643. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  644. end
  645. end
  646. end))
  647. coroutine.resume(coroutine.create(function()
  648. while true do
  649. swait()
  650. if scrg.Parent ~= nil then
  651. fvalen = fvalen - 0.0001
  652. elseif scrg.Parent == nil then
  653. break
  654. end
  655. end
  656. end))
  657. local flol = 1.75
  658. local flil = 1.6
  659. coroutine.resume(coroutine.create(function()
  660. for i = 0, 9 do
  661. swait()
  662. fval = fval + 0.05
  663. flol = flol - 0.1
  664. flil = flil - 0.1
  665. txtlb.Text = ""
  666. txtlb.Position = UDim2.new(0,0,flol,0)
  667. txtlb2.Position = UDim2.new(0,0,flil,0)
  668. end
  669. txtlb.Text = text
  670. wait(watval)
  671. local valinc = 0
  672. for i = 0, 99 do
  673. swait()
  674. valinc = valinc + 0.0001
  675. flol = flol + valinc
  676. flil = flil + valinc
  677. txtlb.Rotation = txtlb.Rotation + valinc*20
  678. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  679. txtlb.Position = UDim2.new(0,0,flol,0)
  680. txtlb2.Position = UDim2.new(0,0,flil,0)
  681. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  682. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  683. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  684. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  685. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  686. end
  687. scrg:Destroy()
  688. end))
  689. end))
  690. end
  691. end
  692.  
  693.  
  694. local Create = LoadLibrary("RbxUtility").Create
  695.  
  696. CFuncs = {
  697. ["Part"] = {
  698. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  699. local Part = Create("Part"){
  700. Parent = Parent,
  701. Reflectance = Reflectance,
  702. Transparency = Transparency,
  703. CanCollide = false,
  704. Locked = true,
  705. BrickColor = BrickColor.new(tostring(BColor)),
  706. Name = Name,
  707. Size = Size,
  708. Material = Material,
  709. }
  710. RemoveOutlines(Part)
  711. return Part
  712. end;
  713. };
  714.  
  715. ["Mesh"] = {
  716. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  717. local Msh = Create(Mesh){
  718. Parent = Part,
  719. Offset = OffSet,
  720. Scale = Scale,
  721. }
  722. if Mesh == "SpecialMesh" then
  723. Msh.MeshType = MeshType
  724. Msh.MeshId = MeshId
  725. end
  726. return Msh
  727. end;
  728. };
  729.  
  730. ["Mesh"] = {
  731. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  732. local Msh = Create(Mesh){
  733. Parent = Part,
  734. Offset = OffSet,
  735. Scale = Scale,
  736. }
  737. if Mesh == "SpecialMesh" then
  738. Msh.MeshType = MeshType
  739. Msh.MeshId = MeshId
  740. end
  741. return Msh
  742. end;
  743. };
  744.  
  745. ["Weld"] = {
  746. Create = function(Parent, Part0, Part1, C0, C1)
  747. local Weld = Create("Weld"){
  748. Parent = Parent,
  749. Part0 = Part0,
  750. Part1 = Part1,
  751. C0 = C0,
  752. C1 = C1,
  753. }
  754. return Weld
  755. end;
  756. };
  757.  
  758. ["Sound"] = {
  759. Create = function(id, par, vol, pit)
  760. coroutine.resume(coroutine.create(function()
  761. local S = Create("Sound"){
  762. Volume = vol,
  763. Name = "EffectSoundo",
  764. Pitch = pit or 1,
  765. SoundId = id,
  766. Parent = par or workspace,
  767. }
  768. wait()
  769. S:play()
  770. game:GetService("Debris"):AddItem(S, 10)
  771. end))
  772. end;
  773. };
  774.  
  775. ["TimeSound"] = {
  776. Create = function(id, par, vol, pit, timepos)
  777. coroutine.resume(coroutine.create(function()
  778. local S = Create("Sound"){
  779. Volume = vol,
  780. Name = "EffectSoundo",
  781. Pitch = pit or 1,
  782. SoundId = id,
  783. TimePosition = timepos,
  784. Parent = par or workspace,
  785. }
  786. wait()
  787. S:play()
  788. game:GetService("Debris"):AddItem(S, 10)
  789. end))
  790. end;
  791. };
  792. ["EchoSound"] = {
  793. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  794. coroutine.resume(coroutine.create(function()
  795. local Sas = Create("Sound"){
  796. Volume = vol,
  797. Name = "EffectSoundo",
  798. Pitch = pit or 1,
  799. SoundId = id,
  800. TimePosition = timepos,
  801. Parent = par or workspace,
  802. }
  803. local E = Create("EchoSoundEffect"){
  804. Delay = echodelay,
  805. Name = "Echo",
  806. Feedback = fedb,
  807. DryLevel = dryl,
  808. Parent = Sas,
  809. }
  810. wait()
  811. Sas:play()
  812. game:GetService("Debris"):AddItem(Sas, delays)
  813. end))
  814. end;
  815. };
  816.  
  817. ["LongSound"] = {
  818. Create = function(id, par, vol, pit)
  819. coroutine.resume(coroutine.create(function()
  820. local S = Create("Sound"){
  821. Volume = vol,
  822. Pitch = pit or 1,
  823. SoundId = id,
  824. Parent = par or workspace,
  825. }
  826. wait()
  827. S:play()
  828. game:GetService("Debris"):AddItem(S, 60)
  829. end))
  830. end;
  831. };
  832.  
  833. ["ParticleEmitter"] = {
  834. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  835. local fp = Create("ParticleEmitter"){
  836. Parent = Parent,
  837. Color = ColorSequence.new(Color1, Color2),
  838. LightEmission = LightEmission,
  839. Size = Size,
  840. Texture = Texture,
  841. Transparency = Transparency,
  842. ZOffset = ZOffset,
  843. Acceleration = Accel,
  844. Drag = Drag,
  845. LockedToPart = LockedToPart,
  846. VelocityInheritance = VelocityInheritance,
  847. EmissionDirection = EmissionDirection,
  848. Enabled = Enabled,
  849. Lifetime = LifeTime,
  850. Rate = Rate,
  851. Rotation = Rotation,
  852. RotSpeed = RotSpeed,
  853. Speed = Speed,
  854. VelocitySpread = VelocitySpread,
  855. }
  856. return fp
  857. end;
  858. };
  859.  
  860. CreateTemplate = {
  861.  
  862. };
  863. }
  864.  
  865.  
  866.  
  867. New = function(Object, Parent, Name, Data)
  868. local Object = Instance.new(Object)
  869. for Index, Value in pairs(Data or {}) do
  870. Object[Index] = Value
  871. end
  872. Object.Parent = Parent
  873. Object.Name = Name
  874. return Object
  875. end
  876. local halocolor = BrickColor.new("Pastel light blue")
  877. local halocolor2 = BrickColor.new("Cool yellow")
  878. local starcolor = BrickColor.new("Bright yellow")
  879. local lunacolor = BrickColor.new("Navy blue")
  880. local lunacolor2 = BrickColor.new("Bright blue")
  881. local wepcolor = BrickColor.new("Really black")
  882. local maincolor = BrickColor.new("Really black")
  883. local m = Instance.new("Model",char)
  884. local m2 = Instance.new("Model",char)
  885. local m3 = Instance.new("Model",char)
  886. local mw1 = Instance.new("Model",char)
  887. local mw2 = Instance.new("Model",char)
  888.  
  889.  
  890. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  891. local gui = it(GuiType)
  892. gui.Parent = parent
  893. gui.Text = text
  894. gui.BackgroundTransparency = backtrans
  895. gui.BackgroundColor3 = backcol
  896. gui.SizeConstraint = "RelativeXY"
  897. gui.TextXAlignment = "Center"
  898. gui.TextYAlignment = "Center"
  899. gui.Position = pos
  900. gui.Size = size
  901. gui.Font = "SourceSans"
  902. gui.FontSize = "Size14"
  903. gui.TextWrapped = false
  904. gui.TextStrokeTransparency = 0
  905. gui.TextColor = BrickColor.new("White")
  906. return gui
  907. end
  908. --------------------------- GUI STUFF
  909. local basgui = it("GuiMain")
  910. basgui.Parent = plr.PlayerGui
  911. basgui.Name = "VISgui"
  912. local fullscreenz = it("Frame")
  913. fullscreenz.Parent = basgui
  914. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  915. fullscreenz.BackgroundTransparency = 1
  916. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  917. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  918. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  919. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  920. imgl2.BackgroundTransparency = 1
  921. imgl2.BorderSizePixel = 0
  922. imgl2.ImageTransparency = 0.5
  923. imgl2.ImageColor3 = Color3.new(1,0,0)
  924. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  925. imgl2.Size = UDim2.new(0,1000,0,1000)
  926. imgl2.Image = "rbxassetid://2325939897"
  927. local techc = imgl2:Clone()
  928. techc.Parent = fullscreenz
  929. techc.ImageTransparency = 0
  930. techc.Size = UDim2.new(0,900,0,900)
  931. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  932. techc.ImageColor3 = Color3.new(1,0,0)
  933. techc.Image = "rbxassetid://2273224484"
  934. local circl = imgl2:Clone()
  935. circl.Parent = fullscreenz
  936. circl.ImageTransparency = 0
  937. circl.Size = UDim2.new(0,550,0,550)
  938. circl.Position = UDim2.new(0.75,25,0.55,25)
  939. circl.ImageColor3 = Color3.new(0,0,0)
  940. circl.Image = "rbxassetid://2312119891"
  941. local circl2 = imgl2:Clone()
  942. circl2.Parent = fullscreenz
  943. circl2.ImageTransparency = 0
  944. circl2.Size = UDim2.new(0,700,0,700)
  945. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  946. circl2.ImageColor3 = Color3.new(1,0,0)
  947. circl2.Image = "rbxassetid://2312119891"
  948. local imgl2b = imgl2:Clone()
  949. imgl2b.Parent = fullscreenz
  950. imgl2b.ImageTransparency = 0
  951. imgl2b.Size = UDim2.new(0,800,0,800)
  952. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  953. imgl2b.ImageColor3 = Color3.new(0,0,0)
  954. local ned = Instance.new("TextLabel",fullscreenz)
  955. ned.ZIndex = 2
  956. ned.Font = "Arcade"
  957. ned.BackgroundTransparency = 1
  958. ned.BorderSizePixel = 0.65
  959. ned.Size = UDim2.new(0.3,0,0.2,0)
  960. ned.Position = UDim2.new(0.7,0,0.8,0)
  961. ned.TextColor3 = BrickColor.new("Really red").Color
  962. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  963. ned.TextScaled = true
  964. ned.TextStrokeTransparency = 0
  965. ned.Text = "MAYHEM"
  966. ned.TextSize = 24
  967. ned.Rotation = 1
  968. ned.TextXAlignment = "Right"
  969. ned.TextYAlignment = "Bottom"
  970.  
  971. local extrawingmod1 = Instance.new("Model",char)
  972. local extrawingmod2 = Instance.new("Model",char)
  973.  
  974. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  975. local p = Instance.new("Part")
  976. p.TopSurface = 0
  977. p.BottomSurface = 0
  978. p.Parent = parent
  979. p.Size = Vector3.new(0.1,0.1,0.1)
  980. p.Transparency = transparency
  981. p.Reflectance = reflectance
  982. p.CanCollide = false
  983. p.Locked = true
  984. p.BrickColor = brickcolor
  985. p.Material = material
  986. return p
  987. end
  988.  
  989. function CreateMesh(parent,meshtype,x1,y1,z1)
  990. local mesh = Instance.new("SpecialMesh",parent)
  991. mesh.MeshType = meshtype
  992. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  993. return mesh
  994. end
  995.  
  996. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  997. local mesh = Instance.new("SpecialMesh",parent)
  998. mesh.MeshType = "FileMesh"
  999. mesh.MeshId = meshid
  1000. mesh.Scale = Vector3.new(x1,y1,z1)
  1001. return mesh
  1002. end
  1003.  
  1004.  
  1005. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1006. local mesh = Instance.new("SpecialMesh",parent)
  1007. mesh.MeshType = "FileMesh"
  1008. mesh.MeshId = meshid
  1009. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1010. mesh.Scale = Vector3.new(x1,y1,z1)
  1011. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1012. return mesh
  1013. end
  1014.  
  1015. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1016. local weld = Instance.new("Weld")
  1017. weld.Parent = parent
  1018. weld.Part0 = part0
  1019. weld.Part1 = part1
  1020. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1021. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1022. return weld
  1023. end
  1024.  
  1025.  
  1026. --------------
  1027. --------------
  1028. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1029. 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))
  1030. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1031. 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))
  1032.  
  1033. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1034. CreateMesh(handle,"Brick",0,0,0)
  1035. 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))
  1036. local valuaring = 10
  1037. for i = 0, 49 do
  1038. valuaring = valuaring + 10
  1039. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  1040. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  1041. 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))
  1042. end
  1043.  
  1044. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1045. CreateMesh(handle,"Brick",0,0,0)
  1046. 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))
  1047. local valuaring = 10
  1048. for i = 0, 49 do
  1049. valuaring = valuaring + 10
  1050. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1051. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  1052. 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))
  1053. end
  1054.  
  1055.  
  1056. local handle = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. 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))
  1059.  
  1060. --- Left wing.
  1061.  
  1062. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1063. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1064. 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))
  1065.  
  1066. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1068. 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))
  1069. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1071. 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))
  1072. A0 = Instance.new('Attachment',wed)
  1073. A0.Position = vt(0,0.25,0.25)
  1074. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1076. 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))
  1077. A1 = Instance.new('Attachment',wed)
  1078. A1.Position = vt(0,-0.25,-2)
  1079. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1080. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1081. 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))
  1082.  
  1083. tl1 = Instance.new('Trail',wed)
  1084. tl1.Attachment0 = A1
  1085. tl1.Attachment1 = A0
  1086. tl1.Texture = "rbxassetid://2108945559"
  1087. tl1.LightEmission = 1
  1088. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1089. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1090. tl1.Lifetime = 0.6
  1091.  
  1092.  
  1093. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1094. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1095. 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))
  1096.  
  1097. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1099. 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))
  1100. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1102. 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))
  1103. A0 = Instance.new('Attachment',wed)
  1104. A0.Position = vt(0,0.25,0.25)
  1105. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1107. 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))
  1108. A1 = Instance.new('Attachment',wed)
  1109. A1.Position = vt(0,-0.25,-2)
  1110. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1112. 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))
  1113.  
  1114. tl2 = Instance.new('Trail',wed)
  1115. tl2.Attachment0 = A1
  1116. tl2.Attachment1 = A0
  1117. tl2.Texture = "rbxassetid://2108945559"
  1118. tl2.LightEmission = 1
  1119. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1120. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1121. tl2.Lifetime = 0.6
  1122.  
  1123. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1124. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1125. 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))
  1126.  
  1127. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1129. 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))
  1130. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1132. 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))
  1133. A0 = Instance.new('Attachment',wed)
  1134. A0.Position = vt(0,0.25,0.25)
  1135. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1136. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1137. 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))
  1138. A1 = Instance.new('Attachment',wed)
  1139. A1.Position = vt(0,-0.25,-2)
  1140. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1142. 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))
  1143.  
  1144. tl3 = Instance.new('Trail',wed)
  1145. tl3.Attachment0 = A1
  1146. tl3.Attachment1 = A0
  1147. tl3.Texture = "rbxassetid://2108945559"
  1148. tl3.LightEmission = 1
  1149. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1150. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1151. tl3.Lifetime = 0.6
  1152.  
  1153. tl1.Enabled = false
  1154. tl2.Enabled = false
  1155. tl3.Enabled = false
  1156. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1157. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1158. 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))
  1159.  
  1160. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1162. 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))
  1163. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1164. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1165. 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))
  1166. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1167. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1168. 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))
  1169. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1170. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1171. 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))
  1172.  
  1173. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1174. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1175. 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))
  1176.  
  1177. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1178. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1179. 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))
  1180. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1181. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1182. 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))
  1183. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1184. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1185. 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))
  1186. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1187. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1188. 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))
  1189.  
  1190. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1191. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1192. 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))
  1193.  
  1194. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1195. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1196. 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))
  1197. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1198. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1199. 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))
  1200. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1201. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1202. 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))
  1203. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1204. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1205. 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))
  1206.  
  1207. -- Right wing.
  1208.  
  1209. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1210. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1211. 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))
  1212.  
  1213. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1214. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1215. 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))
  1216. A0 = Instance.new('Attachment',wed)
  1217. A0.Position = vt(0,0.25,0.25)
  1218. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1219. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1220. 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))
  1221. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1222. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1223. 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))
  1224. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1225. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1226. 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))
  1227. A1 = Instance.new('Attachment',wed)
  1228. A1.Position = vt(0,2,0.25)
  1229.  
  1230. tr1 = Instance.new('Trail',wed)
  1231. tr1.Attachment0 = A1
  1232. tr1.Attachment1 = A0
  1233. tr1.Texture = "rbxassetid://2108945559"
  1234. tr1.LightEmission = 1
  1235. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1236. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1237. tr1.Lifetime = 0.6
  1238.  
  1239. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1240. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1241. 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))
  1242.  
  1243. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1244. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1245. 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))
  1246. A0 = Instance.new('Attachment',wed)
  1247. A0.Position = vt(0,0.25,0.25)
  1248. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1249. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1250. 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))
  1251. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1252. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1253. 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))
  1254. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1255. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1256. 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))
  1257. A1 = Instance.new('Attachment',wed)
  1258. A1.Position = vt(0,2,0.25)
  1259.  
  1260. tr2 = Instance.new('Trail',wed)
  1261. tr2.Attachment0 = A1
  1262. tr2.Attachment1 = A0
  1263. tr2.Texture = "rbxassetid://2108945559"
  1264. tr2.LightEmission = 1
  1265. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1266. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1267. tr2.Lifetime = 0.6
  1268.  
  1269. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1270. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1271. 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))
  1272.  
  1273. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1274. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1275. 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))
  1276. A0 = Instance.new('Attachment',wed)
  1277. A0.Position = vt(0,0.25,0.25)
  1278. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1279. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1280. 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))
  1281. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1282. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1283. 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))
  1284. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1285. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1286. 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))
  1287. A1 = Instance.new('Attachment',wed)
  1288. A1.Position = vt(0,2,0.25)
  1289.  
  1290. tr3 = Instance.new('Trail',wed)
  1291. tr3.Attachment0 = A1
  1292. tr3.Attachment1 = A0
  1293. tr3.Texture = "rbxassetid://2108945559"
  1294. tr3.LightEmission = 1
  1295. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1296. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1297. tr3.Lifetime = 0.6
  1298.  
  1299.  
  1300. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1301. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1302. 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))
  1303.  
  1304. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1305. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1306. 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))
  1307. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1308. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1309. 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))
  1310. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1311. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1312. 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))
  1313. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1314. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1315. 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))
  1316.  
  1317. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1318. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1319. 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))
  1320.  
  1321. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1322. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1323. 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))
  1324. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1325. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1326. 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))
  1327. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1328. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1329. 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))
  1330. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1331. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1332. 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))
  1333.  
  1334. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1335. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1336. 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))
  1337.  
  1338. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1339. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1340. 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))
  1341. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1342. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1343. 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))
  1344. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1345. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1346. 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))
  1347. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1348. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1349. 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))
  1350.  
  1351. ---- HERES THE RING
  1352.  
  1353.  
  1354. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1355. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1356. 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))
  1357. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1358. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1359. 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))
  1360. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1361. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1362. 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))
  1363.  
  1364.  
  1365. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1366. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1367. 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))
  1368.  
  1369. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1370. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1371. 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))
  1372.  
  1373.  
  1374.  
  1375. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1376. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1377. 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))
  1378.  
  1379. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1380. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1381. 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))
  1382.  
  1383. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1384. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1385. 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))
  1386.  
  1387. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1388. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1389. 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))
  1390. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1391. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1392. 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))
  1393.  
  1394. --- second ring
  1395.  
  1396. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1397. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1398. 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))
  1399. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1400. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1401. 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))
  1402. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1403. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1404. 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))
  1405.  
  1406. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1407. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1408. 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))
  1409.  
  1410. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1411. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1412. 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))
  1413.  
  1414.  
  1415.  
  1416. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1417. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1418. 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))
  1419.  
  1420. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1421. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1422. 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))
  1423.  
  1424. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1425. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1426. 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))
  1427.  
  1428. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1429. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1430. 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))
  1431. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1432. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1433. 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))]]--
  1434.  
  1435.  
  1436.  
  1437. for i, v in pairs(m:GetChildren()) do
  1438. if v:IsA("Part") then
  1439. v.BrickColor = BrickColor.new("Really black")
  1440. v.Material = "Glass"
  1441. end
  1442. end
  1443. for i, v in pairs(m2:GetChildren()) do
  1444. if v:IsA("Part") then
  1445. v.BrickColor = BrickColor.new("Crimson")
  1446. v.Material = "Granite"
  1447. end
  1448. end
  1449. for i, v in pairs(m3:GetChildren()) do
  1450. if v:IsA("Part") then
  1451. v.BrickColor = BrickColor.new("Really red")
  1452. v.Material = "Neon"
  1453. end
  1454. end
  1455. for i, v in pairs(mw2:GetChildren()) do
  1456. if v:IsA("Part") then
  1457. v.BrickColor = BrickColor.new("Really red")
  1458. v.Material = "Neon"
  1459. end
  1460. end
  1461. for i, v in pairs(mw1:GetChildren()) do
  1462. if v:IsA("Part") then
  1463. v.Transparency = 1
  1464. v.BrickColor = BrickColor.new("Really red")
  1465. v.Material = "Neon"
  1466. end
  1467. end
  1468. for i, v in pairs(extrawingmod1:GetChildren()) do
  1469. if v:IsA("Part") then
  1470. v.Transparency = 1
  1471. v.BrickColor = BrickColor.new("White")
  1472. v.Material = "Neon"
  1473. end
  1474. end
  1475. for i, v in pairs(extrawingmod2:GetChildren()) do
  1476. if v:IsA("Part") then
  1477. v.Transparency = 1
  1478. v.BrickColor = BrickColor.new("White")
  1479. v.Material = "Neon"
  1480. end
  1481. end
  1482. local MAINRUINCOLOR = BrickColor.new("Really red")
  1483. ------
  1484.  
  1485.  
  1486. function RemoveOutlines(part)
  1487. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1488. end
  1489. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1490. local Part = Create("Part")({
  1491. Parent = Parent,
  1492. Reflectance = Reflectance,
  1493. Transparency = Transparency,
  1494. CanCollide = false,
  1495. Locked = true,
  1496. BrickColor = BrickColor.new(tostring(BColor)),
  1497. Name = Name,
  1498. Size = Size,
  1499. Material = Material
  1500. })
  1501. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1502. RemoveOutlines(Part)
  1503. return Part
  1504. end
  1505. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1506. local Msh = Create(Mesh)({
  1507. Parent = Part,
  1508. Offset = OffSet,
  1509. Scale = Scale
  1510. })
  1511. if Mesh == "SpecialMesh" then
  1512. Msh.MeshType = MeshType
  1513. Msh.MeshId = MeshId
  1514. end
  1515. return Msh
  1516. end
  1517. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1518. local Weld = Create("Weld")({
  1519. Parent = Parent,
  1520. Part0 = Part0,
  1521. Part1 = Part1,
  1522. C0 = C0,
  1523. C1 = C1
  1524. })
  1525. return Weld
  1526. end
  1527. Player = currentuser
  1528. Character=Player.Character
  1529. PlayerGui=Player.PlayerGui
  1530. Backpack=Player.Backpack
  1531. Torso=Character.Torso
  1532. Head=Character.Head
  1533. Humanoid=Character.Humanoid
  1534. m=Instance.new('Model',Character)
  1535. LeftArm=Character["Left Arm"]
  1536. LeftLeg=Character["Left Leg"]
  1537. RightArm=Character["Right Arm"]
  1538. RightLeg=Character["Right Leg"]
  1539. LS=Torso["Left Shoulder"]
  1540. LH=Torso["Left Hip"]
  1541. RS=Torso["Right Shoulder"]
  1542. RH=Torso["Right Hip"]
  1543. Face = Head.face
  1544. Neck=Torso.Neck
  1545. it=Instance.new
  1546. attacktype=1
  1547. vt=Vector3.new
  1548. cf=CFrame.new
  1549. euler=CFrame.fromEulerAnglesXYZ
  1550. angles=CFrame.Angles
  1551. cloaked=false
  1552. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1553. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1554. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1555. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1556. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1557. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1558. RootPart=Character.HumanoidRootPart
  1559. RootJoint=RootPart.RootJoint
  1560. RootCF=euler(-1.57,0,3.14)
  1561. attack = false
  1562. attackdebounce = false
  1563. deb=false
  1564. equipped=true
  1565. hand=false
  1566. combo=0
  1567. mana=0
  1568. trispeed=.2
  1569. attackmode='none'
  1570. local idle=0
  1571. local Anim="Idle"
  1572. local Effects={}
  1573. local gun=false
  1574. local shoot=false
  1575. local sine = 0
  1576. local change = 1
  1577.  
  1578. function RecolorTextAndRename(name,col1,col2,font)
  1579. modet.TextStrokeColor3 = col2
  1580. modet.TextColor3 = col1
  1581. modet.Font = font
  1582. modet.Text = name
  1583. techc.ImageColor3 = col2
  1584. circl.ImageColor3 = col2
  1585. circl2.ImageColor3 = col1
  1586. imgl2.ImageColor3 = col1
  1587. imgl2b.ImageColor3 = col2
  1588. ned.Text = name
  1589. ned.TextColor3 = col1
  1590. ned.TextStrokeColor3 = col2
  1591. end
  1592. --save shoulders
  1593. RSH, LSH=nil, nil
  1594. --welds
  1595. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1596. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1597. LH=Torso["Left Hip"]
  1598. RH=Torso["Right Hip"]
  1599. TorsoColor=Torso.BrickColor
  1600. function NoOutline(Part)
  1601. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1602. end
  1603. ch=Character
  1604. RSH=ch.Torso["Right Shoulder"]
  1605. LSH=ch.Torso["Left Shoulder"]
  1606. --
  1607. RSH.Parent=nil
  1608. LSH.Parent=nil
  1609. --
  1610. RW.Name="Right Shoulder"
  1611. RW.Part0=ch.Torso
  1612. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1613. RW.C1=cf(0, 0.5, 0)
  1614. RW.Part1=ch["Right Arm"]
  1615. RW.Parent=ch.Torso
  1616. --
  1617. LW.Name="Left Shoulder"
  1618. LW.Part0=ch.Torso
  1619. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1620. LW.C1=cf(0, 0.5, 0)
  1621. LW.Part1=ch["Left Arm"]
  1622. LW.Parent=ch.Torso
  1623.  
  1624. local Stats=Instance.new("BoolValue")
  1625. Stats.Name="Stats"
  1626. Stats.Parent=Character
  1627. local Atk=Instance.new("NumberValue")
  1628. Atk.Name="Damage"
  1629. Atk.Parent=Stats
  1630. Atk.Value=1
  1631. local Def=Instance.new("NumberValue")
  1632. Def.Name="Defense"
  1633. Def.Parent=Stats
  1634. Def.Value=1
  1635. local Speed=Instance.new("NumberValue")
  1636. Speed.Name="Speed"
  1637. Speed.Parent=Stats
  1638. Speed.Value=1
  1639. local Mvmt=Instance.new("NumberValue")
  1640. Mvmt.Name="Movement"
  1641. Mvmt.Parent=Stats
  1642. Mvmt.Value=1
  1643.  
  1644. local donum=0
  1645.  
  1646.  
  1647. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1648. local fp=it("Part")
  1649. fp.formFactor=formfactor
  1650. fp.Parent=parent
  1651. fp.Reflectance=reflectance
  1652. fp.Transparency=transparency
  1653. fp.CanCollide=false
  1654. fp.Locked=true
  1655. fp.BrickColor=brickcolor
  1656. fp.Name=name
  1657. fp.Size=size
  1658. fp.Position=Torso.Position
  1659. NoOutline(fp)
  1660. fp.Material="SmoothPlastic"
  1661. fp:BreakJoints()
  1662. return fp
  1663. end
  1664.  
  1665. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1666. local mesh=it(Mesh)
  1667. mesh.Parent=part
  1668. if Mesh=="SpecialMesh" then
  1669. mesh.MeshType=meshtype
  1670. if meshid~="nil" then
  1671. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1672. end
  1673. end
  1674. mesh.Offset=offset
  1675. mesh.Scale=scale
  1676. return mesh
  1677. end
  1678.  
  1679. function weld(parent,part0,part1,c0)
  1680. local weld=it("Weld")
  1681. weld.Parent=parent
  1682. weld.Part0=part0
  1683. weld.Part1=part1
  1684. weld.C0=c0
  1685. return weld
  1686. end
  1687.  
  1688. local Color1=Torso.BrickColor
  1689.  
  1690. local bodvel=Instance.new("BodyVelocity")
  1691. local bg=Instance.new("BodyGyro")
  1692.  
  1693. --------- SazEreno's Artificial HB --------------
  1694. ArtificialHB = Instance.new("BindableEvent", script)
  1695. ArtificialHB.Name = "ArtificialHB"
  1696.  
  1697. script:WaitForChild("ArtificialHB")
  1698. Frame_Speed = 1 / 60
  1699. frame = Frame_Speed
  1700. tf = 0
  1701. allowframeloss = false
  1702. tossremainder = false
  1703. lastframe = tick()
  1704. script.ArtificialHB:Fire()
  1705.  
  1706. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1707. tf = tf + s
  1708. if tf >= frame then
  1709. if allowframeloss then
  1710. script.ArtificialHB:Fire()
  1711. lastframe = tick()
  1712. else
  1713. for i = 1, math.floor(tf / frame) do
  1714. script.ArtificialHB:Fire()
  1715. end
  1716. lastframe = tick()
  1717. end
  1718. if tossremainder then
  1719. tf = 0
  1720. else
  1721. tf = tf - frame * math.floor(tf / frame)
  1722. end
  1723. end
  1724. end)
  1725.  
  1726. ------------------
  1727. function swait(num)
  1728. if num == 0 or num == nil then
  1729. ArtificialHB.Event:wait()
  1730. else
  1731. for i = 1, num do
  1732. ArtificialHB.Event:wait()
  1733. end
  1734. end
  1735. end
  1736. -------- RAINBOW LEAVE IT TO ME
  1737. local r = 255
  1738. local g = 0
  1739. local b = 0
  1740. coroutine.resume(coroutine.create(function()
  1741. while wait() do
  1742. for i = 0, 254/5 do
  1743. swait()
  1744. g = g + 5
  1745. end
  1746. for i = 0, 254/5 do
  1747. swait()
  1748. r = r - 5
  1749. end
  1750. for i = 0, 254/5 do
  1751. swait()
  1752. b = b + 5
  1753. end
  1754. for i = 0, 254/5 do
  1755. swait()
  1756. g = g - 5
  1757. end
  1758. for i = 0, 254/5 do
  1759. swait()
  1760. r = r + 5
  1761. end
  1762. for i = 0, 254/5 do
  1763. swait()
  1764. b = b - 5
  1765. end
  1766. end
  1767. end))
  1768.  
  1769.  
  1770. so = function(id,par,vol,pit)
  1771. coroutine.resume(coroutine.create(function()
  1772. local sou = Instance.new("Sound",par or workspace)
  1773. sou.Volume=vol
  1774. sou.Pitch=pit or 1
  1775. sou.SoundId=id
  1776. swait()
  1777. sou:play()
  1778. game:GetService("Debris"):AddItem(sou,6)
  1779. end))
  1780. end
  1781.  
  1782. function clerp(a,b,t)
  1783. local qa = {QuaternionFromCFrame(a)}
  1784. local qb = {QuaternionFromCFrame(b)}
  1785. local ax, ay, az = a.x, a.y, a.z
  1786. local bx, by, bz = b.x, b.y, b.z
  1787. local _t = 1-t
  1788. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1789. end
  1790.  
  1791. function QuaternionFromCFrame(cf)
  1792. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1793. local trace = m00 + m11 + m22
  1794. if trace > 0 then
  1795. local s = math.sqrt(1 + trace)
  1796. local recip = 0.5/s
  1797. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1798. else
  1799. local i = 0
  1800. if m11 > m00 then
  1801. i = 1
  1802. end
  1803. if m22 > (i == 0 and m00 or m11) then
  1804. i = 2
  1805. end
  1806. if i == 0 then
  1807. local s = math.sqrt(m00-m11-m22+1)
  1808. local recip = 0.5/s
  1809. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1810. elseif i == 1 then
  1811. local s = math.sqrt(m11-m22-m00+1)
  1812. local recip = 0.5/s
  1813. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1814. elseif i == 2 then
  1815. local s = math.sqrt(m22-m00-m11+1)
  1816. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1817. end
  1818. end
  1819. end
  1820.  
  1821. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1822. local xs, ys, zs = x + x, y + y, z + z
  1823. local wx, wy, wz = w*xs, w*ys, w*zs
  1824. local xx = x*xs
  1825. local xy = x*ys
  1826. local xz = x*zs
  1827. local yy = y*ys
  1828. local yz = y*zs
  1829. local zz = z*zs
  1830. 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))
  1831. end
  1832.  
  1833. function QuaternionSlerp(a, b, t)
  1834. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1835. local startInterp, finishInterp;
  1836. if cosTheta >= 0.0001 then
  1837. if (1 - cosTheta) > 0.0001 then
  1838. local theta = math.acos(cosTheta)
  1839. local invSinTheta = 1/math.sin(theta)
  1840. startInterp = math.sin((1-t)*theta)*invSinTheta
  1841. finishInterp = math.sin(t*theta)*invSinTheta
  1842. else
  1843. startInterp = 1-t
  1844. finishInterp = t
  1845. end
  1846. else
  1847. if (1+cosTheta) > 0.0001 then
  1848. local theta = math.acos(-cosTheta)
  1849. local invSinTheta = 1/math.sin(theta)
  1850. startInterp = math.sin((t-1)*theta)*invSinTheta
  1851. finishInterp = math.sin(t*theta)*invSinTheta
  1852. else
  1853. startInterp = t-1
  1854. finishInterp = t
  1855. end
  1856. end
  1857. 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
  1858. end
  1859.  
  1860. local function CFrameFromTopBack(at, top, back)
  1861. local right = top:Cross(back)
  1862. return CFrame.new(at.x, at.y, at.z,
  1863. right.x, top.x, back.x,
  1864. right.y, top.y, back.y,
  1865. right.z, top.z, back.z)
  1866. end
  1867.  
  1868. function Triangle(a, b, c)
  1869. local edg1 = (c-a):Dot((b-a).unit)
  1870. local edg2 = (a-b):Dot((c-b).unit)
  1871. local edg3 = (b-c):Dot((a-c).unit)
  1872. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1873. a, b, c = a, b, c
  1874. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1875. a, b, c = b, c, a
  1876. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1877. a, b, c = c, a, b
  1878. else
  1879. assert(false, "unreachable")
  1880. end
  1881.  
  1882. local len1 = (c-a):Dot((b-a).unit)
  1883. local len2 = (b-a).magnitude - len1
  1884. local width = (a + (b-a).unit*len1 - c).magnitude
  1885.  
  1886. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1887.  
  1888. local list = {}
  1889.  
  1890. if len1 > 0.01 then
  1891. local w1 = Instance.new('WedgePart', m)
  1892. game:GetService("Debris"):AddItem(w1,5)
  1893. w1.Material = "SmoothPlastic"
  1894. w1.FormFactor = 'Custom'
  1895. w1.BrickColor = BrickColor.new("Really red")
  1896. w1.Transparency = 0
  1897. w1.Reflectance = 0
  1898. w1.Material = "SmoothPlastic"
  1899. w1.CanCollide = false
  1900. local l1 = Instance.new("PointLight",w1)
  1901. l1.Color = Color3.new(170,0,0)
  1902. NoOutline(w1)
  1903. local sz = Vector3.new(0.2, width, len1)
  1904. w1.Size = sz
  1905. local sp = Instance.new("SpecialMesh",w1)
  1906. sp.MeshType = "Wedge"
  1907. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1908. w1:BreakJoints()
  1909. w1.Anchored = true
  1910. w1.Parent = workspace
  1911. w1.Transparency = 0.7
  1912. table.insert(Effects,{w1,"Disappear",.01})
  1913. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1914. table.insert(list,w1)
  1915. end
  1916.  
  1917. if len2 > 0.01 then
  1918. local w2 = Instance.new('WedgePart', m)
  1919. game:GetService("Debris"):AddItem(w2,5)
  1920. w2.Material = "SmoothPlastic"
  1921. w2.FormFactor = 'Custom'
  1922. w2.BrickColor = BrickColor.new("Really red")
  1923. w2.Transparency = 0
  1924. w2.Reflectance = 0
  1925. w2.Material = "SmoothPlastic"
  1926. w2.CanCollide = false
  1927. local l2 = Instance.new("PointLight",w2)
  1928. l2.Color = Color3.new(170,0,0)
  1929. NoOutline(w2)
  1930. local sz = Vector3.new(0.2, width, len2)
  1931. w2.Size = sz
  1932. local sp = Instance.new("SpecialMesh",w2)
  1933. sp.MeshType = "Wedge"
  1934. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1935. w2:BreakJoints()
  1936. w2.Anchored = true
  1937. w2.Parent = workspace
  1938. w2.Transparency = 0.7
  1939. table.insert(Effects,{w2,"Disappear",.01})
  1940. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1941. table.insert(list,w2)
  1942. end
  1943. return unpack(list)
  1944. end
  1945.  
  1946.  
  1947. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1948. if hit.Parent == nil then
  1949. return
  1950. end
  1951. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1952. for _, v in pairs(hit.Parent:children()) do
  1953. if v:IsA("Humanoid") then
  1954. h = v
  1955. end
  1956. end
  1957. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1958. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1959. return
  1960. end
  1961. local c = Create("ObjectValue")({
  1962. Name = "creator",
  1963. Value = owner,
  1964. Parent = h
  1965. })
  1966. game:GetService("Debris"):AddItem(c, 0.5)
  1967. if HitSound ~= nil and HitPitch ~= nil then
  1968. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1969. end
  1970. local Damage = math.random(minim, maxim)
  1971. local blocked = false
  1972. local block = hit.Parent:findFirstChild("Block")
  1973. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1974. blocked = true
  1975. block.Value = block.Value - 1
  1976. print(block.Value)
  1977. end
  1978. if blocked == false then
  1979. HitHealth = h.Health
  1980. h.MaxHealth = 100
  1981. h.Health = h.Health - Damage
  1982. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1983. print("gained kill")
  1984. dmg(h.Parent)
  1985. end
  1986. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1987. else
  1988. h.Health = h.Health - Damage / 2
  1989. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1990. end
  1991. if Type == "Knockdown" then
  1992. local hum = hit.Parent.Humanoid
  1993. hum.PlatformStand = true
  1994. coroutine.resume(coroutine.create(function(HHumanoid)
  1995. swait(1)
  1996. HHumanoid.PlatformStand = false
  1997. end), hum)
  1998. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1999. local bodvol = Create("BodyVelocity")({
  2000. velocity = angle * knockback,
  2001. P = 5000,
  2002. maxForce = Vector3.new(8000, 8000, 8000),
  2003. Parent = hit
  2004. })
  2005. local rl = Create("BodyAngularVelocity")({
  2006. P = 3000,
  2007. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2008. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2009. Parent = hit
  2010. })
  2011. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2012. game:GetService("Debris"):AddItem(rl, 0.5)
  2013. elseif Type == "Normal" then
  2014. local vp = Create("BodyVelocity")({
  2015. P = 500,
  2016. maxForce = Vector3.new(math.huge, 0, math.huge),
  2017. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2018. })
  2019. if knockback > 0 then
  2020. vp.Parent = hit.Parent.Head
  2021. end
  2022. game:GetService("Debris"):AddItem(vp, 0.5)
  2023. elseif Type == "Up" then
  2024. local bodyVelocity = Create("BodyVelocity")({
  2025. velocity = Vector3.new(0, 20, 0),
  2026. P = 5000,
  2027. maxForce = Vector3.new(8000, 8000, 8000),
  2028. Parent = hit
  2029. })
  2030. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2031. local bodyVelocity = Create("BodyVelocity")({
  2032. velocity = Vector3.new(0, 20, 0),
  2033. P = 5000,
  2034. maxForce = Vector3.new(8000, 8000, 8000),
  2035. Parent = hit
  2036. })
  2037. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2038. elseif Type == "Leech" then
  2039. local hum = hit.Parent.Humanoid
  2040. if hum ~= nil then
  2041. for i = 0, 2 do
  2042. 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)
  2043. end
  2044. Humanoid.Health = Humanoid.Health + 10
  2045. end
  2046. elseif Type == "UpKnock" then
  2047. local hum = hit.Parent.Humanoid
  2048. hum.PlatformStand = true
  2049. if hum ~= nil then
  2050. hitr = true
  2051. end
  2052. coroutine.resume(coroutine.create(function(HHumanoid)
  2053. swait(5)
  2054. HHumanoid.PlatformStand = false
  2055. hitr = false
  2056. end), hum)
  2057. local bodyVelocity = Create("BodyVelocity")({
  2058. velocity = Vector3.new(0, 20, 0),
  2059. P = 5000,
  2060. maxForce = Vector3.new(8000, 8000, 8000),
  2061. Parent = hit
  2062. })
  2063. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2064. local bodyVelocity = Create("BodyVelocity")({
  2065. velocity = Vector3.new(0, 20, 0),
  2066. P = 5000,
  2067. maxForce = Vector3.new(8000, 8000, 8000),
  2068. Parent = hit
  2069. })
  2070. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2071. elseif Type == "Snare" then
  2072. local bp = Create("BodyPosition")({
  2073. P = 2000,
  2074. D = 100,
  2075. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2076. position = hit.Parent.Torso.Position,
  2077. Parent = hit.Parent.Torso
  2078. })
  2079. game:GetService("Debris"):AddItem(bp, 1)
  2080. elseif Type == "Slashnare" then
  2081. 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)
  2082. for i = 1, math.random(4, 5) do
  2083. 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)
  2084. end
  2085. local bp = Create("BodyPosition")({
  2086. P = 2000,
  2087. D = 100,
  2088. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2089. position = hit.Parent.Torso.Position,
  2090. Parent = hit.Parent.Torso
  2091. })
  2092. game:GetService("Debris"):AddItem(bp, 1)
  2093. elseif Type == "Spike" then
  2094. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2095. local bp = Create("BodyPosition")({
  2096. P = 2000,
  2097. D = 100,
  2098. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2099. position = hit.Parent.Torso.Position,
  2100. Parent = hit.Parent.Torso
  2101. })
  2102. game:GetService("Debris"):AddItem(bp, 1)
  2103. elseif Type == "Freeze" then
  2104. local BodPos = Create("BodyPosition")({
  2105. P = 50000,
  2106. D = 1000,
  2107. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2108. position = hit.Parent.Torso.Position,
  2109. Parent = hit.Parent.Torso
  2110. })
  2111. local BodGy = Create("BodyGyro")({
  2112. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2113. P = 20000,
  2114. Parent = hit.Parent.Torso,
  2115. cframe = hit.Parent.Torso.CFrame
  2116. })
  2117. hit.Parent.Torso.Anchored = true
  2118. coroutine.resume(coroutine.create(function(Part)
  2119. swait(1.5)
  2120. Part.Anchored = false
  2121. end), hit.Parent.Torso)
  2122. game:GetService("Debris"):AddItem(BodPos, 3)
  2123. game:GetService("Debris"):AddItem(BodGy, 3)
  2124. end
  2125. local debounce = Create("BoolValue")({
  2126. Name = "DebounceHit",
  2127. Parent = hit.Parent,
  2128. Value = true
  2129. })
  2130. game:GetService("Debris"):AddItem(debounce, Delay)
  2131. c = Instance.new("ObjectValue")
  2132. c.Name = "creator"
  2133. c.Value = Player
  2134. c.Parent = h
  2135. game:GetService("Debris"):AddItem(c, 0.5)
  2136. end
  2137. end
  2138. function ShowDamage(Pos, Text, Time, Color)
  2139. local Rate = 0.03333333333333333
  2140. local Pos = Pos or Vector3.new(0, 0, 0)
  2141. local Text = Text or ""
  2142. local Time = Time or 2
  2143. local Color = Color or Color3.new(1, 0, 1)
  2144. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2145. EffectPart.Anchored = true
  2146. local BillboardGui = Create("BillboardGui")({
  2147. Size = UDim2.new(3, 0, 3, 0),
  2148. Adornee = EffectPart,
  2149. Parent = EffectPart
  2150. })
  2151. local TextLabel = Create("TextLabel")({
  2152. BackgroundTransparency = 1,
  2153. Size = UDim2.new(1, 0, 1, 0),
  2154. Text = Text,
  2155. TextColor3 = Color,
  2156. TextScaled = true,
  2157. Font = Enum.Font.ArialBold,
  2158. Parent = BillboardGui
  2159. })
  2160. game.Debris:AddItem(EffectPart, Time + 0.1)
  2161. EffectPart.Parent = game:GetService("Workspace")
  2162. delay(0, function()
  2163. local Frames = Time / Rate
  2164. for Frame = 1, Frames do
  2165. wait(Rate)
  2166. local Percent = Frame / Frames
  2167. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2168. TextLabel.TextTransparency = Percent
  2169. end
  2170. if EffectPart and EffectPart.Parent then
  2171. EffectPart:Destroy()
  2172. end
  2173. end)
  2174. end
  2175. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2176. for _, c in pairs(workspace:children()) do
  2177. local hum = c:findFirstChildOfClass("Humanoid")
  2178. if hum ~= nil then
  2179. local head = c:findFirstChild("Head")
  2180. if head ~= nil then
  2181. local targ = head.Position - Part.Position
  2182. local mag = targ.magnitude
  2183. if magni >= mag and c.Name ~= Player.Name then
  2184. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2185. end
  2186. end
  2187. end
  2188. end
  2189. end
  2190.  
  2191. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2192. for _, c in pairs(workspace:children()) do
  2193. local hum = c:findFirstChild("Humanoid")
  2194. if hum ~= nil then
  2195. local head = c:findFirstChild("Torso")
  2196. if head ~= nil then
  2197. local targ = head.Position - Part.Position
  2198. local mag = targ.magnitude
  2199. if magni >= mag and c.Name ~= Player.Name then
  2200. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2201. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2202. end
  2203. end
  2204. end
  2205. end
  2206. end
  2207.  
  2208. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2209. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2210. end
  2211.  
  2212. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2213. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2214. prt.Anchored=true
  2215. prt.CFrame=cframe
  2216. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2217. --http://www.roblox.com/asset/?id=4770560
  2218. game:GetService("Debris"):AddItem(prt,2)
  2219. CF=prt.CFrame
  2220. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2221. for i=0,1,0.2 do
  2222. wait()
  2223. Part.CFrame=CF*cf(0,0,-0.4)
  2224. end
  2225. for i=0,1,delay do
  2226. wait()
  2227. --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)
  2228. Mesh.Scale=Mesh.Scale
  2229. end
  2230. for i=0,1,0.1 do
  2231. wait()
  2232. Part.Transparency=i
  2233. end
  2234. Part.Parent=nil
  2235. end),prt,msh,CF)
  2236. end
  2237.  
  2238. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2239. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2240. prt.Anchored=true
  2241. prt.Material = "Neon"
  2242. prt.CFrame=cframe
  2243. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2245. game:GetService("Debris"):AddItem(prt,5)
  2246. coroutine.resume(coroutine.create(function(Part,Mesh)
  2247. for i=0,1,delay do
  2248. swait()
  2249. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2250. Part.Transparency=i
  2251. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2252. end
  2253. Part.Parent=nil
  2254. end),prt,msh)
  2255. end
  2256.  
  2257. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2258. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2259. prt.Anchored=true
  2260. prt.Material = "Neon"
  2261. prt.CFrame=cframe
  2262. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2263. game:GetService("Debris"):AddItem(prt,5)
  2264. coroutine.resume(coroutine.create(function(Part,Mesh)
  2265. local rtype = rottype
  2266. for i=0,1,delay do
  2267. swait()
  2268. if rtype == 1 then
  2269. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2270. elseif rtype == 2 then
  2271. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2272. end
  2273. Part.Transparency=i
  2274. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2275. end
  2276. Part.Parent=nil
  2277. end),prt,msh)
  2278. end
  2279.  
  2280. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2281. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2282. prt.Anchored=true
  2283. prt.CFrame=cframe
  2284. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2285. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2286. game:GetService("Debris"):AddItem(prt,5)
  2287. coroutine.resume(coroutine.create(function(Part,Mesh)
  2288. for i=0,1,delay do
  2289. wait()
  2290. Part.Transparency=i
  2291. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2292. end
  2293. Part.Parent=nil
  2294. end),prt,msh)
  2295. end
  2296.  
  2297. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2298. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2299. prt.Anchored=true
  2300. prt.Material = "Neon"
  2301. prt.CFrame=cframe
  2302. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2303. game:GetService("Debris"):AddItem(prt,5)
  2304. coroutine.resume(coroutine.create(function(Part,Mesh)
  2305. local rtype = rottype
  2306. for i=0,1,delay do
  2307. swait()
  2308. if rtype == 1 then
  2309. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2310. elseif rtype == 2 then
  2311. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2312. end
  2313. Part.Transparency=i
  2314. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2315. end
  2316. Part.Parent=nil
  2317. end),prt,msh)
  2318. end
  2319.  
  2320. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2321. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2322. prt.Anchored=true
  2323. prt.Material = "Neon"
  2324. prt.CFrame=cframe
  2325. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2326. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2327. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2328. game:GetService("Debris"):AddItem(prt,5)
  2329. coroutine.resume(coroutine.create(function(Part,Mesh)
  2330. local rtype = rottype
  2331. for i=0,1,delay do
  2332. swait()
  2333. if rtype == 1 then
  2334. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2335. elseif rtype == 2 then
  2336. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2337. end
  2338. dec.Transparency=i
  2339. dec2.Transparency=i
  2340. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2341. end
  2342. Part.Parent=nil
  2343. end),prt,msh)
  2344. end
  2345.  
  2346. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2347. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2348. prt.Anchored=true
  2349. prt.Material = "Neon"
  2350. prt.CFrame=cframe
  2351. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2352. game:GetService("Debris"):AddItem(prt,5)
  2353. coroutine.resume(coroutine.create(function(Part,Mesh)
  2354. local rtype = rottype
  2355. for i=0,1,delay do
  2356. swait()
  2357. if rtype == 1 then
  2358. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2359. elseif rtype == 2 then
  2360. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2361. end
  2362. prt.Transparency=i
  2363. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2364. end
  2365. Part.Parent=nil
  2366. end),prt,msh)
  2367. end
  2368.  
  2369. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2370. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2371. prt.Anchored=true
  2372. prt.Material = "Neon"
  2373. prt.CFrame=cframe
  2374. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2375. game:GetService("Debris"):AddItem(prt,5)
  2376. coroutine.resume(coroutine.create(function(Part,Mesh)
  2377. local rtype = rottype
  2378. for i=0,1,delay do
  2379. swait()
  2380. if rtype == 1 then
  2381. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2382. elseif rtype == 2 then
  2383. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2384. end
  2385. prt.Transparency=i
  2386. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2387. end
  2388. Part.Parent=nil
  2389. end),prt,msh)
  2390. end
  2391.  
  2392. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2393. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2394. prt.Anchored=true
  2395. prt.Material = "Neon"
  2396. prt.CFrame=cframe
  2397. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2398. game:GetService("Debris"):AddItem(prt,5)
  2399. coroutine.resume(coroutine.create(function(Part,Mesh)
  2400. local rtype = rottype
  2401. for i=0,1,delay do
  2402. swait()
  2403. if rtype == 1 then
  2404. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2405. elseif rtype == 2 then
  2406. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2407. end
  2408. prt.Transparency=i
  2409. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2410. end
  2411. Part.Parent=nil
  2412. end),prt,msh)
  2413. end
  2414.  
  2415. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2416. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2417. prt.Anchored=true
  2418. prt.Material = "Neon"
  2419. prt.CFrame=cframe
  2420. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2421. game:GetService("Debris"):AddItem(prt,5)
  2422. coroutine.resume(coroutine.create(function(Part,Mesh)
  2423. local rtype = rottype
  2424. for i=0,1,delay do
  2425. swait()
  2426. if rtype == 1 then
  2427. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2428. elseif rtype == 2 then
  2429. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2430. end
  2431. prt.Transparency=i
  2432. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2433. end
  2434. Part.Parent=nil
  2435. end),prt,msh)
  2436. end
  2437.  
  2438. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2439. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2440. prt.Anchored=false
  2441. prt.CFrame=cframe
  2442. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2443. local wld=weld(prt,prt,Parent,cframe)
  2444. game:GetService("Debris"):AddItem(prt,5)
  2445. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2446. for i=0,1,delay do
  2447. wait()
  2448. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2449. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2450. Part.Transparency=i
  2451. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2452. end
  2453. Part.Parent=nil
  2454. end),prt,msh,wld)
  2455. end
  2456.  
  2457. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2458. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2459. prt.Anchored=false
  2460. prt.CFrame=cframe
  2461. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2462. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2463. game:GetService("Debris"):AddItem(prt,5)
  2464. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2465. for i=0,1,delay do
  2466. wait()
  2467. Weld.C0=euler(i*20,0,0)
  2468. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2469. Part.Transparency=i
  2470. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2471. end
  2472. Part.Parent=nil
  2473. end),prt,msh,wld)
  2474. end
  2475.  
  2476. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2477. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2478. prt.Anchored=true
  2479. prt.CFrame=cframe
  2480. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2481. game:GetService("Debris"):AddItem(prt,2)
  2482. coroutine.resume(coroutine.create(function(Part,Mesh)
  2483. for i=0,1,delay do
  2484. wait()
  2485. Part.CFrame=Part.CFrame
  2486. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2487. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2488. prt2.Anchored=true
  2489. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2490. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2491. game:GetService("Debris"):AddItem(prt2,2)
  2492. coroutine.resume(coroutine.create(function(Part,Mesh)
  2493. for i=0,1,0.1 do
  2494. wait()
  2495. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2496. end
  2497. Part.Parent=nil
  2498. end),prt2,msh2)
  2499. end
  2500. for i=0,1,delay*2 do
  2501. wait()
  2502. Part.CFrame=Part.CFrame
  2503. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2504. end
  2505. Part.Parent=nil
  2506. end),prt,msh)
  2507. end
  2508.  
  2509. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2510. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2511. prt.Anchored=true
  2512. prt.CFrame=cframe
  2513. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2514. game:GetService("Debris"):AddItem(prt,2)
  2515. coroutine.resume(coroutine.create(function(Part,Mesh)
  2516. for i=0,1,delay do
  2517. wait()
  2518. Part.CFrame=Part.CFrame
  2519. Part.Transparency=i
  2520. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2521. end
  2522. Part.Parent=nil
  2523. end),prt,msh)
  2524. end
  2525.  
  2526. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2527. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2528. prt.Anchored=true
  2529. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2530. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2531. game:GetService("Debris"):AddItem(prt,2)
  2532. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2533. CF=Part.CFrame
  2534. Numbb=0
  2535. randnumb=math.random()/10
  2536. rand1=math.random()/10
  2537. for i=0,1,rand1 do
  2538. wait()
  2539. CF=CF*cf(0,math.random()/2,0)
  2540. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2541. Part.CFrame=CF*euler(Numbb,0,0)
  2542. Part.Transparency=i
  2543. Numbb=Numbb+randnumb
  2544. end
  2545. Part.Parent=nil
  2546. end),prt,CF,Numbb,randnumb)
  2547. end
  2548.  
  2549. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2550. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2551. prt.Anchored=true
  2552. prt.CFrame=cframe
  2553. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2554. game:GetService("Debris"):AddItem(prt,5)
  2555. coroutine.resume(coroutine.create(function(Part,Mesh)
  2556. for i=0,1,delay do
  2557. wait()
  2558. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2559. Part.Transparency=i
  2560. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2561. end
  2562. Part.Parent=nil
  2563. end),prt,msh)
  2564. end
  2565.  
  2566. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2567. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2568. prt.Anchored=true
  2569. prt.CFrame=cframe
  2570. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2571. game:GetService("Debris"):AddItem(prt,2)
  2572. coroutine.resume(coroutine.create(function(Part,Mesh)
  2573. for i=0,1,delay do
  2574. wait()
  2575. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2576. Part.Transparency=i
  2577. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2578. end
  2579. Part.Parent=nil
  2580. end),prt,msh)
  2581. end
  2582.  
  2583. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2584. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2585. prt.Anchored=true
  2586. prt.CFrame=cframe*cf(x,y,z)
  2587. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2588. game:GetService("Debris"):AddItem(prt,5)
  2589. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2590. local num=math.random()
  2591. local num2=math.random(-3,2)+math.random()
  2592. local numm=0
  2593. for i=0,1,delay*2 do
  2594. swait()
  2595. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2596. Part.Transparency=i
  2597. numm=numm+0.01
  2598. end
  2599. Part.Parent=nil
  2600. Mesh.Parent=nil
  2601. end),prt,msh,x,y,z)
  2602. end
  2603.  
  2604. function dmgstart(dmg,what)
  2605. hitcon = what.Touched:connect(function(hit)
  2606. local hum = hit.Parent:FindFirstChild("Humanoid")
  2607. if hum and not hum:IsDescendantOf(Character) then
  2608. hum:TakeDamage(dmg)
  2609. end
  2610. end)
  2611. end
  2612.  
  2613. function dmgstop()
  2614. hitcon:disconnect()
  2615. end
  2616. function SHDTwist()
  2617. attack = true
  2618. hum.WalkSpeed = 0
  2619. local radm = math.random(1,3)
  2620. if radm == 1 then
  2621. bosschatfunc("Plasmatic Burst!",MAINRUINCOLOR.Color,1)
  2622. elseif radm == 2 then
  2623. bosschatfunc("How cute.",MAINRUINCOLOR.Color,1)
  2624. elseif radm == 3 then
  2625. bosschatfunc("Suffer to the brightness.",MAINRUINCOLOR.Color,1)
  2626. end
  2627. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1.5,1.25)
  2628. local obj1 = script.chring2:Clone()
  2629. obj1.Parent = char
  2630. obj1.Transparency = 1
  2631. obj1.Size = vt(1,1,1)
  2632. obj1.Color = BrickColor.new("Pink").Color
  2633. local obj2 = script.spball:Clone()
  2634. obj2.Parent = char
  2635. obj2.Transparency = 1
  2636. obj2.Size = vt(1,1,1)
  2637. obj2.Color = MAINRUINCOLOR.Color
  2638. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  2639. cfor.Anchored = true
  2640. cfor.CFrame = obj2.CFrame
  2641. local cef = Instance.new("ParticleEmitter",cfor)
  2642. cef.Texture = "rbxassetid://2344870656"
  2643. cef.LightEmission = 1
  2644. cef.Color = ColorSequence.new(obj2.Color)
  2645. cef.Rate = 150
  2646. cef.Lifetime = NumberRange.new(0.25)
  2647. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  2648. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  2649. cef.Speed = NumberRange.new(0)
  2650. local rval = 0
  2651. local eval = 1
  2652. for i = 0,7,0.1 do
  2653. swait()
  2654. rval = rval + math.random(30,40)
  2655. eval = eval + 0.45
  2656. obj1.Transparency = obj1.Transparency - 0.005
  2657. obj1.Size = obj1.Size + vt(0.3,0.3,0.1)
  2658. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  2659. obj2.Transparency = obj2.Transparency - 0.007
  2660. obj2.Size = obj2.Size + vt(0.15,0.15,0.15)
  2661. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  2662. obj2.CFrame = root.CFrame*CFrame.new(0,1,-7)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  2663. cfor.CFrame = obj2.CFrame
  2664. 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)
  2665. 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)
  2666. 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)
  2667. 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)
  2668. 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)
  2669. 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)
  2670. 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)
  2671. 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)
  2672. end
  2673. cef.Enabled = false
  2674. coroutine.resume(coroutine.create(function()
  2675. for i = 0,49 do
  2676. swait()
  2677. rval = rval + 100
  2678. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  2679. obj2.Transparency = obj2.Transparency + 0.02
  2680. obj2.Size = obj2.Size + vt(5,5,5)
  2681. obj1.Transparency = obj1.Transparency + 0.02
  2682. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  2683. end
  2684. obj1:Destroy()
  2685. obj2:Destroy()
  2686. cfor:Destroy()
  2687. end))
  2688. local lva = 1
  2689. local ica = 0
  2690. local cent = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  2691. CFuncs["Sound"].Create("rbxassetid://1177785010", cent, 10, 1)
  2692. cent.CFrame = root.CFrame*CFrame.Angles(0,0,0) + root.CFrame.lookVector*5
  2693. 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)
  2694. sphere2(3,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  2695.  
  2696. local a = Instance.new("Part",workspace)
  2697. a.Name = "Direction"
  2698. a.Anchored = true
  2699. a.BrickColor = bc("Bright red")
  2700. a.Material = "Neon"
  2701. a.Transparency = 1
  2702. a.CanCollide = false
  2703. local ray = Ray.new(
  2704. cent.CFrame.p, -- origin
  2705. (mouse.Hit.p - cent.CFrame.p).unit * 500 -- direction
  2706. )
  2707. local ignore = cent
  2708. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2709. a.BottomSurface = 10
  2710. a.TopSurface = 10
  2711. local distance = (cent.CFrame.p - position).magnitude
  2712. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2713. a.CFrame = CFrame.new(cent.CFrame.p, position) * CFrame.new(0, 0, 0)
  2714. cent.CFrame = a.CFrame
  2715. a:Destroy()
  2716. local bv = Instance.new("BodyVelocity")
  2717. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2718. bv.velocity = cent.CFrame.lookVector*0
  2719. bv.Parent = cent
  2720. game:GetService("Debris"):AddItem(cent, 20)
  2721. local hitted = false
  2722. coroutine.resume(coroutine.create(function()
  2723. while true do
  2724. swait(1)
  2725. if hitted == false and cent.Parent ~= nil then
  2726. ica = ica + 4*lva
  2727. lva = lva + 0.1
  2728. bv.velocity = cent.CFrame.lookVector*ica
  2729. sphere2(3,"Add",cent.CFrame,vt(5,5,5),-0.05,-0.05,-0.05,BrickColor.new("Pastel light blue"))
  2730. 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"))
  2731. 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"))
  2732. elseif hitted == true or cent.Parent == nil then
  2733. break
  2734. end
  2735. end
  2736. end))
  2737. coroutine.resume(coroutine.create(function()
  2738. cent.Touched:connect(function(hit)
  2739. if hitted == false and hit.Parent ~= char then
  2740. hitted = true
  2741. cent.Anchored = true
  2742. CFuncs["Sound"].Create("rbxassetid://782353443", cent, 10, 1)
  2743. CFuncs["Sound"].Create("rbxassetid://1368637781", cent, 8, 1)
  2744. CFuncs["Sound"].Create("rbxassetid://763717897", cent, 5, 1)
  2745. CFuncs["EchoSound"].Create("rbxassetid://1177785010", cent, 8, 1.1,0,10,0.15,0.5,1)
  2746. MagniDamage(cent, 50, 50,99999, 0, "Normal")
  2747. sphere2(2,"Add",cent.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  2748. sphere2(3,"Add",cent.CFrame,vt(1,1,1),1.2,1.2,1.2,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  2749. for i = 0, 19 do
  2750. 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"))
  2751. 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"))
  2752. end
  2753. coroutine.resume(coroutine.create(function()
  2754. local eff = Instance.new("ParticleEmitter",cent)
  2755. eff.Texture = "rbxassetid://2344870656"
  2756. eff.LightEmission = 1
  2757. eff.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  2758. eff.Rate = 10000000
  2759. eff.Enabled = true
  2760. eff.EmissionDirection = "Front"
  2761. eff.Lifetime = NumberRange.new(5)
  2762. 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)})
  2763. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2764. eff.Speed = NumberRange.new(350)
  2765. eff.Drag = 5
  2766. eff.Rotation = NumberRange.new(-500,500)
  2767. eff.SpreadAngle = Vector2.new(0,900)
  2768. eff.RotSpeed = NumberRange.new(-500,500)
  2769. local eff2 = eff:Clone()
  2770. eff2.Parent = cent
  2771. eff2.Speed = NumberRange.new(250)
  2772. eff2.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  2773. wait(0.2)
  2774. eff.Enabled = false
  2775. eff2.Enabled = false
  2776. end))
  2777. end
  2778. end)
  2779. end))
  2780. attack = false
  2781. hum.WalkSpeed = 15
  2782. end
  2783. function Cloak()
  2784. Face.Parent=nil
  2785. cloaked=true
  2786. for _,v in pairs(Torso.Parent:children()) do
  2787. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2788. coroutine.resume(coroutine.create(function()
  2789. for i=0,1,0.2 do
  2790. wait()
  2791. v.Transparency=i
  2792. end
  2793. v.Transparency=1
  2794. end))
  2795. end
  2796. if v.className=="Hat" then
  2797. hatp=v.Handle
  2798. coroutine.resume(coroutine.create(function(derp)
  2799. for i=0,1,0.2 do
  2800. wait()
  2801. derp.Transparency=i
  2802. end
  2803. derp.Transparency=1
  2804. end),hatp)
  2805. end
  2806. end
  2807. for _,v in pairs(m:children()) do
  2808. if v.className=="Part" then
  2809. coroutine.resume(coroutine.create(function()
  2810. for i=0,1,0.2 do
  2811. wait()
  2812. v.Transparency=i
  2813. end
  2814. v.Transparency=1
  2815. end))
  2816. end
  2817. end
  2818. end
  2819.  
  2820. function UnCloak()
  2821. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2822. Face.Parent=Head
  2823. cloaked=false
  2824. for _,v in pairs(Torso.Parent:children()) do
  2825. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2826. coroutine.resume(coroutine.create(function()
  2827. for i=0,1,0.1 do
  2828. wait()
  2829. v.Transparency=v.Transparency-0.1
  2830. end
  2831. v.Transparency=0
  2832. end))
  2833. end
  2834. if v.className=="Hat" then
  2835. hatp=v.Handle
  2836. coroutine.resume(coroutine.create(function(derp)
  2837. for i=0,1,0.1 do
  2838. wait()
  2839. derp.Transparency=derp.Transparency-0.1
  2840. end
  2841. derp.Transparency=0
  2842. end),hatp)
  2843. end
  2844. end
  2845. for _,v in pairs(m:children()) do
  2846. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2847. coroutine.resume(coroutine.create(function()
  2848. for i=0,1,0.1 do
  2849. wait()
  2850. v.Transparency=v.Transparency-0.1
  2851. end
  2852. v.Transparency=0
  2853. end))
  2854. v.Transparency=0
  2855. end
  2856. end
  2857. end
  2858.  
  2859. local origcolor = BrickColor.new("Pastel light blue")
  2860. ---- This section of explosions.
  2861.  
  2862. ----
  2863.  
  2864.  
  2865. function ring(type,pos,scale,value)
  2866. local type = type
  2867. local rng = Instance.new("Part", char)
  2868. rng.Anchored = true
  2869. rng.BrickColor = origcolor
  2870. rng.CanCollide = false
  2871. rng.FormFactor = 3
  2872. rng.Name = "Ring"
  2873. rng.Size = Vector3.new(1, 1, 1)
  2874. rng.Transparency = 0
  2875. rng.TopSurface = 0
  2876. rng.BottomSurface = 0
  2877. rng.CFrame = pos
  2878. local rngm = Instance.new("SpecialMesh", rng)
  2879. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2880. rngm.Scale = scale
  2881. local scaler2 = 1
  2882. if type == "Add" then
  2883. scaler2 = 1*value
  2884. elseif type == "Divide" then
  2885. scaler2 = 1/value
  2886. end
  2887. coroutine.resume(coroutine.create(function()
  2888. for i = 0,10,0.1 do
  2889. swait()
  2890. if type == "Add" then
  2891. scaler2 = scaler2 - 0.01*value
  2892. elseif type == "Divide" then
  2893. scaler2 = scaler2 - 0.01/value
  2894. end
  2895. rng.Transparency = rng.Transparency + 0.01
  2896. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2897. end
  2898. rng:Destroy()
  2899. end))
  2900. end
  2901.  
  2902.  
  2903. function wave(type,pos,scale,value)
  2904. local type = type
  2905. local rng = Instance.new("Part", char)
  2906. rng.Anchored = true
  2907. rng.BrickColor = origcolor
  2908. rng.CanCollide = false
  2909. rng.FormFactor = 3
  2910. rng.Name = "Ring"
  2911. rng.Size = Vector3.new(1, 1, 1)
  2912. rng.Transparency = 0
  2913. rng.TopSurface = 0
  2914. rng.BottomSurface = 0
  2915. rng.CFrame = pos
  2916. local rngm = Instance.new("SpecialMesh", rng)
  2917. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2918. rngm.Scale = scale
  2919. local scaler2 = 1
  2920. if type == "Add" then
  2921. scaler2 = 1*value
  2922. elseif type == "Divide" then
  2923. scaler2 = 1/value
  2924. end
  2925. coroutine.resume(coroutine.create(function()
  2926. for i = 0,10,0.1 do
  2927. swait()
  2928. if type == "Add" then
  2929. scaler2 = scaler2 - 0.01*value
  2930. elseif type == "Divide" then
  2931. scaler2 = scaler2 - 0.01/value
  2932. end
  2933. rng.Transparency = rng.Transparency + 0.01
  2934. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2935. end
  2936. rng:Destroy()
  2937. end))
  2938. end
  2939.  
  2940. function wind(type,pos,scale,value,speed)
  2941. local type = type
  2942. local rng = Instance.new("Part", char)
  2943. rng.Anchored = true
  2944. rng.BrickColor = origcolor
  2945. rng.CanCollide = false
  2946. rng.FormFactor = 3
  2947. rng.Name = "Ring"
  2948. rng.Size = Vector3.new(1, 1, 1)
  2949. rng.Transparency = 0
  2950. rng.TopSurface = 0
  2951. rng.BottomSurface = 0
  2952. rng.CFrame = pos
  2953. local rngm = Instance.new("SpecialMesh", rng)
  2954. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2955. rngm.Scale = scale
  2956. local scaler2 = 1
  2957. if type == "Add" then
  2958. scaler2 = 1*value
  2959. elseif type == "Divide" then
  2960. scaler2 = 1/value
  2961. end
  2962. coroutine.resume(coroutine.create(function()
  2963. for i = 0,10,0.1 do
  2964. swait()
  2965. if type == "Add" then
  2966. scaler2 = scaler2 - 0.01*value
  2967. elseif type == "Divide" then
  2968. scaler2 = scaler2 - 0.01/value
  2969. end
  2970. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2971. rng.Transparency = rng.Transparency + 0.01
  2972. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2973. end
  2974. rng:Destroy()
  2975. end))
  2976. end
  2977.  
  2978. function groundwind(type,pos,scale,value,speed)
  2979. local type = type
  2980. local rng = Instance.new("Part", char)
  2981. rng.Anchored = true
  2982. rng.BrickColor = origcolor
  2983. rng.CanCollide = false
  2984. rng.FormFactor = 3
  2985. rng.Name = "Ring"
  2986. rng.Size = Vector3.new(1, 1, 1)
  2987. rng.Transparency = 0
  2988. rng.TopSurface = 0
  2989. rng.BottomSurface = 0
  2990. rng.CFrame = pos
  2991. local rngm = Instance.new("SpecialMesh", rng)
  2992. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2993. rngm.Scale = scale
  2994. local scaler2 = 1
  2995. if type == "Add" then
  2996. scaler2 = 1*value
  2997. elseif type == "Divide" then
  2998. scaler2 = 1/value
  2999. end
  3000. coroutine.resume(coroutine.create(function()
  3001. for i = 0,10,0.1 do
  3002. swait()
  3003. if type == "Add" then
  3004. scaler2 = scaler2 - 0.01*value
  3005. elseif type == "Divide" then
  3006. scaler2 = scaler2 - 0.01/value
  3007. end
  3008. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  3009. rng.Transparency = rng.Transparency + 0.01
  3010. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  3011. end
  3012. rng:Destroy()
  3013. end))
  3014. end
  3015.  
  3016. function CameraManager()
  3017. if TwoD and not CamInterrupt then
  3018. if Humanoid.Health > 0 then
  3019. Camera.CameraSubject = Humanoid
  3020. Camera.CameraType = "Scriptable"
  3021. Humanoid.AutoRotate = false
  3022. if Booleans.GyroUse then
  3023. Directer.MaxTorque = Vec3(0, huge, 0)
  3024. else
  3025. Directer.MaxTorque = Vec3(0, 0, 0)
  3026. end
  3027. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  3028. if Booleans.CamFollow then
  3029. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  3030. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  3031. else
  3032. CPart.Position = RootPart.Position
  3033. end
  3034. else
  3035. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  3036. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  3037. end
  3038. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  3039. else
  3040. Camera.CameraSubject = Humanoid
  3041. Camera.CameraType = "Custom"
  3042. Controller.Disabled = false
  3043. end
  3044. end
  3045. end
  3046.  
  3047. function ring(type,pos,scale,value)
  3048. local type = type
  3049. local rng = Instance.new("Part", char)
  3050. rng.Anchored = true
  3051. rng.BrickColor = origcolor
  3052. rng.CanCollide = false
  3053. rng.FormFactor = 3
  3054. rng.Name = "Ring"
  3055. rng.Size = Vector3.new(1, 1, 1)
  3056. rng.Transparency = 0
  3057. rng.TopSurface = 0
  3058. rng.BottomSurface = 0
  3059. rng.CFrame = pos
  3060. local rngm = Instance.new("SpecialMesh", rng)
  3061. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3062. rngm.Scale = scale
  3063. local scaler2 = 1
  3064. if type == "Add" then
  3065. scaler2 = 1*value
  3066. elseif type == "Divide" then
  3067. scaler2 = 1/value
  3068. end
  3069. coroutine.resume(coroutine.create(function()
  3070. for i = 0,10,0.1 do
  3071. swait()
  3072. if type == "Add" then
  3073. scaler2 = scaler2 - 0.01*value
  3074. elseif type == "Divide" then
  3075. scaler2 = scaler2 - 0.01/value
  3076. end
  3077. rng.Transparency = rng.Transparency + 0.01
  3078. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3079. end
  3080. rng:Destroy()
  3081. end))
  3082. end
  3083.  
  3084.  
  3085. function wave(type,pos,scale,value)
  3086. local type = type
  3087. local rng = Instance.new("Part", char)
  3088. rng.Anchored = true
  3089. rng.BrickColor = origcolor
  3090. rng.CanCollide = false
  3091. rng.FormFactor = 3
  3092. rng.Name = "Ring"
  3093. rng.Size = Vector3.new(1, 1, 1)
  3094. rng.Transparency = 0
  3095. rng.TopSurface = 0
  3096. rng.BottomSurface = 0
  3097. rng.CFrame = pos
  3098. local rngm = Instance.new("SpecialMesh", rng)
  3099. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3100. rngm.Scale = scale
  3101. local scaler2 = 1
  3102. if type == "Add" then
  3103. scaler2 = 1*value
  3104. elseif type == "Divide" then
  3105. scaler2 = 1/value
  3106. end
  3107. coroutine.resume(coroutine.create(function()
  3108. for i = 0,10,0.1 do
  3109. swait()
  3110. if type == "Add" then
  3111. scaler2 = scaler2 - 0.01*value
  3112. elseif type == "Divide" then
  3113. scaler2 = scaler2 - 0.01/value
  3114. end
  3115. rng.Transparency = rng.Transparency + 0.01
  3116. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3117. end
  3118. rng:Destroy()
  3119. end))
  3120. end
  3121.  
  3122. function sphere(bonuspeed,type,pos,scale,value,color)
  3123. local type = type
  3124. local rng = Instance.new("Part", char)
  3125. rng.Anchored = true
  3126. if ModeOfGlitch ~= 9 then
  3127. rng.BrickColor = color
  3128. elseif ModeOfGlitch == 9 then
  3129. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3130. end
  3131. rng.CanCollide = false
  3132. rng.FormFactor = 3
  3133. rng.Name = "Ring"
  3134. rng.Material = "Neon"
  3135. rng.Size = Vector3.new(1, 1, 1)
  3136. rng.Transparency = 0
  3137. rng.TopSurface = 0
  3138. rng.BottomSurface = 0
  3139. rng.CFrame = pos
  3140. local rngm = Instance.new("SpecialMesh", rng)
  3141. rngm.MeshType = "Sphere"
  3142. rngm.Scale = scale
  3143. if rainbowmode == true then
  3144. rng.Color = Color3.new(r/255,g/255,b/255)
  3145. end
  3146. if ModeOfGlitch == 9 then
  3147. coroutine.resume(coroutine.create(function()
  3148. while true do
  3149. swait()
  3150. if rng.Parent ~= nil then
  3151. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3152. else
  3153. break
  3154. end
  3155. end
  3156. end))
  3157. end
  3158. local scaler2 = 1
  3159. if type == "Add" then
  3160. scaler2 = 1*value
  3161. elseif type == "Divide" then
  3162. scaler2 = 1/value
  3163. end
  3164. coroutine.resume(coroutine.create(function()
  3165. for i = 0,10/bonuspeed,0.1 do
  3166. swait()
  3167. if rainbowmode == true then
  3168. rng.Color = Color3.new(r/255,g/255,b/255)
  3169. end
  3170. if type == "Add" then
  3171. scaler2 = scaler2 - 0.01*value/bonuspeed
  3172. elseif type == "Divide" then
  3173. scaler2 = scaler2 - 0.01/value*bonuspeed
  3174. end
  3175. if chaosmode == true then
  3176. rng.BrickColor = BrickColor.random()
  3177. end
  3178. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3179. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3180. end
  3181. rng:Destroy()
  3182. end))
  3183. end
  3184.  
  3185. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3186. local type = type
  3187. local rng = Instance.new("Part", char)
  3188. rng.Anchored = true
  3189. if ModeOfGlitch ~= 9 then
  3190. rng.BrickColor = color
  3191. elseif ModeOfGlitch == 9 then
  3192. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3193. end
  3194. rng.CanCollide = false
  3195. rng.FormFactor = 3
  3196. rng.Name = "Ring"
  3197. rng.Material = "Neon"
  3198. rng.Size = Vector3.new(1, 1, 1)
  3199. rng.Transparency = 0
  3200. rng.TopSurface = 0
  3201. rng.BottomSurface = 0
  3202. rng.CFrame = pos
  3203. local rngm = Instance.new("SpecialMesh", rng)
  3204. rngm.MeshType = "Sphere"
  3205. rngm.Scale = scale
  3206. local scaler2 = 1
  3207. local scaler2b = 1
  3208. local scaler2c = 1
  3209. if type == "Add" then
  3210. scaler2 = 1*value
  3211. scaler2b = 1*value2
  3212. scaler2c = 1*value3
  3213. elseif type == "Divide" then
  3214. scaler2 = 1/value
  3215. scaler2b = 1/value2
  3216. scaler2c = 1/value3
  3217. end
  3218. if ModeOfGlitch == 9 then
  3219. coroutine.resume(coroutine.create(function()
  3220. while true do
  3221. swait()
  3222. if rng.Parent ~= nil then
  3223. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3224. else
  3225. break
  3226. end
  3227. end
  3228. end))
  3229. end
  3230. coroutine.resume(coroutine.create(function()
  3231. for i = 0,10/bonuspeed,0.1 do
  3232. swait()
  3233. if type == "Add" then
  3234. scaler2 = scaler2 - 0.01*value/bonuspeed
  3235. scaler2b = scaler2b - 0.01*value/bonuspeed
  3236. scaler2c = scaler2c - 0.01*value/bonuspeed
  3237. elseif type == "Divide" then
  3238. scaler2 = scaler2 - 0.01/value*bonuspeed
  3239. scaler2b = scaler2b - 0.01/value*bonuspeed
  3240. scaler2c = scaler2c - 0.01/value*bonuspeed
  3241. end
  3242. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3243. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3244. end
  3245. rng:Destroy()
  3246. end))
  3247. end
  3248.  
  3249. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3250. local type = type
  3251. local rotenable = rotatingop
  3252. local rng = Instance.new("Part", char)
  3253. rng.Anchored = true
  3254. rng.BrickColor = color
  3255. rng.CanCollide = false
  3256. rng.FormFactor = 3
  3257. rng.Name = "Ring"
  3258. rng.Material = "Neon"
  3259. rng.Size = Vector3.new(1, 1, 1)
  3260. rng.Transparency = 0
  3261. if typeoftrans == "In" then
  3262. rng.Transparency = 1
  3263. end
  3264. rng.TopSurface = 0
  3265. rng.BottomSurface = 0
  3266. rng.CFrame = pos
  3267. local rngm = Instance.new("SpecialMesh", rng)
  3268. rngm.MeshType = "FileMesh"
  3269. if typeofshape == "Normal" then
  3270. rngm.MeshId = "rbxassetid://662586858"
  3271. elseif typeofshape == "Round" then
  3272. rngm.MeshId = "rbxassetid://662585058"
  3273. end
  3274. rngm.Scale = scale
  3275. local scaler2 = 1/10
  3276. if type == "Add" then
  3277. scaler2 = 1*value/10
  3278. elseif type == "Divide" then
  3279. scaler2 = 1/value/10
  3280. end
  3281. local randomrot = math.random(1,2)
  3282. coroutine.resume(coroutine.create(function()
  3283. for i = 0,10/bonuspeed,0.1 do
  3284. swait()
  3285. if type == "Add" then
  3286. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3287. elseif type == "Divide" then
  3288. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3289. end
  3290. if rotenable == true then
  3291. if randomrot == 1 then
  3292. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3293. elseif randomrot == 2 then
  3294. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3295. end
  3296. end
  3297. if typeoftrans == "Out" then
  3298. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3299. elseif typeoftrans == "In" then
  3300. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3301. end
  3302. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3303. end
  3304. rng:Destroy()
  3305. end))
  3306. end
  3307.  
  3308. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3309. local type = type
  3310. local rng = Instance.new("Part", char)
  3311. rng.Anchored = true
  3312. rng.BrickColor = color
  3313. rng.CanCollide = false
  3314. rng.FormFactor = 3
  3315. rng.Name = "Ring"
  3316. rng.Material = "Neon"
  3317. rng.Size = Vector3.new(1, 1, 1)
  3318. rng.Transparency = 0
  3319. rng.TopSurface = 0
  3320. rng.BottomSurface = 0
  3321. rng.CFrame = pos
  3322. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3323. local rngm = Instance.new("SpecialMesh", rng)
  3324. rngm.MeshType = "Brick"
  3325. rngm.Scale = vt(x1,y1,z1)
  3326. if rainbowmode == true then
  3327. rng.Color = Color3.new(r/255,g/255,b/255)
  3328. end
  3329. local scaler2 = 1
  3330. local speeder = FastSpeed/10
  3331. if type == "Add" then
  3332. scaler2 = 1*value
  3333. elseif type == "Divide" then
  3334. scaler2 = 1/value
  3335. end
  3336. coroutine.resume(coroutine.create(function()
  3337. for i = 0,10/bonuspeed,0.1 do
  3338. swait()
  3339. if rainbowmode == true then
  3340. rng.Color = Color3.new(r/255,g/255,b/255)
  3341. end
  3342. if type == "Add" then
  3343. scaler2 = scaler2 - 0.01*value/bonuspeed
  3344. elseif type == "Divide" then
  3345. scaler2 = scaler2 - 0.01/value*bonuspeed
  3346. end
  3347. if chaosmode == true then
  3348. rng.BrickColor = BrickColor.random()
  3349. end
  3350. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3351. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3352. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3353. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3354. end
  3355. rng:Destroy()
  3356. end))
  3357. end
  3358.  
  3359. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3360. local type = type
  3361. local rng = Instance.new("Part", char)
  3362. rng.Anchored = true
  3363. rng.BrickColor = color
  3364. rng.CanCollide = false
  3365. rng.FormFactor = 3
  3366. rng.Name = "Ring"
  3367. rng.Material = "Neon"
  3368. rng.Size = Vector3.new(1, 1, 1)
  3369. rng.Transparency = 0
  3370. rng.TopSurface = 0
  3371. rng.BottomSurface = 0
  3372. rng.CFrame = pos
  3373. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3374. local rngm = Instance.new("SpecialMesh", rng)
  3375. rngm.MeshType = "Brick"
  3376. rngm.Scale = vt(x1,y1,z1)
  3377. if rainbowmode == true then
  3378. rng.Color = Color3.new(r/255,g/255,b/255)
  3379. end
  3380. local scaler2 = 1
  3381. local speeder = FastSpeed/10
  3382. if type == "Add" then
  3383. scaler2 = 1*value
  3384. elseif type == "Divide" then
  3385. scaler2 = 1/value
  3386. end
  3387. coroutine.resume(coroutine.create(function()
  3388. for i = 0,10/bonuspeed,0.1 do
  3389. swait()
  3390. if rainbowmode == true then
  3391. rng.Color = Color3.new(r/255,g/255,b/255)
  3392. end
  3393. if type == "Add" then
  3394. scaler2 = scaler2 - 0.01*value/bonuspeed
  3395. elseif type == "Divide" then
  3396. scaler2 = scaler2 - 0.01/value*bonuspeed
  3397. end
  3398. if chaosmode == true then
  3399. rng.BrickColor = BrickColor.random()
  3400. end
  3401. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3402. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3403. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3404. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3405. end
  3406. rng:Destroy()
  3407. end))
  3408. end
  3409.  
  3410. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3411. local type = type
  3412. local rng = Instance.new("Part", char)
  3413. rng.Anchored = true
  3414. rng.BrickColor = color
  3415. rng.CanCollide = false
  3416. rng.FormFactor = 3
  3417. rng.Name = "Ring"
  3418. rng.Material = "Neon"
  3419. rng.Size = Vector3.new(1, 1, 1)
  3420. rng.Transparency = 0
  3421. rng.TopSurface = 0
  3422. rng.BottomSurface = 0
  3423. rng.CFrame = pos
  3424. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3425. local rngm = Instance.new("SpecialMesh", rng)
  3426. rngm.MeshType = "Brick"
  3427. rngm.Scale = vt(x1,y1,z1)
  3428. if rainbowmode == true then
  3429. rng.Color = Color3.new(r/255,g/255,b/255)
  3430. end
  3431. local scaler2 = 0
  3432. local speeder = FastSpeed/10
  3433. if type == "Add" then
  3434. scaler2 = 1*value
  3435. elseif type == "Divide" then
  3436. scaler2 = 1/value
  3437. end
  3438. coroutine.resume(coroutine.create(function()
  3439. for i = 0,10/bonuspeed,0.1 do
  3440. swait()
  3441. if rainbowmode == true then
  3442. rng.Color = Color3.new(r/255,g/255,b/255)
  3443. end
  3444. if type == "Add" then
  3445. scaler2 = scaler2 - 0.01*value/bonuspeed
  3446. elseif type == "Divide" then
  3447. scaler2 = scaler2 - 0.01/value*bonuspeed
  3448. end
  3449. if chaosmode == true then
  3450. rng.BrickColor = BrickColor.random()
  3451. end
  3452. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3453. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3454. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3455. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3456. end
  3457. rng:Destroy()
  3458. end))
  3459. end
  3460.  
  3461. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3462. local type = type
  3463. local rng = Instance.new("Part", char)
  3464. rng.Anchored = true
  3465. rng.BrickColor = color
  3466. rng.Color = color3
  3467. rng.CanCollide = false
  3468. rng.FormFactor = 3
  3469. rng.Name = "Ring"
  3470. rng.Material = "Neon"
  3471. rng.Size = Vector3.new(1, 1, 1)
  3472. rng.Transparency = 0
  3473. rng.TopSurface = 0
  3474. rng.BottomSurface = 0
  3475. rng.CFrame = pos
  3476. local rngm = Instance.new("SpecialMesh", rng)
  3477. rngm.MeshType = "Brick"
  3478. rngm.Scale = scale
  3479. local scaler2 = 1
  3480. local scaler2b = 1
  3481. local scaler2c = 1
  3482. if type == "Add" then
  3483. scaler2 = 1*value
  3484. scaler2b = 1*value2
  3485. scaler2c = 1*value3
  3486. elseif type == "Divide" then
  3487. scaler2 = 1/value
  3488. scaler2b = 1/value2
  3489. scaler2c = 1/value3
  3490. end
  3491. coroutine.resume(coroutine.create(function()
  3492. for i = 0,10/bonuspeed,0.1 do
  3493. swait()
  3494. if type == "Add" then
  3495. scaler2 = scaler2 - 0.01*value/bonuspeed
  3496. scaler2b = scaler2b - 0.01*value/bonuspeed
  3497. scaler2c = scaler2c - 0.01*value/bonuspeed
  3498. elseif type == "Divide" then
  3499. scaler2 = scaler2 - 0.01/value*bonuspeed
  3500. scaler2b = scaler2b - 0.01/value*bonuspeed
  3501. scaler2c = scaler2c - 0.01/value*bonuspeed
  3502. end
  3503. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3504. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3505. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3506. end
  3507. rng:Destroy()
  3508. end))
  3509. end
  3510.  
  3511. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3512. local type = type
  3513. local rng = Instance.new("Part", char)
  3514. rng.Anchored = true
  3515. if ModeOfGlitch ~= 9 then
  3516. rng.BrickColor = color
  3517. elseif ModeOfGlitch == 9 then
  3518. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3519. end
  3520. rng.CanCollide = false
  3521. rng.FormFactor = 3
  3522. rng.Name = "Ring"
  3523. rng.Material = "Neon"
  3524. rng.Size = Vector3.new(1, 1, 1)
  3525. rng.Transparency = 0
  3526. rng.TopSurface = 0
  3527. rng.BottomSurface = 0
  3528. rng.CFrame = pos
  3529. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3530. local rngm = Instance.new("SpecialMesh", rng)
  3531. rngm.MeshType = "Sphere"
  3532. rngm.Scale = vt(x1,y1,z1)
  3533. if rainbowmode == true then
  3534. rng.Color = Color3.new(r/255,g/255,b/255)
  3535. end
  3536. if ModeOfGlitch == 9 then
  3537. coroutine.resume(coroutine.create(function()
  3538. while true do
  3539. swait()
  3540. if rng.Parent ~= nil then
  3541. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3542. else
  3543. break
  3544. end
  3545. end
  3546. end))
  3547. end
  3548. local scaler2 = 1
  3549. local speeder = FastSpeed
  3550. if type == "Add" then
  3551. scaler2 = 1*value
  3552. elseif type == "Divide" then
  3553. scaler2 = 1/value
  3554. end
  3555. coroutine.resume(coroutine.create(function()
  3556. for i = 0,10/bonuspeed,0.1 do
  3557. swait()
  3558. if rainbowmode == true then
  3559. rng.Color = Color3.new(r/255,g/255,b/255)
  3560. end
  3561. if type == "Add" then
  3562. scaler2 = scaler2 - 0.01*value/bonuspeed
  3563. elseif type == "Divide" then
  3564. scaler2 = scaler2 - 0.01/value*bonuspeed
  3565. end
  3566. if chaosmode == true then
  3567. rng.BrickColor = BrickColor.random()
  3568. end
  3569. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3570. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3571. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3572. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3573. end
  3574. rng:Destroy()
  3575. end))
  3576. end
  3577.  
  3578.  
  3579. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3580. local type = type
  3581. local rng = Instance.new("Part", char)
  3582. rng.Anchored = true
  3583. if ModeOfGlitch ~= 9 then
  3584. rng.BrickColor = color
  3585. elseif ModeOfGlitch == 9 then
  3586. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3587. end
  3588. rng.CanCollide = false
  3589. rng.FormFactor = 3
  3590. rng.Name = "Ring"
  3591. rng.Material = "Neon"
  3592. rng.Size = Vector3.new(1, 1, 1)
  3593. rng.Transparency = 1
  3594. rng.TopSurface = 0
  3595. rng.BottomSurface = 0
  3596. rng.CFrame = pos
  3597. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3598. local rngm = Instance.new("SpecialMesh", rng)
  3599. rngm.MeshType = "Sphere"
  3600. rngm.Scale = vt(x1,y1,z1)
  3601. if rainbowmode == true then
  3602. rng.Color = Color3.new(r/255,g/255,b/255)
  3603. end
  3604. if ModeOfGlitch == 9 then
  3605. coroutine.resume(coroutine.create(function()
  3606. while true do
  3607. swait()
  3608. if rng.Parent ~= nil then
  3609. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3610. else
  3611. break
  3612. end
  3613. end
  3614. end))
  3615. end
  3616. local scaler2 = 1
  3617. local speeder = FastSpeed
  3618. if type == "Add" then
  3619. scaler2 = 1*value
  3620. elseif type == "Divide" then
  3621. scaler2 = 1/value
  3622. end
  3623. coroutine.resume(coroutine.create(function()
  3624. for i = 0,10/bonuspeed,0.1 do
  3625. swait()
  3626. if rainbowmode == true then
  3627. rng.Color = Color3.new(r/255,g/255,b/255)
  3628. end
  3629. if type == "Add" then
  3630. scaler2 = scaler2 - 0.01*value/bonuspeed
  3631. elseif type == "Divide" then
  3632. scaler2 = scaler2 - 0.01/value*bonuspeed
  3633. end
  3634. if chaosmode == true then
  3635. rng.BrickColor = BrickColor.random()
  3636. end
  3637. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3638. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3639. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3640. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3641. end
  3642. rng:Destroy()
  3643. end))
  3644. end
  3645.  
  3646. function dmg(dude)
  3647. if dude.Name ~= Character then
  3648. local keptcolor = MAINRUINCOLOR
  3649. local bgf = Instance.new("BodyGyro",dude.Head)
  3650. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3651. --[[local val = Instance.new("BoolValue",dude)
  3652. val.Name = "IsHit"]]--
  3653. local ds = coroutine.wrap(function()
  3654. dude:WaitForChild("Head"):BreakJoints()
  3655. for i, v in pairs(dude:GetChildren()) do
  3656. if v:IsA("Part") or v:IsA("MeshPart") then
  3657. v.Name = "DEMINISHED"
  3658. end
  3659. end
  3660. wait(0.5)
  3661. targetted = nil
  3662. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3663. coroutine.resume(coroutine.create(function()
  3664. for i, v in pairs(dude:GetChildren()) do
  3665. if v:IsA("Accessory") then
  3666. v:Destroy()
  3667. end
  3668. if v:IsA("Humanoid") then
  3669. v:Destroy()
  3670. end
  3671. if v:IsA("CharacterMesh") then
  3672. v:Destroy()
  3673. end
  3674. if v:IsA("Model") then
  3675. v:Destroy()
  3676. end
  3677. if v:IsA("Part") or v:IsA("MeshPart") then
  3678. for x, o in pairs(v:GetChildren()) do
  3679. if o:IsA("Decal") then
  3680. o:Destroy()
  3681. end
  3682. end
  3683. coroutine.resume(coroutine.create(function()
  3684. v.Material = "Neon"
  3685. v.CanCollide = false
  3686. v.Anchored = false
  3687. local bld = Instance.new("ParticleEmitter",v)
  3688. bld.LightEmission = 0.75
  3689. bld.Texture = "rbxassetid://363275192" ---284205403
  3690. bld.Color = ColorSequence.new(keptcolor.Color)
  3691. bld.Rate = 500
  3692. bld.Lifetime = NumberRange.new(1)
  3693. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3694. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3695. bld.Speed = NumberRange.new(2,5)
  3696. bld.VelocitySpread = 50000
  3697. bld.Rotation = NumberRange.new(-500,500)
  3698. bld.RotSpeed = NumberRange.new(-500,500)
  3699. local sbs = Instance.new("BodyPosition", v)
  3700. sbs.P = 3000
  3701. sbs.D = 1000
  3702. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3703. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3704. v.Color = keptcolor.Color
  3705. coroutine.resume(coroutine.create(function()
  3706. for i = 0, 49 do
  3707. swait(1)
  3708. v:BreakJoints()
  3709. v.Transparency = v.Transparency + 0.02
  3710. end
  3711. v:BreakJoints()
  3712. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3713. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3714. bld.Speed = NumberRange.new(10,25)
  3715. bld.Drag = 5
  3716. bld.Acceleration = vt(0,2,0)
  3717. wait(0.5)
  3718. bld.Enabled = false
  3719. wait(8)
  3720. v:Destroy()
  3721. dude:Destroy()
  3722. end))
  3723. end))
  3724. end
  3725. end
  3726. end))
  3727. end)
  3728. ds()
  3729. end
  3730. end
  3731.  
  3732.  
  3733. function FindNearestHead(Position, Distance, SinglePlayer)
  3734. if SinglePlayer then
  3735. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3736. end
  3737. local List = {}
  3738. for i, v in pairs(workspace:GetChildren()) do
  3739. if v:IsA("Model") then
  3740. if v:findFirstChild("Head") then
  3741. if v ~= Character then
  3742. if (v.Head.Position - Position).magnitude <= Distance then
  3743. table.insert(List, v)
  3744. end
  3745. end
  3746. end
  3747. end
  3748. end
  3749. return List
  3750. end
  3751.  
  3752. function FaceMouse()
  3753. Cam = workspace.CurrentCamera
  3754. return {
  3755. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3756. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3757. }
  3758. end
  3759.  
  3760. function FaceMouse2()
  3761. Cam = workspace.CurrentCamera
  3762. return {
  3763. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3764. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3765. }
  3766. end
  3767.  
  3768. local ModeOfGlitch = 1
  3769. -- Functions are ready.
  3770. local storehumanoidWS = 16
  3771.  
  3772. function CorruptBlink()
  3773. for i = 0, 14 do
  3774. 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)
  3775. end
  3776. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3777. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3778. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3779. CameraEnshaking(2,10)
  3780. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3781. if v:FindFirstChild('Head') then
  3782. dmg(v)
  3783. end
  3784. end
  3785. for i = 0, 14 do
  3786. 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)
  3787. end
  3788. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3789. end
  3790. function PureBomb()
  3791. attack = true
  3792. hum.WalkSpeed = 0
  3793. local orb = Instance.new("Part", char)
  3794. orb.Anchored = true
  3795. orb.BrickColor = BrickColor.new("Toothpaste")
  3796. orb.CanCollide = false
  3797. orb.FormFactor = 3
  3798. orb.Name = "Ring"
  3799. orb.Material = "Neon"
  3800. orb.Size = Vector3.new(1, 1, 1)
  3801. orb.Transparency = 0
  3802. orb.TopSurface = 0
  3803. orb.BottomSurface = 0
  3804. local orbm = Instance.new("SpecialMesh", orb)
  3805. orbm.MeshType = "Sphere"
  3806. orbm.Name = "SizeMesh"
  3807. orbm.Scale = vt(0,0,0)
  3808. local scaled = 0.1
  3809. local posid = 0
  3810. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3811. for i = 0, 5, 0.1 do
  3812. swait()
  3813. scaled = scaled - 0.001
  3814. posid = posid - scaled
  3815. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3816. local scaled = 0.1
  3817. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3818. 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)
  3819. 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)
  3820. 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)
  3821. 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)
  3822. 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)
  3823. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3824. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3825. 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)
  3826. end
  3827. for i = 0, 2, 0.1 do
  3828. swait()
  3829. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3830. 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)
  3831. 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)
  3832. 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)
  3833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3834. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3835. 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)
  3836. end
  3837. coroutine.resume(coroutine.create(function()
  3838. orb.Anchored = false
  3839. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3840. local a = Instance.new("Part",workspace)
  3841. a.Name = "Direction"
  3842. a.Anchored = true
  3843. a.BrickColor = bc("Bright red")
  3844. a.Material = "Neon"
  3845. a.Transparency = 1
  3846. a.CanCollide = false
  3847. local ray = Ray.new(
  3848. orb.CFrame.p, -- origin
  3849. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3850. )
  3851. local ignore = orb
  3852. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3853. a.BottomSurface = 10
  3854. a.TopSurface = 10
  3855. local distance = (orb.CFrame.p - position).magnitude
  3856. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3857. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3858. orb.CFrame = a.CFrame
  3859. a:Destroy()
  3860. local bv = Instance.new("BodyVelocity")
  3861. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3862. bv.velocity = orb.CFrame.lookVector*125
  3863. bv.Parent = orb
  3864. local hitted = false
  3865. game:GetService("Debris"):AddItem(orb, 15)
  3866. wait()
  3867. local hit =orb.Touched:connect(function(hit)
  3868. if hitted == false then
  3869. hitted = true
  3870. CameraEnshaking(10,2.5)
  3871. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3872. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3873. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3874. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3875. for i = 0, 49 do
  3876. 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)
  3877. end
  3878. for i = 0, 9 do
  3879. 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)
  3880. 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)
  3881. end
  3882. orb.Anchored = true
  3883. orb.Transparency = 1
  3884. wait(8)
  3885. orb:Destroy()
  3886. end
  3887. end)
  3888. end))
  3889. for i = 0, 1, 0.1 do
  3890. swait()
  3891. 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)
  3892. 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)
  3893. 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)
  3894. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3896. 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)
  3897. end
  3898. hum.WalkSpeed = storehumanoidWS
  3899. attack = false
  3900. end
  3901.  
  3902. function BanishingOrb()
  3903. attack = true
  3904. hum.WalkSpeed = 0
  3905. local orb = Instance.new("Part", char)
  3906. orb.Anchored = true
  3907. orb.BrickColor = BrickColor.new("Black")
  3908. orb.CanCollide = false
  3909. orb.FormFactor = 3
  3910. orb.Name = "Ring"
  3911. orb.Material = "Neon"
  3912. orb.Size = Vector3.new(1, 1, 1)
  3913. orb.Transparency = 0
  3914. orb.TopSurface = 0
  3915. orb.BottomSurface = 0
  3916. local orbm = Instance.new("SpecialMesh", orb)
  3917. orbm.MeshType = "Sphere"
  3918. orbm.Name = "SizeMesh"
  3919. orbm.Scale = vt(0,0,0)
  3920. local scaled = 0.1
  3921. local posid = 0
  3922. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3923. for i = 0, 5, 0.1 do
  3924. swait()
  3925. scaled = scaled - 0.001
  3926. posid = posid - scaled
  3927. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3928. local scaled = 0.1
  3929. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3930. 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("Black"),10)
  3931. 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)
  3932. 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)
  3933. 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)
  3934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3935. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3936. 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)
  3937. end
  3938. for i = 0, 2, 0.1 do
  3939. swait()
  3940. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3941. 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)
  3942. 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)
  3943. 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)
  3944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3945. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3946. 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)
  3947. end
  3948. coroutine.resume(coroutine.create(function()
  3949. orb.Anchored = false
  3950. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3951. local a = Instance.new("Part",workspace)
  3952. a.Name = "Direction"
  3953. a.Anchored = true
  3954. a.BrickColor = bc("Bright red")
  3955. a.Material = "Neon"
  3956. a.Transparency = 1
  3957. a.CanCollide = false
  3958. local ray = Ray.new(
  3959. orb.CFrame.p, -- origin
  3960. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3961. )
  3962. local ignore = orb
  3963. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3964. a.BottomSurface = 10
  3965. a.TopSurface = 10
  3966. local distance = (orb.CFrame.p - position).magnitude
  3967. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3968. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3969. orb.CFrame = a.CFrame
  3970. a:Destroy()
  3971. local bv = Instance.new("BodyVelocity")
  3972. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3973. bv.velocity = orb.CFrame.lookVector*0
  3974. bv.Parent = orb
  3975. local hitted = false
  3976. local rate = 0
  3977. coroutine.resume(coroutine.create(function()
  3978. for i = 0, 24 do
  3979. wait(0.1)
  3980. rate = rate + 0.25
  3981. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3982. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3983. if v:FindFirstChild('Head') then
  3984. dmg(v)
  3985. end
  3986. end
  3987. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3988. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3989. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3990. end
  3991. orb.Anchored = true
  3992. orb.Transparency = 1
  3993. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3994. if v:FindFirstChild('Head') then
  3995. dmg(v)
  3996. end
  3997. end
  3998. local eff = Instance.new("ParticleEmitter",orb)
  3999. eff.Texture = "rbxassetid://296874871"
  4000. eff.LightEmission = 0.95
  4001. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4002. eff.Rate = 1000000000
  4003. eff.Lifetime = NumberRange.new(3)
  4004. 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)})
  4005. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4006. eff.Speed = NumberRange.new(30)
  4007. eff.Acceleration = vt(0,-15,0)
  4008. eff.Rotation = NumberRange.new(-500,500)
  4009. eff.VelocitySpread = 100000
  4010. eff.RotSpeed = NumberRange.new(-500,500)
  4011. coroutine.resume(coroutine.create(function()
  4012. wait(0.6)
  4013. eff.Enabled = false
  4014. end))
  4015. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  4016. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  4017. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  4018. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4019. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  4020. game:GetService("Debris"):AddItem(orb, 15)
  4021. end))
  4022. end))
  4023. for i = 0, 1, 0.1 do
  4024. swait()
  4025. 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)
  4026. 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)
  4027. 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)
  4028. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  4029. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  4030. 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)
  4031. end
  4032. hum.WalkSpeed = storehumanoidWS
  4033. attack = false
  4034. end
  4035.  
  4036.  
  4037. function ChaosGroundStrike()
  4038. attack = true
  4039. for i = 0, 2, 0.1 do
  4040. swait()
  4041. 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)
  4042. 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)
  4043. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4044. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4045. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4046. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4047. end
  4048. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  4049. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  4050. CameraEnshaking(4,12)
  4051. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  4052. if v:FindFirstChild('Head') then
  4053. dmg(v)
  4054. end
  4055. end
  4056. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  4057. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  4058. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  4059. for i = 0, 2, 0.1 do
  4060. swait()
  4061. 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)
  4062. 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)
  4063. 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)
  4064. 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)
  4065. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4066. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4067. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4068. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4069. end
  4070. attack = false
  4071. end
  4072.  
  4073.  
  4074.  
  4075. function Starfall()
  4076. attack = true
  4077. hum.WalkSpeed = 0
  4078. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4079. for i = 0, 5, 0.1 do
  4080. swait()
  4081. 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)
  4082. 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)
  4083. 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)
  4084. 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)
  4085. 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)
  4086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4087. 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)
  4088. 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)
  4089. end
  4090. local Overed = false
  4091. CameraEnshaking(2,20)
  4092. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4093. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4094. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4095. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4096. local orb = Instance.new("Part", char)
  4097. orb.Anchored = true
  4098. orb.BrickColor = BrickColor.new("Toothpaste")
  4099. orb.CanCollide = false
  4100. orb.FormFactor = 3
  4101. orb.Name = "Remenant"
  4102. orb.Material = "Neon"
  4103. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4104. orb.Size = Vector3.new(1, 1, 1)
  4105. orb.Transparency = 1
  4106. orb.TopSurface = 0
  4107. orb.BottomSurface = 0
  4108. hum.WalkSpeed = storehumanoidWS
  4109. coroutine.resume(coroutine.create(function()
  4110. for i = 0, 9 do
  4111. swait(10)
  4112. local lb = Instance.new("Part")
  4113. lb.Color = MAINRUINCOLOR.Color
  4114. lb.CanCollide = false
  4115. lb.Material = "Neon"
  4116. lb.Anchored = true
  4117. lb.TopSurface = 0
  4118. lb.BottomSurface = 0
  4119. lb.Transparency = 0
  4120. lb.Size = vt(1,1,1)
  4121. 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)))
  4122. lb.Anchored = false
  4123. lb.Parent = char
  4124. local thingery = Instance.new("SpecialMesh",lb)
  4125. thingery.MeshType = "Sphere"
  4126. thingery.Scale = vt(20,20,20)
  4127. game:GetService("Debris"):AddItem(lb, 10)
  4128. local bv = Instance.new("BodyVelocity")
  4129. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4130. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4131. bv.Parent = lb
  4132. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4133. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4134. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4135. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4136. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4137. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4138. local hitted = false
  4139. coroutine.resume(coroutine.create(function()
  4140. while true do
  4141. swait(1)
  4142. if lb.Parent ~= nil and hitted == false then
  4143. 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)
  4144. elseif lb.Parent == nil then
  4145. break
  4146. end
  4147. end
  4148. end))
  4149.  
  4150. game:GetService("Debris"):AddItem(a, 0.1)
  4151.  
  4152. coroutine.resume(coroutine.create(function()
  4153. swait(1)
  4154. lb.Touched:connect(function(hit)
  4155. if hitted == false then
  4156. hitted = true
  4157. lb.Transparency = 1
  4158. lb.Anchored = true
  4159. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4160. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4161. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4162. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4163. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4164. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4165. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4166. CameraEnshaking(1,5)
  4167. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4168. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4169. for i = 0, 9 do
  4170. 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)
  4171. end
  4172. for i = 0, 49 do
  4173. swait()
  4174. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4175. 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)
  4176. end
  4177. end
  4178. end)
  4179. end))
  4180. end
  4181. Overed = true
  4182. orb:Destroy()
  4183. end))
  4184.  
  4185. attack = false
  4186. end
  4187.  
  4188. function StarfallEX()
  4189. attack = true
  4190. hum.WalkSpeed = 0
  4191. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  4192. for i = 0, 10, 0.1 do
  4193. swait()
  4194. 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)
  4195. 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)
  4196. 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)
  4197. 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)
  4198. 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)
  4199. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4200. 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)
  4201. 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)
  4202. end
  4203. local Overed = false
  4204. CameraEnshaking(2,20)
  4205. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4206. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4207. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  4208. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  4209. local orb = Instance.new("Part", char)
  4210. orb.Anchored = true
  4211. orb.BrickColor = BrickColor.new("Toothpaste")
  4212. orb.CanCollide = false
  4213. orb.FormFactor = 3
  4214. orb.Name = "Remenant"
  4215. orb.Material = "Neon"
  4216. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  4217. orb.Size = Vector3.new(1, 1, 1)
  4218. orb.Transparency = 1
  4219. orb.TopSurface = 0
  4220. orb.BottomSurface = 0
  4221. hum.WalkSpeed = storehumanoidWS
  4222. coroutine.resume(coroutine.create(function()
  4223. for i = 0, 4 do
  4224. swait(15)
  4225. local lb = Instance.new("Part")
  4226. lb.Color = MAINRUINCOLOR.Color
  4227. lb.CanCollide = false
  4228. lb.Material = "Neon"
  4229. lb.Anchored = true
  4230. lb.TopSurface = 0
  4231. lb.BottomSurface = 0
  4232. lb.Transparency = 0
  4233. lb.Size = vt(1,1,1)
  4234. 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)))
  4235. lb.Anchored = false
  4236. lb.Parent = char
  4237. local thingery = Instance.new("SpecialMesh",lb)
  4238. thingery.MeshType = "Sphere"
  4239. thingery.Scale = vt(50,50,50)
  4240. game:GetService("Debris"):AddItem(lb, 10)
  4241. local bv = Instance.new("BodyVelocity")
  4242. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4243. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  4244. bv.Parent = lb
  4245. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4246. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4247. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  4248. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  4249. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  4250. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  4251. local hitted = false
  4252. coroutine.resume(coroutine.create(function()
  4253. while true do
  4254. swait(1)
  4255. if lb.Parent ~= nil and hitted == false then
  4256. 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)
  4257. elseif lb.Parent == nil then
  4258. break
  4259. end
  4260. end
  4261. end))
  4262.  
  4263. game:GetService("Debris"):AddItem(a, 0.1)
  4264.  
  4265. coroutine.resume(coroutine.create(function()
  4266. swait(1)
  4267. lb.Touched:connect(function(hit)
  4268. if hitted == false then
  4269. hitted = true
  4270. lb.Transparency = 1
  4271. lb.Anchored = true
  4272. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  4273. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  4274. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  4275. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  4276. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  4277. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  4278. MagniDamage(lb, 50, 60,99, 0, "Normal")
  4279. CameraEnshaking(1,5)
  4280. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  4281. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  4282. for i = 0, 9 do
  4283. 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)
  4284. end
  4285. for i = 0, 99 do
  4286. swait()
  4287. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4288. 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)
  4289. end
  4290. end
  4291. end)
  4292. end))
  4293. end
  4294. Overed = true
  4295. orb:Destroy()
  4296. end))
  4297.  
  4298. attack = false
  4299. end
  4300.  
  4301. function DivineBlast()
  4302. attack = true
  4303. hum.WalkSpeed = 0
  4304. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4305. elocacenter.Anchored = true
  4306. elocacenter.CFrame = sorb.CFrame
  4307. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4308. eloca1.Anchored = true
  4309. eloca1.CFrame = elocacenter.CFrame
  4310. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4311. eloca2.Anchored = true
  4312. eloca2.CFrame = elocacenter.CFrame
  4313. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4314. eloca3.Anchored = true
  4315. eloca3.CFrame = elocacenter.CFrame
  4316. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4317. eloca4.Anchored = true
  4318. eloca4.CFrame = elocacenter.CFrame
  4319. local lookavec = 0
  4320. local speeds = 0
  4321. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4322. for i = 0, 3, 0.1 do
  4323. swait()
  4324. ---
  4325. lookavec = lookavec + 0.1
  4326. speeds = speeds + 10
  4327. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4328. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4329. 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)
  4330.  
  4331. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4332. 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)
  4333.  
  4334. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4335. 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)
  4336.  
  4337. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4338. 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)
  4339. ---
  4340. root.CFrame = FaceMouse()[1]
  4341. 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)
  4342. 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)
  4343. 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)
  4344. 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)
  4345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4346. 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)
  4347. end
  4348. for i = 0, 3, 0.1 do
  4349. swait()
  4350. ---
  4351. speeds = speeds + 10
  4352. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4353. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4354. 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)
  4355.  
  4356. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4357. 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)
  4358.  
  4359. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4360. 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)
  4361.  
  4362. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4363. 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)
  4364. ---
  4365. root.CFrame = FaceMouse()[1]
  4366. 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)
  4367. 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)
  4368. 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)
  4369. 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)
  4370. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4371. 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)
  4372. end
  4373. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4374. for i = 0, 3, 0.1 do
  4375. swait()
  4376. ---
  4377. speeds = speeds + 10
  4378. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4379. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4380. 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)
  4381.  
  4382. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4383. 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)
  4384.  
  4385. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4386. 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)
  4387.  
  4388. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4389. 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)
  4390. ---
  4391. root.CFrame = FaceMouse()[1]
  4392. 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)
  4393. 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)
  4394. 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(40)),.1)
  4395. 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)
  4396. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4397. 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)
  4398. end
  4399. coroutine.resume(coroutine.create(function()
  4400. local a = Instance.new("Part",Character)
  4401. a.Name = "Direction"
  4402. a.Anchored = true
  4403. a.BrickColor = bc("White")
  4404. a.Material = "Neon"
  4405. a.Transparency = 0
  4406. a.Shape = "Cylinder"
  4407. a.CanCollide = false
  4408. local a2 = Instance.new("Part",Character)
  4409. a2.Name = "Direction"
  4410. a2.Anchored = true
  4411. a2.BrickColor = bc("Bright yellow")
  4412. a2.Material = "Neon"
  4413. a2.Transparency = 0
  4414. a2.Shape = "Cylinder"
  4415. a2.CanCollide = false
  4416. local b = Instance.new("Part",Character)
  4417. b.Name = "HitDirect"
  4418. b.Anchored = true
  4419. b.BrickColor = bc("Cool yellow")
  4420. b.Material = "Neon"
  4421. b.Transparency = 1
  4422. b.CanCollide = false
  4423. local ray = Ray.new(
  4424. elocacenter.CFrame.p, -- origin
  4425. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4426. )
  4427. local ignore = Character
  4428. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4429. a.BottomSurface = 10
  4430. a.TopSurface = 10
  4431. a2.BottomSurface = 10
  4432. a2.TopSurface = 10
  4433. local distance = (elocacenter.CFrame.p - position).magnitude
  4434. a.Size = Vector3.new(distance, 1, 1)
  4435. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4436. a2.Size = Vector3.new(distance, 1, 1)
  4437. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4438. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4439. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4440. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4441. game:GetService("Debris"):AddItem(a, 10)
  4442. game:GetService("Debris"):AddItem(a2, 10)
  4443. game:GetService("Debris"):AddItem(b, 10)
  4444. local msh = Instance.new("SpecialMesh",a)
  4445. msh.MeshType = "Cylinder"
  4446. msh.Scale = vt(1,2,2)
  4447. local msh2 = Instance.new("SpecialMesh",a2)
  4448. msh2.MeshType = "Cylinder"
  4449. msh2.Scale = vt(1,2.5,2.5)
  4450. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4451. coroutine.resume(coroutine.create(function()
  4452. for i = 0,10,0.1 do
  4453. swait()
  4454. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4455. a.Transparency = a.Transparency + 0.025
  4456. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4457. a2.Transparency = a2.Transparency + 0.05
  4458. end
  4459. a:Destroy()
  4460. a2:Destroy()
  4461. end))
  4462. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4463. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4464. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4465. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4466. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4467. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4468. MagniDamage(b, 25, 40,65, 0, "Normal")
  4469. for i = 0, 49 do
  4470. 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)
  4471. 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)
  4472. end
  4473. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4474. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4475. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4476. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4477. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4478. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4479. end))
  4480. game:GetService("Debris"):AddItem(elocacenter, 5)
  4481. hum.WalkSpeed = storehumanoidWS
  4482. attack = false
  4483. end
  4484.  
  4485. function StarDivision()
  4486. attack = true
  4487. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4488. for i = 0, 2, 0.1 do
  4489. swait()
  4490. 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)
  4491. 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)
  4492. 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)
  4493. 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)
  4494. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4495. 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)
  4496. end
  4497. local orb = Instance.new("Part", char)
  4498. orb.BrickColor = MAINRUINCOLOR
  4499. orb.CanCollide = false
  4500. orb.FormFactor = 3
  4501. orb.Name = "Ring"
  4502. orb.Material = "Neon"
  4503. orb.Size = Vector3.new(1, 1, 1)
  4504. orb.Transparency = 0
  4505. orb.TopSurface = 0
  4506. orb.BottomSurface = 0
  4507. local orbm = Instance.new("SpecialMesh", orb)
  4508. orbm.MeshType = "Sphere"
  4509. orbm.Name = "SizeMesh"
  4510. orbm.Scale = vt(2,2,2)
  4511. local a = Instance.new("Part",workspace)
  4512. a.Name = "Direction"
  4513. a.Anchored = true
  4514. a.BrickColor = bc("Bright red")
  4515. a.Material = "Neon"
  4516. a.Transparency = 1
  4517. a.CanCollide = false
  4518. local ray = Ray.new(
  4519. sorb.CFrame.p, -- origin
  4520. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4521. )
  4522. local ignore = sorb
  4523. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4524. a.BottomSurface = 10
  4525. a.TopSurface = 10
  4526. local distance = (sorb.CFrame.p - position).magnitude
  4527. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4528. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4529. orb.CFrame = a.CFrame
  4530. a:Destroy()
  4531. local bv = Instance.new("BodyVelocity")
  4532. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4533. bv.velocity = orb.CFrame.lookVector*100
  4534. bv.Parent = orb
  4535. local hitted = false
  4536. game:GetService("Debris"):AddItem(orb, 10)
  4537. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4538. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4539. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4540. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4541. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4542. coroutine.resume(coroutine.create(function()
  4543. while true do
  4544. swait(1)
  4545. if orb.Parent ~= nil and hitted == false then
  4546. 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)
  4547. elseif orb.Parent == nil then
  4548. break
  4549. end
  4550. end
  4551. end))
  4552. coroutine.resume(coroutine.create(function()
  4553. swait(1)
  4554. orb.Touched:connect(function(hit)
  4555. if hitted == false then
  4556. hitted = true
  4557. game:GetService("Debris"):AddItem(orb, 5)
  4558. orb.Transparency = 1
  4559. orb.Anchored = true
  4560. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4561. elocacenter.Anchored = true
  4562. elocacenter.CFrame = orb.CFrame
  4563. elocacenter.Orientation = vt(0,0,0)
  4564. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4565. eloca1.Anchored = true
  4566. eloca1.CFrame = elocacenter.CFrame
  4567. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4568. eloca2.Anchored = true
  4569. eloca2.CFrame = elocacenter.CFrame
  4570. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4571. eloca3.Anchored = true
  4572. eloca3.CFrame = elocacenter.CFrame
  4573. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4574. eloca4.Anchored = true
  4575. eloca4.CFrame = elocacenter.CFrame
  4576. local lookavec = 0
  4577. local speeds = 0
  4578. CameraEnshaking(1,1)
  4579. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4580. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4581. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4582. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4583. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4584. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4585. for i = 0, 99 do
  4586. swait()
  4587. lookavec = lookavec + 1
  4588. speeds = speeds + 0.1
  4589. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4590. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4591. 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)
  4592.  
  4593. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4594. 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)
  4595.  
  4596. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4597. 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)
  4598.  
  4599. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4600. 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)
  4601. end
  4602.  
  4603. for i = 0, 149 do
  4604. swait()
  4605. speeds = speeds + 0.1
  4606. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4607. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4608. 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)
  4609.  
  4610. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4611. 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)
  4612.  
  4613. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4614. 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)
  4615.  
  4616. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4617. 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)
  4618. end
  4619. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4620. if v:FindFirstChild('Head') then
  4621. dmg(v)
  4622. end
  4623. end
  4624. CameraEnshaking(7,30)
  4625. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4626. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4627. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4628. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4629. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4630. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4631. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4632. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4633. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4634. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4635. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4636. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4637. for i = 0, 24 do
  4638. 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)
  4639. 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)
  4640. 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)
  4641. 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)
  4642. end
  4643. coroutine.resume(coroutine.create(function()
  4644. for i = 0, 499 do
  4645. swait(1)
  4646. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4647. 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)
  4648. end
  4649. elocacenter:Destroy()
  4650. eloca1:Destroy()
  4651. eloca2:Destroy()
  4652. eloca3:Destroy()
  4653. eloca4:Destroy()
  4654. end))
  4655. end
  4656. end)
  4657. end))
  4658. attack = false
  4659. end
  4660.  
  4661.  
  4662. function THE_TRUE_POWER_OF_VIOLENCE()
  4663. attack = true
  4664. hum.WalkSpeed = 0
  4665. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4666. for i = 0, 10, 0.1 do
  4667. swait()
  4668. 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)
  4669. 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)
  4670. 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)),.4)
  4671. 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(40)),.4)
  4672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4673. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4674. 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)
  4675. end
  4676. local orb = Instance.new("Part", char)
  4677. orb.BrickColor = MAINRUINCOLOR
  4678. orb.CanCollide = false
  4679. orb.FormFactor = 3
  4680. orb.Name = "Ring"
  4681. orb.Material = "Neon"
  4682. orb.Size = Vector3.new(1, 1, 1)
  4683. orb.Transparency = 0
  4684. orb.TopSurface = 0
  4685. orb.BottomSurface = 0
  4686. orb.CFrame = sorb.CFrame
  4687. local orbm = Instance.new("SpecialMesh", orb)
  4688. orbm.MeshType = "Sphere"
  4689. orbm.Name = "SizeMesh"
  4690. orbm.Scale = vt(0,0,0)
  4691. local sbs = Instance.new("BodyPosition", orb)
  4692. sbs.P = 3000
  4693. sbs.D = 1000
  4694. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4695. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4696. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4697. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4698. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4699. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4700. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4701. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4702. for i = 0, 10, 0.1 do
  4703. swait()
  4704. 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)
  4705. 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)
  4706. 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)
  4707. 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(60)),.6)
  4708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4710. 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)
  4711. end
  4712. orb.Anchored = true
  4713. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4714. elocacenter.Anchored = true
  4715. elocacenter.CFrame = orb.CFrame
  4716. elocacenter.Orientation = vt(0,0,0)
  4717. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4718. eloca1.Anchored = true
  4719. eloca1.CFrame = elocacenter.CFrame
  4720. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4721. eloca2.Anchored = true
  4722. eloca2.CFrame = elocacenter.CFrame
  4723. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4724. eloca3.Anchored = true
  4725. eloca3.CFrame = elocacenter.CFrame
  4726. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4727. eloca4.Anchored = true
  4728. eloca4.CFrame = elocacenter.CFrame
  4729. local lookavec = 0
  4730. local speeds = 0
  4731. CameraEnshaking(1,1)
  4732. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4733. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4734. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4735. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4736. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4737. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4738. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4739. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4740. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4741. for i = 0, 99 do
  4742. swait()
  4743. lookavec = lookavec + 2.5
  4744. speeds = speeds + 0.25
  4745. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4746. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4747. 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)
  4748.  
  4749. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4750. 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)
  4751.  
  4752. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4753. 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)
  4754.  
  4755. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4756. 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)
  4757. end
  4758.  
  4759. for i = 0, 149 do
  4760. swait()
  4761. speeds = speeds + 0.25
  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,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)
  4765.  
  4766. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4767. 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)
  4768.  
  4769. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4770. 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)
  4771.  
  4772. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4773. 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)
  4774. end
  4775. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4776. for i = 0, 99 do
  4777. swait()
  4778. lookavec = lookavec - 2.5
  4779. speeds = speeds + 0.25
  4780. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4781. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4782. 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)
  4783.  
  4784. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4785. 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)
  4786.  
  4787. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4788. 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)
  4789.  
  4790. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4791. 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)
  4792. end
  4793. local scaled = 0.1*75
  4794. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4795. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4796. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4797. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4798. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4799. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4800. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4801. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4802. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4803. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4804. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4805. for i = 0, 10, 0.1 do
  4806. swait()
  4807. scaled = scaled - 0.001*75
  4808. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4809. 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)
  4810. 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)
  4811. 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)
  4812. 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(60)),.6)
  4813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4814. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4815. 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)
  4816. end
  4817. for x = 0, 4 do
  4818. for i = 0, 9 do
  4819. 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)
  4820. end
  4821. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4822. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4823. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4824. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4825. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4826. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4827. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4828. for i = 0, 5, 0.1 do
  4829. swait()
  4830. 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)
  4831. 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)
  4832. 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)
  4833. 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)),.1)
  4834. 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)
  4835. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4836. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4837. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4838. end
  4839. end
  4840. local speedearn = 0
  4841. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4842. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4843. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4844. for i = 0, 30, 0.1 do
  4845. swait()
  4846. scaled = scaled - 0.001*75/10
  4847. speedearn = speedearn + 0.5
  4848. for i = 0, 4 do
  4849. 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)
  4850. end
  4851. 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)
  4852. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4853. 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)
  4854. 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)
  4855. 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)
  4856. 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)
  4857. 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)),.6)
  4858. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4859. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4860. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4861. end
  4862. orb.Transparency = 1
  4863. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4864. if v:FindFirstChild('Head') then
  4865. dmg(v)
  4866. end
  4867. end
  4868. CameraEnshaking(7,30)
  4869. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4870. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4871. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4872. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4873. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4874. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4875. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4876. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4877. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4878. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4879. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4880. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4881. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4882. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4883. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4884. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4885. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4886. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4887. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4888. for i = 0, 99 do
  4889. 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)
  4890. 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)
  4891. end
  4892. for i = 0, 24 do
  4893. 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)
  4894. 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)
  4895. 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)
  4896. 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)
  4897. 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)
  4898. end
  4899. game:GetService("Debris"):AddItem(orb, 10)
  4900. hum.WalkSpeed = storehumanoidWS
  4901. attack = false
  4902. end
  4903.  
  4904.  
  4905. function ViolentRing()
  4906. attack = true
  4907. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4908. for i = 0, 2, 0.1 do
  4909. swait()
  4910. local snap = math.random(1,10)
  4911. if snap == 1 then
  4912. 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)
  4913. end
  4914. 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)
  4915. 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)
  4916. 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)
  4917. 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)
  4918. 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)
  4919. 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)
  4920. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4921. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4922. 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)
  4923. RootPart.CFrame = FaceMouse()[1]
  4924. end
  4925. local orb = Instance.new("Part", char)
  4926. orb.BrickColor = MAINRUINCOLOR
  4927. orb.CanCollide = false
  4928. orb.FormFactor = 3
  4929. orb.Name = "Ring"
  4930. orb.Material = "Neon"
  4931. orb.Size = Vector3.new(1, 1, 1)
  4932. orb.Transparency = 0
  4933. orb.TopSurface = 0
  4934. orb.BottomSurface = 0
  4935. local orbm = Instance.new("SpecialMesh", orb)
  4936. orbm.MeshType = "Sphere"
  4937. orbm.Name = "SizeMesh"
  4938. orbm.Scale = vt(2,2,2)
  4939. orb.CFrame = mouse.Hit
  4940. local bv = Instance.new("BodyVelocity")
  4941. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4942. bv.velocity = orb.CFrame.lookVector*100
  4943. bv.Parent = orb
  4944. local hitted = false
  4945. coroutine.resume(coroutine.create(function()
  4946. game:GetService("Debris"):AddItem(orb, 5)
  4947. orb.Transparency = 1
  4948. orb.Anchored = true
  4949. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4950. elocacenter.Anchored = true
  4951. elocacenter.CFrame = orb.CFrame
  4952. elocacenter.Orientation = vt(0,0,0)
  4953. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4954. eloca1.Anchored = true
  4955. eloca1.CFrame = elocacenter.CFrame
  4956. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4957. eloca2.Anchored = true
  4958. eloca2.CFrame = elocacenter.CFrame
  4959. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4960. eloca3.Anchored = true
  4961. eloca3.CFrame = elocacenter.CFrame
  4962. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4963. eloca4.Anchored = true
  4964. eloca4.CFrame = elocacenter.CFrame
  4965. local lookavec = 0
  4966. local speeds = 0
  4967. CameraEnshaking(1,1)
  4968. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4969. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4970. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4971. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4972. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4973. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4974. for i = 0, 24 do
  4975. swait()
  4976. lookavec = lookavec + 3.5
  4977. speeds = speeds + 1
  4978. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4979. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4980. 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)
  4981.  
  4982. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4983. 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)
  4984.  
  4985. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4986. 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)
  4987.  
  4988. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4989. 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)
  4990. end
  4991.  
  4992. local risen = 0
  4993. for i = 0, 49 do
  4994. swait()
  4995. risen = risen + 0.05
  4996. speeds = speeds + 0.1
  4997. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4998. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4999. 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)
  5000.  
  5001. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5002. 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)
  5003.  
  5004. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5005. 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)
  5006.  
  5007. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5008. 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)
  5009. end
  5010. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  5011. if v:FindFirstChild('Head') then
  5012. dmg(v)
  5013. end
  5014. end
  5015. CameraEnshaking(4,10)
  5016. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  5017. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  5018. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  5019. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  5020. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  5021. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  5022. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  5023. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  5024. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5025. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5026. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5027. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5028. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5029. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  5030. for i = 0, 24 do
  5031. 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)
  5032. 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)
  5033. 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)
  5034. 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)
  5035. end
  5036. coroutine.resume(coroutine.create(function()
  5037. wait(10)
  5038. elocacenter:Destroy()
  5039. eloca1:Destroy()
  5040. eloca2:Destroy()
  5041. eloca3:Destroy()
  5042. eloca4:Destroy()
  5043. end))
  5044. end))
  5045. attack = false
  5046. end
  5047.  
  5048. function UniversalCollapse()
  5049. attack = true
  5050. local speedearn = 0
  5051. hum.WalkSpeed = 0
  5052. local sbs = Instance.new("BodyPosition", root)
  5053. sbs.P = 3000
  5054. sbs.D = 1000
  5055. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  5056. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  5057. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  5058. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5059. for i = 0, 110, 0.1 do
  5060. swait()
  5061. speedearn = speedearn + 0.1
  5062. 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)
  5063. 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)
  5064. 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)
  5065. 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)
  5066. 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)
  5067. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  5068. 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)
  5069. 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)
  5070. 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)
  5071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5072. 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)
  5073. 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)
  5074. end
  5075. CameraEnshaking(5,50)
  5076. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  5077. for i = 0, 2 do
  5078. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  5079. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  5080. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  5081. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  5082. end
  5083. for i = 0, 49 do
  5084. 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)
  5085. 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)
  5086. 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)
  5087. 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)
  5088. end
  5089. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5090. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5091. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5092. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5093. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5094. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5095. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5096. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5097. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5098. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5099. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5100. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5101. for i = 0, 99 do
  5102. 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)
  5103. 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)
  5104. end
  5105. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  5106. if v:FindFirstChild('Head') then
  5107. dmg(v)
  5108. end
  5109. end
  5110. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  5111. sbs:Destroy()
  5112. hum.WalkSpeed = storehumanoidWS
  5113. attack = false
  5114. end
  5115.  
  5116.  
  5117. function ChaosEND()
  5118. attack = true
  5119. local speedearn = 0
  5120. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  5121. for i = 0, 15, 0.1 do
  5122. swait()
  5123. speedearn = speedearn + 0.25
  5124. 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)
  5125. 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)
  5126. 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)
  5127. 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)
  5128. 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)
  5129. 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)
  5130. 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)
  5131. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5134. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5135. end
  5136. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  5137. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5138. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  5139. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  5140. CameraEnshaking(5,25)
  5141. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5142. if v:FindFirstChild('Head') then
  5143. dmg(v)
  5144. end
  5145. end
  5146. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5147. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5148. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5149. for i = 0, 3, 0.1 do
  5150. swait()
  5151. 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)
  5152. 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)
  5153. 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)
  5154. 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)
  5155. 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)
  5156. 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)
  5157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5161. end
  5162. attack = false
  5163. end
  5164.  
  5165. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5166. local orb = Instance.new("Part", char)
  5167. orb.Anchored = true
  5168. orb.BrickColor = color
  5169. orb.CanCollide = false
  5170. orb.FormFactor = 3
  5171. orb.Name = "Ring"
  5172. orb.Material = "Neon"
  5173. orb.Size = Vector3.new(1, 1, 1)
  5174. orb.Transparency = 0
  5175. orb.TopSurface = 0
  5176. orb.BottomSurface = 0
  5177. local orbm = Instance.new("SpecialMesh", orb)
  5178. orbm.MeshType = "Sphere"
  5179. orb.CFrame = positted
  5180. orbm.Name = "SizeMesh"
  5181. orbm.Scale = vt(1,1,1)
  5182. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5183. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5184. --[[for i = 0, 2 do
  5185. 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)
  5186. end]]--
  5187. coroutine.resume(coroutine.create(function()
  5188. wait(timer)
  5189. CameraEnshaking(3,ShakePower)
  5190. orb.Transparency = 1
  5191. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5192. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5193. --[[for i = 0, 4 do
  5194. 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)
  5195. end]]--
  5196. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5197. wait(3)
  5198. orb:Destroy()
  5199. end))
  5200. end
  5201.  
  5202. function orb_spawn(positted,timer)
  5203. local randomcol = math.random(1,2)
  5204. local orb = Instance.new("Part", char)
  5205. orb.Anchored = true
  5206. if randomcol == 1 then
  5207. orb.BrickColor = BrickColor.new("White")
  5208. elseif randomcol == 2 then
  5209. orb.BrickColor = BrickColor.new("Really black")
  5210. end
  5211. orb.CanCollide = false
  5212. orb.FormFactor = 3
  5213. orb.Name = "Ring"
  5214. orb.Material = "Neon"
  5215. orb.Size = Vector3.new(1, 1, 1)
  5216. orb.Transparency = 0
  5217. orb.TopSurface = 0
  5218. orb.BottomSurface = 0
  5219. local orbm = Instance.new("SpecialMesh", orb)
  5220. orbm.MeshType = "Sphere"
  5221. orb.CFrame = positted
  5222. orbm.Name = "SizeMesh"
  5223. orbm.Scale = vt(1,1,1)
  5224. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5225. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5226. for i = 0, 2 do
  5227. 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)
  5228. end
  5229. coroutine.resume(coroutine.create(function()
  5230. wait(timer)
  5231. CameraEnshaking(3,2)
  5232. orb.Transparency = 1
  5233. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5234. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5235. for i = 0, 4 do
  5236. 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)
  5237. end
  5238. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5239. wait(3)
  5240. orb:Destroy()
  5241. end))
  5242. end
  5243.  
  5244. function scattercorrupt()
  5245. attack = true
  5246. local rot = 0
  5247. local randomrotations = math.random(1,2)
  5248. local lookv = 2.5
  5249. local power = 5
  5250. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5251. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5252. for i = 0, 9 do
  5253. 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)
  5254. end
  5255. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5256. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5257. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5258. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5259. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5260. local hite = Instance.new("Part", char)
  5261. hite.Anchored = true
  5262. hite.CanCollide = false
  5263. hite.FormFactor = 3
  5264. hite.Name = "Ring"
  5265. hite.Material = "Neon"
  5266. hite.Size = Vector3.new(1, 1, 1)
  5267. hite.Transparency = 1
  5268. hite.TopSurface = 0
  5269. hite.BottomSurface = 0
  5270. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5271. local rem = Instance.new("Part", char)
  5272. rem.Anchored = true
  5273. rem.CanCollide = false
  5274. rem.FormFactor = 3
  5275. rem.Name = "Ring"
  5276. rem.Material = "Neon"
  5277. rem.Size = Vector3.new(1, 1, 1)
  5278. rem.Transparency = 1
  5279. rem.TopSurface = 0
  5280. rem.BottomSurface = 0
  5281. rem.CFrame = hite.CFrame
  5282. local rem2 = rem:Clone()
  5283. rem2.Parent = char
  5284. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5285. local rem3 = rem:Clone()
  5286. rem3.Parent = char
  5287. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5288. local rem4 = rem:Clone()
  5289. rem4.Parent = char
  5290. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5291. hite:Destroy()
  5292. coroutine.resume(coroutine.create(function()
  5293. for i = 0, 24 do
  5294. swait(1)
  5295. if randomrotations == 1 then
  5296. rot = rot + 1
  5297. elseif randomrotations == 2 then
  5298. rot = rot - 1
  5299. end
  5300. power = power + 0.5
  5301. lookv = lookv + 7.5
  5302. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5303. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5304. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5305. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5306. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5307. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5308. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5309. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5310. end
  5311. end))
  5312. attack = false
  5313. end
  5314. function yinyangi()
  5315. attack = true
  5316. for i = 0, 2, 0.1 do
  5317. swait()
  5318. 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)
  5319. 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)
  5320. 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)
  5321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5322. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5323. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5324. end
  5325. local bv = Instance.new("BodyVelocity")
  5326. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5327. bv.velocity = root.CFrame.lookVector*175
  5328. bv.Parent = root
  5329. for Rotations = 0, 9 do
  5330. for i = 0, 1, 0.5 do
  5331. swait()
  5332. bv.velocity = root.CFrame.lookVector*175
  5333. 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)
  5334. 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)
  5335. 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)
  5336. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5337. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5338. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5339. end
  5340. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5341. for i = 0, 1, 0.5 do
  5342. swait()
  5343. bv.velocity = root.CFrame.lookVector*175
  5344. 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)
  5345. 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)
  5346. 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)
  5347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5349. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5350. end
  5351. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5352. for i = 0, 1, 0.5 do
  5353. swait()
  5354. bv.velocity = root.CFrame.lookVector*175
  5355. 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)
  5356. 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)
  5357. 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)
  5358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5359. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5360. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5361. end
  5362. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5363. for i = 0, 1, 0.5 do
  5364. swait()
  5365. bv.velocity = root.CFrame.lookVector*175
  5366. 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)
  5367. 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)
  5368. 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)
  5369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5370. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5371. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5372. end
  5373. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5374. end
  5375. bv:Destroy()
  5376. attack = false
  5377. end
  5378.  
  5379. function createBGCircle(size,parent,color)
  5380. local bgui = Instance.new("BillboardGui",parent)
  5381. bgui.Size = UDim2.new(size, 0, size, 0)
  5382. local imgc = Instance.new("ImageLabel",bgui)
  5383. imgc.BackgroundTransparency = 1
  5384. imgc.ImageTransparency = 0
  5385. imgc.Size = UDim2.new(1,0,1,0)
  5386. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5387. imgc.ImageColor3 = color
  5388. return bgui,imgc
  5389. end
  5390.  
  5391. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5392. local bgui,imgc = createBGCircle(size,guipar,color)
  5393. bgui.AlwaysOnTop = true
  5394. imgc.Image = "rbxassetid://" ..img
  5395. local rrot = math.random(1,2)
  5396. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5397. coroutine.resume(coroutine.create(function()
  5398. for i = 0, 24*delay do
  5399. swait()
  5400. if rotationenabled == true then
  5401. if rrot == 1 then
  5402. imgc.Rotation = imgc.Rotation + rotsp
  5403. elseif rrot == 2 then
  5404. imgc.Rotation = imgc.Rotation - rotsp
  5405. end
  5406. end
  5407. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5408. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5409. end
  5410. bgui:Destroy()
  5411. end))
  5412. end
  5413. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5414. for i, v in pairs(mw2:GetChildren()) do
  5415. if v:IsA("Part") then
  5416. v.BrickColor = one
  5417. v.Material = "Neon"
  5418. end
  5419. end
  5420. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5421. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5422. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5423. tr1.Color = ColorSequence.new(one.Color)
  5424. tr2.Color = ColorSequence.new(one.Color)
  5425. tr3.Color = ColorSequence.new(one.Color)
  5426. for i, v in pairs(mw1:GetChildren()) do
  5427. if v:IsA("Part") then
  5428. if secondaryenabled == false then
  5429. v.Transparency = 1
  5430. elseif secondaryenabled == true then
  5431. v.Transparency = 0
  5432. end
  5433. v.BrickColor = two
  5434. v.Material = "Neon"
  5435. end
  5436. end
  5437. if secondaryenabled == false then
  5438. tl1.Enabled = false
  5439. tl2.Enabled = false
  5440. tl3.Enabled = false
  5441. elseif secondaryenabled == true then
  5442. tl1.Enabled = true
  5443. tl2.Enabled = true
  5444. tl3.Enabled = true
  5445. end
  5446. tl1.Color = ColorSequence.new(two.Color)
  5447. tl2.Color = ColorSequence.new(two.Color)
  5448. tl3.Color = ColorSequence.new(two.Color)
  5449. for i, v in pairs(m:GetChildren()) do
  5450. if v:IsA("Part") then
  5451. v.BrickColor = three
  5452. v.Material = "Ice"
  5453. end
  5454. end
  5455. for i, v in pairs(m2:GetChildren()) do
  5456. if v:IsA("Part") then
  5457. v.BrickColor = four
  5458. v.Material = "Ice"
  5459. end
  5460. end
  5461. for i, v in pairs(m3:GetChildren()) do
  5462. if v:IsA("Part") then
  5463. v.BrickColor = five
  5464. v.Material = "Neon"
  5465. end
  5466. end
  5467. for i, v in pairs(extrawingmod1:GetChildren()) do
  5468. if v:IsA("Part") then
  5469. v.Transparency = exonetran
  5470. v.BrickColor = exone
  5471. v.Material = "Neon"
  5472. end
  5473. end
  5474. for i, v in pairs(extrawingmod2:GetChildren()) do
  5475. if v:IsA("Part") then
  5476. v.Transparency = extwotran
  5477. v.BrickColor = extwo
  5478. v.Material = "Neon"
  5479. end
  5480. end
  5481. end
  5482.  
  5483.  
  5484. function normalmog()
  5485. attack = true
  5486. hum.WalkSpeed = 0
  5487. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5488. for i = 0,6,0.1 do
  5489. swait()
  5490. 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)
  5491. 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)
  5492. 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)
  5493. 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)
  5494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5495. 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)
  5496. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5497. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5498. end
  5499. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5500. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5501. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5502. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5503. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5504. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5505. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5506. rainbowmode = false
  5507. chaosmode = false
  5508. ModeOfGlitch = 1
  5509. storehumanoidWS = 16
  5510. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5511. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5512. CameraEnshaking(5,2.5)
  5513. MAINRUINCOLOR = BrickColor.new("Really red")
  5514. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5515. for i = 0, 49 do
  5516. 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)
  5517. end
  5518. for i = 0, 24 do
  5519. 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)
  5520. 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"))
  5521. end
  5522. for i = 0,3,0.1 do
  5523. 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)
  5524. end
  5525. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5526. for i = 0,2,0.1 do
  5527. swait()
  5528. 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)
  5529. 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)
  5530. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5531. 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)
  5532. 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)
  5533. 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)
  5534. end
  5535. hum.WalkSpeed = storehumanoidWS
  5536. attack = false
  5537. end
  5538.  
  5539. function attackone()
  5540. attack = true
  5541. local keptcolor = MAINRUINCOLOR
  5542. for i = 0,1,0.1 do
  5543. swait()
  5544. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5545. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5546. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5547. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5548. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5549. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5550. end
  5551. local distlook = 5
  5552. coroutine.resume(coroutine.create(function()
  5553. for i = 0, 4 do
  5554. swait(2)
  5555. CameraEnshaking(2,3)
  5556. local hite = Instance.new("Part", char)
  5557. hite.Anchored = true
  5558. hite.CanCollide = false
  5559. hite.FormFactor = 3
  5560. hite.Name = "Ring"
  5561. hite.Material = "Neon"
  5562. hite.Size = Vector3.new(1, 1, 1)
  5563. hite.Transparency = 1
  5564. hite.TopSurface = 0
  5565. hite.BottomSurface = 0
  5566. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5567. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5568. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5569. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5570. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5571. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5572. for i = 0, 14 do
  5573. local rsiz = math.random(5,20)
  5574. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5575. end
  5576. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5577. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5578. game:GetService("Debris"):AddItem(hite, 5)
  5579. distlook = distlook + 10
  5580. end
  5581. end))
  5582. for i = 0,1,0.1 do
  5583. swait()
  5584. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5585. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5586. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5587. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5588. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5589. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5590. end
  5591. attack = false
  5592. end
  5593.  
  5594. function attacktwo()
  5595. attack = true
  5596. hum.WalkSpeed = 2
  5597. local keptcolor = MAINRUINCOLOR
  5598. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5599. 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)
  5600. 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)
  5601. for i = 0, 14 do
  5602. 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)
  5603. end
  5604. for i = 0,1,0.1 do
  5605. swait()
  5606. 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)
  5607. 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)
  5608. 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)
  5609. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5611. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5612. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5613. end
  5614. for i = 0, 1 do
  5615. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5616. for i = 0,1,0.6 do
  5617. swait()
  5618. 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)
  5619. 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"))
  5620. 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)
  5621. 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)
  5622. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5623. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5624. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5625. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5626. end
  5627. for i = 0,1,0.6 do
  5628. swait()
  5629. 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)
  5630. 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"))
  5631. 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)
  5632. 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)
  5633. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5635. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5636. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5637. end
  5638. for i = 0,1,0.6 do
  5639. swait()
  5640. 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)
  5641. 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"))
  5642. 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)
  5643. 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)
  5644. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5645. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5646. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5647. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5648. end
  5649. for i = 0,1,0.6 do
  5650. swait()
  5651. 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)
  5652. 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"))
  5653. 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)
  5654. 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)
  5655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5657. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5658. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5659. end
  5660. local rot = 0
  5661. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5662. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5663. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5664. CreateMesh(dis,"Sphere",10,1,10)
  5665. local at1 = Instance.new("Attachment",dis)
  5666. at1.Position = vt(-5,0,0)
  5667. local at2 = Instance.new("Attachment",dis)
  5668. at2.Position = vt(5,0,0)
  5669. local trl = Instance.new('Trail',wed)
  5670. trl.Attachment0 = at1
  5671. trl.Attachment1 = at2
  5672. trl.Texture = "rbxassetid://1049219073"
  5673. trl.LightEmission = 1
  5674. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5675. trl.Color = ColorSequence.new(dis.Color)
  5676. trl.Lifetime = 0.6
  5677. local a = Instance.new("Part",workspace)
  5678. a.Name = "Direction"
  5679. a.Anchored = true
  5680. a.BrickColor = bc("Bright red")
  5681. a.Material = "Neon"
  5682. a.Transparency = 1
  5683. a.CanCollide = false
  5684. local ray = Ray.new(
  5685. dis.CFrame.p, -- origin
  5686. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5687. )
  5688. local ignore = dis
  5689. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5690. a.BottomSurface = 10
  5691. a.TopSurface = 10
  5692. local distance = (dis.CFrame.p - position).magnitude
  5693. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5694. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5695. dis.CFrame = a.CFrame
  5696. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5697. a:Destroy()
  5698. local bv = Instance.new("BodyVelocity")
  5699. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5700. bv.velocity = dis.CFrame.lookVector*250
  5701. bv.Parent = dis
  5702. game:GetService("Debris"):AddItem(dis, 5)
  5703. local hitted = false
  5704. coroutine.resume(coroutine.create(function()
  5705. dis.Touched:connect(function(hit)
  5706. if hitted == false and hit.Parent ~= char then
  5707. hitted = true
  5708. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5709. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5710. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5711. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5712. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5713. coroutine.resume(coroutine.create(function()
  5714. for i = 0, 9 do
  5715. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5716. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5717. local at1 = Instance.new("Attachment",disr)
  5718. at1.Position = vt(-5,0,0)
  5719. local at2 = Instance.new("Attachment",disr)
  5720. at2.Position = vt(5,0,0)
  5721. local trl = Instance.new('Trail',disr)
  5722. trl.Attachment0 = at1
  5723. trl.FaceCamera = true
  5724. trl.Attachment1 = at2
  5725. trl.Texture = "rbxassetid://2342682798"
  5726. trl.LightEmission = 1
  5727. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5728. trl.Color = ColorSequence.new(keptcolor.Color)
  5729. trl.Lifetime = 0.5
  5730. local bv = Instance.new("BodyVelocity")
  5731. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5732. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5733. bv.Parent = disr
  5734. local val = 0
  5735. coroutine.resume(coroutine.create(function()
  5736. swait(30)
  5737. for i = 0, 9 do
  5738. swait()
  5739. val = val + 0.1
  5740. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5741. end
  5742. game:GetService("Debris"):AddItem(disr, 3)
  5743. end))
  5744. end
  5745. local eff = Instance.new("ParticleEmitter",dis)
  5746. eff.Texture = "rbxassetid://2273224484"
  5747. eff.LightEmission = 1
  5748. eff.Color = ColorSequence.new(keptcolor.Color)
  5749. eff.Rate = 500000
  5750. eff.Lifetime = NumberRange.new(0.5,2)
  5751. 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)})
  5752. 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)})
  5753. eff.Speed = NumberRange.new(20,250)
  5754. eff.Drag = 5
  5755. eff.Rotation = NumberRange.new(-500,500)
  5756. eff.VelocitySpread = 9000
  5757. eff.RotSpeed = NumberRange.new(-50,50)
  5758. wait(0.25)
  5759. eff.Enabled = false
  5760. end))
  5761. for i = 0, 9 do
  5762. 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"))
  5763. end
  5764. for i = 0, 19 do
  5765. 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)
  5766. end
  5767. coroutine.resume(coroutine.create(function()
  5768. for i = 0, 19 do
  5769. swait()
  5770. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5771. end
  5772. hum.CameraOffset = vt(0,0,0)
  5773. end))
  5774. dis.Anchored = true
  5775. dis.Transparency = 1
  5776. wait(8)
  5777. dis:Destroy()
  5778. end
  5779. end)
  5780. end))
  5781. rot = rot - 15
  5782. end
  5783. for i = 0,2,0.1 do
  5784. swait()
  5785. 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)
  5786. 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)
  5787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5788. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5790. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5791. end
  5792. attack = false
  5793. hum.WalkSpeed = storehumanoidWS
  5794. end
  5795.  
  5796. function attackthree()
  5797. attack = true
  5798. local keptcolor = MAINRUINCOLOR
  5799. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5800. for i = 0,2,0.1 do
  5801. swait()
  5802. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5803. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5804. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5805. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5806. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5807. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5809. end
  5810. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5811. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5812. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5813. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5814. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5815. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5816. for i = 0, 24 do
  5817. slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
  5818. end
  5819. for i = 0,4,0.1 do
  5820. swait()
  5821. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5822. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5823. CreateMesh(dis,"Sphere",1,1,1)
  5824. dis.Anchored = true
  5825. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5826. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5827. coroutine.resume(coroutine.create(function()
  5828. swait(30)
  5829. dis.Transparency = 1
  5830. coroutine.resume(coroutine.create(function()
  5831. for i = 0, 19 do
  5832. swait()
  5833. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5834. end
  5835. hum.CameraOffset = vt(0,0,0)
  5836. end))
  5837. coroutine.resume(coroutine.create(function()
  5838. local eff = Instance.new("ParticleEmitter",dis)
  5839. eff.Texture = "rbxassetid://2273224484"
  5840. eff.LightEmission = 1
  5841. eff.Color = ColorSequence.new(dis.Color)
  5842. eff.Rate = 500000
  5843. eff.Lifetime = NumberRange.new(0.5,2)
  5844. 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)})
  5845. 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)})
  5846. eff.Speed = NumberRange.new(50,450)
  5847. eff.Drag = 5
  5848. eff.Rotation = NumberRange.new(-500,500)
  5849. eff.VelocitySpread = 9000
  5850. eff.RotSpeed = NumberRange.new(-50,50)
  5851. wait(0.125)
  5852. eff.Enabled = false
  5853. end))
  5854. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5855. for i = 0, 2 do
  5856. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5857. end
  5858. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5859. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5860. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5861. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5862. end))
  5863. game:GetService("Debris"):AddItem(dis, 5)
  5864. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5865. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5866. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5867. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5868. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5869. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5870. end
  5871. attack = false
  5872. end
  5873. ----------------------------------- Abilities
  5874.  
  5875. function ExtinctiveHeartbreak()
  5876. local targetted = nil
  5877. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5878. targetted = mouse.Target.Parent
  5879. end
  5880. if targetted ~= nil then
  5881. attack = true
  5882. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5883. for i = 0, 9 do
  5884. 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)
  5885. end
  5886. for i = 0, 24 do
  5887. 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)
  5888. end
  5889. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5890. local originalpos = root.CFrame
  5891. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5892. for i = 0, 9 do
  5893. 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)
  5894. end
  5895. for i = 0, 24 do
  5896. 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)
  5897. end
  5898. hum.WalkSpeed = 0
  5899. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5900. local radm = math.random(1,3)
  5901. if radm == 1 then
  5902. bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5903. elseif radm == 2 then
  5904. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5905. elseif radm == 3 then
  5906. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5907. end
  5908. for i = 0,2,0.1 do
  5909. swait()
  5910. 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)
  5911. 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)
  5912. 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)
  5913. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5914. 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)
  5915. 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)
  5916. end
  5917. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5918. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5919. for i = 0,2,0.1 do
  5920. swait()
  5921. coroutine.resume(coroutine.create(function()
  5922. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5923. for i,v in pairs(targetted:GetChildren()) do
  5924. if v:IsA("Part") or v:IsA("MeshPart") then
  5925. v.Velocity = vt(0,0,0)
  5926. end
  5927. end
  5928. end))
  5929. 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)
  5930. 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)
  5931. 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)
  5932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5933. 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)
  5934. 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)
  5935. end
  5936. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5937. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5938. for i = 0, 1 do
  5939. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5940. end
  5941. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5942. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5943. for i = 0,4,0.1 do
  5944. swait()
  5945. coroutine.resume(coroutine.create(function()
  5946. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5947. 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)))
  5948. local at1 = Instance.new("Attachment",dis)
  5949. at1.Position = vt(-25000,0,0)
  5950. local at2 = Instance.new("Attachment",dis)
  5951. at2.Position = vt(25000,0,0)
  5952. local trl = Instance.new('Trail',dis)
  5953. trl.Attachment0 = at1
  5954. trl.FaceCamera = true
  5955. trl.Attachment1 = at2
  5956. trl.Texture = "rbxassetid://1049219073"
  5957. trl.LightEmission = 1
  5958. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5959. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5960. trl.Lifetime = 5
  5961. local bv = Instance.new("BodyVelocity")
  5962. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5963. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5964. bv.Parent = dis
  5965. game:GetService("Debris"):AddItem(dis, 5)
  5966. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5967. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5968. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5969. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5970. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5971. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5972. 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)
  5973. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5974. for i = 0, 2 do
  5975. 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"))
  5976. end
  5977. 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)
  5978. for i,v in pairs(targetted:GetChildren()) do
  5979. if v:IsA("Part") or v:IsA("MeshPart") then
  5980. v.Velocity = vt(0,0,0)
  5981. end
  5982. end
  5983. end))
  5984. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5985. 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)
  5986. 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)
  5987. 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)
  5988. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5989. 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)
  5990. 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)
  5991. end
  5992. hum.CameraOffset = vt(0,0,0)
  5993. for i = 0, 49 do
  5994. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5995. 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)))
  5996. local at1 = Instance.new("Attachment",dis)
  5997. at1.Position = vt(-50000,0,0)
  5998. local at2 = Instance.new("Attachment",dis)
  5999. at2.Position = vt(50000,0,0)
  6000. local trl = Instance.new('Trail',dis)
  6001. trl.Attachment0 = at1
  6002. trl.FaceCamera = true
  6003. trl.Attachment1 = at2
  6004. trl.Texture = "rbxassetid://1049219073"
  6005. trl.LightEmission = 1
  6006. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6007. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  6008. trl.Lifetime = 5
  6009. local bv = Instance.new("BodyVelocity")
  6010. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6011. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6012. bv.Parent = dis
  6013. game:GetService("Debris"):AddItem(dis, 5)
  6014. end
  6015. for i = 0, 49 do
  6016. 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)
  6017. 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"))
  6018. end
  6019. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  6020. for i = 0, 1 do
  6021. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  6022. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  6023. end
  6024. for i = 0, 4 do
  6025. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  6026. end
  6027. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  6028. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  6029. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  6030. dmg(targetted)
  6031. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6032. for i = 0, 9 do
  6033. 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)
  6034. end
  6035. for i = 0, 24 do
  6036. 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)
  6037. end
  6038. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6039. root.CFrame = originalpos
  6040. for i = 0, 9 do
  6041. 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)
  6042. end
  6043. for i = 0, 24 do
  6044. 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)
  6045. end
  6046. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6047. attack = false
  6048. hum.WalkSpeed = storehumanoidWS
  6049. end
  6050. end
  6051.  
  6052. function CorruptionEvent()
  6053. attack = true
  6054. hum.WalkSpeed = 0
  6055. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6056. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6057. local keptcolor = MAINRUINCOLOR
  6058. for i = 0,4,0.1 do
  6059. swait()
  6060. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6061. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6062. 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)
  6063. 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)
  6064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  6065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  6066. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  6067. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6068. end
  6069. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6070. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  6071. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  6072. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6073. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6074. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6075. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  6076. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  6077. hum.CameraOffset = vt(0,0,0)
  6078. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6079. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6080. for i = 0, 24 do
  6081. 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"))
  6082. end
  6083. local rrot = 0
  6084. coroutine.resume(coroutine.create(function()
  6085. for i = 0, 4 do
  6086. rrot = rrot + 45
  6087. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6088. xa.Anchored = true
  6089. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6090. xb.Anchored = true
  6091. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6092. xc.Anchored = true
  6093. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6094. xd.Anchored = true
  6095. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6096. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6097. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6098. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6099. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6100. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6101. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6102. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6103. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6104. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6105. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6106. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6107. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6108. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6109. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6110. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6111. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6112. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6113. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6114. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6115. for i = 0, 9 do
  6116. 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"))
  6117. 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"))
  6118. 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"))
  6119. 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"))
  6120. end
  6121. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6122. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6123. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6124. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6125. 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)
  6126. 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)
  6127. 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)
  6128. 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)
  6129. 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))
  6130. 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))
  6131. 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))
  6132. 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))
  6133. game:GetService("Debris"):AddItem(xa, 5)
  6134. game:GetService("Debris"):AddItem(xb, 5)
  6135. game:GetService("Debris"):AddItem(xc, 5)
  6136. game:GetService("Debris"):AddItem(xd, 5)
  6137. coroutine.resume(coroutine.create(function()
  6138. for i = 0, 19 do
  6139. swait()
  6140. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6141. end
  6142. hum.CameraOffset = vt(0,0,0)
  6143. end))
  6144. swait(9)
  6145. end
  6146. end))
  6147. for i = 0,2,0.1 do
  6148. swait()
  6149. 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)
  6150. 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)
  6151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6152. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6153. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6154. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6155. end
  6156. attack = false
  6157. hum.WalkSpeed = storehumanoidWS
  6158. end
  6159.  
  6160. function EndGROUND()
  6161. attack = true
  6162. hum.WalkSpeed = 0
  6163. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6164. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6165. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6166. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6167. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6168. local keptcolor = MAINRUINCOLOR
  6169. for i = 0,4,0.1 do
  6170. swait()
  6171. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6172. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6173. 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"))
  6174. 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)
  6175. 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)
  6176. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6178. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6179. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6180. end
  6181. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6182. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6183. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6184. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6185. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6186. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6187. coroutine.resume(coroutine.create(function()
  6188. local shval = 10
  6189. for i = 0, 99 do
  6190. swait()
  6191. shval = shval - 0.1
  6192. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6193. end
  6194. hum.CameraOffset = vt(0,0,0)
  6195. end))
  6196. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6197. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6198. for i = 0, 24 do
  6199. 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"))
  6200. end
  6201. local rrot = 0
  6202. local xam = 1
  6203. coroutine.resume(coroutine.create(function()
  6204. for i = 0, 14 do
  6205. --swait()
  6206. rrot = rrot + 40*xam
  6207. xam = xam + 0.25
  6208. local bonus = xam
  6209. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6210. xa.Anchored = true
  6211. xa.Color = Color3.new(0,0,0)
  6212. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6213. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6214. local xc = 0
  6215. coroutine.resume(coroutine.create(function()
  6216. for i = 0, 99 do
  6217. swait()
  6218. xc = xc + 0.01
  6219. xa.Color = Color3.new(xc,0,0)
  6220. end
  6221. xa.Transparency = 1
  6222. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6223. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6224. for i = 0, 9 do
  6225. 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"))
  6226. end
  6227. 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)
  6228. 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)
  6229. 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))
  6230. game:GetService("Debris"):AddItem(xa, 5)
  6231. coroutine.resume(coroutine.create(function()
  6232. for i = 0, 19 do
  6233. swait()
  6234. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6235. end
  6236. hum.CameraOffset = vt(0,0,0)
  6237. end))
  6238. end))
  6239. end
  6240. end))
  6241. for i = 0,2,0.1 do
  6242. swait()
  6243. 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)
  6244. 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)
  6245. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6247. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6248. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6249. end
  6250. attack = false
  6251. hum.WalkSpeed = storehumanoidWS
  6252. end
  6253.  
  6254. function HeavenlyDisk()
  6255. attack = true
  6256. hum.WalkSpeed = 2
  6257. local keptcolor = MAINRUINCOLOR
  6258. local radm = math.random(1,3)
  6259. if radm == 1 then
  6260. bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6261. elseif radm == 2 then
  6262. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6263. elseif radm == 3 then
  6264. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6265. end
  6266. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6267. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6268. 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)
  6269. 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)
  6270. for i = 0, 14 do
  6271. PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Toothpaste"),0)
  6272. end
  6273. for i = 0,2,0.1 do
  6274. swait()
  6275. 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)
  6276. 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)
  6277. 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)
  6278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6281. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6282. end
  6283. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6284. for i = 0,1,0.6 do
  6285. swait()
  6286. 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)
  6287. 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"))
  6288. 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)
  6289. 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)
  6290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6292. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6293. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6294. end
  6295. for i = 0,1,0.6 do
  6296. swait()
  6297. 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)
  6298. 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"))
  6299. 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)
  6300. 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)
  6301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6302. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6303. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6304. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6305. end
  6306. for i = 0,1,0.6 do
  6307. swait()
  6308. 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)
  6309. 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"))
  6310. 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)
  6311. 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)
  6312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6314. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6315. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6316. end
  6317. for i = 0,1,0.6 do
  6318. swait()
  6319. 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)
  6320. 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"))
  6321. 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)
  6322. 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)
  6323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6325. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6326. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6327. end
  6328. local rot = 15
  6329. for i = 0, 2 do
  6330. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6331. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6332. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6333. CreateMesh(dis,"Sphere",10,1,10)
  6334. local at1 = Instance.new("Attachment",dis)
  6335. at1.Position = vt(-5,0,0)
  6336. local at2 = Instance.new("Attachment",dis)
  6337. at2.Position = vt(5,0,0)
  6338. local trl = Instance.new('Trail',wed)
  6339. trl.Attachment0 = at1
  6340. trl.Attachment1 = at2
  6341. trl.Texture = "rbxassetid://1049219073"
  6342. trl.LightEmission = 1
  6343. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6344. trl.Color = ColorSequence.new(dis.Color)
  6345. trl.Lifetime = 0.6
  6346. local a = Instance.new("Part",workspace)
  6347. a.Name = "Direction"
  6348. a.Anchored = true
  6349. a.BrickColor = bc("Bright red")
  6350. a.Material = "Neon"
  6351. a.Transparency = 1
  6352. a.CanCollide = false
  6353. local ray = Ray.new(
  6354. dis.CFrame.p, -- origin
  6355. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6356. )
  6357. local ignore = dis
  6358. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6359. a.BottomSurface = 10
  6360. a.TopSurface = 10
  6361. local distance = (dis.CFrame.p - position).magnitude
  6362. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6363. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6364. dis.CFrame = a.CFrame
  6365. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6366. a:Destroy()
  6367. local bv = Instance.new("BodyVelocity")
  6368. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6369. bv.velocity = dis.CFrame.lookVector*250
  6370. bv.Parent = dis
  6371. game:GetService("Debris"):AddItem(dis, 5)
  6372. local hitted = false
  6373. coroutine.resume(coroutine.create(function()
  6374. dis.Touched:connect(function(hit)
  6375. if hitted == false and hit.Parent ~= char then
  6376. hitted = true
  6377. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6378. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6379. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6380. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6381. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6382. coroutine.resume(coroutine.create(function()
  6383. for i = 0, 9 do
  6384. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6385. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6386. local at1 = Instance.new("Attachment",disr)
  6387. at1.Position = vt(-2,0,0)
  6388. local at2 = Instance.new("Attachment",disr)
  6389. at2.Position = vt(2,0,0)
  6390. local trl = Instance.new('Trail',disr)
  6391. trl.Attachment0 = at1
  6392. trl.FaceCamera = true
  6393. trl.Attachment1 = at2
  6394. trl.Texture = "rbxassetid://2342682798"
  6395. trl.LightEmission = 1
  6396. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6397. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6398. trl.Lifetime = 0.5
  6399. local bv = Instance.new("BodyVelocity")
  6400. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6401. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6402. bv.Parent = disr
  6403. local val = 0
  6404. coroutine.resume(coroutine.create(function()
  6405. swait(30)
  6406. for i = 0, 9 do
  6407. swait()
  6408. val = val + 0.1
  6409. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6410. end
  6411. game:GetService("Debris"):AddItem(disr, 3)
  6412. end))
  6413. end
  6414. local eff = Instance.new("ParticleEmitter",dis)
  6415. eff.Texture = "rbxassetid://2273224484"
  6416. eff.LightEmission = 1
  6417. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6418. eff.Rate = 500000
  6419. eff.Lifetime = NumberRange.new(0.5,2)
  6420. 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)})
  6421. 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)})
  6422. eff.Speed = NumberRange.new(20,250)
  6423. eff.Drag = 5
  6424. eff.Rotation = NumberRange.new(-500,500)
  6425. eff.VelocitySpread = 9000
  6426. eff.RotSpeed = NumberRange.new(-50,50)
  6427. wait(0.25)
  6428. eff.Enabled = false
  6429. end))
  6430. for i = 0, 9 do
  6431. 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"))
  6432. end
  6433. for i = 0, 19 do
  6434. 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)
  6435. end
  6436. coroutine.resume(coroutine.create(function()
  6437. for i = 0, 19 do
  6438. swait()
  6439. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6440. end
  6441. hum.CameraOffset = vt(0,0,0)
  6442. end))
  6443. dis.Anchored = true
  6444. dis.Transparency = 1
  6445. wait(8)
  6446. dis:Destroy()
  6447. end
  6448. end)
  6449. end))
  6450. rot = rot - 15
  6451. end
  6452. for i = 0,2,0.1 do
  6453. swait()
  6454. 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)
  6455. 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)
  6456. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6457. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6459. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6460. end
  6461. attack = false
  6462. hum.WalkSpeed = storehumanoidWS
  6463. end
  6464.  
  6465. function RapidBurst()
  6466. attack = true
  6467. hum.WalkSpeed = 0
  6468. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6469. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6470. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6471. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6472. local keptcolor = MAINRUINCOLOR
  6473. for i = 0,8,0.1 do
  6474. swait()
  6475. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6476. 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())
  6477. 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)
  6478. 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)
  6479. 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)
  6480. 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)
  6481. 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)
  6482. 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)
  6483. 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)
  6484. end
  6485. for i = 0, 99 do
  6486. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6487. 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)))
  6488. local at1 = Instance.new("Attachment",dis)
  6489. at1.Position = vt(-25000,0,0)
  6490. local at2 = Instance.new("Attachment",dis)
  6491. at2.Position = vt(25000,0,0)
  6492. local trl = Instance.new('Trail',dis)
  6493. trl.Attachment0 = at1
  6494. trl.FaceCamera = true
  6495. trl.Attachment1 = at2
  6496. trl.Texture = "rbxassetid://1049219073"
  6497. trl.LightEmission = 1
  6498. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6499. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6500. trl.Lifetime = 5
  6501. local bv = Instance.new("BodyVelocity")
  6502. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6503. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6504. bv.Parent = dis
  6505. game:GetService("Debris"):AddItem(dis, 5)
  6506. end
  6507. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6508. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6509. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6510. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6511. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6512. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6513. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6514. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6515. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6516. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6517. hum.CameraOffset = vt(0,0,0)
  6518. for i = 0, 24 do
  6519. 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())
  6520. end
  6521. local distam = 0
  6522. coroutine.resume(coroutine.create(function()
  6523. for i = 0, 99 do
  6524. wait()
  6525. distam = distam + 1
  6526. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6527. xa.Anchored = true
  6528. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6529. game:GetService("Debris"):AddItem(xa, 5)
  6530. for i = 0, 4 do
  6531. 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())
  6532. end
  6533. coroutine.resume(coroutine.create(function()
  6534. local eff = Instance.new("ParticleEmitter",xa)
  6535. eff.Texture = "rbxassetid://2273224484"
  6536. eff.LightEmission = 1
  6537. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6538. eff.Rate = 500000
  6539. eff.Lifetime = NumberRange.new(1,3)
  6540. 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)})
  6541. 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)})
  6542. eff.Speed = NumberRange.new(50,500)
  6543. eff.Drag = 5
  6544. eff.Rotation = NumberRange.new(-500,500)
  6545. eff.VelocitySpread = 9000
  6546. eff.RotSpeed = NumberRange.new(-50,50)
  6547. wait(0.25)
  6548. eff.Enabled = false
  6549. end))
  6550. coroutine.resume(coroutine.create(function()
  6551. for i = 0, 19 do
  6552. swait()
  6553. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6554. end
  6555. hum.CameraOffset = vt(0,0,0)
  6556. end))
  6557. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6558. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6559. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6560. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6561. end
  6562. end))
  6563. attack = false
  6564. hum.WalkSpeed = storehumanoidWS
  6565. end
  6566.  
  6567.  
  6568. function FallenOrbs()
  6569. attack = true
  6570. hum.WalkSpeed = 2
  6571. local keptcolor = MAINRUINCOLOR
  6572. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6573. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6574. local radm = math.random(1,3)
  6575. if radm == 1 then
  6576. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  6577. elseif radm == 2 then
  6578. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6579. elseif radm == 3 then
  6580. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6581. end
  6582. coroutine.resume(coroutine.create(function()
  6583. for i = 0, 29 do
  6584. swait(2)
  6585. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6586. dis.Anchored = true
  6587. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6588. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6589. CreateMesh(dis,"Sphere",2,2,2)
  6590. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6591. 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"))
  6592. coroutine.resume(coroutine.create(function()
  6593. wait(0.5)
  6594. dis.Anchored = false
  6595. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6596. local at1 = Instance.new("Attachment",dis)
  6597. at1.Position = vt(-1,0,0)
  6598. local at2 = Instance.new("Attachment",dis)
  6599. at2.Position = vt(1,0,0)
  6600. local trl = Instance.new('Trail',dis)
  6601. trl.Attachment0 = at1
  6602. trl.FaceCamera = true
  6603. trl.Attachment1 = at2
  6604. trl.Texture = "rbxassetid://1049219073"
  6605. trl.LightEmission = 1
  6606. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6607. trl.Color = ColorSequence.new(dis.Color)
  6608. trl.Lifetime = 0.6
  6609. local a = Instance.new("Part",workspace)
  6610. a.Name = "Direction"
  6611. a.Anchored = true
  6612. a.BrickColor = bc("Bright red")
  6613. a.Material = "Neon"
  6614. a.Transparency = 1
  6615. a.CanCollide = false
  6616. local ray = Ray.new(
  6617. dis.CFrame.p, -- origin
  6618. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6619. )
  6620. local ignore = dis
  6621. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6622. a.BottomSurface = 10
  6623. a.TopSurface = 10
  6624. local distance = (dis.CFrame.p - position).magnitude
  6625. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6626. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6627. dis.CFrame = a.CFrame
  6628. a:Destroy()
  6629. local bv = Instance.new("BodyVelocity")
  6630. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6631. bv.velocity = dis.CFrame.lookVector*500
  6632. bv.Parent = dis
  6633. game:GetService("Debris"):AddItem(dis, 5)
  6634. local hitted = false
  6635. coroutine.resume(coroutine.create(function()
  6636. dis.Touched:connect(function(hit)
  6637. if hitted == false and hit.Parent ~= char then
  6638. hitted = true
  6639. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6640. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6641. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6642. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6643. coroutine.resume(coroutine.create(function()
  6644. for i = 0, 4 do
  6645. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6646. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6647. local at1 = Instance.new("Attachment",disr)
  6648. at1.Position = vt(-10,0,0)
  6649. local at2 = Instance.new("Attachment",disr)
  6650. at2.Position = vt(10,0,0)
  6651. local trl = Instance.new('Trail',disr)
  6652. trl.Attachment0 = at1
  6653. trl.FaceCamera = true
  6654. trl.Attachment1 = at2
  6655. trl.Texture = "rbxassetid://2342682798"
  6656. trl.LightEmission = 1
  6657. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6658. trl.Color = ColorSequence.new(disr.Color)
  6659. trl.Lifetime = 0.5
  6660. local bv = Instance.new("BodyVelocity")
  6661. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6662. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6663. bv.Parent = disr
  6664. local val = 0
  6665. coroutine.resume(coroutine.create(function()
  6666. swait(30)
  6667. for i = 0, 9 do
  6668. swait()
  6669. val = val + 0.1
  6670. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6671. end
  6672. game:GetService("Debris"):AddItem(disr, 3)
  6673. end))
  6674. end
  6675. local eff = Instance.new("ParticleEmitter",dis)
  6676. eff.Texture = "rbxassetid://2273224484"
  6677. eff.LightEmission = 1
  6678. eff.Color = ColorSequence.new(dis.Color)
  6679. eff.Rate = 500000
  6680. eff.Lifetime = NumberRange.new(0.5,2)
  6681. 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)})
  6682. 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)})
  6683. eff.Speed = NumberRange.new(20,250)
  6684. eff.Drag = 5
  6685. eff.Rotation = NumberRange.new(-500,500)
  6686. eff.VelocitySpread = 9000
  6687. eff.RotSpeed = NumberRange.new(-50,50)
  6688. wait(0.5)
  6689. eff.Enabled = false
  6690. end))
  6691. for i = 0, 4 do
  6692. 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"))
  6693. end
  6694. coroutine.resume(coroutine.create(function()
  6695. for i = 0, 19 do
  6696. swait()
  6697. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6698. end
  6699. hum.CameraOffset = vt(0,0,0)
  6700. end))
  6701. dis.Anchored = true
  6702. dis.Transparency = 1
  6703. wait(8)
  6704. dis:Destroy()
  6705. end
  6706. end)
  6707. end))
  6708. end))
  6709. end
  6710. end))
  6711. for i = 0,9,0.1 do
  6712. swait()
  6713. 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)
  6714. 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)
  6715. 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)
  6716. 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)
  6717. 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)
  6718. 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)
  6719. 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)
  6720. end
  6721. attack = false
  6722. hum.WalkSpeed = storehumanoidWS
  6723. end
  6724. function Desolateness()
  6725. local rrot = 0
  6726. local xam = 1
  6727. attack = true
  6728. hum.WalkSpeed = 0
  6729. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 5, 1)
  6730. for i = 0,3,0.1 do
  6731. swait()
  6732. block(10,"Add",rarm.CFrame*CFrame.new(0,-3,0),vt(2,2,2),0.025,0.025,0.025)
  6733. slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.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),-0.05,MRC_B)
  6734. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.5)* angles(math.rad(20),math.rad(0),math.rad(30)),0.3)
  6735. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  6736. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  6737. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  6738. RH.C0=clerp(RH.C0,cf(1,-0.5 - 0.05 * math.cos(sine / 25),-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(-10),math.rad(6)),.3)
  6739. 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(20)),.3)
  6740. end
  6741. coroutine.resume(coroutine.create(function()
  6742. for i = 0, 14 do
  6743. swait(4)
  6744. rrot = rrot + 10*xam
  6745. xam = xam + 0.25
  6746. local bonus = xam
  6747. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6748. xa.Anchored = true
  6749. xa.Color = Color3.new(0,0,0)
  6750. xa.CFrame = root.CFrame*CFrame.new(math.random(-5,5)*bonus,-3,-rrot/1.75)
  6751. ----CreateMeshy(xa,"Sphere",10*bonus,1,10*bonus)
  6752. local xc = 0
  6753. coroutine.resume(coroutine.create(function()
  6754. xa.Transparency = 1
  6755. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 2.5,0.75)
  6756. CFuncs["EchoSound"].Create("rbxassetid://675172759", xa, 3, 0.8,0,10,0.15,0.5,1)
  6757. MagniDamage(xa, 10*bonus, 38*bonus,59*bonus, 0, "Normal")
  6758. for i = 0, 9 do
  6759. 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(25,50)/250*bonus,MRC_B)
  6760. end
  6761. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(10*bonus,10*bonus,10*bonus),0.1,0.1,0.1,MRC_A,MRC_A.Color)
  6762. 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(5*bonus,1,5*bonus),0.01*bonus,1*bonus,0.01*bonus,MRC_A,MRC_A.Color)
  6763. 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(10*bonus,1,10*bonus),0.01*bonus,1*bonus,0.01*bonus,MRC_B,MRC_B)
  6764. game:GetService("Debris"):AddItem(xa, 5)
  6765. coroutine.resume(coroutine.create(function()
  6766. for i = 0, 19 do
  6767. swait()
  6768. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6769. end
  6770. hum.CameraOffset = vt(0,0,0)
  6771. end))
  6772. end))
  6773. end
  6774. end))
  6775. for i = 0,3,0.1 do
  6776. swait()
  6777.  
  6778. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.1,0)* angles(math.rad(0),math.rad(0),math.rad(74)),0.3)
  6779. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-8),math.rad(0),math.rad(-74)),.3)
  6780. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.75, 0) * angles(math.rad(180), math.rad(0), math.rad(-10)), 0.3)
  6781. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  6782. 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(-5),math.rad(-30),math.rad(0)),.3)
  6783. 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(13)),.3)
  6784. end
  6785. attack = false
  6786. hum.WalkSpeed = storehumanoidWS
  6787. end
  6788. function EquinoxOrbs()
  6789. hum.WalkSpeed = 0
  6790. attack = true
  6791. for i = 0,1,0.1 do
  6792. swait()
  6793. 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)
  6794. 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)
  6795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6798. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6799. end
  6800. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6801. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6802. for i = 0, 24 do
  6803. 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"))
  6804. end
  6805. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6806. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6807. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6808. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6809. for i = 0,4,0.1 do
  6810. swait()
  6811. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6812. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6813. CreateMesh(dis,"Sphere",1,1,1)
  6814. dis.Anchored = true
  6815. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6816. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6817. CreateMesh(dis2,"Sphere",1,1,1)
  6818. dis2.Anchored = true
  6819. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6820. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6821. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6822. coroutine.resume(coroutine.create(function()
  6823. swait(60)
  6824. dis.Transparency = 1
  6825. dis2.Transparency = 1
  6826. coroutine.resume(coroutine.create(function()
  6827. for i = 0, 19 do
  6828. swait()
  6829. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6830. end
  6831. hum.CameraOffset = vt(0,0,0)
  6832. end))
  6833. coroutine.resume(coroutine.create(function()
  6834. local eff = Instance.new("ParticleEmitter",dis)
  6835. eff.Texture = "rbxassetid://2273224484"
  6836. eff.LightEmission = 1
  6837. eff.Color = ColorSequence.new(dis.Color)
  6838. eff.Rate = 500000
  6839. eff.Lifetime = NumberRange.new(0.5,2)
  6840. 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)})
  6841. 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)})
  6842. eff.Speed = NumberRange.new(50,450)
  6843. eff.Drag = 5
  6844. eff.Rotation = NumberRange.new(-500,500)
  6845. eff.VelocitySpread = 9000
  6846. eff.RotSpeed = NumberRange.new(-50,50)
  6847. local eff2 = eff:Clone()
  6848. eff2.Parent = dis2
  6849. eff2.LightEmission = 0
  6850. eff2.Color = ColorSequence.new(dis2.Color)
  6851. wait(0.25)
  6852. eff.Enabled = false
  6853. eff2.Enabled = false
  6854. end))
  6855. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6856. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6857. for i = 0, 2 do
  6858. 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)
  6859. 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)
  6860. end
  6861. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6862. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6863. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6864. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6865. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6866. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6867. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6868. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6869. end))
  6870. game:GetService("Debris"):AddItem(dis, 5)
  6871. game:GetService("Debris"):AddItem(dis2, 5)
  6872. 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)
  6873. 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)
  6874. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6876. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6877. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6878. end
  6879. attack = false
  6880. hum.WalkSpeed = storehumanoidWS
  6881. end
  6882. function FallenDEMISE()
  6883. attack = true
  6884. hum.WalkSpeed = 0
  6885. local keptcolor = MAINRUINCOLOR
  6886. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6887. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6888. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6889. for i = 0, 15, 0.1 do
  6890. swait()
  6891. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6892. 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)))
  6893. local at1 = Instance.new("Attachment",dis)
  6894. at1.Position = vt(-25000,0,0)
  6895. local at2 = Instance.new("Attachment",dis)
  6896. at2.Position = vt(25000,0,0)
  6897. local trl = Instance.new('Trail',dis)
  6898. trl.Attachment0 = at1
  6899. trl.FaceCamera = true
  6900. trl.Attachment1 = at2
  6901. trl.Texture = "rbxassetid://1049219073"
  6902. trl.LightEmission = 1
  6903. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6904. trl.Color = ColorSequence.new(dis.Color)
  6905. trl.Lifetime = 5
  6906. local bv = Instance.new("BodyVelocity")
  6907. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6908. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6909. bv.Parent = dis
  6910. game:GetService("Debris"):AddItem(dis, 1)
  6911. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6912. 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"))
  6913. 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"))
  6914. 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)
  6915. 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)
  6916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6918. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6919. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6920. end
  6921. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6922. for i = 0, 30, 0.1 do
  6923. swait()
  6924. coroutine.resume(coroutine.create(function()
  6925. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6926. if v:FindFirstChild('Head') then
  6927. dmg(v)
  6928. end
  6929. end
  6930. end))
  6931. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6932. 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)))
  6933. local at1 = Instance.new("Attachment",dis)
  6934. at1.Position = vt(-50000,0,0)
  6935. local at2 = Instance.new("Attachment",dis)
  6936. at2.Position = vt(50000,0,0)
  6937. local trl = Instance.new('Trail',dis)
  6938. trl.Attachment0 = at1
  6939. trl.FaceCamera = true
  6940. trl.Attachment1 = at2
  6941. trl.Texture = "rbxassetid://1049219073"
  6942. trl.LightEmission = 1
  6943. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6944. trl.Color = ColorSequence.new(dis.Color)
  6945. trl.Lifetime = 10
  6946. local bv = Instance.new("BodyVelocity")
  6947. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6948. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6949. bv.Parent = dis
  6950. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6951. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6952. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6953. 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"))
  6954. 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"))
  6955. 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"))
  6956. 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"))
  6957. for i = 0, 2 do
  6958. 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)
  6959. end
  6960. 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)
  6961. 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)
  6962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6964. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6965. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6966. end
  6967. attack = false
  6968. hum.WalkSpeed = storehumanoidWS
  6969. end
  6970. function Broken()
  6971. attack = true
  6972. hum.WalkSpeed = 2
  6973. local keptcolor = MAINRUINCOLOR
  6974. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 1.5, 1,0,10,0.15,0.5,1)
  6975. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 60, 1,0,10,0.15,0.5,1)
  6976. local radm = math.random(1,3)
  6977. if radm == 1 then
  6978. bosschatfunc("...",MAINRUINCOLOR.Color,1)
  6979. elseif radm == 2 then
  6980. bosschatfunc("...",MAINRUINCOLOR.Color,1)
  6981. elseif radm == 3 then
  6982. bosschatfunc("...",MAINRUINCOLOR.Color,1)
  6983. end
  6984. coroutine.resume(coroutine.create(function()
  6985. for i = 0, 12 do
  6986. swait(8)
  6987. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6988. dis.Anchored = true
  6989. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6990. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(10,45),math.random(-35,35))
  6991. CreateMesh(dis,"Sphere",2,2,2)
  6992. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6993. 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"))
  6994. coroutine.resume(coroutine.create(function()
  6995. wait(0.75)
  6996. dis.Anchored = false
  6997. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6998. local at1 = Instance.new("Attachment",dis)
  6999. at1.Position = vt(-1,0,0)
  7000. local at2 = Instance.new("Attachment",dis)
  7001. at2.Position = vt(1,0,0)
  7002. local trl = Instance.new('Trail',dis)
  7003. trl.Attachment0 = at1
  7004. trl.FaceCamera = true
  7005. trl.Attachment1 = at2
  7006. trl.Texture = "rbxassetid://1049219073"
  7007. trl.LightEmission = 1
  7008. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7009. trl.Color = ColorSequence.new(dis.Color)
  7010. trl.Lifetime = 0.6
  7011. local a = Instance.new("Part",workspace)
  7012. a.Name = "Direction"
  7013. a.Anchored = true
  7014. a.BrickColor = bc("Bright red")
  7015. a.Material = "Neon"
  7016. a.Transparency = 1
  7017. a.CanCollide = false
  7018. local ray = Ray.new(
  7019. dis.CFrame.p, -- origin
  7020. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  7021. )
  7022. local ignore = dis
  7023. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7024. a.BottomSurface = 10
  7025. a.TopSurface = 10
  7026. local distance = (dis.CFrame.p - position).magnitude
  7027. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7028. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  7029. dis.CFrame = a.CFrame
  7030. a:Destroy()
  7031. local bv = Instance.new("BodyVelocity")
  7032. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7033. bv.velocity = dis.CFrame.lookVector*2000
  7034. bv.Parent = dis
  7035. game:GetService("Debris"):AddItem(dis, 5)
  7036. local hitted = false
  7037. coroutine.resume(coroutine.create(function()
  7038. dis.Touched:connect(function(hit)
  7039. if hitted == false and hit.Parent ~= char then
  7040. hitted = true
  7041. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  7042. CFuncs["EchoSound"].Create("rbxassetid://1448044156", dis, 6, 0.8,0,10,0.15,0.5,1)
  7043. MagniDamage(dis, 60, 15,35, 0, "Normal")
  7044. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  7045. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  7046. coroutine.resume(coroutine.create(function()
  7047. for i = 0, 2 do
  7048. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  7049. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7050. local at1 = Instance.new("Attachment",disr)
  7051. at1.Position = vt(-10,0,0)
  7052. local at2 = Instance.new("Attachment",disr)
  7053. at2.Position = vt(10,0,0)
  7054. local trl = Instance.new('Trail',disr)
  7055. trl.Attachment0 = at1
  7056. trl.FaceCamera = true
  7057. trl.Attachment1 = at2
  7058. trl.Texture = "rbxassetid://2342682798"
  7059. trl.LightEmission = 1
  7060. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7061. trl.Color = ColorSequence.new(disr.Color)
  7062. trl.Lifetime = 0.5
  7063. local bv = Instance.new("BodyVelocity")
  7064. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7065. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  7066. bv.Parent = disr
  7067. local val = 0
  7068. coroutine.resume(coroutine.create(function()
  7069. swait(30)
  7070. for i = 0, 9 do
  7071. swait()
  7072. val = val + 0.1
  7073. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  7074. end
  7075. game:GetService("Debris"):AddItem(disr, 3)
  7076. end))
  7077. end
  7078. local eff = Instance.new("ParticleEmitter",dis)
  7079. eff.Texture = "rbxassetid://1049219073"
  7080. eff.LightEmission = 1
  7081. eff.Color = ColorSequence.new(dis.Color)
  7082. eff.Rate = 500000
  7083. eff.Lifetime = NumberRange.new(0.5,2)
  7084. 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)})
  7085. 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)})
  7086. eff.Speed = NumberRange.new(20,250)
  7087. eff.Drag = 5
  7088. eff.Rotation = NumberRange.new(-500,500)
  7089. eff.VelocitySpread = 9000
  7090. eff.RotSpeed = NumberRange.new(-50,50)
  7091. wait(0.5)
  7092. eff.Enabled = false
  7093. end))
  7094. for i = 0, 4 do
  7095. 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"))
  7096. end
  7097. coroutine.resume(coroutine.create(function()
  7098. for i = 0, 19 do
  7099. swait()
  7100. ---CamShakeAll(5,30,Character)
  7101. end
  7102. end))
  7103. dis.Anchored = true
  7104. dis.Transparency = 1
  7105. wait(8)
  7106. dis:Destroy()
  7107. end
  7108. end)
  7109. end))
  7110. end))
  7111. end
  7112. end))
  7113. for i = 0,2,0.1 do
  7114. swait()
  7115. 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)
  7116. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  7117. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  7118. 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)),.1)
  7119. 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(0 + 2 * math.cos(sine / 53))),.3)
  7120. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(170 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 45))),.3)
  7121. 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)
  7122. end
  7123. for i = 0,11,0.1 do
  7124. swait()
  7125. 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)
  7126. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  7127. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  7128. 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(-75)),.1)
  7129. 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(75 + 2 * math.cos(sine / 53))),.3)
  7130. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(9 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(9 + 2 * math.cos(sine / 45))),.3)
  7131. 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(-75 - 4 * math.cos(sine / 45))),.3)
  7132. end
  7133. attack = false
  7134. hum.WalkSpeed = storehumanoidWS
  7135. end
  7136.  
  7137. -------------------------------------
  7138.  
  7139. Humanoid.Animator.Parent = nil
  7140.  
  7141. -------------------------------------
  7142.  
  7143. local attacktype = 1
  7144. mouse.Button1Down:connect(function()
  7145. if attack == false and attacktype == 1 then
  7146. attacktype = 2
  7147. attackone()
  7148. elseif attack == false and attacktype == 2 then
  7149. attacktype = 3
  7150. attacktwo()
  7151. elseif attack == false and attacktype == 3 then
  7152. attacktype = 1
  7153. attackthree()
  7154. elseif attack == false and attacktype == 4 then
  7155. attacktype = 1
  7156. --attackfour()
  7157. end
  7158. end)
  7159. mouse.KeyDown:connect(function(k)
  7160. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  7161. --normalmog() ---Disabled due to crashing... only in VSB
  7162. ModeOfGlitch = 1
  7163. storehumanoidWS = 16
  7164. hum.WalkSpeed = 16
  7165. rainbowmode = false
  7166. chaosmode = false
  7167. newTheme("rbxassetid://614032233",48.6,1,1.25)
  7168. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  7169. MAINRUINCOLOR = BrickColor.new("Really red")
  7170. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  7171. end
  7172. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  7173. ModeOfGlitch = 2
  7174. storehumanoidWS = 16
  7175. hum.WalkSpeed = 16
  7176. rainbowmode = false
  7177. chaosmode = false
  7178. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  7179. newTheme("rbxassetid://1539245059",0,1,1.25)
  7180. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  7181. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7182. end
  7183. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  7184. ModeOfGlitch = 3
  7185. storehumanoidWS = 16
  7186. hum.WalkSpeed = 16
  7187. rainbowmode = false
  7188. chaosmode = false
  7189. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  7190. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  7191. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7192. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7193. end
  7194. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 34101 then
  7195. ModeOfGlitch = 34101
  7196. storehumanoidWS = 16
  7197. hum.WalkSpeed = 16
  7198. rainbowmode = false
  7199. chaosmode = false
  7200. RecolorTextAndRename("Broken Heart",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  7201. ----warnedpeople(modet.Text,modet.Font,modet.TextColor3,modet.TextStrokeColor3)
  7202. newTheme("rbxassetid://438591163",0,1.01,2)
  7203. MAINRUINCOLOR = BrickColor.new("Really black")
  7204. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7205. end
  7206. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  7207. ModeOfGlitch = 4
  7208. storehumanoidWS = 16
  7209. hum.WalkSpeed = 16
  7210. rainbowmode = false
  7211. chaosmode = true
  7212. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  7213. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  7214. MAINRUINCOLOR = BrickColor.new("Black")
  7215. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7216. end
  7217. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  7218. ModeOfGlitch = 5
  7219. storehumanoidWS = 16
  7220. hum.WalkSpeed = 16
  7221. rainbowmode = false
  7222. chaosmode = false
  7223. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  7224. newTheme("rbxassetid://661079869",0,1.02,1.25)
  7225. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  7226. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7227. end
  7228. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  7229. ModeOfGlitch = 6
  7230. storehumanoidWS = 100
  7231. hum.WalkSpeed = 100
  7232. rainbowmode = false
  7233. chaosmode = false
  7234. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  7235. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  7236. MAINRUINCOLOR = BrickColor.new("White")
  7237. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7238. end
  7239. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  7240. ModeOfGlitch = 8
  7241. storehumanoidWS = 140
  7242. hum.WalkSpeed = 140
  7243. rainbowmode = false
  7244. chaosmode = false
  7245. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  7246. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  7247. MAINRUINCOLOR = BrickColor.new("Alder")
  7248. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7249. end
  7250. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  7251. ModeOfGlitch = 9
  7252. storehumanoidWS = 150
  7253. hum.WalkSpeed = 150
  7254. rainbowmode = false
  7255. chaosmode = false
  7256. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  7257. newTheme("rbxassetid://708334127",0,1.01,1.25)
  7258. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  7259. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7260. end
  7261. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  7262. ModeOfGlitch = 8889
  7263. storehumanoidWS = 180
  7264. hum.WalkSpeed = 180
  7265. rainbowmode = false
  7266. chaosmode = false
  7267. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  7268. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  7269. MAINRUINCOLOR = BrickColor.new("Lilac")
  7270. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7271. end
  7272. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7273. ModeOfGlitch = 55469696922
  7274. storehumanoidWS = 275
  7275. hum.WalkSpeed = 275
  7276. rainbowmode = false
  7277. chaosmode = false
  7278. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  7279. newTheme("rbxassetid://582020393",0,1.005,1.25)
  7280. MAINRUINCOLOR = BrickColor.new("Hot pink")
  7281. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7282. end
  7283. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7284. ModeOfGlitch = 4367677813
  7285. storehumanoidWS = 225
  7286. hum.WalkSpeed = 225
  7287. rainbowmode = false
  7288. chaosmode = false
  7289. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7290. newTheme("rbxassetid://363284685",0,1.01,1.25)
  7291. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7292. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7293. end
  7294. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  7295. ModeOfGlitch = 9999999921111
  7296. storehumanoidWS = 300
  7297. hum.WalkSpeed = 300
  7298. rainbowmode = false
  7299. chaosmode = false
  7300. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  7301. newTheme("rbxassetid://643309199",0,1.01,1.25)
  7302. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  7303. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7304. end
  7305. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7306. ModeOfGlitch = 999999999556
  7307. storehumanoidWS = 500
  7308. hum.WalkSpeed = 500
  7309. rainbowmode = false
  7310. chaosmode = false
  7311. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  7312. newTheme("rbxassetid://719008519",0,1.02,1.25)
  7313. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7314. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7315. end
  7316. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7317. ModeOfGlitch = 1264532489
  7318. storehumanoidWS = 250
  7319. hum.WalkSpeed = 250
  7320. rainbowmode = false
  7321. chaosmode = false
  7322. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7323. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  7324. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7325. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7326. end
  7327. if k == "l" and mutedtog == false then
  7328. mutedtog = true
  7329. kan.Volume = 0
  7330. elseif k == "l" and mutedtog == true then
  7331. mutedtog = false
  7332. kan.Volume = 1.25
  7333. end
  7334. if k == "p" and toggleTag == false then
  7335. toggleTag = true
  7336. modet.TextTransparency = 0
  7337. modet.TextStrokeTransparency = 0
  7338. elseif k == "p" and toggleTag == true then
  7339. toggleTag = false
  7340. modet.TextTransparency = 1
  7341. modet.TextStrokeTransparency = 1
  7342. end
  7343. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7344. ExtinctiveHeartbreak()
  7345. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7346. HeavenlyDisk()
  7347. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7348. CorruptionEvent()
  7349. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7350. RapidBurst()
  7351. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  7352. SHDTwist()
  7353. elseif k == "z" and attack == false and ModeOfGlitch == 34101 then
  7354. Broken()
  7355. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7356. EquinoxOrbs()
  7357. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7358. FallenOrbs()
  7359. end
  7360. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7361. FallenDEMISE()
  7362. end
  7363. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7364. EndGROUND()
  7365. end
  7366. end)
  7367.  
  7368. coroutine.resume(coroutine.create(function()
  7369. while true do
  7370. swait()
  7371. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7372. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
  7373. end
  7374. end
  7375. end))
  7376. --[[coroutine.resume(coroutine.create(function()
  7377. while true do
  7378. swait(2)
  7379. if chaosmode == true then
  7380. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7381. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7382. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7383. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7384. for i, v in pairs(mw1:GetChildren()) do
  7385. if v:IsA("Part") then
  7386. v.Transparency = 0.75
  7387. v.BrickColor = BrickColor.random()
  7388. v.Material = "Neon"
  7389. end
  7390. end
  7391. for i, v in pairs(m2:GetChildren()) do
  7392. if v:IsA("Part") then
  7393. v.BrickColor = BrickColor.random()
  7394. v.Material = "Neon"
  7395. end
  7396. end
  7397. end
  7398. end
  7399. end))]]--
  7400. Humanoid.Name = "STARGLITCHER"
  7401. Humanoid.MaxHealth = math.huge
  7402. Humanoid.Health = math.huge
  7403. Instance.new("ForceField",char).Visible = false
  7404.  
  7405. local bguis = Instance.new("BillboardGui",tors)
  7406. bguis.Size = UDim2.new(25, 0, 25, 0)
  7407. local imgca = Instance.new("ImageLabel",bguis)
  7408. imgca.BackgroundTransparency = 1
  7409. imgca.ImageTransparency = 1
  7410. imgca.Size = UDim2.new(1,0,1,0)
  7411. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7412. imgca.ImageColor3 = Color3.new(0,0,0)
  7413.  
  7414. idleanim=.4
  7415. while true do
  7416. if mutedtog == false then
  7417. kan.Volume = currentVol
  7418. elseif mutedtog == true then
  7419. kan.Volume = 0
  7420. end
  7421. kan.PlaybackSpeed = currentPitch
  7422. kan.Pitch = currentPitch
  7423. kan.SoundId = currentThemePlaying
  7424. kan.Looped = true
  7425. kan.Parent = char
  7426. kan:Resume()
  7427. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7428. imgca.ImageTransparency = 1
  7429. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7430. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7431. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7432. end
  7433. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7434. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7435. coroutine.resume(coroutine.create(function()
  7436. if chaosmode == true then
  7437. for i, v in pairs(mw1:GetChildren()) do
  7438. if v:IsA("Part") then
  7439. v.Transparency = 0
  7440. v.BrickColor = BrickColor.random()
  7441. v.Material = "Neon"
  7442. end
  7443. end
  7444. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7445. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7446. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7447. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7448. end
  7449. end))
  7450. if chaosmode == false then
  7451. modet.Position = UDim2.new(0,0,0,0)
  7452. modet.Rotation = -5 * math.cos(sine / 32)
  7453. techc.Rotation = techc.Rotation + 1
  7454. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7455. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7456. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7457. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7458. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7459. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7460. else
  7461. techc.Rotation = techc.Rotation + 1
  7462. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7463. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7464. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7465. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7466. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7467. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7468. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7469. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7470. end
  7471. CameraManager()
  7472. swait()
  7473. 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)
  7474. 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)
  7475. 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)
  7476. 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)
  7477. 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)
  7478. 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)
  7479. 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)
  7480. 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)
  7481. 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)
  7482. 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)
  7483. 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)
  7484. 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)
  7485. sine = sine + change
  7486. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7487. local velderp=RootPart.Velocity.y
  7488. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7489. coroutine.resume(coroutine.create(function()
  7490. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7491. if hitfloor ~= nil then
  7492. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("White"))
  7493. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7494. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,150)/250,MAINRUINCOLOR)
  7495. end
  7496. end
  7497. end
  7498. end))
  7499. if equipped==true or equipped==false then
  7500. if attack==false then
  7501. idle=idle+1
  7502. else
  7503. idle=0
  7504. end
  7505. if idle>=500 then
  7506. if attack==false then
  7507. --Sheath()
  7508. end
  7509. end
  7510. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7511. Anim="Jump"
  7512. if attack==false then
  7513. 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)
  7514. 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)
  7515. 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)
  7516. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7517. 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)
  7518. 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)
  7519. end
  7520. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7521. Anim="Fall"
  7522. if attack==false then
  7523. 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)
  7524. 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)
  7525. 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)
  7526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7527. 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)
  7528. 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)
  7529. end
  7530. elseif torvel<1 and hitfloor~=nil then
  7531. Anim="Idle"
  7532. if attack==false then
  7533. if ModeOfGlitch == 1 then
  7534. local snap = math.random(1,10)
  7535. if snap == 1 then
  7536. 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)
  7537. end
  7538. 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)
  7539. 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)
  7540. 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)
  7541. 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)
  7542. 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)
  7543. 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)
  7544. elseif ModeOfGlitch == 2 then
  7545. 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)
  7546. 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)
  7547. 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)
  7548. 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)
  7549. 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)
  7550. 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)
  7551. elseif ModeOfGlitch == 34101 then
  7552. 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)
  7553. 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)
  7554. 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)
  7555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7556. 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)
  7557. 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)
  7558. elseif ModeOfGlitch == 3 then
  7559. local snap = math.random(1,32)
  7560. if snap == 1 then
  7561. 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)
  7562. end
  7563. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  7564. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  7566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7567. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  7568. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  7569. elseif ModeOfGlitch == 34101 then
  7570. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0.5 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  7571. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(90 - root.RotVelocity.Y*3)),.3)
  7572. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(35 - root.RotVelocity.Y*3)),.3)
  7573. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-90 - root.RotVelocity.Y*3)),.3)
  7574. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-35 - root.RotVelocity.Y*3)),.3)
  7575. elseif ModeOfGlitch == 4 then
  7576. local snap = math.random(1,5)
  7577. if snap == 1 then
  7578. 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)
  7579. 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)
  7580. 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)
  7581. end
  7582. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  7583. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  7584. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7585. 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)
  7586. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  7587. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  7588. elseif ModeOfGlitch == 5 then
  7589. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  7590. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  7591. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  7592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  7593. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  7594. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  7595. elseif ModeOfGlitch == 6 then
  7596. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  7597. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  7598. 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)
  7599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7600. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  7601. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  7602. elseif ModeOfGlitch == 8 then
  7603. 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)
  7604. 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)
  7605. 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)
  7606. 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)
  7607. 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)
  7608. 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)
  7609. elseif ModeOfGlitch == 9 then
  7610. 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)
  7611. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  7612. 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)
  7613. 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)
  7614. 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)
  7615. 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)
  7616. 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)
  7617. 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)
  7618. elseif ModeOfGlitch == 8889 then
  7619. 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)
  7620. 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)
  7621. 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)
  7622. 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)
  7623. 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)
  7624. 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)
  7625. elseif ModeOfGlitch == 1264532489 then
  7626. 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)
  7627. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  7628. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  7629. 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)
  7630. 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)
  7631. 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)
  7632. 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)
  7633. elseif ModeOfGlitch == 9999999921111 then
  7634. 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)
  7635. 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)
  7636. 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)
  7637. 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)
  7638. 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)
  7639. 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)
  7640. elseif ModeOfGlitch == 4367677813 then
  7641. 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)
  7642. 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)
  7643. 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)
  7644. 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)
  7645. 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)
  7646. 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)
  7647. elseif ModeOfGlitch == 55469696922 then
  7648. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7649. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7652. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  7653. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7654.  
  7655. elseif ModeOfGlitch == 999999999556 then
  7656. 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)
  7657. 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)
  7658. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  7659. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  7660. 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)
  7661. 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)
  7662. end
  7663. end
  7664. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7665. Anim="Walk"
  7666. if attack==false and ModeOfGlitch ~= 34101 then
  7667. 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)
  7668. 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)
  7669. 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)
  7670. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  7671. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  7672. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  7673. else
  7674. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0.5 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  7675. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(90 - root.RotVelocity.Y*3)),.3)
  7676. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(35 - root.RotVelocity.Y*3)),.3)
  7677. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-90 - root.RotVelocity.Y*3)),.3)
  7678. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-35 - root.RotVelocity.Y*3)),.3)
  7679. ---------------
  7680. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  7681. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  7682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  7683. 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))),.1)
  7684. 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)
  7685. 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)
  7686. --------------------
  7687. end
  7688.  
  7689. elseif torvel>=22 and hitfloor~=nil then
  7690. Anim="Run"
  7691. if attack==false then
  7692. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  7693. 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)
  7694. 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)
  7695. 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)
  7696. 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)
  7697. 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)
  7698. 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)
  7699. if ModeOfGlitch == 9 then
  7700. 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)
  7701. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  7702. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  7703. end
  7704. elseif ModeOfGlitch == 34101 then
  7705. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0.5 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  7706. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(90 - root.RotVelocity.Y*3)),.3)
  7707. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(35 - root.RotVelocity.Y*3)),.3)
  7708. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-90 - root.RotVelocity.Y*3)),.3)
  7709. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 25),0)*angles(math.rad(20),math.rad(0),math.rad(-35 - root.RotVelocity.Y*3)),.3)
  7710.  
  7711. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7712. 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)
  7713. 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)
  7714. 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)
  7715. 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)
  7716. 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)
  7717. 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)
  7718. end
  7719. end
  7720. end
  7721. end
  7722. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement