feigum777

My edit

May 19th, 2019
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game:GetService("Players").USERNAME
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4.     script.Parent = Player.Character
  5.     local CAS = {Actions={}}
  6.     local Event = Instance.new("RemoteEvent")
  7.     Event.Name = "UserInput_Event"
  8.     Event.Parent = Player.Character
  9.     local fakeEvent = function()
  10.         local t = {_fakeEvent=true}
  11.         t.Connect = function(self,f)self.Function=f end
  12.         t.connect = t.Connect
  13.         return t
  14.     end
  15.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17.     function CAS:BindAction(name,fun,touch,...)
  18.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19.     end
  20.     function CAS:UnbindAction(name)
  21.         CAS.Actions[name] = nil
  22.     end
  23.     local function te(self,ev,...)
  24.         local t = m[ev]
  25.         if t and t._fakeEvent and t.Function then
  26.             t.Function(...)
  27.         end
  28.     end
  29.     m.TrigEvent = te
  30.     UIS.TrigEvent = te
  31.     Event.OnServerEvent:Connect(function(plr,io)
  32.         if plr~=Player then return end
  33.         if io.isMouse then
  34.             m.Target = io.Target
  35.             m.Hit = io.Hit
  36.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37.             if io.UserInputState == Enum.UserInputState.Begin then
  38.                 m:TrigEvent("Button1Down")
  39.             else
  40.                 m:TrigEvent("Button1Up")
  41.             end
  42.         else
  43.             for n,t in pairs(CAS.Actions) do
  44.                 for _,k in pairs(t.Keys) do
  45.                     if k==io.KeyCode then
  46.                         t.Function(t.Name,io.UserInputState,io)
  47.                     end
  48.                 end
  49.             end
  50.             if io.UserInputState == Enum.UserInputState.Begin then
  51.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52.                 UIS:TrigEvent("InputBegan",io,false)
  53.             else
  54.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55.                 UIS:TrigEvent("InputEnded",io,false)
  56.             end
  57.         end
  58.     end)
  59.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60.     end--TODO: add comments or something idk
  61. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  62. local Player = owner
  63. local Mouse,mouse,UserInputService,ContextActionService
  64. do
  65.     script.Parent = Player.Character
  66.     local CAS = {Actions={}}
  67.     local Event = Instance.new("RemoteEvent")
  68.     Event.Name = "UserInput_Event"
  69.     Event.Parent = Player.Character
  70.     local fakeEvent = function()
  71.         local t = {_fakeEvent=true}
  72.         t.Connect = function(self,f)self.Function=f end
  73.         t.connect = t.Connect
  74.         return t
  75.     end
  76.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  77.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  78.     function CAS:BindAction(name,fun,touch,...)
  79.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  80.     end
  81.     function CAS:UnbindAction(name)
  82.         CAS.Actions[name] = nil
  83.     end
  84.     local function te(self,ev,...)
  85.         local t = m[ev]
  86.         if t and t._fakeEvent and t.Function then
  87.             t.Function(...)
  88.         end
  89.     end
  90.     m.TrigEvent = te
  91.     UIS.TrigEvent = te
  92.     Event.OnServerEvent:Connect(function(plr,io)
  93.         if plr~=Player then return end
  94.         if io.isMouse then
  95.             m.Target = io.Target
  96.             m.Hit = io.Hit
  97.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  98.             if io.UserInputState == Enum.UserInputState.Begin then
  99.                 m:TrigEvent("Button1Down")
  100.             else
  101.                 m:TrigEvent("Button1Up")
  102.             end
  103.         else
  104.             for n,t in pairs(CAS.Actions) do
  105.                 for _,k in pairs(t.Keys) do
  106.                     if k==io.KeyCode then
  107.                         t.Function(t.Name,io.UserInputState,io)
  108.                     end
  109.                 end
  110.             end
  111.             if io.UserInputState == Enum.UserInputState.Begin then
  112.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  113.                 UIS:TrigEvent("InputBegan",io,false)
  114.             else
  115.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  116.                 UIS:TrigEvent("InputEnded",io,false)
  117.             end
  118.         end
  119.     end)
  120.     NLS([==[
  121.     local Player = game:GetService("Players").LocalPlayer
  122.    
  123.     local Char = Player.Character
  124.     local Event = Char:WaitForChild("UserInput_Event")
  125.    
  126.     local UIS = game:GetService("UserInputService")
  127.    
  128.     local input = function(io,a)
  129.         if a then return end
  130.         local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  131.         Event:FireServer(io)
  132.     end
  133.     UIS.InputBegan:Connect(input)
  134.     UIS.InputEnded:Connect(input)
  135.     local Changed = false
  136.     local Mouse = Player:GetMouse()
  137.     local h,t = Mouse.Hit,Mouse.Target
  138.     while wait(1/30) do
  139.         if h~=Mouse.Hit or t~=Mouse.Target then
  140.             Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  141.             h,t=Mouse.Hit,Mouse.Target
  142.         end
  143.     end
  144.     ]==],Player.Character)
  145.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  146. end
  147.  
  148.  
  149. wait(0.5)
  150.  
  151. warn([[SG AWAKEN Loaded.
  152. The super switcher.
  153. Velnorum is one of the first wielders.
  154.  
  155. Created, Reworked by NoobyGames12 and converted by Helkern
  156. ]])
  157.  
  158.  
  159. ------------- ORIGINAL WIELDER OC: Velnorum
  160. print([[Icons:
  161. ! = New
  162. ? = Spoilers
  163. * = Exclusivity
  164. C = Changes
  165.  
  166. ]])
  167. warn([[V 4.1 Update Log:
  168. !C? - Mostly about 7-9 main modes added.
  169. ! - Non-canon [N] modes are added from few modes:
  170.  > Fei's Mayhem:Fei's Nano
  171.  > Fei's Pure: Fei's Bright
  172.  > Fei's Choas:Fei's CrAzYnEsS
  173.  > Fei's Div:Fei's Fall
  174.  > Fei's Blue:Fei's Omea
  175. ! - Added back CALAMITY and INFESTATION.
  176. C - Two main click attacks changed.
  177. !C - Moves are added back, with severe change and difference.
  178. C - Some modes got renamed because fat filter
  179. C - Toned down the effects to be compatible with fe without strong lag.]])
  180. --- its obs smooth af do not touch
  181. ---- Sources and functions might be taken from others
  182. if game.PlaceId == 843468296 then
  183. error("This script has been banned. You cannot use it here. Please use Place 2.")
  184. end
  185. plr = owner
  186. char = plr.Character
  187. hum = char.Humanoid
  188. local cam = game.Workspace.CurrentCamera
  189. Camera = cam
  190. local CamInterrupt = false
  191. local TwoD = false
  192. local TargetInfo = {nil, nil}
  193. cam.CameraType = "Custom"
  194. t = char.Torso
  195. h = char.Head
  196. ra = char["Right Arm"]
  197. la = char["Left Arm"]
  198. rl = char["Right Leg"]
  199. ll = char["Left Leg"]
  200. tors = char.Torso
  201. lleg = char["Left Leg"]
  202. root = char.HumanoidRootPart
  203. hed = char.Head
  204. rleg = char["Right Leg"]
  205. rarm = char["Right Arm"]
  206. larm = char["Left Arm"]
  207. radian = math.rad
  208. random = math.random
  209. Vec3 = Vector3.new
  210. Inst = Instance.new
  211. cFrame = CFrame.new
  212. Euler = CFrame.fromEulerAnglesXYZ
  213. vt = Vector3.new
  214. bc = BrickColor.new
  215. br = BrickColor.random
  216. it = Instance.new
  217. cf = CFrame.new
  218.  
  219. local Booleans = {
  220.   CamFollow = true,
  221.   GyroUse = true
  222. }
  223.  
  224. function lerp(object, newCFrame, alpha)
  225.   return object:lerp(newCFrame, alpha)
  226. end
  227.  
  228. local Directer = Inst("BodyGyro", root)
  229. Directer.MaxTorque = Vec3(0, 0, 0)
  230. Directer.P = 600000
  231. local CPart = Inst("Part")
  232. CPart.Anchored = true
  233. CPart.CanCollide = false
  234. CPart.Locked = true
  235. CPart.Transparency = 1
  236.  
  237. local rainbowmode = false
  238. local chaosmode = false
  239.  
  240. local kan = Instance.new("Sound",char)
  241. kan.Volume = 1.25
  242. kan.TimePosition = 0
  243. kan.PlaybackSpeed = 1
  244. kan.Pitch = 1
  245. kan.SoundId = "rbxassetid://614032233"
  246. kan.Name = "wrecked"
  247. kan.Looped = true
  248. kan:Play()
  249.  
  250. local currentThemePlaying = kan.SoundId
  251. local currentPitch = kan.Pitch
  252. local currentVol = kan.Volume
  253. function newTheme(ID,timepos,pitch,vol)
  254. local kanz = kan
  255. --kanz:Stop()
  256. kanz.Volume = vol
  257. --kanz.TimePosition = timepos
  258. kanz.PlaybackSpeed = pitch
  259. kanz.Pitch = pitch
  260. kanz.SoundId = ID
  261. kanz.Name = "wrecked"
  262. kanz.Looped = true
  263. currentThemePlaying = kanz.SoundId
  264. currentVol = kanz.Volume
  265. currentPitch = kanz.Pitch
  266. --kanz:Play()
  267. --coroutine.resume(coroutine.create(function()
  268. --wait(0.05)
  269. --end))
  270. end
  271.  
  272.  
  273. function newThemeCust(ID,timepos,pitch,vol)
  274. local kanz = kan
  275. kanz:Stop()
  276. kanz.Volume = vol
  277. kanz.TimePosition = timepos
  278. kanz.PlaybackSpeed = pitch
  279. kanz.Pitch = pitch
  280. kanz.SoundId = ID
  281. kanz.Name = "wrecked"
  282. kanz.Looped = true
  283. currentThemePlaying = kanz.SoundId
  284. currentVol = kanz.Volume
  285. currentPitch = kanz.Pitch
  286. kanz:Play()
  287. coroutine.resume(coroutine.create(function()
  288. wait(0.05)
  289. end))
  290. end
  291.  
  292. local mutedtog = false
  293.  
  294. function CameraEnshaking(Length,Intensity)
  295. coroutine.resume(coroutine.create(function()
  296.       local intensity = 1*Intensity
  297.       local rotM = 0.01*Intensity
  298. for i = 0, Length, 0.1 do
  299. swait()
  300. intensity = intensity - 0.05*Intensity/Length
  301. rotM = rotM - 0.0005*Intensity/Length
  302.       hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  303.       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)
  304. end
  305. Humanoid.CameraOffset = Vec3(0, 0, 0)
  306. end))
  307. end
  308. CamShake=function(Part,Distan,Power,Times)
  309. local de=Part.Position
  310. for i,v in pairs(workspace:children()) do
  311.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  312. for _,c in pairs(v:children()) do
  313. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  314. local Noob=v.Humanoid
  315. if Noob~=nil then
  316. coroutine.resume(coroutine.create(function()
  317. FV = Instance.new("BoolValue", Noob)
  318. FV.Name = "CameraShake"
  319. for ShakeNum=1,Times do
  320. swait()
  321. local ef=Power
  322.   if ef>=1 then
  323.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  324.   else
  325.    ef=Power*10
  326.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  327.   end  
  328. end
  329. Humanoid.CameraOffset = Vector3.new(0,0,0)
  330. FV:Destroy()
  331. end))
  332. CameraShake(Times, Power, Noob)
  333. end
  334. end
  335. end
  336. end
  337. end
  338. end
  339.  
  340. local toggleTag = true
  341. local bilguit = Instance.new("BillboardGui", hed)
  342. bilguit.Adornee = nil
  343. bilguit.Name = "ModeName"
  344. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  345. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  346. local modet = Instance.new("TextLabel", bilguit)
  347. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  348. modet.FontSize = "Size8"
  349. modet.TextScaled = true
  350. modet.TextTransparency = 0
  351. modet.BackgroundTransparency = 1
  352. modet.TextTransparency = 0
  353. modet.TextStrokeTransparency = 0
  354. modet.Font = "Antique"
  355. modet.TextStrokeColor3 = Color3.new(1,0,0)
  356. modet.TextColor3 = Color3.new(0.25,0,0)
  357. modet.Text = "Fei's May"
  358.  
  359.  
  360. function chatfunc(text,color,typet,font,timeex)
  361. local chat = coroutine.wrap(function()
  362. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  363. Character:FindFirstChild("TalkingBillBoard"):destroy()
  364. end
  365. local naeeym2 = Instance.new("BillboardGui",Character)
  366. naeeym2.Size = UDim2.new(0,100,0,40)
  367. naeeym2.StudsOffset = Vector3.new(0,3,0)
  368. naeeym2.Adornee = Character.Head
  369. naeeym2.Name = "TalkingBillBoard"
  370. local tecks2 = Instance.new("TextLabel",naeeym2)
  371. tecks2.BackgroundTransparency = 1
  372. tecks2.BorderSizePixel = 0
  373. tecks2.Text = ""
  374. tecks2.Font = font
  375. tecks2.TextSize = 30
  376. tecks2.TextStrokeTransparency = 0
  377. tecks2.TextColor3 = color
  378. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  379. tecks2.Size = UDim2.new(1,0,0.5,0)
  380. local tecks3 = Instance.new("TextLabel",naeeym2)
  381. tecks3.BackgroundTransparency = 1
  382. tecks3.BorderSizePixel = 0
  383. tecks3.Text = ""
  384. tecks3.Font = font
  385. tecks3.TextSize = 30
  386. tecks3.TextStrokeTransparency = 0
  387. if typet == "Inverted" then
  388. tecks3.TextColor3 = Color3.new(0,0,0)
  389. tecks3.TextStrokeColor3 = color
  390. elseif typet == "Normal" then
  391. tecks3.TextColor3 = color
  392. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  393. end
  394. tecks3.Size = UDim2.new(1,0,0.5,0)
  395. coroutine.resume(coroutine.create(function()
  396. while true do
  397. swait(1)
  398. if chaosmode == true then
  399. tecks2.TextColor3 = BrickColor.random().Color
  400. tecks3.TextStrokeColor3 = BrickColor.random().Color
  401. end
  402. end
  403. end))
  404. modet.TextTransparency = modet.TextTransparency  + 1
  405. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  406. for i = 0, 74*timeex do
  407. swait()
  408. modet.TextTransparency = 1
  409. modet.TextStrokeTransparency = 1
  410. tecks2.Text = text
  411. tecks3.Text = text
  412. end
  413. local randomrot = math.random(1,2)
  414. if randomrot == 1 then
  415. for i = 1, 50 do
  416. swait()
  417. tecks2.Text = text
  418. tecks3.Text = text
  419. modet.TextTransparency = modet.TextTransparency - .02
  420. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  421. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  422. tecks2.TextTransparency = tecks2.TextTransparency + .04
  423. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  424. tecks3.TextTransparency = tecks2.TextTransparency + .04
  425. end
  426. elseif randomrot == 2 then
  427.     for i = 1, 50 do
  428. swait()
  429. tecks2.Text = text
  430. tecks3.Text = text
  431. modet.TextTransparency = modet.TextTransparency - .02
  432. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  433. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  434. tecks2.TextTransparency = tecks2.TextTransparency + .04
  435. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  436. tecks3.TextTransparency = tecks2.TextTransparency + .04
  437. end
  438. end
  439. modet.TextTransparency = 0
  440. modet.TextStrokeTransparency = 0
  441. if toggleTag == false then
  442. modet.TextTransparency = 1
  443. modet.TextStrokeTransparency = 1
  444. end
  445. naeeym2:Destroy()
  446. end)
  447. chat()
  448. end
  449.  
  450. function bosschatfunc(text,color,watval)
  451. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  452. coroutine.resume(coroutine.create(function()
  453. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  454. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  455. end
  456. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  457. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  458. scrg.Name = "Dialog"
  459. local txtlb = Instance.new("TextLabel",scrg)
  460. txtlb.Text = ""
  461. txtlb.Font = "Bodoni"
  462. txtlb.TextColor3 = Color3.new(0,0,0)
  463. txtlb.TextStrokeTransparency = 0
  464. txtlb.BackgroundTransparency = 0.75
  465. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  466. txtlb.TextStrokeColor3 = color
  467. txtlb.TextScaled = true
  468. txtlb.Size = UDim2.new(1,0,0.25,0)
  469. txtlb.TextXAlignment = "Left"
  470. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  471. local txtlb2 = Instance.new("TextLabel",scrg)
  472. txtlb2.Text = "?:"
  473. txtlb2.Font = "Arcade"
  474. txtlb2.TextColor3 = Color3.new(0,0,0)
  475. txtlb2.TextStrokeTransparency = 0
  476. txtlb2.BackgroundTransparency = 1
  477. txtlb2.TextStrokeColor3 = color
  478. txtlb2.TextSize = 40
  479. txtlb2.Size = UDim2.new(1,0,0.25,0)
  480. txtlb2.TextXAlignment = "Left"
  481. txtlb2.Position = UDim2.new(0,0,1,0)
  482. local fvalen = 0.55
  483. local fval = -0.49
  484. coroutine.resume(coroutine.create(function()
  485. while true do
  486. swait()
  487. if chaosmode == true then
  488. txtlb.Rotation = math.random(-1,1)
  489. txtlb2.Rotation = math.random(-1,1)
  490. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  491. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  492. txtlb.TextStrokeColor3 = BrickColor.random().Color
  493. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  494. end
  495. end
  496. end))
  497. coroutine.resume(coroutine.create(function()
  498. while true do
  499. swait()
  500. if scrg.Parent ~= nil then
  501.     fvalen = fvalen - 0.0001
  502. elseif scrg.Parent == nil then
  503. break
  504. end
  505. end
  506. end))
  507. local flol = 1.75
  508. local flil = 1.6
  509. coroutine.resume(coroutine.create(function()
  510.     for i = 0, 9 do
  511.         swait()
  512.         fval = fval + 0.05
  513.         flol = flol - 0.1
  514.         flil = flil - 0.1
  515.         txtlb.Text = ""
  516.         txtlb.Position = UDim2.new(0,0,flol,0)
  517.         txtlb2.Position = UDim2.new(0,0,flil,0)
  518.     end
  519.     txtlb.Text = text
  520. wait(watval)
  521. local valinc = 0
  522. for i = 0, 99 do
  523. swait()
  524. valinc = valinc + 0.0001
  525. flol = flol + valinc
  526. flil = flil + valinc
  527. txtlb.Rotation = txtlb.Rotation + valinc*20
  528. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  529. txtlb.Position = UDim2.new(0,0,flol,0)
  530. txtlb2.Position = UDim2.new(0,0,flil,0)
  531. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  532. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  533. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  534. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  535. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  536. end
  537. scrg:Destroy()
  538. end))
  539. end))
  540. end
  541. end
  542.  
  543.  
  544. local Create = LoadLibrary("RbxUtility").Create
  545.  
  546. CFuncs = { 
  547.     ["Part"] = {
  548.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  549.             local Part = Create("Part"){
  550.                 Parent = Parent,
  551.                 Reflectance = Reflectance,
  552.                 Transparency = Transparency,
  553.                 CanCollide = false,
  554.                 Locked = true,
  555.                 BrickColor = BrickColor.new(tostring(BColor)),
  556.                 Name = Name,
  557.                 Size = Size,
  558.                 Material = Material,
  559.             }
  560.             RemoveOutlines(Part)
  561.             return Part
  562.         end;
  563.     };
  564.    
  565.     ["Mesh"] = {
  566.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  567.             local Msh = Create(Mesh){
  568.                 Parent = Part,
  569.                 Offset = OffSet,
  570.                 Scale = Scale,
  571.             }
  572.             if Mesh == "SpecialMesh" then
  573.                 Msh.MeshType = MeshType
  574.                 Msh.MeshId = MeshId
  575.             end
  576.             return Msh
  577.         end;
  578.     };
  579.    
  580.     ["Mesh"] = {
  581.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  582.             local Msh = Create(Mesh){
  583.                 Parent = Part,
  584.                 Offset = OffSet,
  585.                 Scale = Scale,
  586.             }
  587.             if Mesh == "SpecialMesh" then
  588.                 Msh.MeshType = MeshType
  589.                 Msh.MeshId = MeshId
  590.             end
  591.             return Msh
  592.         end;
  593.     };
  594.    
  595.     ["Weld"] = {
  596.         Create = function(Parent, Part0, Part1, C0, C1)
  597.             local Weld = Create("Weld"){
  598.                 Parent = Parent,
  599.                 Part0 = Part0,
  600.                 Part1 = Part1,
  601.                 C0 = C0,
  602.                 C1 = C1,
  603.             }
  604.             return Weld
  605.         end;
  606.     };
  607.  
  608.     ["Sound"] = {
  609.         Create = function(id, par, vol, pit)
  610.             coroutine.resume(coroutine.create(function()
  611.                 local S = Create("Sound"){
  612.                     Volume = vol,
  613.                                         Name = "EffectSoundo",
  614.                     Pitch = pit or 1,
  615.                     SoundId = id,
  616.                     Parent = par or workspace,
  617.                 }
  618.                 wait()
  619.                 S:play()
  620.                 game:GetService("Debris"):AddItem(S, 10)
  621.             end))
  622.         end;
  623.     };
  624.  
  625.     ["TimeSound"] = {
  626.         Create = function(id, par, vol, pit, timepos)
  627.             coroutine.resume(coroutine.create(function()
  628.                 local S = Create("Sound"){
  629.                     Volume = vol,
  630.                                         Name = "EffectSoundo",
  631.                     Pitch = pit or 1,
  632.                     SoundId = id,
  633.                                         TimePosition = timepos,
  634.                     Parent = par or workspace,
  635.                 }
  636.                 wait()
  637.                 S:play()
  638.                 game:GetService("Debris"):AddItem(S, 10)
  639.             end))
  640.         end;
  641.     };
  642.         ["EchoSound"] = {
  643.         Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  644.             coroutine.resume(coroutine.create(function()
  645.                 local Sas = Create("Sound"){
  646.                     Volume = vol,
  647.                     Name = "EffectSoundo",
  648.                     Pitch = pit or 1,
  649.                     SoundId = id,
  650.                     TimePosition = timepos,
  651.                     Parent = par or workspace,
  652.                 }
  653.                 local E = Create("EchoSoundEffect"){
  654.                     Delay = echodelay,
  655.                     Name = "Echo",
  656.                     Feedback = fedb,
  657.                     DryLevel = dryl,
  658.                     Parent = Sas,
  659.                 }
  660.                 wait()
  661.                 Sas:play()
  662.                 game:GetService("Debris"):AddItem(Sas, delays)
  663.             end))
  664.         end;
  665.     };
  666.  
  667. ["LongSound"] = {
  668.         Create = function(id, par, vol, pit)
  669.             coroutine.resume(coroutine.create(function()
  670.                 local S = Create("Sound"){
  671.                     Volume = vol,
  672.                     Pitch = pit or 1,
  673.                     SoundId = id,
  674.                     Parent = par or workspace,
  675.                 }
  676.                 wait()
  677.                 S:play()
  678.                 game:GetService("Debris"):AddItem(S, 60)
  679.             end))
  680.         end;
  681.     };
  682.    
  683.     ["ParticleEmitter"] = {
  684.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  685.             local fp = Create("ParticleEmitter"){
  686.                 Parent = Parent,
  687.                 Color = ColorSequence.new(Color1, Color2),
  688.                 LightEmission = LightEmission,
  689.                 Size = Size,
  690.                 Texture = Texture,
  691.                 Transparency = Transparency,
  692.                 ZOffset = ZOffset,
  693.                 Acceleration = Accel,
  694.                 Drag = Drag,
  695.                 LockedToPart = LockedToPart,
  696.                 VelocityInheritance = VelocityInheritance,
  697.                 EmissionDirection = EmissionDirection,
  698.                 Enabled = Enabled,
  699.                 Lifetime = LifeTime,
  700.                 Rate = Rate,
  701.                 Rotation = Rotation,
  702.                 RotSpeed = RotSpeed,
  703.                 Speed = Speed,
  704.                 VelocitySpread = VelocitySpread,
  705.             }
  706.             return fp
  707.         end;
  708.     };
  709.  
  710.     CreateTemplate = {
  711.    
  712.     };
  713. }
  714.  
  715.  
  716.  
  717. New = function(Object, Parent, Name, Data)
  718.     local Object = Instance.new(Object)
  719.     for Index, Value in pairs(Data or {}) do
  720.         Object[Index] = Value
  721.     end
  722.     Object.Parent = Parent
  723.     Object.Name = Name
  724.     return Object
  725. end
  726. local halocolor = BrickColor.new("Pastel light blue")
  727. local halocolor2 = BrickColor.new("Cool yellow")
  728. local starcolor = BrickColor.new("Bright yellow")
  729. local lunacolor = BrickColor.new("Navy blue")
  730. local lunacolor2 = BrickColor.new("Bright blue")
  731. local wepcolor = BrickColor.new("Really black")
  732. local maincolor = BrickColor.new("Really black")
  733. local m = Instance.new("Model",char)
  734. local m2 = Instance.new("Model",char)
  735. local m3 = Instance.new("Model",char)
  736. local mw1 = Instance.new("Model",char)
  737. local mw2 = Instance.new("Model",char)
  738.  
  739.  
  740. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  741.   local gui = it(GuiType)
  742.   gui.Parent = parent
  743.   gui.Text = text
  744.   gui.BackgroundTransparency = backtrans
  745.   gui.BackgroundColor3 = backcol
  746.   gui.SizeConstraint = "RelativeXY"
  747.   gui.TextXAlignment = "Center"
  748.   gui.TextYAlignment = "Center"
  749.   gui.Position = pos
  750.   gui.Size = size
  751.   gui.Font = "SourceSans"
  752.   gui.FontSize = "Size14"
  753.   gui.TextWrapped = false
  754.   gui.TextStrokeTransparency = 0
  755.   gui.TextColor = BrickColor.new("White")
  756.   return gui
  757. end
  758. --------------------------- GUI STUFF
  759. local basgui = it("GuiMain")
  760. basgui.Parent = plr.PlayerGui
  761. basgui.Name = "VISgui"
  762. local fullscreenz = it("Frame")
  763. fullscreenz.Parent = basgui
  764. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  765. fullscreenz.BackgroundTransparency = 1
  766. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  767. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  768. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  769. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  770. imgl2.BackgroundTransparency = 1
  771. imgl2.BorderSizePixel = 0
  772. imgl2.ImageTransparency = 0.5
  773. imgl2.ImageColor3 = Color3.new(1,0,0)
  774. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  775. imgl2.Size = UDim2.new(0,1000,0,1000)
  776. imgl2.Image = "rbxassetid://2325939897"
  777. local techc = imgl2:Clone()
  778. techc.Parent = fullscreenz
  779. techc.ImageTransparency = 0
  780. techc.Size = UDim2.new(0,900,0,900)
  781. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  782. techc.ImageColor3 = Color3.new(1,0,0)
  783. techc.Image = "rbxassetid://2273224484"
  784. local circl = imgl2:Clone()
  785. circl.Parent = fullscreenz
  786. circl.ImageTransparency = 0
  787. circl.Size = UDim2.new(0,550,0,550)
  788. circl.Position = UDim2.new(0.75,25,0.55,25)
  789. circl.ImageColor3 = Color3.new(0,0,0)
  790. circl.Image = "rbxassetid://2312119891"
  791. local circl2 = imgl2:Clone()
  792. circl2.Parent = fullscreenz
  793. circl2.ImageTransparency = 0
  794. circl2.Size = UDim2.new(0,700,0,700)
  795. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  796. circl2.ImageColor3 = Color3.new(1,0,0)
  797. circl2.Image = "rbxassetid://2312119891"
  798. local imgl2b = imgl2:Clone()
  799. imgl2b.Parent = fullscreenz
  800. imgl2b.ImageTransparency = 0
  801. imgl2b.Size = UDim2.new(0,800,0,800)
  802. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  803. imgl2b.ImageColor3 = Color3.new(0,0,0)
  804. local ned = Instance.new("TextLabel",fullscreenz)
  805. ned.ZIndex = 2
  806. ned.Font = "Arcade"
  807. ned.BackgroundTransparency = 1
  808. ned.BorderSizePixel = 0.65
  809. ned.Size = UDim2.new(0.3,0,0.2,0)
  810. ned.Position = UDim2.new(0.7,0,0.8,0)
  811. ned.TextColor3 = BrickColor.new("Really red").Color
  812. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  813. ned.TextScaled = true
  814. ned.TextStrokeTransparency = 0
  815. ned.Text = "Fei's May"
  816. ned.TextSize = 24
  817. ned.Rotation = 1
  818. ned.TextXAlignment = "Right"
  819. ned.TextYAlignment = "Bottom"
  820.  
  821. local extrawingmod1 = Instance.new("Model",char)
  822. local extrawingmod2 = Instance.new("Model",char)
  823.  
  824. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  825. local p = Instance.new("Part")
  826. p.TopSurface = 0
  827. p.BottomSurface = 0
  828. p.Parent = parent
  829. p.Size = Vector3.new(0.1,0.1,0.1)
  830. p.Transparency = transparency
  831. p.Reflectance = reflectance
  832. p.CanCollide = false
  833. p.Locked = true
  834. p.BrickColor = brickcolor
  835. p.Material = material
  836. return p
  837. end
  838.  
  839. function CreateMesh(parent,meshtype,x1,y1,z1)
  840. local mesh = Instance.new("SpecialMesh",parent)
  841. mesh.MeshType = meshtype
  842. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  843. return mesh
  844. end
  845.  
  846. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  847. local mesh = Instance.new("SpecialMesh",parent)
  848. mesh.MeshType = "FileMesh"
  849. mesh.MeshId = meshid
  850. mesh.Scale = Vector3.new(x1,y1,z1)
  851. return mesh
  852. end
  853.  
  854.  
  855. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  856. local mesh = Instance.new("SpecialMesh",parent)
  857. mesh.MeshType = "FileMesh"
  858. mesh.MeshId = meshid
  859. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  860. mesh.Scale = Vector3.new(x1,y1,z1)
  861. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  862. return mesh
  863. end
  864.  
  865. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  866. local weld = Instance.new("Weld")
  867. weld.Parent = parent
  868. weld.Part0 = part0
  869. weld.Part1 = part1
  870. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  871. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  872. return weld
  873. end
  874.  
  875.  
  876. --------------
  877. --------------
  878. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  879. 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))
  880. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  881. 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))
  882.  
  883. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  884. CreateMesh(handle,"Brick",0,0,0)
  885. 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))
  886. local valuaring = 10
  887. for i = 0, 49 do
  888.     valuaring = valuaring + 10
  889. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  890. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  891. 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))
  892. end
  893.  
  894. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  895. CreateMesh(handle,"Brick",0,0,0)
  896. 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))
  897. local valuaring = 10
  898. for i = 0, 49 do
  899.     valuaring = valuaring + 10
  900. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  901. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  902. 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))
  903. end
  904.  
  905.  
  906. local handle = CreateParta(m,1,1,"Neon",maincolor)
  907. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  908. 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))
  909.  
  910. --- Left wing.
  911.  
  912. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  913. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  914. 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))
  915.  
  916. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  918. 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))
  919. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  920. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  921. 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))
  922. A0 = Instance.new('Attachment',wed)
  923. A0.Position = vt(0,0.25,0.25)
  924. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,0.5,3)
  926. 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))
  927. A1 = Instance.new('Attachment',wed)
  928. A1.Position = vt(0,-0.25,-2)
  929. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,3,0.5)
  931. 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))
  932.  
  933. tl1 = Instance.new('Trail',wed)
  934. tl1.Attachment0 = A1
  935. tl1.Attachment1 = A0
  936. tl1.Texture = "rbxassetid://2108945559"
  937. tl1.LightEmission = 1
  938. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  939. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  940. tl1.Lifetime = 0.6
  941.  
  942.  
  943. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. 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))
  946.  
  947. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. 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))
  953. A0 = Instance.new('Attachment',wed)
  954. A0.Position = vt(0,0.25,0.25)
  955. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,3)
  957. 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))
  958. A1 = Instance.new('Attachment',wed)
  959. A1.Position = vt(0,-0.25,-2)
  960. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  961. CreateMesh(wed,"Wedge",0.05,3,0.5)
  962. 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))
  963.  
  964. tl2 = Instance.new('Trail',wed)
  965. tl2.Attachment0 = A1
  966. tl2.Attachment1 = A0
  967. tl2.Texture = "rbxassetid://2108945559"
  968. tl2.LightEmission = 1
  969. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  970. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  971. tl2.Lifetime = 0.6
  972.  
  973. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  974. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  975. 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))
  976.  
  977. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. 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))
  980. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. 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))
  983. A0 = Instance.new('Attachment',wed)
  984. A0.Position = vt(0,0.25,0.25)
  985. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,3)
  987. 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))
  988. A1 = Instance.new('Attachment',wed)
  989. A1.Position = vt(0,-0.25,-2)
  990. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,3,0.5)
  992. 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))
  993.  
  994. tl3 = Instance.new('Trail',wed)
  995. tl3.Attachment0 = A1
  996. tl3.Attachment1 = A0
  997. tl3.Texture = "rbxassetid://2108945559"
  998. tl3.LightEmission = 1
  999. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1000. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1001. tl3.Lifetime = 0.6
  1002.  
  1003. tl1.Enabled = false
  1004. tl2.Enabled = false
  1005. tl3.Enabled = false
  1006. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1007. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1008. 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))
  1009.  
  1010. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1015. 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))
  1016. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1018. 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))
  1019. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1021. 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))
  1022.  
  1023. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1024. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1025. 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))
  1026.  
  1027. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1028. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1029. 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))
  1030. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. 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))
  1033. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1035. 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))
  1036. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1038. 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))
  1039.  
  1040. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1041. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1042. 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))
  1043.  
  1044. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1045. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1046. 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))
  1047. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1049. 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))
  1050. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1052. 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))
  1053. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1055. 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))
  1056.  
  1057. -- Right wing.
  1058.  
  1059. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1060. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1061. 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))
  1062.  
  1063. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1064. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1065. 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))
  1066. A0 = Instance.new('Attachment',wed)
  1067. A0.Position = vt(0,0.25,0.25)
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1070. 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))
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1073. 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))
  1074. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1076. 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))
  1077. A1 = Instance.new('Attachment',wed)
  1078. A1.Position = vt(0,2,0.25)
  1079.  
  1080. tr1 = Instance.new('Trail',wed)
  1081. tr1.Attachment0 = A1
  1082. tr1.Attachment1 = A0
  1083. tr1.Texture = "rbxassetid://2108945559"
  1084. tr1.LightEmission = 1
  1085. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1086. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1087. tr1.Lifetime = 0.6
  1088.  
  1089. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1090. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1091. 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))
  1092.  
  1093. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1094. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1095. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1096. A0 = Instance.new('Attachment',wed)
  1097. A0.Position = vt(0,0.25,0.25)
  1098. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1099. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1100. 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))
  1101. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1103. 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))
  1104. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1106. 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))
  1107. A1 = Instance.new('Attachment',wed)
  1108. A1.Position = vt(0,2,0.25)
  1109.  
  1110. tr2 = Instance.new('Trail',wed)
  1111. tr2.Attachment0 = A1
  1112. tr2.Attachment1 = A0
  1113. tr2.Texture = "rbxassetid://2108945559"
  1114. tr2.LightEmission = 1
  1115. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1116. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1117. tr2.Lifetime = 0.6
  1118.  
  1119. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1120. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1121. 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))
  1122.  
  1123. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1125. 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))
  1126. A0 = Instance.new('Attachment',wed)
  1127. A0.Position = vt(0,0.25,0.25)
  1128. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1129. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1130. 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))
  1131. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1133. 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))
  1134. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1136. 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))
  1137. A1 = Instance.new('Attachment',wed)
  1138. A1.Position = vt(0,2,0.25)
  1139.  
  1140. tr3 = Instance.new('Trail',wed)
  1141. tr3.Attachment0 = A1
  1142. tr3.Attachment1 = A0
  1143. tr3.Texture = "rbxassetid://2108945559"
  1144. tr3.LightEmission = 1
  1145. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1146. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1147. tr3.Lifetime = 0.6
  1148.  
  1149.  
  1150. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1151. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1152. 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))
  1153.  
  1154. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1155. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1156. 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))
  1157. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1159. 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))
  1160. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1162. 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))
  1163. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1164. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1165. 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))
  1166.  
  1167. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1168. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1169. 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))
  1170.  
  1171. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1172. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1173. 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))
  1174. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1175. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1176. 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))
  1177. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1178. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1179. 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))
  1180. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1181. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1182. 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))
  1183.  
  1184. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1185. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1186. 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))
  1187.  
  1188. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1189. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1190. 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))
  1191. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1192. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1193. 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))
  1194. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1195. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1196. 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))
  1197. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1198. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1199. 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))
  1200.  
  1201. ---- HERES THE RING
  1202.  
  1203.  
  1204. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1205. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1206. 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))
  1207. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1208. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1209. 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))
  1210. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1211. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1212. 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))
  1213.  
  1214.  
  1215. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1216. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1217. 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))
  1218.  
  1219. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1220. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1221. 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))
  1222.  
  1223.  
  1224.  
  1225. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1226. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1227. 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))
  1228.  
  1229. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1230. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1231. 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))
  1232.  
  1233. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1234. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1235. 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))
  1236.  
  1237. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1238. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1239. 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))
  1240. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1241. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1242. 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))
  1243.  
  1244. --- second ring
  1245.  
  1246. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1247. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1248. 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))
  1249. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1250. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1251. 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))
  1252. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1253. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1254. 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))
  1255.  
  1256. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1257. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1258. 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))
  1259.  
  1260. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1261. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1262. 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))
  1263.  
  1264.  
  1265.  
  1266. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1267. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1268. 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))
  1269.  
  1270. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1271. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1272. 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))
  1273.  
  1274. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1275. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1276. 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))
  1277.  
  1278. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1279. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1280. 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))
  1281. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1282. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1283. 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))]]--
  1284.  
  1285.  
  1286.  
  1287. for i, v in pairs(m:GetChildren()) do
  1288. if v:IsA("Part") then
  1289. v.BrickColor = BrickColor.new("Really black")
  1290. v.Material = "Glass"
  1291. end
  1292. end
  1293. for i, v in pairs(m2:GetChildren()) do
  1294. if v:IsA("Part") then
  1295. v.BrickColor = BrickColor.new("Crimson")
  1296. v.Material = "Granite"
  1297. end
  1298. end
  1299. for i, v in pairs(m3:GetChildren()) do
  1300. if v:IsA("Part") then
  1301. v.BrickColor = BrickColor.new("Really red")
  1302. v.Material = "Neon"
  1303. end
  1304. end
  1305. for i, v in pairs(mw2:GetChildren()) do
  1306. if v:IsA("Part") then
  1307. v.BrickColor = BrickColor.new("Really red")
  1308. v.Material = "Neon"
  1309. end
  1310. end
  1311. for i, v in pairs(mw1:GetChildren()) do
  1312. if v:IsA("Part") then
  1313. v.Transparency = 1
  1314. v.BrickColor = BrickColor.new("Really red")
  1315. v.Material = "Neon"
  1316. end
  1317. end
  1318. for i, v in pairs(extrawingmod1:GetChildren()) do
  1319. if v:IsA("Part") then
  1320. v.Transparency = 1
  1321. v.BrickColor = BrickColor.new("White")
  1322. v.Material = "Neon"
  1323. end
  1324. end
  1325. for i, v in pairs(extrawingmod2:GetChildren()) do
  1326. if v:IsA("Part") then
  1327. v.Transparency = 1
  1328. v.BrickColor = BrickColor.new("White")
  1329. v.Material = "Neon"
  1330. end
  1331. end
  1332. local MAINRUINCOLOR = BrickColor.new("Really red")
  1333. ------
  1334.  
  1335.  
  1336. function RemoveOutlines(part)
  1337.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1338. end
  1339. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1340.   local Part = Create("Part")({
  1341.     Parent = Parent,
  1342.     Reflectance = Reflectance,
  1343.     Transparency = Transparency,
  1344.     CanCollide = false,
  1345.     Locked = true,
  1346.     BrickColor = BrickColor.new(tostring(BColor)),
  1347.     Name = Name,
  1348.     Size = Size,
  1349.     Material = Material
  1350.   })
  1351.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1352.   RemoveOutlines(Part)
  1353.   return Part
  1354. end
  1355. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1356.   local Msh = Create(Mesh)({
  1357.     Parent = Part,
  1358.     Offset = OffSet,
  1359.     Scale = Scale
  1360.   })
  1361.   if Mesh == "SpecialMesh" then
  1362.     Msh.MeshType = MeshType
  1363.     Msh.MeshId = MeshId
  1364.   end
  1365.   return Msh
  1366. end
  1367. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1368.   local Weld = Create("Weld")({
  1369.     Parent = Parent,
  1370.     Part0 = Part0,
  1371.     Part1 = Part1,
  1372.     C0 = C0,
  1373.     C1 = C1
  1374.   })
  1375.   return Weld
  1376. end
  1377.  
  1378. Character=Player.Character
  1379. PlayerGui=Player.PlayerGui
  1380. Backpack=Player.Backpack
  1381. Torso=Character.Torso
  1382. Head=Character.Head
  1383. Humanoid=Character.Humanoid
  1384. m=Instance.new('Model',Character)
  1385. LeftArm=Character["Left Arm"]
  1386. LeftLeg=Character["Left Leg"]
  1387. RightArm=Character["Right Arm"]
  1388. RightLeg=Character["Right Leg"]
  1389. LS=Torso["Left Shoulder"]
  1390. LH=Torso["Left Hip"]
  1391. RS=Torso["Right Shoulder"]
  1392. RH=Torso["Right Hip"]
  1393. Face = Head.face
  1394. Neck=Torso.Neck
  1395. it=Instance.new
  1396. attacktype=1
  1397. vt=Vector3.new
  1398. cf=CFrame.new
  1399. euler=CFrame.fromEulerAnglesXYZ
  1400. angles=CFrame.Angles
  1401. cloaked=false
  1402. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1403. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1404. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1405. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1406. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1407. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1408. RootPart=Character.HumanoidRootPart
  1409. RootJoint=RootPart.RootJoint
  1410. RootCF=euler(-1.57,0,3.14)
  1411. attack = false
  1412. attackdebounce = false
  1413. deb=false
  1414. equipped=true
  1415. hand=false
  1416. combo=0
  1417. mana=0
  1418. trispeed=.2
  1419. attackmode='none'
  1420. local idle=0
  1421. local Anim="Idle"
  1422. local Effects={}
  1423. local gun=false
  1424. local shoot=false
  1425. local sine = 0
  1426. local change = 1
  1427.  
  1428. function RecolorTextAndRename(name,col1,col2,font)
  1429. modet.TextStrokeColor3 = col2
  1430. modet.TextColor3 = col1
  1431. modet.Font = font
  1432. modet.Text = name
  1433. techc.ImageColor3 = col2
  1434. circl.ImageColor3 = col2
  1435. circl2.ImageColor3 = col1
  1436. imgl2.ImageColor3 = col1
  1437. imgl2b.ImageColor3 = col2
  1438. ned.Text = name
  1439. ned.TextColor3 = col1
  1440. ned.TextStrokeColor3 = col2
  1441. end
  1442. --save shoulders
  1443. RSH, LSH=nil, nil
  1444. --welds
  1445. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1446. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1447. LH=Torso["Left Hip"]
  1448. RH=Torso["Right Hip"]
  1449. TorsoColor=Torso.BrickColor
  1450. function NoOutline(Part)
  1451. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1452. end
  1453. ch=Character
  1454. RSH=ch.Torso["Right Shoulder"]
  1455. LSH=ch.Torso["Left Shoulder"]
  1456. --
  1457. RSH.Parent=nil
  1458. LSH.Parent=nil
  1459. --
  1460. RW.Name="Right Shoulder"
  1461. RW.Part0=ch.Torso
  1462. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1463. RW.C1=cf(0, 0.5, 0)
  1464. RW.Part1=ch["Right Arm"]
  1465. RW.Parent=ch.Torso
  1466. --
  1467. LW.Name="Left Shoulder"
  1468. LW.Part0=ch.Torso
  1469. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1470. LW.C1=cf(0, 0.5, 0)
  1471. LW.Part1=ch["Left Arm"]
  1472. LW.Parent=ch.Torso
  1473.  
  1474. local Stats=Instance.new("BoolValue")
  1475. Stats.Name="Stats"
  1476. Stats.Parent=Character
  1477. local Atk=Instance.new("NumberValue")
  1478. Atk.Name="Damage"
  1479. Atk.Parent=Stats
  1480. Atk.Value=1
  1481. local Def=Instance.new("NumberValue")
  1482. Def.Name="Defense"
  1483. Def.Parent=Stats
  1484. Def.Value=1
  1485. local Speed=Instance.new("NumberValue")
  1486. Speed.Name="Speed"
  1487. Speed.Parent=Stats
  1488. Speed.Value=1
  1489. local Mvmt=Instance.new("NumberValue")
  1490. Mvmt.Name="Movement"
  1491. Mvmt.Parent=Stats
  1492. Mvmt.Value=1
  1493.  
  1494. local donum=0
  1495.  
  1496.  
  1497. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1498. local fp=it("Part")
  1499. fp.formFactor=formfactor
  1500. fp.Parent=parent
  1501. fp.Reflectance=reflectance
  1502. fp.Transparency=transparency
  1503. fp.CanCollide=false
  1504. fp.Locked=true
  1505. fp.BrickColor=brickcolor
  1506. fp.Name=name
  1507. fp.Size=size
  1508. fp.Position=Torso.Position
  1509. NoOutline(fp)
  1510. fp.Material="SmoothPlastic"
  1511. fp:BreakJoints()
  1512. return fp
  1513. end
  1514.  
  1515. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1516. local mesh=it(Mesh)
  1517. mesh.Parent=part
  1518. if Mesh=="SpecialMesh" then
  1519. mesh.MeshType=meshtype
  1520. if meshid~="nil" then
  1521. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1522. end
  1523. end
  1524. mesh.Offset=offset
  1525. mesh.Scale=scale
  1526. return mesh
  1527. end
  1528.  
  1529. function weld(parent,part0,part1,c0)
  1530. local weld=it("Weld")
  1531. weld.Parent=parent
  1532. weld.Part0=part0
  1533. weld.Part1=part1
  1534. weld.C0=c0
  1535. return weld
  1536. end
  1537.  
  1538. local Color1=Torso.BrickColor
  1539.  
  1540. local bodvel=Instance.new("BodyVelocity")
  1541. local bg=Instance.new("BodyGyro")
  1542.  
  1543. --------- SazEreno's Artificial HB --------------
  1544. ArtificialHB = Instance.new("BindableEvent", script)
  1545. ArtificialHB.Name = "ArtificialHB"
  1546.  
  1547. script:WaitForChild("ArtificialHB")
  1548. Frame_Speed = 1 / 60
  1549. frame = Frame_Speed
  1550. tf = 0
  1551. allowframeloss = false
  1552. tossremainder = false
  1553. lastframe = tick()
  1554. script.ArtificialHB:Fire()
  1555.  
  1556. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1557.     tf = tf + s
  1558.     if tf >= frame then
  1559.         if allowframeloss then
  1560.             script.ArtificialHB:Fire()
  1561.             lastframe = tick()
  1562.         else
  1563.             for i = 1, math.floor(tf / frame) do
  1564.                 script.ArtificialHB:Fire()
  1565.             end
  1566.         lastframe = tick()
  1567.         end
  1568.         if tossremainder then
  1569.             tf = 0
  1570.         else
  1571.             tf = tf - frame * math.floor(tf / frame)
  1572.         end
  1573.     end
  1574. end)
  1575.  
  1576. ------------------
  1577. function swait(num)
  1578. function swait(num)
  1579. if num==0 or num==nil then
  1580. game:service'RunService'.Stepped:wait(0)
  1581. else
  1582. for i=0,num do
  1583. game:service'RunService'.Stepped:wait(0)
  1584. end
  1585. end
  1586. end
  1587. end
  1588.  
  1589. -------- RAINBOW LEAVE IT TO ME
  1590. local r = 255
  1591. local g = 0
  1592. local b = 0
  1593. coroutine.resume(coroutine.create(function()
  1594. while wait() do
  1595.     for i = 0, 254/5 do
  1596.         swait()
  1597.         g = g + 5
  1598.     end
  1599.     for i = 0, 254/5 do
  1600.         swait()
  1601.         r = r - 5
  1602.     end
  1603.     for i = 0, 254/5 do
  1604.         swait()
  1605.         b = b + 5
  1606.     end
  1607.     for i = 0, 254/5 do
  1608.         swait()
  1609.         g = g - 5
  1610.     end
  1611.     for i = 0, 254/5 do
  1612.         swait()
  1613.         r = r + 5
  1614.     end
  1615.     for i = 0, 254/5 do
  1616.         swait()
  1617.         b = b - 5
  1618.     end
  1619. end
  1620. end))
  1621.  
  1622.  
  1623. so = function(id,par,vol,pit)
  1624. coroutine.resume(coroutine.create(function()
  1625. local sou = Instance.new("Sound",par or workspace)
  1626. sou.Volume=vol
  1627. sou.Pitch=pit or 1
  1628. sou.SoundId=id
  1629. swait()
  1630. sou:play()
  1631. game:GetService("Debris"):AddItem(sou,6)
  1632. end))
  1633. end
  1634.  
  1635. function clerp(a,b,t)
  1636. local qa = {QuaternionFromCFrame(a)}
  1637. local qb = {QuaternionFromCFrame(b)}
  1638. local ax, ay, az = a.x, a.y, a.z
  1639. local bx, by, bz = b.x, b.y, b.z
  1640. local _t = 1-t
  1641. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1642. end
  1643.  
  1644. function QuaternionFromCFrame(cf)
  1645. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1646. local trace = m00 + m11 + m22
  1647. if trace > 0 then
  1648. local s = math.sqrt(1 + trace)
  1649. local recip = 0.5/s
  1650. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1651. else
  1652. local i = 0
  1653. if m11 > m00 then
  1654. i = 1
  1655. end
  1656. if m22 > (i == 0 and m00 or m11) then
  1657. i = 2
  1658. end
  1659. if i == 0 then
  1660. local s = math.sqrt(m00-m11-m22+1)
  1661. local recip = 0.5/s
  1662. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1663. elseif i == 1 then
  1664. local s = math.sqrt(m11-m22-m00+1)
  1665. local recip = 0.5/s
  1666. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1667. elseif i == 2 then
  1668. local s = math.sqrt(m22-m00-m11+1)
  1669. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1670. end
  1671. end
  1672. end
  1673.  
  1674. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1675. local xs, ys, zs = x + x, y + y, z + z
  1676. local wx, wy, wz = w*xs, w*ys, w*zs
  1677. local xx = x*xs
  1678. local xy = x*ys
  1679. local xz = x*zs
  1680. local yy = y*ys
  1681. local yz = y*zs
  1682. local zz = z*zs
  1683. 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))
  1684. end
  1685.  
  1686. function QuaternionSlerp(a, b, t)
  1687. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1688. local startInterp, finishInterp;
  1689. if cosTheta >= 0.0001 then
  1690. if (1 - cosTheta) > 0.0001 then
  1691. local theta = math.acos(cosTheta)
  1692. local invSinTheta = 1/math.sin(theta)
  1693. startInterp = math.sin((1-t)*theta)*invSinTheta
  1694. finishInterp = math.sin(t*theta)*invSinTheta  
  1695. else
  1696. startInterp = 1-t
  1697. finishInterp = t
  1698. end
  1699. else
  1700. if (1+cosTheta) > 0.0001 then
  1701. local theta = math.acos(-cosTheta)
  1702. local invSinTheta = 1/math.sin(theta)
  1703. startInterp = math.sin((t-1)*theta)*invSinTheta
  1704. finishInterp = math.sin(t*theta)*invSinTheta
  1705. else
  1706. startInterp = t-1
  1707. finishInterp = t
  1708. end
  1709. end
  1710. 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
  1711. end
  1712.  
  1713. local function CFrameFromTopBack(at, top, back)
  1714. local right = top:Cross(back)
  1715. return CFrame.new(at.x, at.y, at.z,
  1716. right.x, top.x, back.x,
  1717. right.y, top.y, back.y,
  1718. right.z, top.z, back.z)
  1719. end
  1720.  
  1721. function Triangle(a, b, c)
  1722. local edg1 = (c-a):Dot((b-a).unit)
  1723. local edg2 = (a-b):Dot((c-b).unit)
  1724. local edg3 = (b-c):Dot((a-c).unit)
  1725. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1726. a, b, c = a, b, c
  1727. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1728. a, b, c = b, c, a
  1729. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1730. a, b, c = c, a, b
  1731. else
  1732. assert(false, "unreachable")
  1733. end
  1734.  
  1735. local len1 = (c-a):Dot((b-a).unit)
  1736. local len2 = (b-a).magnitude - len1
  1737. local width = (a + (b-a).unit*len1 - c).magnitude
  1738.  
  1739. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1740.  
  1741. local list = {}
  1742.  
  1743. if len1 > 0.01 then
  1744. local w1 = Instance.new('WedgePart', m)
  1745. game:GetService("Debris"):AddItem(w1,5)
  1746. w1.Material = "SmoothPlastic"
  1747. w1.FormFactor = 'Custom'
  1748. w1.BrickColor = BrickColor.new("Really red")
  1749. w1.Transparency = 0
  1750. w1.Reflectance = 0
  1751. w1.Material = "SmoothPlastic"
  1752. w1.CanCollide = false
  1753. local l1 = Instance.new("PointLight",w1)
  1754. l1.Color = Color3.new(170,0,0)
  1755. NoOutline(w1)
  1756. local sz = Vector3.new(0.2, width, len1)
  1757. w1.Size = sz
  1758. local sp = Instance.new("SpecialMesh",w1)
  1759. sp.MeshType = "Wedge"
  1760. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1761. w1:BreakJoints()
  1762. w1.Anchored = true
  1763. w1.Parent = workspace
  1764. w1.Transparency = 0.7
  1765. table.insert(Effects,{w1,"Disappear",.01})
  1766. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1767. table.insert(list,w1)
  1768. end
  1769.  
  1770. if len2 > 0.01 then
  1771. local w2 = Instance.new('WedgePart', m)
  1772. game:GetService("Debris"):AddItem(w2,5)
  1773. w2.Material = "SmoothPlastic"
  1774. w2.FormFactor = 'Custom'
  1775. w2.BrickColor = BrickColor.new("Really red")
  1776. w2.Transparency = 0
  1777. w2.Reflectance = 0
  1778. w2.Material = "SmoothPlastic"
  1779. w2.CanCollide = false
  1780. local l2 = Instance.new("PointLight",w2)
  1781. l2.Color = Color3.new(170,0,0)
  1782. NoOutline(w2)
  1783. local sz = Vector3.new(0.2, width, len2)
  1784. w2.Size = sz
  1785. local sp = Instance.new("SpecialMesh",w2)
  1786. sp.MeshType = "Wedge"
  1787. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1788. w2:BreakJoints()
  1789. w2.Anchored = true
  1790. w2.Parent = workspace
  1791. w2.Transparency = 0.7
  1792. table.insert(Effects,{w2,"Disappear",.01})
  1793. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1794. table.insert(list,w2)
  1795. end
  1796. return unpack(list)
  1797. end
  1798.  
  1799.  
  1800. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1801.  if hit.Parent == nil then
  1802.    return
  1803.  end
  1804.  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1805.  for _, v in pairs(hit.Parent:children()) do
  1806.    if v:IsA("Humanoid") then
  1807.      h = v
  1808.    end
  1809.  end
  1810.  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1811.    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1812.      return
  1813.    end
  1814.    local c = Create("ObjectValue")({
  1815.      Name = "creator",
  1816.      Value = game:GetService("Players").LocalPlayer,
  1817.      Parent = h
  1818.    })
  1819.    game:GetService("Debris"):AddItem(c, 0.5)
  1820.    if HitSound ~= nil and HitPitch ~= nil then
  1821.      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1822.    end
  1823.    local Damage = math.random(minim, maxim)
  1824.    local blocked = false
  1825.    local block = hit.Parent:findFirstChild("Block")
  1826.    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1827.      blocked = true
  1828.      block.Value = block.Value - 1
  1829.      print(block.Value)
  1830.    end
  1831.    if blocked == false then
  1832.      HitHealth = h.Health
  1833.      h.MaxHealth = 100
  1834.      h.Health = h.Health - Damage
  1835.      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1836.        print("gained kill")
  1837.        dmg(h.Parent)
  1838.      end
  1839.      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1840.    else
  1841.      h.Health = h.Health - Damage / 2
  1842.      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1843.    end
  1844.    if Type == "Knockdown" then
  1845.      local hum = hit.Parent.Humanoid
  1846.      hum.PlatformStand = true
  1847.      coroutine.resume(coroutine.create(function(HHumanoid)
  1848.        swait(1)
  1849.        HHumanoid.PlatformStand = false
  1850.      end), hum)
  1851.      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1852.      local bodvol = Create("BodyVelocity")({
  1853.        velocity = angle * knockback,
  1854.        P = 5000,
  1855.        maxForce = Vector3.new(8000, 8000, 8000),
  1856.        Parent = hit
  1857.      })
  1858.      local rl = Create("BodyAngularVelocity")({
  1859.        P = 3000,
  1860.        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1861.        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1862.        Parent = hit
  1863.      })
  1864.      game:GetService("Debris"):AddItem(bodvol, 0.5)
  1865.      game:GetService("Debris"):AddItem(rl, 0.5)
  1866.    elseif Type == "Normal" then
  1867.      local vp = Create("BodyVelocity")({
  1868.        P = 500,
  1869.        maxForce = Vector3.new(math.huge, 0, math.huge),
  1870.        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1871.      })
  1872.      if knockback > 0 then
  1873.        vp.Parent = hit.Parent.Head
  1874.      end
  1875.      game:GetService("Debris"):AddItem(vp, 0.5)
  1876.    elseif Type == "Up" then
  1877.      local bodyVelocity = Create("BodyVelocity")({
  1878.        velocity = Vector3.new(0, 20, 0),
  1879.        P = 5000,
  1880.        maxForce = Vector3.new(8000, 8000, 8000),
  1881.        Parent = hit
  1882.      })
  1883.      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1884.      local bodyVelocity = Create("BodyVelocity")({
  1885.        velocity = Vector3.new(0, 20, 0),
  1886.        P = 5000,
  1887.        maxForce = Vector3.new(8000, 8000, 8000),
  1888.        Parent = hit
  1889.      })
  1890.      game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1891.    elseif Type == "Leech" then
  1892.      local hum = hit.Parent.Humanoid
  1893.      if hum ~= nil then
  1894.        for i = 0, 2 do
  1895.          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)
  1896.        end
  1897.        Humanoid.Health = Humanoid.Health + 10
  1898.      end
  1899.    elseif Type == "UpKnock" then
  1900.      local hum = hit.Parent.Humanoid
  1901.      hum.PlatformStand = true
  1902.      if hum ~= nil then
  1903.        hitr = true
  1904.      end
  1905.      coroutine.resume(coroutine.create(function(HHumanoid)
  1906.        swait(5)
  1907.        HHumanoid.PlatformStand = false
  1908.        hitr = false
  1909.      end), hum)
  1910.      local bodyVelocity = Create("BodyVelocity")({
  1911.        velocity = Vector3.new(0, 20, 0),
  1912.        P = 5000,
  1913.        maxForce = Vector3.new(8000, 8000, 8000),
  1914.        Parent = hit
  1915.      })
  1916.      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1917.      local bodyVelocity = Create("BodyVelocity")({
  1918.        velocity = Vector3.new(0, 20, 0),
  1919.        P = 5000,
  1920.        maxForce = Vector3.new(8000, 8000, 8000),
  1921.        Parent = hit
  1922.      })
  1923.      game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1924.    elseif Type == "Snare" then
  1925.      local bp = Create("BodyPosition")({
  1926.        P = 2000,
  1927.        D = 100,
  1928.        maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1929.        position = hit.Parent.Torso.Position,
  1930.        Parent = hit.Parent.Torso
  1931.      })
  1932.      game:GetService("Debris"):AddItem(bp, 1)
  1933.    elseif Type == "Slashnare" then
  1934.      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)
  1935.      for i = 1, math.random(4, 5) do
  1936.        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)
  1937.      end
  1938.      local bp = Create("BodyPosition")({
  1939.        P = 2000,
  1940.        D = 100,
  1941.        maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1942.        position = hit.Parent.Torso.Position,
  1943.        Parent = hit.Parent.Torso
  1944.      })
  1945.      game:GetService("Debris"):AddItem(bp, 1)
  1946.    elseif Type == "Spike" then
  1947.      CreateBigIceSword(hit.Parent.Torso.CFrame)
  1948.      local bp = Create("BodyPosition")({
  1949.        P = 2000,
  1950.        D = 100,
  1951.        maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1952.        position = hit.Parent.Torso.Position,
  1953.        Parent = hit.Parent.Torso
  1954.      })
  1955.      game:GetService("Debris"):AddItem(bp, 1)
  1956.    elseif Type == "Freeze" then
  1957.      local BodPos = Create("BodyPosition")({
  1958.        P = 50000,
  1959.        D = 1000,
  1960.        maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1961.        position = hit.Parent.Torso.Position,
  1962.        Parent = hit.Parent.Torso
  1963.      })
  1964.      local BodGy = Create("BodyGyro")({
  1965.        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1966.        P = 20000,
  1967.        Parent = hit.Parent.Torso,
  1968.        cframe = hit.Parent.Torso.CFrame
  1969.      })
  1970.      hit.Parent.Torso.Anchored = true
  1971.      coroutine.resume(coroutine.create(function(Part)
  1972.        swait(1.5)
  1973.        Part.Anchored = false
  1974.      end), hit.Parent.Torso)
  1975.      game:GetService("Debris"):AddItem(BodPos, 3)
  1976.      game:GetService("Debris"):AddItem(BodGy, 3)
  1977.    end
  1978.    local debounce = Create("BoolValue")({
  1979.      Name = "DebounceHit",
  1980.      Parent = hit.Parent,
  1981.      Value = true
  1982.    })
  1983.    game:GetService("Debris"):AddItem(debounce, Delay)
  1984.    c = Instance.new("ObjectValue")
  1985.    c.Name = "creator"
  1986.    c.Value = Player
  1987.    c.Parent = h
  1988.    game:GetService("Debris"):AddItem(c, 0.5)
  1989.  end
  1990. end
  1991. function ShowDamage(Pos, Text, Time, Color)
  1992.  local Rate = 0.03333333333333333
  1993.  local Pos = Pos or Vector3.new(0, 0, 0)
  1994.  local Text = Text or ""
  1995.  local Time = Time or 2
  1996.  local Color = Color or Color3.new(1, 0, 1)
  1997.  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1998.  EffectPart.Anchored = true
  1999.  local BillboardGui = Create("BillboardGui")({
  2000.    Size = UDim2.new(3, 0, 3, 0),
  2001.    Adornee = EffectPart,
  2002.    Parent = EffectPart
  2003.  })
  2004.  local TextLabel = Create("TextLabel")({
  2005.    BackgroundTransparency = 1,
  2006.    Size = UDim2.new(1, 0, 1, 0),
  2007.    Text = Text,
  2008.    TextColor3 = Color,
  2009.    TextScaled = true,
  2010.    Font = Enum.Font.ArialBold,
  2011.    Parent = BillboardGui
  2012.  })
  2013.  game.Debris:AddItem(EffectPart, Time + 0.1)
  2014.  EffectPart.Parent = game:GetService("Workspace")
  2015.  delay(0, function()
  2016.    local Frames = Time / Rate
  2017.    for Frame = 1, Frames do
  2018.      wait(Rate)
  2019.      local Percent = Frame / Frames
  2020.      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2021.      TextLabel.TextTransparency = Percent
  2022.    end
  2023.    if EffectPart and EffectPart.Parent then
  2024.      EffectPart:Destroy()
  2025.    end
  2026.  end)
  2027. end
  2028. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2029.  for _, c in pairs(workspace:children()) do
  2030.    local hum = c:findFirstChildOfClass("Humanoid")
  2031.    if hum ~= nil then
  2032.      local head = c:findFirstChild("Head")
  2033.      if head ~= nil then
  2034.        local targ = head.Position - Part.Position
  2035.        local mag = targ.magnitude
  2036.        if magni >= mag and c.Name ~= Player.Name then
  2037.          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2038.        end
  2039.      end
  2040.    end
  2041.  end
  2042. end
  2043.  
  2044. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2045.  for _, c in pairs(workspace:children()) do
  2046.    local hum = c:findFirstChild("Humanoid")
  2047.    if hum ~= nil then
  2048.      local head = c:findFirstChild("Torso")
  2049.      if head ~= nil then
  2050.        local targ = head.Position - Part.Position
  2051.        local mag = targ.magnitude
  2052.        if magni >= mag and c.Name ~= Player.Name then
  2053.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2054.          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2055.        end
  2056.      end
  2057.    end
  2058.  end
  2059. end
  2060.  
  2061. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2062. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2063. end
  2064.  
  2065. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2066. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2067. prt.Anchored=true
  2068. prt.CFrame=cframe
  2069. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2070. --http://www.roblox.com/asset/?id=4770560
  2071. game:GetService("Debris"):AddItem(prt,2)
  2072. CF=prt.CFrame
  2073. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2074. for i=0,1,0.2 do
  2075. wait()
  2076. Part.CFrame=CF*cf(0,0,-0.4)
  2077. end
  2078. for i=0,1,delay do
  2079. wait()
  2080. --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)
  2081. Mesh.Scale=Mesh.Scale
  2082. end
  2083. for i=0,1,0.1 do
  2084. wait()
  2085. Part.Transparency=i
  2086. end
  2087. Part.Parent=nil
  2088. end),prt,msh,CF)
  2089. end
  2090.  
  2091. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2092. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2093. prt.Anchored=true
  2094. prt.Material = "Neon"
  2095. prt.CFrame=cframe
  2096. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2097. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2098. game:GetService("Debris"):AddItem(prt,5)
  2099. coroutine.resume(coroutine.create(function(Part,Mesh)
  2100. for i=0,1,delay do
  2101. swait()
  2102. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2103. Part.Transparency=i
  2104. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2105. end
  2106. Part.Parent=nil
  2107. end),prt,msh)
  2108. end
  2109.  
  2110. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2111. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2112. prt.Anchored=true
  2113. prt.Material = "Neon"
  2114. prt.CFrame=cframe
  2115. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2116. game:GetService("Debris"):AddItem(prt,5)
  2117. coroutine.resume(coroutine.create(function(Part,Mesh)
  2118.     local rtype = rottype
  2119. for i=0,1,delay do
  2120. swait()
  2121. if rtype == 1 then
  2122. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2123. elseif rtype == 2 then
  2124. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2125. end
  2126. Part.Transparency=i
  2127. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2128. end
  2129. Part.Parent=nil
  2130. end),prt,msh)
  2131. end
  2132.  
  2133. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2134. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2135. prt.Anchored=true
  2136. prt.CFrame=cframe
  2137. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2138. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2139. game:GetService("Debris"):AddItem(prt,5)
  2140. coroutine.resume(coroutine.create(function(Part,Mesh)
  2141. for i=0,1,delay do
  2142. wait()
  2143. Part.Transparency=i
  2144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2145. end
  2146. Part.Parent=nil
  2147. end),prt,msh)
  2148. end
  2149.  
  2150. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2151. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2152. prt.Anchored=true
  2153. prt.Material = "Neon"
  2154. prt.CFrame=cframe
  2155. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2156. game:GetService("Debris"):AddItem(prt,5)
  2157. coroutine.resume(coroutine.create(function(Part,Mesh)
  2158.     local rtype = rottype
  2159. for i=0,1,delay do
  2160. swait()
  2161. if rtype == 1 then
  2162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2163. elseif rtype == 2 then
  2164. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2165. end
  2166. Part.Transparency=i
  2167. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2168. end
  2169. Part.Parent=nil
  2170. end),prt,msh)
  2171. end
  2172.  
  2173. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2174. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2175. prt.Anchored=true
  2176. prt.Material = "Neon"
  2177. prt.CFrame=cframe
  2178. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2179. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2180. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2181. game:GetService("Debris"):AddItem(prt,5)
  2182. coroutine.resume(coroutine.create(function(Part,Mesh)
  2183.     local rtype = rottype
  2184. for i=0,1,delay do
  2185. swait()
  2186. if rtype == 1 then
  2187. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2188. elseif rtype == 2 then
  2189. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2190. end
  2191. dec.Transparency=i
  2192. dec2.Transparency=i
  2193. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2194. end
  2195. Part.Parent=nil
  2196. end),prt,msh)
  2197. end
  2198.  
  2199. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2200. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2201. prt.Anchored=true
  2202. prt.Material = "Neon"
  2203. prt.CFrame=cframe
  2204. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2205. game:GetService("Debris"):AddItem(prt,5)
  2206. coroutine.resume(coroutine.create(function(Part,Mesh)
  2207.     local rtype = rottype
  2208. for i=0,1,delay do
  2209. swait()
  2210. if rtype == 1 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2212. elseif rtype == 2 then
  2213. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2214. end
  2215. prt.Transparency=i
  2216. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2217. end
  2218. Part.Parent=nil
  2219. end),prt,msh)
  2220. end
  2221.  
  2222. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2223. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2224. prt.Anchored=true
  2225. prt.Material = "Neon"
  2226. prt.CFrame=cframe
  2227. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2228. game:GetService("Debris"):AddItem(prt,5)
  2229. coroutine.resume(coroutine.create(function(Part,Mesh)
  2230.     local rtype = rottype
  2231. for i=0,1,delay do
  2232. swait()
  2233. if rtype == 1 then
  2234. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2235. elseif rtype == 2 then
  2236. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2237. end
  2238. prt.Transparency=i
  2239. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2240. end
  2241. Part.Parent=nil
  2242. end),prt,msh)
  2243. end
  2244.  
  2245. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2246. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2247. prt.Anchored=true
  2248. prt.Material = "Neon"
  2249. prt.CFrame=cframe
  2250. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2251. game:GetService("Debris"):AddItem(prt,5)
  2252. coroutine.resume(coroutine.create(function(Part,Mesh)
  2253.     local rtype = rottype
  2254. for i=0,1,delay do
  2255. swait()
  2256. if rtype == 1 then
  2257. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2258. elseif rtype == 2 then
  2259. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2260. end
  2261. prt.Transparency=i
  2262. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2263. end
  2264. Part.Parent=nil
  2265. end),prt,msh)
  2266. end
  2267.  
  2268. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2269. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2270. prt.Anchored=true
  2271. prt.Material = "Neon"
  2272. prt.CFrame=cframe
  2273. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2274. game:GetService("Debris"):AddItem(prt,5)
  2275. coroutine.resume(coroutine.create(function(Part,Mesh)
  2276.     local rtype = rottype
  2277. for i=0,1,delay do
  2278. swait()
  2279. if rtype == 1 then
  2280. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2281. elseif rtype == 2 then
  2282. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2283. end
  2284. prt.Transparency=i
  2285. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2286. end
  2287. Part.Parent=nil
  2288. end),prt,msh)
  2289. end
  2290.  
  2291. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2292. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2293. prt.Anchored=false
  2294. prt.CFrame=cframe
  2295. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2296. local wld=weld(prt,prt,Parent,cframe)
  2297. game:GetService("Debris"):AddItem(prt,5)
  2298. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2299. for i=0,1,delay do
  2300. wait()
  2301. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2302. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2303. Part.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh,wld)
  2308. end
  2309.  
  2310. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=false
  2313. prt.CFrame=cframe
  2314. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2315. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2316. game:GetService("Debris"):AddItem(prt,5)
  2317. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2318. for i=0,1,delay do
  2319. wait()
  2320. Weld.C0=euler(i*20,0,0)
  2321. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2322. Part.Transparency=i
  2323. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2324. end
  2325. Part.Parent=nil
  2326. end),prt,msh,wld)
  2327. end
  2328.  
  2329. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2331. prt.Anchored=true
  2332. prt.CFrame=cframe
  2333. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2334. game:GetService("Debris"):AddItem(prt,2)
  2335. coroutine.resume(coroutine.create(function(Part,Mesh)
  2336. for i=0,1,delay do
  2337. wait()
  2338. Part.CFrame=Part.CFrame
  2339. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2340. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2341. prt2.Anchored=true
  2342. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2343. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2344. game:GetService("Debris"):AddItem(prt2,2)
  2345. coroutine.resume(coroutine.create(function(Part,Mesh)
  2346. for i=0,1,0.1 do
  2347. wait()
  2348. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2349. end
  2350. Part.Parent=nil
  2351. end),prt2,msh2)
  2352. end
  2353. for i=0,1,delay*2 do
  2354. wait()
  2355. Part.CFrame=Part.CFrame
  2356. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2357. end
  2358. Part.Parent=nil
  2359. end),prt,msh)
  2360. end
  2361.  
  2362. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2363. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2364. prt.Anchored=true
  2365. prt.CFrame=cframe
  2366. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2367. game:GetService("Debris"):AddItem(prt,2)
  2368. coroutine.resume(coroutine.create(function(Part,Mesh)
  2369. for i=0,1,delay do
  2370. wait()
  2371. Part.CFrame=Part.CFrame
  2372. Part.Transparency=i
  2373. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2374. end
  2375. Part.Parent=nil
  2376. end),prt,msh)
  2377. end
  2378.  
  2379. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2380. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2381. prt.Anchored=true
  2382. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2383. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2384. game:GetService("Debris"):AddItem(prt,2)
  2385. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2386. CF=Part.CFrame
  2387. Numbb=0
  2388. randnumb=math.random()/10
  2389. rand1=math.random()/10
  2390. for i=0,1,rand1 do
  2391. wait()
  2392. CF=CF*cf(0,math.random()/2,0)
  2393. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2394. Part.CFrame=CF*euler(Numbb,0,0)
  2395. Part.Transparency=i
  2396. Numbb=Numbb+randnumb
  2397. end
  2398. Part.Parent=nil
  2399. end),prt,CF,Numbb,randnumb)
  2400. end
  2401.  
  2402. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2403. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2404. prt.Anchored=true
  2405. prt.CFrame=cframe
  2406. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2407. game:GetService("Debris"):AddItem(prt,5)
  2408. coroutine.resume(coroutine.create(function(Part,Mesh)
  2409. for i=0,1,delay do
  2410. wait()
  2411. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2412. Part.Transparency=i
  2413. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2414. end
  2415. Part.Parent=nil
  2416. end),prt,msh)
  2417. end
  2418.  
  2419. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2420. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2421. prt.Anchored=true
  2422. prt.CFrame=cframe
  2423. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2424. game:GetService("Debris"):AddItem(prt,2)
  2425. coroutine.resume(coroutine.create(function(Part,Mesh)
  2426. for i=0,1,delay do
  2427. wait()
  2428. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2429. Part.Transparency=i
  2430. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2431. end
  2432. Part.Parent=nil
  2433. end),prt,msh)
  2434. end
  2435.  
  2436. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2437. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2438. prt.Anchored=true
  2439. prt.CFrame=cframe*cf(x,y,z)
  2440. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2441. game:GetService("Debris"):AddItem(prt,5)
  2442. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2443. local num=math.random()
  2444. local num2=math.random(-3,2)+math.random()
  2445. local numm=0
  2446. for i=0,1,delay*2 do
  2447. swait()
  2448. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2449. Part.Transparency=i
  2450. numm=numm+0.01
  2451. end
  2452. Part.Parent=nil
  2453. Mesh.Parent=nil
  2454. end),prt,msh,x,y,z)
  2455. end
  2456.  
  2457. function dmgstart(dmg,what)
  2458.     hitcon = what.Touched:connect(function(hit)
  2459.         local hum = hit.Parent:FindFirstChild("Humanoid")
  2460.         if hum and not hum:IsDescendantOf(Character) then
  2461.             hum:TakeDamage(dmg)
  2462.         end
  2463.     end)
  2464. end
  2465.  
  2466. function dmgstop()
  2467.     hitcon:disconnect()
  2468. end
  2469.  
  2470. function Cloak()
  2471. Face.Parent=nil
  2472. cloaked=true
  2473.        for _,v in pairs(Torso.Parent:children()) do
  2474.                if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2475.                coroutine.resume(coroutine.create(function()
  2476.                for i=0,1,0.2 do
  2477.                wait()
  2478.                v.Transparency=i
  2479.                end
  2480.                v.Transparency=1
  2481.                end))
  2482.                end
  2483.                if v.className=="Hat" then
  2484.                hatp=v.Handle
  2485.                coroutine.resume(coroutine.create(function(derp)
  2486.                for i=0,1,0.2 do
  2487.                wait()
  2488.                derp.Transparency=i
  2489.                end
  2490.                derp.Transparency=1
  2491.                end),hatp)
  2492.                end
  2493.        end
  2494.        for _,v in pairs(m:children()) do
  2495.                if v.className=="Part" then
  2496.                coroutine.resume(coroutine.create(function()
  2497.                for i=0,1,0.2 do
  2498.                wait()
  2499.                v.Transparency=i
  2500.                end
  2501.                v.Transparency=1
  2502.                end))
  2503.                end
  2504.        end
  2505. end
  2506.  
  2507. function UnCloak()
  2508. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2509. Face.Parent=Head
  2510. cloaked=false
  2511.        for _,v in pairs(Torso.Parent:children()) do
  2512.                if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2513.                coroutine.resume(coroutine.create(function()
  2514.                for i=0,1,0.1 do
  2515.                wait()
  2516.                v.Transparency=v.Transparency-0.1
  2517.                end
  2518.                v.Transparency=0
  2519.                end))
  2520.                end
  2521.                if v.className=="Hat" then
  2522.                hatp=v.Handle
  2523.                coroutine.resume(coroutine.create(function(derp)
  2524.                for i=0,1,0.1 do
  2525.                wait()
  2526.                derp.Transparency=derp.Transparency-0.1
  2527.                end
  2528.                derp.Transparency=0
  2529.                end),hatp)
  2530.                end
  2531.        end
  2532.        for _,v in pairs(m:children()) do
  2533.                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2534.                coroutine.resume(coroutine.create(function()
  2535.                for i=0,1,0.1 do
  2536.                wait()
  2537.                v.Transparency=v.Transparency-0.1
  2538.                end
  2539.                v.Transparency=0
  2540.                end))
  2541.                v.Transparency=0
  2542.                end
  2543.        end
  2544. end
  2545.  
  2546. local origcolor = BrickColor.new("Pastel light blue")
  2547. ---- This section of explosions.
  2548.  
  2549. ----
  2550.  
  2551.  
  2552. function ring(type,pos,scale,value)
  2553. local type = type
  2554. local rng = Instance.new("Part", char)
  2555.        rng.Anchored = true
  2556.        rng.BrickColor = origcolor
  2557.        rng.CanCollide = false
  2558.        rng.FormFactor = 3
  2559.        rng.Name = "Ring"
  2560.        rng.Size = Vector3.new(1, 1, 1)
  2561.        rng.Transparency = 0
  2562.        rng.TopSurface = 0
  2563.        rng.BottomSurface = 0
  2564.        rng.CFrame = pos
  2565.        local rngm = Instance.new("SpecialMesh", rng)
  2566.        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2567. rngm.Scale = scale
  2568. local scaler2 = 1
  2569. if type == "Add" then
  2570. scaler2 = 1*value
  2571. elseif type == "Divide" then
  2572. scaler2 = 1/value
  2573. end
  2574. coroutine.resume(coroutine.create(function()
  2575. for i = 0,10,0.1 do
  2576. swait()
  2577. if type == "Add" then
  2578. scaler2 = scaler2 - 0.01*value
  2579. elseif type == "Divide" then
  2580. scaler2 = scaler2 - 0.01/value
  2581. end
  2582. rng.Transparency = rng.Transparency + 0.01
  2583. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2584. end
  2585. rng:Destroy()
  2586. end))
  2587. end
  2588.  
  2589.  
  2590. function wave(type,pos,scale,value)
  2591. local type = type
  2592. local rng = Instance.new("Part", char)
  2593.        rng.Anchored = true
  2594.        rng.BrickColor = origcolor
  2595.        rng.CanCollide = false
  2596.        rng.FormFactor = 3
  2597.        rng.Name = "Ring"
  2598.        rng.Size = Vector3.new(1, 1, 1)
  2599.        rng.Transparency = 0
  2600.        rng.TopSurface = 0
  2601.        rng.BottomSurface = 0
  2602.        rng.CFrame = pos
  2603.        local rngm = Instance.new("SpecialMesh", rng)
  2604.        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2605. rngm.Scale = scale
  2606. local scaler2 = 1
  2607. if type == "Add" then
  2608. scaler2 = 1*value
  2609. elseif type == "Divide" then
  2610. scaler2 = 1/value
  2611. end
  2612. coroutine.resume(coroutine.create(function()
  2613. for i = 0,10,0.1 do
  2614. swait()
  2615. if type == "Add" then
  2616. scaler2 = scaler2 - 0.01*value
  2617. elseif type == "Divide" then
  2618. scaler2 = scaler2 - 0.01/value
  2619. end
  2620. rng.Transparency = rng.Transparency + 0.01
  2621. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2622. end
  2623. rng:Destroy()
  2624. end))
  2625. end
  2626.  
  2627. function wind(type,pos,scale,value,speed)
  2628. local type = type
  2629. local rng = Instance.new("Part", char)
  2630.        rng.Anchored = true
  2631.        rng.BrickColor = origcolor
  2632.        rng.CanCollide = false
  2633.        rng.FormFactor = 3
  2634.        rng.Name = "Ring"
  2635.        rng.Size = Vector3.new(1, 1, 1)
  2636.        rng.Transparency = 0
  2637.        rng.TopSurface = 0
  2638.        rng.BottomSurface = 0
  2639.        rng.CFrame = pos
  2640.        local rngm = Instance.new("SpecialMesh", rng)
  2641.        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2642. rngm.Scale = scale
  2643. local scaler2 = 1
  2644. if type == "Add" then
  2645. scaler2 = 1*value
  2646. elseif type == "Divide" then
  2647. scaler2 = 1/value
  2648. end
  2649. coroutine.resume(coroutine.create(function()
  2650. for i = 0,10,0.1 do
  2651. swait()
  2652. if type == "Add" then
  2653. scaler2 = scaler2 - 0.01*value
  2654. elseif type == "Divide" then
  2655. scaler2 = scaler2 - 0.01/value
  2656. end
  2657. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2658. rng.Transparency = rng.Transparency + 0.01
  2659. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2660. end
  2661. rng:Destroy()
  2662. end))
  2663. end
  2664.  
  2665. function groundwind(type,pos,scale,value,speed)
  2666. local type = type
  2667. local rng = Instance.new("Part", char)
  2668.        rng.Anchored = true
  2669.        rng.BrickColor = origcolor
  2670.        rng.CanCollide = false
  2671.        rng.FormFactor = 3
  2672.        rng.Name = "Ring"
  2673.        rng.Size = Vector3.new(1, 1, 1)
  2674.        rng.Transparency = 0
  2675.        rng.TopSurface = 0
  2676.        rng.BottomSurface = 0
  2677.        rng.CFrame = pos
  2678.        local rngm = Instance.new("SpecialMesh", rng)
  2679.        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2680. rngm.Scale = scale
  2681. local scaler2 = 1
  2682. if type == "Add" then
  2683. scaler2 = 1*value
  2684. elseif type == "Divide" then
  2685. scaler2 = 1/value
  2686. end
  2687. coroutine.resume(coroutine.create(function()
  2688. for i = 0,10,0.1 do
  2689. swait()
  2690. if type == "Add" then
  2691. scaler2 = scaler2 - 0.01*value
  2692. elseif type == "Divide" then
  2693. scaler2 = scaler2 - 0.01/value
  2694. end
  2695. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2696. rng.Transparency = rng.Transparency + 0.01
  2697. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2698. end
  2699. rng:Destroy()
  2700. end))
  2701. end
  2702.  
  2703. function CameraManager()
  2704.  if TwoD and not CamInterrupt then
  2705.    if Humanoid.Health > 0 then
  2706.      Camera.CameraSubject = Humanoid
  2707.      Camera.CameraType = "Scriptable"
  2708.      Humanoid.AutoRotate = false
  2709.      if Booleans.GyroUse then
  2710.        Directer.MaxTorque = Vec3(0, huge, 0)
  2711.      else
  2712.        Directer.MaxTorque = Vec3(0, 0, 0)
  2713.      end
  2714.      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2715.        if Booleans.CamFollow then
  2716.          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2717.          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2718.        else
  2719.          CPart.Position = RootPart.Position
  2720.        end
  2721.      else
  2722.        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2723.        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2724.      end
  2725.      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2726.    else
  2727.      Camera.CameraSubject = Humanoid
  2728.      Camera.CameraType = "Custom"
  2729.      Controller.Disabled = false
  2730.    end
  2731.  end
  2732. end
  2733.  
  2734. function ring(type,pos,scale,value)
  2735. local type = type
  2736. local rng = Instance.new("Part", char)
  2737.        rng.Anchored = true
  2738.        rng.BrickColor = origcolor
  2739.        rng.CanCollide = false
  2740.        rng.FormFactor = 3
  2741.        rng.Name = "Ring"
  2742.        rng.Size = Vector3.new(1, 1, 1)
  2743.        rng.Transparency = 0
  2744.        rng.TopSurface = 0
  2745.        rng.BottomSurface = 0
  2746.        rng.CFrame = pos
  2747.        local rngm = Instance.new("SpecialMesh", rng)
  2748.        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2749. rngm.Scale = scale
  2750. local scaler2 = 1
  2751. if type == "Add" then
  2752. scaler2 = 1*value
  2753. elseif type == "Divide" then
  2754. scaler2 = 1/value
  2755. end
  2756. coroutine.resume(coroutine.create(function()
  2757. for i = 0,10,0.1 do
  2758. swait()
  2759. if type == "Add" then
  2760. scaler2 = scaler2 - 0.01*value
  2761. elseif type == "Divide" then
  2762. scaler2 = scaler2 - 0.01/value
  2763. end
  2764. rng.Transparency = rng.Transparency + 0.01
  2765. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2766. end
  2767. rng:Destroy()
  2768. end))
  2769. end
  2770.  
  2771.  
  2772. function wave(type,pos,scale,value)
  2773. local type = type
  2774. local rng = Instance.new("Part", char)
  2775.        rng.Anchored = true
  2776.        rng.BrickColor = origcolor
  2777.        rng.CanCollide = false
  2778.        rng.FormFactor = 3
  2779.        rng.Name = "Ring"
  2780.        rng.Size = Vector3.new(1, 1, 1)
  2781.        rng.Transparency = 0
  2782.        rng.TopSurface = 0
  2783.        rng.BottomSurface = 0
  2784.        rng.CFrame = pos
  2785.        local rngm = Instance.new("SpecialMesh", rng)
  2786.        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2787. rngm.Scale = scale
  2788. local scaler2 = 1
  2789. if type == "Add" then
  2790. scaler2 = 1*value
  2791. elseif type == "Divide" then
  2792. scaler2 = 1/value
  2793. end
  2794. coroutine.resume(coroutine.create(function()
  2795. for i = 0,10,0.1 do
  2796. swait()
  2797. if type == "Add" then
  2798. scaler2 = scaler2 - 0.01*value
  2799. elseif type == "Divide" then
  2800. scaler2 = scaler2 - 0.01/value
  2801. end
  2802. rng.Transparency = rng.Transparency + 0.01
  2803. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809. function sphere(bonuspeed,type,pos,scale,value,color)
  2810. local type = type
  2811. local rng = Instance.new("Part", char)
  2812.        rng.Anchored = true
  2813. if ModeOfGlitch ~= 9 then
  2814.        rng.BrickColor = color
  2815. elseif ModeOfGlitch == 9 then
  2816. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2817. end
  2818.        rng.CanCollide = false
  2819.        rng.FormFactor = 3
  2820.        rng.Name = "Ring"
  2821.        rng.Material = "Neon"
  2822.        rng.Size = Vector3.new(1, 1, 1)
  2823.        rng.Transparency = 0
  2824.        rng.TopSurface = 0
  2825.        rng.BottomSurface = 0
  2826.        rng.CFrame = pos
  2827.        local rngm = Instance.new("SpecialMesh", rng)
  2828.        rngm.MeshType = "Sphere"
  2829. rngm.Scale = scale
  2830. if rainbowmode == true then
  2831. rng.Color = Color3.new(r/255,g/255,b/255)
  2832. end
  2833. if ModeOfGlitch == 9 then
  2834. coroutine.resume(coroutine.create(function()
  2835. while true do
  2836. swait()
  2837. if rng.Parent ~= nil then
  2838. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2839. else
  2840. break
  2841. end
  2842. end
  2843. end))
  2844. end
  2845. local scaler2 = 1
  2846. if type == "Add" then
  2847. scaler2 = 1*value
  2848. elseif type == "Divide" then
  2849. scaler2 = 1/value
  2850. end
  2851. coroutine.resume(coroutine.create(function()
  2852. for i = 0,10/bonuspeed,0.1 do
  2853. swait()
  2854. if rainbowmode == true then
  2855. rng.Color = Color3.new(r/255,g/255,b/255)
  2856. end
  2857. if type == "Add" then
  2858. scaler2 = scaler2 - 0.01*value/bonuspeed
  2859. elseif type == "Divide" then
  2860. scaler2 = scaler2 - 0.01/value*bonuspeed
  2861. end
  2862. if chaosmode == true then
  2863. rng.BrickColor = BrickColor.random()
  2864. end
  2865. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2866. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2867. end
  2868. rng:Destroy()
  2869. end))
  2870. end
  2871.  
  2872. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2873. local type = type
  2874. local rng = Instance.new("Part", char)
  2875.        rng.Anchored = true
  2876. if ModeOfGlitch ~= 9 then
  2877.        rng.BrickColor = color
  2878. elseif ModeOfGlitch == 9 then
  2879. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2880. end
  2881.        rng.CanCollide = false
  2882.        rng.FormFactor = 3
  2883.        rng.Name = "Ring"
  2884.        rng.Material = "Neon"
  2885.        rng.Size = Vector3.new(1, 1, 1)
  2886.        rng.Transparency = 0
  2887.        rng.TopSurface = 0
  2888.        rng.BottomSurface = 0
  2889.        rng.CFrame = pos
  2890.        local rngm = Instance.new("SpecialMesh", rng)
  2891.        rngm.MeshType = "Sphere"
  2892. rngm.Scale = scale
  2893. local scaler2 = 1
  2894. local scaler2b = 1
  2895. local scaler2c = 1
  2896. if type == "Add" then
  2897. scaler2 = 1*value
  2898. scaler2b = 1*value2
  2899. scaler2c = 1*value3
  2900. elseif type == "Divide" then
  2901. scaler2 = 1/value
  2902. scaler2b = 1/value2
  2903. scaler2c = 1/value3
  2904. end
  2905. if ModeOfGlitch == 9 then
  2906. coroutine.resume(coroutine.create(function()
  2907. while true do
  2908. swait()
  2909. if rng.Parent ~= nil then
  2910. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2911. else
  2912. break
  2913. end
  2914. end
  2915. end))
  2916. end
  2917. coroutine.resume(coroutine.create(function()
  2918. for i = 0,10/bonuspeed,0.1 do
  2919. swait()
  2920. if type == "Add" then
  2921. scaler2 = scaler2 - 0.01*value/bonuspeed
  2922. scaler2b = scaler2b - 0.01*value/bonuspeed
  2923. scaler2c = scaler2c - 0.01*value/bonuspeed
  2924. elseif type == "Divide" then
  2925. scaler2 = scaler2 - 0.01/value*bonuspeed
  2926. scaler2b = scaler2b - 0.01/value*bonuspeed
  2927. scaler2c = scaler2c - 0.01/value*bonuspeed
  2928. end
  2929. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2930. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2931. end
  2932. rng:Destroy()
  2933. end))
  2934. end
  2935.  
  2936. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2937. local type = type
  2938. local rotenable = rotatingop
  2939. local rng = Instance.new("Part", char)
  2940.        rng.Anchored = true
  2941.        rng.BrickColor = color
  2942.        rng.CanCollide = false
  2943.        rng.FormFactor = 3
  2944.        rng.Name = "Ring"
  2945.        rng.Material = "Neon"
  2946.        rng.Size = Vector3.new(1, 1, 1)
  2947.        rng.Transparency = 0
  2948. if typeoftrans == "In" then
  2949. rng.Transparency = 1
  2950. end
  2951.        rng.TopSurface = 0
  2952.        rng.BottomSurface = 0
  2953.        rng.CFrame = pos
  2954.        local rngm = Instance.new("SpecialMesh", rng)
  2955.        rngm.MeshType = "FileMesh"
  2956. if typeofshape == "Normal" then
  2957. rngm.MeshId = "rbxassetid://662586858"
  2958. elseif typeofshape == "Round" then
  2959. rngm.MeshId = "rbxassetid://662585058"
  2960. end
  2961. rngm.Scale = scale
  2962. local scaler2 = 1/10
  2963. if type == "Add" then
  2964. scaler2 = 1*value/10
  2965. elseif type == "Divide" then
  2966. scaler2 = 1/value/10
  2967. end
  2968. local randomrot = math.random(1,2)
  2969. coroutine.resume(coroutine.create(function()
  2970. for i = 0,10/bonuspeed,0.1 do
  2971. swait()
  2972. if type == "Add" then
  2973. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2974. elseif type == "Divide" then
  2975. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2976. end
  2977. if rotenable == true then
  2978. if randomrot == 1 then
  2979. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2980. elseif randomrot == 2 then
  2981. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2982. end
  2983. end
  2984. if typeoftrans == "Out" then
  2985. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2986. elseif typeoftrans == "In" then
  2987. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2988. end
  2989. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2990. end
  2991. rng:Destroy()
  2992. end))
  2993. end
  2994.  
  2995. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2996. local type = type
  2997. local rng = Instance.new("Part", char)
  2998.        rng.Anchored = true
  2999.        rng.BrickColor = color
  3000.        rng.CanCollide = false
  3001.        rng.FormFactor = 3
  3002.        rng.Name = "Ring"
  3003.        rng.Material = "Neon"
  3004.        rng.Size = Vector3.new(1, 1, 1)
  3005.        rng.Transparency = 0
  3006.        rng.TopSurface = 0
  3007.        rng.BottomSurface = 0
  3008.        rng.CFrame = pos
  3009. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3010.        local rngm = Instance.new("SpecialMesh", rng)
  3011.        rngm.MeshType = "Brick"
  3012. rngm.Scale = vt(x1,y1,z1)
  3013. if rainbowmode == true then
  3014. rng.Color = Color3.new(r/255,g/255,b/255)
  3015. end
  3016. local scaler2 = 1
  3017. local speeder = FastSpeed/10
  3018. if type == "Add" then
  3019. scaler2 = 1*value
  3020. elseif type == "Divide" then
  3021. scaler2 = 1/value
  3022. end
  3023. coroutine.resume(coroutine.create(function()
  3024. for i = 0,10/bonuspeed,0.1 do
  3025. swait()
  3026. if rainbowmode == true then
  3027. rng.Color = Color3.new(r/255,g/255,b/255)
  3028. end
  3029. if type == "Add" then
  3030. scaler2 = scaler2 - 0.01*value/bonuspeed
  3031. elseif type == "Divide" then
  3032. scaler2 = scaler2 - 0.01/value*bonuspeed
  3033. end
  3034. if chaosmode == true then
  3035. rng.BrickColor = BrickColor.random()
  3036. end
  3037. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3038. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3039. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3040. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3041. end
  3042. rng:Destroy()
  3043. end))
  3044. end
  3045.  
  3046. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3047. local type = type
  3048. local rng = Instance.new("Part", char)
  3049.        rng.Anchored = true
  3050.        rng.BrickColor = color
  3051.        rng.CanCollide = false
  3052.        rng.FormFactor = 3
  3053.        rng.Name = "Ring"
  3054.        rng.Material = "Neon"
  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. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3061.        local rngm = Instance.new("SpecialMesh", rng)
  3062.        rngm.MeshType = "Brick"
  3063. rngm.Scale = vt(x1,y1,z1)
  3064. if rainbowmode == true then
  3065. rng.Color = Color3.new(r/255,g/255,b/255)
  3066. end
  3067. local scaler2 = 1
  3068. local speeder = FastSpeed/10
  3069. if type == "Add" then
  3070. scaler2 = 1*value
  3071. elseif type == "Divide" then
  3072. scaler2 = 1/value
  3073. end
  3074. coroutine.resume(coroutine.create(function()
  3075. for i = 0,10/bonuspeed,0.1 do
  3076. swait()
  3077. if rainbowmode == true then
  3078. rng.Color = Color3.new(r/255,g/255,b/255)
  3079. end
  3080. if type == "Add" then
  3081. scaler2 = scaler2 - 0.01*value/bonuspeed
  3082. elseif type == "Divide" then
  3083. scaler2 = scaler2 - 0.01/value*bonuspeed
  3084. end
  3085. if chaosmode == true then
  3086. rng.BrickColor = BrickColor.random()
  3087. end
  3088. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3089. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3090. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3091. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3092. end
  3093. rng:Destroy()
  3094. end))
  3095. end
  3096.  
  3097. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3098. local type = type
  3099. local rng = Instance.new("Part", char)
  3100.        rng.Anchored = true
  3101.        rng.BrickColor = color
  3102.        rng.CanCollide = false
  3103.        rng.FormFactor = 3
  3104.        rng.Name = "Ring"
  3105.        rng.Material = "Neon"
  3106.        rng.Size = Vector3.new(1, 1, 1)
  3107.        rng.Transparency = 0
  3108.        rng.TopSurface = 0
  3109.        rng.BottomSurface = 0
  3110.        rng.CFrame = pos
  3111. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3112.        local rngm = Instance.new("SpecialMesh", rng)
  3113.        rngm.MeshType = "Brick"
  3114. rngm.Scale = vt(x1,y1,z1)
  3115. if rainbowmode == true then
  3116. rng.Color = Color3.new(r/255,g/255,b/255)
  3117. end
  3118. local scaler2 = 0
  3119. local speeder = FastSpeed/10
  3120. if type == "Add" then
  3121. scaler2 = 1*value
  3122. elseif type == "Divide" then
  3123. scaler2 = 1/value
  3124. end
  3125. coroutine.resume(coroutine.create(function()
  3126. for i = 0,10/bonuspeed,0.1 do
  3127. swait()
  3128. if rainbowmode == true then
  3129. rng.Color = Color3.new(r/255,g/255,b/255)
  3130. end
  3131. if type == "Add" then
  3132. scaler2 = scaler2 - 0.01*value/bonuspeed
  3133. elseif type == "Divide" then
  3134. scaler2 = scaler2 - 0.01/value*bonuspeed
  3135. end
  3136. if chaosmode == true then
  3137. rng.BrickColor = BrickColor.random()
  3138. end
  3139. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3140. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3141. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3142. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3143. end
  3144. rng:Destroy()
  3145. end))
  3146. end
  3147.  
  3148. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3149. local type = type
  3150. local rng = Instance.new("Part", char)
  3151.        rng.Anchored = true
  3152.        rng.BrickColor = color
  3153.        rng.Color = color3
  3154.        rng.CanCollide = false
  3155.        rng.FormFactor = 3
  3156.        rng.Name = "Ring"
  3157.        rng.Material = "Neon"
  3158.        rng.Size = Vector3.new(1, 1, 1)
  3159.        rng.Transparency = 0
  3160.        rng.TopSurface = 0
  3161.        rng.BottomSurface = 0
  3162.        rng.CFrame = pos
  3163.        local rngm = Instance.new("SpecialMesh", rng)
  3164.        rngm.MeshType = "Brick"
  3165. rngm.Scale = scale
  3166. local scaler2 = 1
  3167. local scaler2b = 1
  3168. local scaler2c = 1
  3169. if type == "Add" then
  3170. scaler2 = 1*value
  3171. scaler2b = 1*value2
  3172. scaler2c = 1*value3
  3173. elseif type == "Divide" then
  3174. scaler2 = 1/value
  3175. scaler2b = 1/value2
  3176. scaler2c = 1/value3
  3177. end
  3178. coroutine.resume(coroutine.create(function()
  3179. for i = 0,10/bonuspeed,0.1 do
  3180. swait()
  3181. if type == "Add" then
  3182. scaler2 = scaler2 - 0.01*value/bonuspeed
  3183. scaler2b = scaler2b - 0.01*value/bonuspeed
  3184. scaler2c = scaler2c - 0.01*value/bonuspeed
  3185. elseif type == "Divide" then
  3186. scaler2 = scaler2 - 0.01/value*bonuspeed
  3187. scaler2b = scaler2b - 0.01/value*bonuspeed
  3188. scaler2c = scaler2c - 0.01/value*bonuspeed
  3189. end
  3190. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3191. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3192. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3193. end
  3194. rng:Destroy()
  3195. end))
  3196. end
  3197.  
  3198. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3199. local type = type
  3200. local rng = Instance.new("Part", char)
  3201.        rng.Anchored = true
  3202. if ModeOfGlitch ~= 9 then
  3203.        rng.BrickColor = color
  3204. elseif ModeOfGlitch == 9 then
  3205. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3206. end
  3207.        rng.CanCollide = false
  3208.        rng.FormFactor = 3
  3209.        rng.Name = "Ring"
  3210.        rng.Material = "Neon"
  3211.        rng.Size = Vector3.new(1, 1, 1)
  3212.        rng.Transparency = 0
  3213.        rng.TopSurface = 0
  3214.        rng.BottomSurface = 0
  3215.        rng.CFrame = pos
  3216. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3217.        local rngm = Instance.new("SpecialMesh", rng)
  3218.        rngm.MeshType = "Sphere"
  3219. rngm.Scale = vt(x1,y1,z1)
  3220. if rainbowmode == true then
  3221. rng.Color = Color3.new(r/255,g/255,b/255)
  3222. end
  3223. if ModeOfGlitch == 9 then
  3224. coroutine.resume(coroutine.create(function()
  3225. while true do
  3226. swait()
  3227. if rng.Parent ~= nil then
  3228. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3229. else
  3230. break
  3231. end
  3232. end
  3233. end))
  3234. end
  3235. local scaler2 = 1
  3236. local speeder = FastSpeed
  3237. if type == "Add" then
  3238. scaler2 = 1*value
  3239. elseif type == "Divide" then
  3240. scaler2 = 1/value
  3241. end
  3242. coroutine.resume(coroutine.create(function()
  3243. for i = 0,10/bonuspeed,0.1 do
  3244. swait()
  3245. if rainbowmode == true then
  3246. rng.Color = Color3.new(r/255,g/255,b/255)
  3247. end
  3248. if type == "Add" then
  3249. scaler2 = scaler2 - 0.01*value/bonuspeed
  3250. elseif type == "Divide" then
  3251. scaler2 = scaler2 - 0.01/value*bonuspeed
  3252. end
  3253. if chaosmode == true then
  3254. rng.BrickColor = BrickColor.random()
  3255. end
  3256. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3257. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3258. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3259. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3260. end
  3261. rng:Destroy()
  3262. end))
  3263. end
  3264.  
  3265.  
  3266. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3267. local type = type
  3268. local rng = Instance.new("Part", char)
  3269.        rng.Anchored = true
  3270. if ModeOfGlitch ~= 9 then
  3271.        rng.BrickColor = color
  3272. elseif ModeOfGlitch == 9 then
  3273. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3274. end
  3275.        rng.CanCollide = false
  3276.        rng.FormFactor = 3
  3277.        rng.Name = "Ring"
  3278.        rng.Material = "Neon"
  3279.        rng.Size = Vector3.new(1, 1, 1)
  3280.        rng.Transparency = 1
  3281.        rng.TopSurface = 0
  3282.        rng.BottomSurface = 0
  3283.        rng.CFrame = pos
  3284. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3285.        local rngm = Instance.new("SpecialMesh", rng)
  3286.        rngm.MeshType = "Sphere"
  3287. rngm.Scale = vt(x1,y1,z1)
  3288. if rainbowmode == true then
  3289. rng.Color = Color3.new(r/255,g/255,b/255)
  3290. end
  3291. if ModeOfGlitch == 9 then
  3292. coroutine.resume(coroutine.create(function()
  3293. while true do
  3294. swait()
  3295. if rng.Parent ~= nil then
  3296. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3297. else
  3298. break
  3299. end
  3300. end
  3301. end))
  3302. end
  3303. local scaler2 = 1
  3304. local speeder = FastSpeed
  3305. if type == "Add" then
  3306. scaler2 = 1*value
  3307. elseif type == "Divide" then
  3308. scaler2 = 1/value
  3309. end
  3310. coroutine.resume(coroutine.create(function()
  3311. for i = 0,10/bonuspeed,0.1 do
  3312. swait()
  3313. if rainbowmode == true then
  3314. rng.Color = Color3.new(r/255,g/255,b/255)
  3315. end
  3316. if type == "Add" then
  3317. scaler2 = scaler2 - 0.01*value/bonuspeed
  3318. elseif type == "Divide" then
  3319. scaler2 = scaler2 - 0.01/value*bonuspeed
  3320. end
  3321. if chaosmode == true then
  3322. rng.BrickColor = BrickColor.random()
  3323. end
  3324. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3325. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3326. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3327. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3328. end
  3329. rng:Destroy()
  3330. end))
  3331. end
  3332.  
  3333. function dmg(dude)
  3334. if dude.Name ~= Character then
  3335. local keptcolor = MAINRUINCOLOR
  3336. local bgf = Instance.new("BodyGyro",dude.Head)
  3337. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3338. --[[local val = Instance.new("BoolValue",dude)
  3339. val.Name = "IsHit"]]--
  3340. local ds = coroutine.wrap(function()
  3341. dude:WaitForChild("Head"):BreakJoints()
  3342. for i, v in pairs(dude:GetChildren()) do
  3343. if v:IsA("Part") or v:IsA("MeshPart") then
  3344. v.Name = "DEMINISHED"
  3345. end
  3346. end
  3347. wait(0.5)
  3348. targetted = nil
  3349. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3350. coroutine.resume(coroutine.create(function()
  3351. for i, v in pairs(dude:GetChildren()) do
  3352. if v:IsA("Accessory") then
  3353. v:Destroy()
  3354. end
  3355. if v:IsA("Humanoid") then
  3356. v:Destroy()
  3357. end
  3358. if v:IsA("CharacterMesh") then
  3359. v:Destroy()
  3360. end
  3361. if v:IsA("Model") then
  3362. v:Destroy()
  3363. end
  3364. if v:IsA("Part") or v:IsA("MeshPart") then
  3365. for x, o in pairs(v:GetChildren()) do
  3366. if o:IsA("Decal") then
  3367. o:Destroy()
  3368. end
  3369. end
  3370. coroutine.resume(coroutine.create(function()
  3371. v.Material = "Neon"
  3372. v.CanCollide = false
  3373. v.Anchored = false
  3374. local bld = Instance.new("ParticleEmitter",v)
  3375. bld.LightEmission = 0.75
  3376. bld.Texture = "rbxassetid://363275192" ---284205403
  3377. bld.Color = ColorSequence.new(keptcolor.Color)
  3378. bld.Rate = 500
  3379. bld.Lifetime = NumberRange.new(1)
  3380. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3381. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3382. bld.Speed = NumberRange.new(2,5)
  3383. bld.VelocitySpread = 50000
  3384. bld.Rotation = NumberRange.new(-500,500)
  3385. bld.RotSpeed = NumberRange.new(-500,500)
  3386.        local sbs = Instance.new("BodyPosition", v)
  3387.        sbs.P = 3000
  3388.        sbs.D = 1000
  3389.        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3390.        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3391. v.Color = keptcolor.Color
  3392. coroutine.resume(coroutine.create(function()
  3393. for i = 0, 49 do
  3394. swait(1)
  3395. v:BreakJoints()
  3396. v.Transparency = v.Transparency + 0.02
  3397. end
  3398. v:BreakJoints()
  3399. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3400. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3401. bld.Speed = NumberRange.new(10,25)
  3402. bld.Drag = 5
  3403. bld.Acceleration = vt(0,2,0)
  3404. wait(0.5)
  3405. bld.Enabled = false
  3406. wait(8)
  3407. v:Destroy()
  3408. dude:Destroy()
  3409. end))
  3410. end))
  3411. end
  3412. end
  3413. end))
  3414. end)
  3415. ds()
  3416. end
  3417. end
  3418.  
  3419.  
  3420. function FindNearestHead(Position, Distance, SinglePlayer)
  3421.     if SinglePlayer then
  3422.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3423.     end
  3424.     local List = {}
  3425.     for i, v in pairs(workspace:GetChildren()) do
  3426.         if v:IsA("Model") then
  3427.             if v:findFirstChild("Head") then
  3428.                 if v ~= Character then
  3429.                     if (v.Head.Position - Position).magnitude <= Distance then
  3430.                         table.insert(List, v)
  3431.                     end
  3432.                 end
  3433.             end
  3434.         end
  3435.     end
  3436.     return List
  3437. end
  3438.  
  3439. function FaceMouse()
  3440.  Cam = workspace.CurrentCamera
  3441.  return {
  3442.    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3443.    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3444.  }
  3445. end
  3446.  
  3447. function FaceMouse2()
  3448.  Cam = workspace.CurrentCamera
  3449.  return {
  3450.    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3451.    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3452.  }
  3453. end
  3454.  
  3455. local ModeOfGlitch = 1
  3456. -- Functions are ready.
  3457. local storehumanoidWS = 16
  3458.  
  3459. function CorruptBlink()
  3460. for i = 0, 14 do
  3461. 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)
  3462. end
  3463. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3464. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3465. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3466. CameraEnshaking(2,10)
  3467. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3468. if v:FindFirstChild('Head') then
  3469. dmg(v)
  3470. end
  3471. end
  3472. for i = 0, 14 do
  3473. 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)
  3474. end
  3475. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3476. end
  3477. function PureBomb()
  3478. attack = true
  3479. hum.WalkSpeed = 0
  3480. local orb = Instance.new("Part", char)
  3481.        orb.Anchored = true
  3482.        orb.BrickColor = BrickColor.new("Toothpaste")
  3483.        orb.CanCollide = false
  3484.        orb.FormFactor = 3
  3485.        orb.Name = "Ring"
  3486.        orb.Material = "Neon"
  3487.        orb.Size = Vector3.new(1, 1, 1)
  3488.        orb.Transparency = 0
  3489.        orb.TopSurface = 0
  3490.        orb.BottomSurface = 0
  3491.        local orbm = Instance.new("SpecialMesh", orb)
  3492.        orbm.MeshType = "Sphere"
  3493. orbm.Name = "SizeMesh"
  3494. orbm.Scale = vt(0,0,0)
  3495. local scaled = 0.1
  3496. local posid = 0
  3497. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3498. for i = 0, 5, 0.1 do
  3499. swait()
  3500. scaled = scaled - 0.001
  3501. posid = posid - scaled
  3502. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3503. local scaled = 0.1
  3504. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3505. 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)
  3506. 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)
  3507. 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)
  3508. 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)
  3509. 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)
  3510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3511. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3512. 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)
  3513. end
  3514. for i = 0, 2, 0.1 do
  3515. swait()
  3516. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3517. 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)
  3518. 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)
  3519. 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)
  3520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3522. 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)
  3523. end
  3524. coroutine.resume(coroutine.create(function()
  3525. orb.Anchored = false
  3526. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3527.     local a = Instance.new("Part",workspace)
  3528.     a.Name = "Direction"   
  3529.     a.Anchored = true
  3530.     a.BrickColor = bc("Bright red")
  3531. a.Material = "Neon"
  3532. a.Transparency = 1
  3533.     a.CanCollide = false
  3534.     local ray = Ray.new(
  3535.         orb.CFrame.p,                           -- origin
  3536.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3537.     )
  3538.     local ignore = orb
  3539.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3540.     a.BottomSurface = 10
  3541.     a.TopSurface = 10
  3542.     local distance = (orb.CFrame.p - position).magnitude
  3543.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3544.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3545. orb.CFrame = a.CFrame
  3546. a:Destroy()
  3547. local bv = Instance.new("BodyVelocity")
  3548. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3549. bv.velocity = orb.CFrame.lookVector*125
  3550. bv.Parent = orb
  3551. local hitted = false
  3552. game:GetService("Debris"):AddItem(orb, 15)
  3553. wait()
  3554. local hit =orb.Touched:connect(function(hit)
  3555.     if hitted == false then
  3556.     hitted = true
  3557. CameraEnshaking(10,2.5)
  3558. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3559.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  3560. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3561. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3562. for i = 0, 49 do
  3563. 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)
  3564. end
  3565. for i = 0, 9 do
  3566. 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)
  3567. 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)
  3568. end
  3569. orb.Anchored = true
  3570. orb.Transparency = 1
  3571. wait(8)
  3572. orb:Destroy()
  3573. end
  3574. end)
  3575. end))
  3576. for i = 0, 1, 0.1 do
  3577. swait()
  3578. 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)
  3579. 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)
  3580. 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)
  3581. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3582. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3583. 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)
  3584. end
  3585. hum.WalkSpeed = storehumanoidWS
  3586. attack = false
  3587. end
  3588.  
  3589. function BanishingOrb()
  3590. attack = true
  3591. hum.WalkSpeed = 0
  3592. local orb = Instance.new("Part", char)
  3593.        orb.Anchored = true
  3594.        orb.BrickColor = BrickColor.new("Black")
  3595.        orb.CanCollide = false
  3596.        orb.FormFactor = 3
  3597.        orb.Name = "Ring"
  3598.        orb.Material = "Neon"
  3599.        orb.Size = Vector3.new(1, 1, 1)
  3600.        orb.Transparency = 0
  3601.        orb.TopSurface = 0
  3602.        orb.BottomSurface = 0
  3603.        local orbm = Instance.new("SpecialMesh", orb)
  3604.        orbm.MeshType = "Sphere"
  3605. orbm.Name = "SizeMesh"
  3606. orbm.Scale = vt(0,0,0)
  3607. local scaled = 0.1
  3608. local posid = 0
  3609. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3610. for i = 0, 5, 0.1 do
  3611. swait()
  3612. scaled = scaled - 0.001
  3613. posid = posid - scaled
  3614. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3615. local scaled = 0.1
  3616. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3617. 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)
  3618. 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)
  3619. 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)
  3620. 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)
  3621. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3622. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3623. 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)
  3624. end
  3625. for i = 0, 2, 0.1 do
  3626. swait()
  3627. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3628. 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)
  3629. 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)
  3630. 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)
  3631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3632. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3633. 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)
  3634. end
  3635. coroutine.resume(coroutine.create(function()
  3636. orb.Anchored = false
  3637. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3638.     local a = Instance.new("Part",workspace)
  3639.     a.Name = "Direction"   
  3640.     a.Anchored = true
  3641.     a.BrickColor = bc("Bright red")
  3642. a.Material = "Neon"
  3643. a.Transparency = 1
  3644.     a.CanCollide = false
  3645.     local ray = Ray.new(
  3646.         orb.CFrame.p,                           -- origin
  3647.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3648.     )
  3649.     local ignore = orb
  3650.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3651.     a.BottomSurface = 10
  3652.     a.TopSurface = 10
  3653.     local distance = (orb.CFrame.p - position).magnitude
  3654.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3655.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3656. orb.CFrame = a.CFrame
  3657. a:Destroy()
  3658. local bv = Instance.new("BodyVelocity")
  3659. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3660. bv.velocity = orb.CFrame.lookVector*0
  3661. bv.Parent = orb
  3662. local hitted = false
  3663. local rate = 0
  3664. coroutine.resume(coroutine.create(function()
  3665. for i = 0, 24 do
  3666. wait(0.1)
  3667. rate = rate + 0.25
  3668. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3669. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3670. if v:FindFirstChild('Head') then
  3671. dmg(v)
  3672. end
  3673. end
  3674. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3675. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3676. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3677. end
  3678. orb.Anchored = true
  3679. orb.Transparency = 1
  3680. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3681. if v:FindFirstChild('Head') then
  3682. dmg(v)
  3683. end
  3684. end
  3685. local eff = Instance.new("ParticleEmitter",orb)
  3686. eff.Texture = "rbxassetid://296874871"
  3687. eff.LightEmission = 0.95
  3688. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3689. eff.Rate = 1000000000
  3690. eff.Lifetime = NumberRange.new(3)
  3691. 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)})
  3692. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3693. eff.Speed = NumberRange.new(30)
  3694. eff.Acceleration = vt(0,-15,0)
  3695. eff.Rotation = NumberRange.new(-500,500)
  3696. eff.VelocitySpread = 100000
  3697. eff.RotSpeed = NumberRange.new(-500,500)
  3698. coroutine.resume(coroutine.create(function()
  3699.     wait(0.6)
  3700.     eff.Enabled = false
  3701. end))
  3702. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3703. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3704. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3705. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3706. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3707. game:GetService("Debris"):AddItem(orb, 15)
  3708. end))
  3709. end))
  3710. for i = 0, 1, 0.1 do
  3711. swait()
  3712. 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)
  3713. 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)
  3714. 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)
  3715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3717. 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)
  3718. end
  3719. hum.WalkSpeed = storehumanoidWS
  3720. attack = false
  3721. end
  3722.  
  3723.  
  3724. function ChaosGroundStrike()
  3725. attack = true
  3726. for i = 0, 2, 0.1 do
  3727. swait()
  3728. 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)
  3729. 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)
  3730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3732. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3733. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3734. end
  3735. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3736. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3737. CameraEnshaking(4,12)
  3738. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3739. if v:FindFirstChild('Head') then
  3740. dmg(v)
  3741. end
  3742. end
  3743. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3744. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3745. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3746. for i = 0, 2, 0.1 do
  3747. swait()
  3748. 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)
  3749. 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)
  3750. 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)
  3751. 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)
  3752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3753. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3754. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3755. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3756. end
  3757. attack = false
  3758. end
  3759.  
  3760.  
  3761.  
  3762. function Starfall()
  3763. attack = true
  3764. hum.WalkSpeed = 0
  3765. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3766. for i = 0, 5, 0.1 do
  3767. swait()
  3768. 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)
  3769. 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)
  3770. 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)
  3771. 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)
  3772. 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)
  3773. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3774. 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)
  3775. 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)
  3776. end
  3777. local Overed = false
  3778. CameraEnshaking(2,20)
  3779. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3780. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3781. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3782. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3783. local orb = Instance.new("Part", char)
  3784.        orb.Anchored = true
  3785.        orb.BrickColor = BrickColor.new("Toothpaste")
  3786.        orb.CanCollide = false
  3787.        orb.FormFactor = 3
  3788.        orb.Name = "Remenant"
  3789.        orb.Material = "Neon"
  3790. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3791.        orb.Size = Vector3.new(1, 1, 1)
  3792.        orb.Transparency = 1
  3793.        orb.TopSurface = 0
  3794.        orb.BottomSurface = 0
  3795. hum.WalkSpeed = storehumanoidWS
  3796. coroutine.resume(coroutine.create(function()
  3797. for i = 0, 9 do
  3798. swait(10)
  3799.                  local lb = Instance.new("Part")
  3800.    lb.Color = MAINRUINCOLOR.Color
  3801.     lb.CanCollide = false
  3802. lb.Material = "Neon"
  3803.     lb.Anchored = true
  3804. lb.TopSurface = 0
  3805.        lb.BottomSurface = 0
  3806.     lb.Transparency = 0
  3807.     lb.Size = vt(1,1,1)
  3808.     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)))
  3809. lb.Anchored = false
  3810.  lb.Parent = char
  3811. local thingery = Instance.new("SpecialMesh",lb)
  3812.     thingery.MeshType = "Sphere"
  3813. thingery.Scale = vt(20,20,20)
  3814. game:GetService("Debris"):AddItem(lb, 10)
  3815.  local bv = Instance.new("BodyVelocity")
  3816.  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3817.  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3818.  bv.Parent = lb
  3819. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3820. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3821. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3822. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3823. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3824. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3825. local hitted = false
  3826. coroutine.resume(coroutine.create(function()
  3827. while true do
  3828. swait(1)
  3829. if lb.Parent ~= nil and hitted == false then
  3830. 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)
  3831. elseif lb.Parent == nil then
  3832. break
  3833. end
  3834. end
  3835. end))
  3836.  
  3837. game:GetService("Debris"):AddItem(a, 0.1)
  3838.  
  3839. coroutine.resume(coroutine.create(function()
  3840. swait(1)
  3841. lb.Touched:connect(function(hit)
  3842. if hitted == false then
  3843. hitted = true
  3844. lb.Transparency = 1
  3845. lb.Anchored = true
  3846. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3847. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3848. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3849. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3850. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3851. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3852. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3853. CameraEnshaking(1,5)
  3854. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3855. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3856. for i = 0, 9 do
  3857. 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)
  3858. end
  3859. for i = 0, 49 do
  3860. swait()
  3861. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3862. 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)
  3863. end
  3864. end
  3865. end)
  3866. end))
  3867. end
  3868. Overed = true
  3869. orb:Destroy()
  3870. end))
  3871.  
  3872. attack = false
  3873. end
  3874.  
  3875. function StarfallEX()
  3876. attack = true
  3877. hum.WalkSpeed = 0
  3878. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3879. for i = 0, 10, 0.1 do
  3880. swait()
  3881. 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)
  3882. 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)
  3883. 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)
  3884. 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)
  3885. 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)
  3886. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3887. 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)
  3888. 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)
  3889. end
  3890. local Overed = false
  3891. CameraEnshaking(2,20)
  3892. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3893. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3894. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3895. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3896. local orb = Instance.new("Part", char)
  3897.        orb.Anchored = true
  3898.        orb.BrickColor = BrickColor.new("Toothpaste")
  3899.        orb.CanCollide = false
  3900.        orb.FormFactor = 3
  3901.        orb.Name = "Remenant"
  3902.        orb.Material = "Neon"
  3903. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3904.        orb.Size = Vector3.new(1, 1, 1)
  3905.        orb.Transparency = 1
  3906.        orb.TopSurface = 0
  3907.        orb.BottomSurface = 0
  3908. hum.WalkSpeed = storehumanoidWS
  3909. coroutine.resume(coroutine.create(function()
  3910. for i = 0, 4 do
  3911. swait(15)
  3912.                  local lb = Instance.new("Part")
  3913.    lb.Color = MAINRUINCOLOR.Color
  3914.     lb.CanCollide = false
  3915. lb.Material = "Neon"
  3916.     lb.Anchored = true
  3917. lb.TopSurface = 0
  3918.        lb.BottomSurface = 0
  3919.     lb.Transparency = 0
  3920.     lb.Size = vt(1,1,1)
  3921.     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)))
  3922. lb.Anchored = false
  3923.  lb.Parent = char
  3924. local thingery = Instance.new("SpecialMesh",lb)
  3925.     thingery.MeshType = "Sphere"
  3926. thingery.Scale = vt(50,50,50)
  3927. game:GetService("Debris"):AddItem(lb, 10)
  3928.  local bv = Instance.new("BodyVelocity")
  3929.  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3930.  bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3931.  bv.Parent = lb
  3932. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3933. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3934. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3935. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3936. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3937. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3938. local hitted = false
  3939. coroutine.resume(coroutine.create(function()
  3940. while true do
  3941. swait(1)
  3942. if lb.Parent ~= nil and hitted == false then
  3943. 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)
  3944. elseif lb.Parent == nil then
  3945. break
  3946. end
  3947. end
  3948. end))
  3949.  
  3950. game:GetService("Debris"):AddItem(a, 0.1)
  3951.  
  3952. coroutine.resume(coroutine.create(function()
  3953. swait(1)
  3954. lb.Touched:connect(function(hit)
  3955. if hitted == false then
  3956. hitted = true
  3957. lb.Transparency = 1
  3958. lb.Anchored = true
  3959. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3960. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3961. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3962. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3963. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3964. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3965. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3966. CameraEnshaking(1,5)
  3967. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3968. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3969. for i = 0, 9 do
  3970. 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)
  3971. end
  3972. for i = 0, 99 do
  3973. swait()
  3974. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3975. 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)
  3976. end
  3977. end
  3978. end)
  3979. end))
  3980. end
  3981. Overed = true
  3982. orb:Destroy()
  3983. end))
  3984.  
  3985. attack = false
  3986. end
  3987.  
  3988. function DivineBlast()
  3989. attack = true
  3990. hum.WalkSpeed = 0
  3991. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3992. elocacenter.Anchored = true
  3993. elocacenter.CFrame = sorb.CFrame
  3994. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3995. eloca1.Anchored = true
  3996. eloca1.CFrame = elocacenter.CFrame
  3997. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3998. eloca2.Anchored = true
  3999. eloca2.CFrame = elocacenter.CFrame
  4000. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4001. eloca3.Anchored = true
  4002. eloca3.CFrame = elocacenter.CFrame
  4003. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4004. eloca4.Anchored = true
  4005. eloca4.CFrame = elocacenter.CFrame
  4006. local lookavec = 0
  4007. local speeds = 0
  4008. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4009. for i = 0, 3, 0.1 do
  4010. swait()
  4011. ---
  4012. lookavec = lookavec + 0.1
  4013. speeds = speeds + 10
  4014. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4015. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4016. 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)
  4017.  
  4018. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4019. 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)
  4020.  
  4021. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4022. 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)
  4023.  
  4024. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4025. 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)
  4026. ---
  4027. root.CFrame = FaceMouse()[1]
  4028. 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)
  4029. 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)
  4030. 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)
  4031. 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)
  4032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4033. 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)
  4034. end
  4035. for i = 0, 3, 0.1 do
  4036. swait()
  4037. ---
  4038. speeds = speeds + 10
  4039. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4040. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4041. 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)
  4042.  
  4043. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4044. 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)
  4045.  
  4046. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4047. 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)
  4048.  
  4049. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4050. 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)
  4051. ---
  4052. root.CFrame = FaceMouse()[1]
  4053. 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)
  4054. 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)
  4055. 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)
  4056. 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)
  4057. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4058. 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)
  4059. end
  4060. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4061. for i = 0, 3, 0.1 do
  4062. swait()
  4063. ---
  4064. speeds = speeds + 10
  4065. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4066. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4067. 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)
  4068.  
  4069. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4070. 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)
  4071.  
  4072. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4073. 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)
  4074.  
  4075. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4076. 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)
  4077. ---
  4078. root.CFrame = FaceMouse()[1]
  4079. 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)
  4080. 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)
  4081. 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)
  4082. 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)
  4083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4084. 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)
  4085. end
  4086. coroutine.resume(coroutine.create(function()
  4087. local a = Instance.new("Part",Character)
  4088.     a.Name = "Direction"   
  4089.     a.Anchored = true
  4090.     a.BrickColor = bc("White")
  4091. a.Material = "Neon"
  4092. a.Transparency = 0
  4093. a.Shape = "Cylinder"
  4094.     a.CanCollide = false
  4095. local a2 = Instance.new("Part",Character)
  4096.     a2.Name = "Direction"  
  4097.     a2.Anchored = true
  4098.     a2.BrickColor = bc("Bright yellow")
  4099. a2.Material = "Neon"
  4100. a2.Transparency = 0
  4101. a2.Shape = "Cylinder"
  4102.     a2.CanCollide = false
  4103. local b = Instance.new("Part",Character)
  4104.     b.Name = "HitDirect"   
  4105.     b.Anchored = true
  4106.     b.BrickColor = bc("Cool yellow")
  4107. b.Material = "Neon"
  4108. b.Transparency = 1
  4109.     b.CanCollide = false
  4110.     local ray = Ray.new(
  4111.         elocacenter.CFrame.p,                           -- origin
  4112.         (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4113.     )
  4114.     local ignore = Character
  4115.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4116.     a.BottomSurface = 10
  4117.     a.TopSurface = 10
  4118.     a2.BottomSurface = 10
  4119.     a2.TopSurface = 10
  4120.     local distance = (elocacenter.CFrame.p - position).magnitude
  4121.     a.Size = Vector3.new(distance, 1, 1)
  4122.     a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4123.     a2.Size = Vector3.new(distance, 1, 1)
  4124.     a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4125. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4126. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4127. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4128. game:GetService("Debris"):AddItem(a, 10)
  4129. game:GetService("Debris"):AddItem(a2, 10)
  4130. game:GetService("Debris"):AddItem(b, 10)
  4131. local msh = Instance.new("SpecialMesh",a)
  4132. msh.MeshType = "Cylinder"
  4133. msh.Scale = vt(1,2,2)
  4134. local msh2 = Instance.new("SpecialMesh",a2)
  4135. msh2.MeshType = "Cylinder"
  4136. msh2.Scale = vt(1,2.5,2.5)
  4137. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4138. coroutine.resume(coroutine.create(function()
  4139. for i = 0,10,0.1 do
  4140. swait()
  4141. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4142. a.Transparency = a.Transparency + 0.025
  4143. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4144. a2.Transparency = a2.Transparency + 0.05
  4145. end
  4146. a:Destroy()
  4147. a2:Destroy()
  4148. end))
  4149. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4150. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4151. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4152. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4153. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4154. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4155. MagniDamage(b, 25, 40,65, 0, "Normal")
  4156. for i = 0, 49 do
  4157. 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)
  4158. 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)
  4159. end
  4160. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4161. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4162. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4163. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4164. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4165. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4166. end))
  4167. game:GetService("Debris"):AddItem(elocacenter, 5)
  4168. hum.WalkSpeed = storehumanoidWS
  4169. attack = false
  4170. end
  4171.  
  4172. function StarDivision()
  4173. attack = true
  4174. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4175. for i = 0, 2, 0.1 do
  4176. swait()
  4177. 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)
  4178. 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)
  4179. 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)
  4180. 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)
  4181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4182. 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)
  4183. end
  4184. local orb = Instance.new("Part", char)
  4185.        orb.BrickColor = MAINRUINCOLOR
  4186.        orb.CanCollide = false
  4187.        orb.FormFactor = 3
  4188.        orb.Name = "Ring"
  4189.        orb.Material = "Neon"
  4190.        orb.Size = Vector3.new(1, 1, 1)
  4191.        orb.Transparency = 0
  4192.        orb.TopSurface = 0
  4193.        orb.BottomSurface = 0
  4194.        local orbm = Instance.new("SpecialMesh", orb)
  4195.        orbm.MeshType = "Sphere"
  4196. orbm.Name = "SizeMesh"
  4197. orbm.Scale = vt(2,2,2)
  4198. local a = Instance.new("Part",workspace)
  4199.     a.Name = "Direction"   
  4200.     a.Anchored = true
  4201.     a.BrickColor = bc("Bright red")
  4202. a.Material = "Neon"
  4203. a.Transparency = 1
  4204.     a.CanCollide = false
  4205.     local ray = Ray.new(
  4206.         sorb.CFrame.p,                           -- origin
  4207.         (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4208.     )
  4209.     local ignore = sorb
  4210.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4211.     a.BottomSurface = 10
  4212.     a.TopSurface = 10
  4213.     local distance = (sorb.CFrame.p - position).magnitude
  4214.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  4215.     a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4216. orb.CFrame = a.CFrame
  4217. a:Destroy()
  4218. local bv = Instance.new("BodyVelocity")
  4219. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4220. bv.velocity = orb.CFrame.lookVector*100
  4221. bv.Parent = orb
  4222. local hitted = false
  4223. game:GetService("Debris"):AddItem(orb, 10)
  4224. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4225. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4226. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4227. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4228. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4229. coroutine.resume(coroutine.create(function()
  4230. while true do
  4231. swait(1)
  4232. if orb.Parent ~= nil and hitted == false then
  4233. 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)
  4234. elseif orb.Parent == nil then
  4235. break
  4236. end
  4237. end
  4238. end))
  4239. coroutine.resume(coroutine.create(function()
  4240. swait(1)
  4241. orb.Touched:connect(function(hit)
  4242. if hitted == false then
  4243. hitted = true
  4244. game:GetService("Debris"):AddItem(orb, 5)
  4245. orb.Transparency = 1
  4246. orb.Anchored = true
  4247. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4248. elocacenter.Anchored = true
  4249. elocacenter.CFrame = orb.CFrame
  4250. elocacenter.Orientation = vt(0,0,0)
  4251. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4252. eloca1.Anchored = true
  4253. eloca1.CFrame = elocacenter.CFrame
  4254. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4255. eloca2.Anchored = true
  4256. eloca2.CFrame = elocacenter.CFrame
  4257. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4258. eloca3.Anchored = true
  4259. eloca3.CFrame = elocacenter.CFrame
  4260. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4261. eloca4.Anchored = true
  4262. eloca4.CFrame = elocacenter.CFrame
  4263. local lookavec = 0
  4264. local speeds = 0
  4265. CameraEnshaking(1,1)
  4266. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4267. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4268. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4269. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4270. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4271. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4272. for i = 0, 99 do
  4273. swait()
  4274. lookavec = lookavec + 1
  4275. speeds = speeds + 0.1
  4276. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4277. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4278. 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)
  4279.  
  4280. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4281. 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)
  4282.  
  4283. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4284. 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)
  4285.  
  4286. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4287. 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)
  4288. end
  4289.  
  4290. for i = 0, 149 do
  4291. swait()
  4292. speeds = speeds + 0.1
  4293. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4294. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4295. 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)
  4296.  
  4297. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4298. 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)
  4299.  
  4300. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4301. 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)
  4302.  
  4303. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4304. 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)
  4305. end
  4306. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4307. if v:FindFirstChild('Head') then
  4308. dmg(v)
  4309. end
  4310. end
  4311. CameraEnshaking(7,30)
  4312. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4313. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4314. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4315. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4316. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4317. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4318. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4319. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4320. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4321. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4322. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4323. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4324. for i = 0, 24 do
  4325. 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)
  4326. 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)
  4327. 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)
  4328. 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)
  4329. end
  4330. coroutine.resume(coroutine.create(function()
  4331. for i = 0, 499 do
  4332. swait(1)
  4333. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4334. 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)
  4335. end
  4336. elocacenter:Destroy()
  4337. eloca1:Destroy()
  4338. eloca2:Destroy()
  4339. eloca3:Destroy()
  4340. eloca4:Destroy()
  4341. end))
  4342. end
  4343. end)
  4344. end))
  4345. attack = false
  4346. end
  4347.  
  4348.  
  4349. function THE_TRUE_POWER_OF_VIOLENCE()
  4350. attack = true
  4351. hum.WalkSpeed = 0
  4352. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4353. for i = 0, 10, 0.1 do
  4354. swait()
  4355. 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)
  4356. 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)
  4357. 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)
  4358. 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)
  4359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4360. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4361. 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)
  4362. end
  4363. local orb = Instance.new("Part", char)
  4364.        orb.BrickColor = MAINRUINCOLOR
  4365.        orb.CanCollide = false
  4366.        orb.FormFactor = 3
  4367.        orb.Name = "Ring"
  4368.        orb.Material = "Neon"
  4369.        orb.Size = Vector3.new(1, 1, 1)
  4370.        orb.Transparency = 0
  4371.        orb.TopSurface = 0
  4372.        orb.BottomSurface = 0
  4373. orb.CFrame = sorb.CFrame
  4374.        local orbm = Instance.new("SpecialMesh", orb)
  4375.        orbm.MeshType = "Sphere"
  4376. orbm.Name = "SizeMesh"
  4377. orbm.Scale = vt(0,0,0)
  4378.        local sbs = Instance.new("BodyPosition", orb)
  4379.        sbs.P = 3000
  4380.        sbs.D = 1000
  4381.        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4382.        sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4383. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4384. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4385. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4386. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4387. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4388. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4389. for i = 0, 10, 0.1 do
  4390. swait()
  4391. 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)
  4392. 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)
  4393. 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)
  4394. 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)
  4395. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4396. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4397. 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)
  4398. end
  4399. orb.Anchored = true
  4400. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4401. elocacenter.Anchored = true
  4402. elocacenter.CFrame = orb.CFrame
  4403. elocacenter.Orientation = vt(0,0,0)
  4404. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4405. eloca1.Anchored = true
  4406. eloca1.CFrame = elocacenter.CFrame
  4407. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4408. eloca2.Anchored = true
  4409. eloca2.CFrame = elocacenter.CFrame
  4410. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4411. eloca3.Anchored = true
  4412. eloca3.CFrame = elocacenter.CFrame
  4413. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4414. eloca4.Anchored = true
  4415. eloca4.CFrame = elocacenter.CFrame
  4416. local lookavec = 0
  4417. local speeds = 0
  4418. CameraEnshaking(1,1)
  4419. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4420. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4421. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4422. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4423. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4424. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4425. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4426. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4427. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4428. for i = 0, 99 do
  4429. swait()
  4430. lookavec = lookavec + 2.5
  4431. speeds = speeds + 0.25
  4432. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4433. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4434. 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)
  4435.  
  4436. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4437. 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)
  4438.  
  4439. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4440. 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)
  4441.  
  4442. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4443. 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)
  4444. end
  4445.  
  4446. for i = 0, 149 do
  4447. swait()
  4448. speeds = speeds + 0.25
  4449. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4450. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4451. 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)
  4452.  
  4453. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4454. 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)
  4455.  
  4456. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4457. 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)
  4458.  
  4459. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4460. 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)
  4461. end
  4462. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4463. for i = 0, 99 do
  4464. swait()
  4465. lookavec = lookavec - 2.5
  4466. speeds = speeds + 0.25
  4467. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4468. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4469. 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)
  4470.  
  4471. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4472. 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)
  4473.  
  4474. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4475. 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)
  4476.  
  4477. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4478. 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)
  4479. end
  4480. local scaled = 0.1*75
  4481. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4482. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4483. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4484. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4485. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4486. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4487. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4488. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4489. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4490. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4491. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4492. for i = 0, 10, 0.1 do
  4493. swait()
  4494. scaled = scaled - 0.001*75
  4495. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4496. 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)
  4497. 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)
  4498. 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)
  4499. 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)
  4500. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4501. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4502. 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)
  4503. end
  4504. for x = 0, 4 do
  4505. for i = 0, 9 do
  4506. 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)
  4507. end
  4508. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4509. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4510. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4511. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4512. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4513. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4514. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4515. for i = 0, 5, 0.1 do
  4516. swait()
  4517. 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)
  4518. 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)
  4519. 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)
  4520. 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)
  4521. 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)
  4522. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4523. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4524. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4525. end
  4526. end
  4527. local speedearn = 0
  4528. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4529. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4530. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4531. for i = 0, 30, 0.1 do
  4532. swait()
  4533. scaled = scaled - 0.001*75/10
  4534. speedearn = speedearn + 0.5
  4535. for i = 0, 4 do
  4536. 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)
  4537. end
  4538. 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)
  4539. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4540. 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)
  4541. 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)
  4542. 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)
  4543. 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)
  4544. 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)
  4545. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4546. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4547. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4548. end
  4549. orb.Transparency = 1
  4550. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4551. if v:FindFirstChild('Head') then
  4552. dmg(v)
  4553. end
  4554. end
  4555. CameraEnshaking(7,30)
  4556. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4557. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4558. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4559. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4560. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4561. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4562. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4563. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4564. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4565. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4566. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4567. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4568. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4569. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4570. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4571. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4572. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4573. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4574. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4575. for i = 0, 99 do
  4576. 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)
  4577. 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)
  4578. end
  4579. for i = 0, 24 do
  4580. 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)
  4581. 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)
  4582. 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)
  4583. 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)
  4584. 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)
  4585. end
  4586. game:GetService("Debris"):AddItem(orb, 10)
  4587. hum.WalkSpeed = storehumanoidWS
  4588. attack = false
  4589. end
  4590.  
  4591.  
  4592. function ViolentRing()
  4593. attack = true
  4594. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4595. for i = 0, 2, 0.1 do
  4596. swait()
  4597. local snap = math.random(1,10)
  4598. if snap == 1 then
  4599. 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)
  4600. end
  4601. 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)
  4602. 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)
  4603. 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)
  4604. 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)
  4605. 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)
  4606. 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)
  4607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4608. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4609. 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)
  4610. RootPart.CFrame = FaceMouse()[1]
  4611. end
  4612. local orb = Instance.new("Part", char)
  4613.        orb.BrickColor = MAINRUINCOLOR
  4614.        orb.CanCollide = false
  4615.        orb.FormFactor = 3
  4616.        orb.Name = "Ring"
  4617.        orb.Material = "Neon"
  4618.        orb.Size = Vector3.new(1, 1, 1)
  4619.        orb.Transparency = 0
  4620.        orb.TopSurface = 0
  4621.        orb.BottomSurface = 0
  4622.        local orbm = Instance.new("SpecialMesh", orb)
  4623.        orbm.MeshType = "Sphere"
  4624. orbm.Name = "SizeMesh"
  4625. orbm.Scale = vt(2,2,2)
  4626. orb.CFrame = mouse.Hit
  4627. local bv = Instance.new("BodyVelocity")
  4628. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4629. bv.velocity = orb.CFrame.lookVector*100
  4630. bv.Parent = orb
  4631. local hitted = false
  4632. coroutine.resume(coroutine.create(function()
  4633. game:GetService("Debris"):AddItem(orb, 5)
  4634. orb.Transparency = 1
  4635. orb.Anchored = true
  4636. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4637. elocacenter.Anchored = true
  4638. elocacenter.CFrame = orb.CFrame
  4639. elocacenter.Orientation = vt(0,0,0)
  4640. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4641. eloca1.Anchored = true
  4642. eloca1.CFrame = elocacenter.CFrame
  4643. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4644. eloca2.Anchored = true
  4645. eloca2.CFrame = elocacenter.CFrame
  4646. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4647. eloca3.Anchored = true
  4648. eloca3.CFrame = elocacenter.CFrame
  4649. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4650. eloca4.Anchored = true
  4651. eloca4.CFrame = elocacenter.CFrame
  4652. local lookavec = 0
  4653. local speeds = 0
  4654. CameraEnshaking(1,1)
  4655. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4656. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4657. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4658. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4659. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4660. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4661. for i = 0, 24 do
  4662. swait()
  4663. lookavec = lookavec + 3.5
  4664. speeds = speeds + 1
  4665. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4666. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4667. 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)
  4668.  
  4669. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4670. 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)
  4671.  
  4672. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4673. 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)
  4674.  
  4675. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4676. 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)
  4677. end
  4678.  
  4679. local risen = 0
  4680. for i = 0, 49 do
  4681. swait()
  4682. risen = risen + 0.05
  4683. speeds = speeds + 0.1
  4684. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4685. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4686. 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)
  4687.  
  4688. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4689. 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)
  4690.  
  4691. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4692. 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)
  4693.  
  4694. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4695. 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)
  4696. end
  4697. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4698. if v:FindFirstChild('Head') then
  4699. dmg(v)
  4700. end
  4701. end
  4702. CameraEnshaking(4,10)
  4703. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4704. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4705. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4706. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4707. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4708. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4709. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4710. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4711. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4712. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4713. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4714. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4715. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4716. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4717. for i = 0, 24 do
  4718. 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)
  4719. 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)
  4720. 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)
  4721. 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)
  4722. end
  4723. coroutine.resume(coroutine.create(function()
  4724. wait(10)
  4725. elocacenter:Destroy()
  4726. eloca1:Destroy()
  4727. eloca2:Destroy()
  4728. eloca3:Destroy()
  4729. eloca4:Destroy()
  4730. end))
  4731. end))
  4732. attack = false
  4733. end
  4734.  
  4735. function UniversalCollapse()
  4736. attack = true
  4737. local speedearn = 0
  4738. hum.WalkSpeed = 0
  4739.        local sbs = Instance.new("BodyPosition", root)
  4740.        sbs.P = 3000
  4741.        sbs.D = 1000
  4742.        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4743.        sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4744. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4745. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4746. for i = 0, 110, 0.1 do
  4747. swait()
  4748. speedearn = speedearn + 0.1
  4749. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4750. 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)
  4751. 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)
  4752. 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)
  4753. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4754. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4755. 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)
  4756. 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)
  4757. 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)
  4758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4759. 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)
  4760. 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)
  4761. end
  4762. CameraEnshaking(5,50)
  4763. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4764. for i = 0, 2 do
  4765. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4766. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4767. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4768. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4769. end
  4770. for i = 0, 49 do
  4771. 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)
  4772. 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)
  4773. 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)
  4774. 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)
  4775. end
  4776. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4777. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4778. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4779. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4780. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4781. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4782. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4783. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4784. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4785. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4786. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4787. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. for i = 0, 99 do
  4789. 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)
  4790. 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)
  4791. end
  4792. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4793. if v:FindFirstChild('Head') then
  4794. dmg(v)
  4795. end
  4796. end
  4797. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4798. sbs:Destroy()
  4799. hum.WalkSpeed = storehumanoidWS
  4800. attack = false
  4801. end
  4802.  
  4803.  
  4804. function ChaosEND()
  4805. attack = true
  4806. local speedearn = 0
  4807. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4808. for i = 0, 15, 0.1 do
  4809. swait()
  4810. speedearn = speedearn + 0.25
  4811. 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)
  4812. 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)
  4813. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4814. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4815. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4816. 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)
  4817. 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)
  4818. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4819. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4820. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4821. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4822. end
  4823. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4824. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4825. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4826. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4827. CameraEnshaking(5,25)
  4828. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4829. if v:FindFirstChild('Head') then
  4830. dmg(v)
  4831. end
  4832. end
  4833. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4834. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4835. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4836. for i = 0, 3, 0.1 do
  4837. swait()
  4838. 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)
  4839. 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)
  4840. 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)
  4841. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4842. 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)
  4843. 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)
  4844. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4848. end
  4849. attack = false
  4850. end
  4851.  
  4852. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4853. local orb = Instance.new("Part", char)
  4854.        orb.Anchored = true
  4855.        orb.BrickColor = color
  4856.        orb.CanCollide = false
  4857.        orb.FormFactor = 3
  4858.        orb.Name = "Ring"
  4859.        orb.Material = "Neon"
  4860.        orb.Size = Vector3.new(1, 1, 1)
  4861.        orb.Transparency = 0
  4862.        orb.TopSurface = 0
  4863.        orb.BottomSurface = 0
  4864.        local orbm = Instance.new("SpecialMesh", orb)
  4865.        orbm.MeshType = "Sphere"
  4866. orb.CFrame = positted
  4867. orbm.Name = "SizeMesh"
  4868. orbm.Scale = vt(1,1,1)
  4869. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4870. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4871. --[[for i = 0, 2 do
  4872. 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)
  4873. end]]--
  4874. coroutine.resume(coroutine.create(function()
  4875. wait(timer)
  4876. CameraEnshaking(3,ShakePower)
  4877. orb.Transparency = 1
  4878. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4879. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4880. --[[for i = 0, 4 do
  4881. 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)
  4882. end]]--
  4883. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4884. wait(3)
  4885. orb:Destroy()
  4886. end))
  4887. end
  4888.  
  4889. function orb_spawn(positted,timer)
  4890. local randomcol = math.random(1,2)
  4891. local orb = Instance.new("Part", char)
  4892.        orb.Anchored = true
  4893. if randomcol == 1 then
  4894.        orb.BrickColor = BrickColor.new("White")
  4895. elseif randomcol == 2 then
  4896. orb.BrickColor = BrickColor.new("Really black")
  4897. end
  4898.        orb.CanCollide = false
  4899.        orb.FormFactor = 3
  4900.        orb.Name = "Ring"
  4901.        orb.Material = "Neon"
  4902.        orb.Size = Vector3.new(1, 1, 1)
  4903.        orb.Transparency = 0
  4904.        orb.TopSurface = 0
  4905.        orb.BottomSurface = 0
  4906.        local orbm = Instance.new("SpecialMesh", orb)
  4907.        orbm.MeshType = "Sphere"
  4908. orb.CFrame = positted
  4909. orbm.Name = "SizeMesh"
  4910. orbm.Scale = vt(1,1,1)
  4911. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4912. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4913. for i = 0, 2 do
  4914. 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)
  4915. end
  4916. coroutine.resume(coroutine.create(function()
  4917. wait(timer)
  4918. CameraEnshaking(3,2)
  4919. orb.Transparency = 1
  4920. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4921. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4922. for i = 0, 4 do
  4923. 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)
  4924. end
  4925. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4926. wait(3)
  4927. orb:Destroy()
  4928. end))
  4929. end
  4930.  
  4931. function scattercorrupt()
  4932. attack = true
  4933. local rot = 0
  4934. local randomrotations = math.random(1,2)
  4935. local lookv = 2.5
  4936. local power = 5
  4937. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4938. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4939. for i = 0, 9 do
  4940. 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)
  4941. end
  4942.     CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4943.     CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4944.     CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4945. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4946. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4947. local hite = Instance.new("Part", char)
  4948.        hite.Anchored = true
  4949.        hite.CanCollide = false
  4950.        hite.FormFactor = 3
  4951.        hite.Name = "Ring"
  4952.        hite.Material = "Neon"
  4953.        hite.Size = Vector3.new(1, 1, 1)
  4954.        hite.Transparency = 1
  4955.        hite.TopSurface = 0
  4956.        hite.BottomSurface = 0
  4957. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4958. local rem = Instance.new("Part", char)
  4959.        rem.Anchored = true
  4960.        rem.CanCollide = false
  4961.        rem.FormFactor = 3
  4962.        rem.Name = "Ring"
  4963.        rem.Material = "Neon"
  4964.        rem.Size = Vector3.new(1, 1, 1)
  4965.        rem.Transparency = 1
  4966.        rem.TopSurface = 0
  4967.        rem.BottomSurface = 0
  4968. rem.CFrame = hite.CFrame
  4969. local rem2 = rem:Clone()
  4970. rem2.Parent = char
  4971. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4972. local rem3 = rem:Clone()
  4973. rem3.Parent = char
  4974. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4975. local rem4 = rem:Clone()
  4976. rem4.Parent = char
  4977. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4978. hite:Destroy()
  4979. coroutine.resume(coroutine.create(function()
  4980. for i = 0, 24 do
  4981. swait(1)
  4982. if randomrotations == 1 then
  4983. rot = rot + 1
  4984. elseif randomrotations == 2 then
  4985. rot = rot - 1
  4986. end
  4987. power = power + 0.5
  4988. lookv = lookv + 7.5
  4989. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4990. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4991. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4992. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4993. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4994. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4995. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4996. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4997. end
  4998. end))
  4999. attack = false
  5000. end
  5001. function yinyangi()
  5002. attack = true
  5003. for i = 0, 2, 0.1 do
  5004. swait()
  5005. 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)
  5006. 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)
  5007. 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)
  5008. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5009. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5010. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5011. end
  5012. local bv = Instance.new("BodyVelocity")
  5013. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5014. bv.velocity = root.CFrame.lookVector*175
  5015. bv.Parent = root
  5016. for Rotations = 0, 9 do
  5017. for i = 0, 1, 0.5 do
  5018. swait()
  5019. bv.velocity = root.CFrame.lookVector*175
  5020. 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)
  5021. 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)
  5022. 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)
  5023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5026. end
  5027. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5028. for i = 0, 1, 0.5 do
  5029. swait()
  5030. bv.velocity = root.CFrame.lookVector*175
  5031. 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)
  5032. 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)
  5033. 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)
  5034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5036. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5037. end
  5038. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5039. for i = 0, 1, 0.5 do
  5040. swait()
  5041. bv.velocity = root.CFrame.lookVector*175
  5042. 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)
  5043. 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)
  5044. 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)
  5045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5046. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5047. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5048. end
  5049. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5050. for i = 0, 1, 0.5 do
  5051. swait()
  5052. bv.velocity = root.CFrame.lookVector*175
  5053. 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)
  5054. 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)
  5055. 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)
  5056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5057. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5058. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5059. end
  5060. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5061. end
  5062. bv:Destroy()
  5063. attack = false
  5064. end
  5065.  
  5066. function createBGCircle(size,parent,color)
  5067. local bgui = Instance.new("BillboardGui",parent)
  5068. bgui.Size = UDim2.new(size, 0, size, 0)
  5069. local imgc = Instance.new("ImageLabel",bgui)
  5070. imgc.BackgroundTransparency = 1
  5071. imgc.ImageTransparency = 0
  5072. imgc.Size = UDim2.new(1,0,1,0)
  5073. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5074. imgc.ImageColor3 = color
  5075. return bgui,imgc
  5076. end
  5077.  
  5078. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5079. local bgui,imgc = createBGCircle(size,guipar,color)
  5080. bgui.AlwaysOnTop = true
  5081. imgc.Image = "rbxassetid://" ..img
  5082. local rrot = math.random(1,2)
  5083. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5084. coroutine.resume(coroutine.create(function()
  5085. for i = 0, 24*delay do
  5086. swait()
  5087. if rotationenabled == true then
  5088. if rrot == 1 then
  5089. imgc.Rotation = imgc.Rotation + rotsp
  5090. elseif rrot == 2 then
  5091. imgc.Rotation = imgc.Rotation - rotsp
  5092. end
  5093. end
  5094. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5095. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5096. end
  5097. bgui:Destroy()
  5098. end))
  5099. end
  5100. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5101. for i, v in pairs(mw2:GetChildren()) do
  5102. if v:IsA("Part") then
  5103. v.BrickColor = one
  5104. v.Material = "Neon"
  5105. end
  5106. end
  5107. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5108. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5109. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5110. tr1.Color = ColorSequence.new(one.Color)
  5111. tr2.Color = ColorSequence.new(one.Color)
  5112. tr3.Color = ColorSequence.new(one.Color)
  5113. for i, v in pairs(mw1:GetChildren()) do
  5114. if v:IsA("Part") then
  5115. if secondaryenabled == false then
  5116. v.Transparency = 1
  5117. elseif secondaryenabled == true then
  5118. v.Transparency = 0
  5119. end
  5120. v.BrickColor = two
  5121. v.Material = "Neon"
  5122. end
  5123. end
  5124. if secondaryenabled == false then
  5125. tl1.Enabled = false
  5126. tl2.Enabled = false
  5127. tl3.Enabled = false
  5128. elseif secondaryenabled == true then
  5129. tl1.Enabled = true
  5130. tl2.Enabled = true
  5131. tl3.Enabled = true
  5132. end
  5133. tl1.Color = ColorSequence.new(two.Color)
  5134. tl2.Color = ColorSequence.new(two.Color)
  5135. tl3.Color = ColorSequence.new(two.Color)
  5136. for i, v in pairs(m:GetChildren()) do
  5137. if v:IsA("Part") then
  5138. v.BrickColor = three
  5139. v.Material = "Ice"
  5140. end
  5141. end
  5142. for i, v in pairs(m2:GetChildren()) do
  5143. if v:IsA("Part") then
  5144. v.BrickColor = four
  5145. v.Material = "Ice"
  5146. end
  5147. end
  5148. for i, v in pairs(m3:GetChildren()) do
  5149. if v:IsA("Part") then
  5150. v.BrickColor = five
  5151. v.Material = "Neon"
  5152. end
  5153. end
  5154. for i, v in pairs(extrawingmod1:GetChildren()) do
  5155. if v:IsA("Part") then
  5156. v.Transparency = exonetran
  5157. v.BrickColor = exone
  5158. v.Material = "Neon"
  5159. end
  5160. end
  5161. for i, v in pairs(extrawingmod2:GetChildren()) do
  5162. if v:IsA("Part") then
  5163. v.Transparency = extwotran
  5164. v.BrickColor = extwo
  5165. v.Material = "Neon"
  5166. end
  5167. end
  5168. end
  5169.  
  5170.  
  5171. function normalmog()
  5172. attack = true
  5173. hum.WalkSpeed = 0
  5174. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5175. for i = 0,6,0.1 do
  5176. swait()
  5177. 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)
  5178. 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)
  5179. 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)
  5180. 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)
  5181. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5182. 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)
  5183. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5184. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5185. end
  5186. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5187. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5188. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5189. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5190. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5191. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5192. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5193. rainbowmode = false
  5194. chaosmode = false
  5195. ModeOfGlitch = 1
  5196. storehumanoidWS = 16
  5197. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5198. RecolorTextAndRename("Fei's May",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5199. CameraEnshaking(5,2.5)
  5200. MAINRUINCOLOR = BrickColor.new("Really red")
  5201. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5202. for i = 0, 49 do
  5203. 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)
  5204. end
  5205. for i = 0, 24 do
  5206. 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)
  5207. 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"))
  5208. end
  5209. for i = 0,3,0.1 do
  5210. 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)
  5211. end
  5212. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5213. for i = 0,2,0.1 do
  5214. swait()
  5215. 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)
  5216. 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)
  5217. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5218. 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)
  5219. 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)
  5220. 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)
  5221. end
  5222. hum.WalkSpeed = storehumanoidWS
  5223. attack = false
  5224. end
  5225.  
  5226. function attackone()
  5227.     attack = true
  5228. local keptcolor = MAINRUINCOLOR
  5229.     for i = 0,1,0.1 do
  5230.         swait()
  5231.            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5232. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5233. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5234. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5235. 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)
  5236. 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)
  5237.     end
  5238. local distlook = 5
  5239. coroutine.resume(coroutine.create(function()
  5240. for i = 0, 4 do
  5241. swait(2)
  5242. CameraEnshaking(2,3)
  5243. local hite = Instance.new("Part", char)
  5244.        hite.Anchored = true
  5245.        hite.CanCollide = false
  5246.        hite.FormFactor = 3
  5247.        hite.Name = "Ring"
  5248.        hite.Material = "Neon"
  5249.        hite.Size = Vector3.new(1, 1, 1)
  5250.        hite.Transparency = 1
  5251.        hite.TopSurface = 0
  5252.        hite.BottomSurface = 0
  5253. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5254. 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)
  5255. 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)
  5256. 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)
  5257. 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)
  5258. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5259. for i = 0, 14 do
  5260. local rsiz = math.random(5,20)
  5261. 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)
  5262. end
  5263. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5264. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5265. game:GetService("Debris"):AddItem(hite, 5)
  5266. distlook = distlook + 10
  5267. end
  5268. end))
  5269.     for i = 0,1,0.1 do
  5270.         swait()
  5271.            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5272. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5273. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5274. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5275. 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)
  5276. 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)
  5277.     end
  5278.     attack = false
  5279. end
  5280.  
  5281. function attacktwo()
  5282.     attack = true
  5283. hum.WalkSpeed = 2
  5284. local keptcolor = MAINRUINCOLOR
  5285. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5286. 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)
  5287. 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)
  5288. for i = 0, 14 do
  5289. end
  5290. for i = 0,1,0.1 do
  5291. swait()
  5292. 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)
  5293. 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)
  5294. 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)
  5295. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5296. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5297. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5298. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5299. end
  5300. for i = 0, 1 do
  5301. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5302. for i = 0,1,0.6 do
  5303. swait()
  5304. 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)
  5305. 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)
  5306. 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)
  5307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5309. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5310. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5311. end
  5312. for i = 0,1,0.6 do
  5313. swait()
  5314. 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)
  5315. 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)
  5316. 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)
  5317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5319. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5320. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5321. end
  5322. for i = 0,1,0.6 do
  5323. swait()
  5324. 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)
  5325. 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)
  5326. 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)
  5327. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5328. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5329. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5330. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5331. end
  5332. for i = 0,1,0.6 do
  5333. swait()
  5334. 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)
  5335. 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)
  5336. 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)
  5337. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5338. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5339. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5340. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5341. end
  5342. local rot = 0
  5343. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5344. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5345. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5346. CreateMesh(dis,"Sphere",10,1,10)
  5347. local at1 = Instance.new("Attachment",dis)
  5348. at1.Position = vt(-5,0,0)
  5349. local at2 = Instance.new("Attachment",dis)
  5350. at2.Position = vt(5,0,0)
  5351. local trl = Instance.new('Trail',wed)
  5352. trl.Attachment0 = at1
  5353. trl.Attachment1 = at2
  5354. trl.Texture = "rbxassetid://1049219073"
  5355. trl.LightEmission = 1
  5356. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5357. trl.Color = ColorSequence.new(dis.Color)
  5358. trl.Lifetime = 0.6
  5359. local a = Instance.new("Part",workspace)
  5360.     a.Name = "Direction"   
  5361.     a.Anchored = true
  5362.     a.BrickColor = bc("Bright red")
  5363. a.Material = "Neon"
  5364. a.Transparency = 1
  5365.     a.CanCollide = false
  5366.     local ray = Ray.new(
  5367.         dis.CFrame.p,                           -- origin
  5368.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5369.     )
  5370.     local ignore = dis
  5371.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5372.     a.BottomSurface = 10
  5373.     a.TopSurface = 10
  5374.     local distance = (dis.CFrame.p - position).magnitude
  5375.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  5376.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5377. dis.CFrame = a.CFrame
  5378. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5379. a:Destroy()
  5380. local bv = Instance.new("BodyVelocity")
  5381. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5382. bv.velocity = dis.CFrame.lookVector*250
  5383. bv.Parent = dis
  5384. game:GetService("Debris"):AddItem(dis, 5)
  5385. local hitted = false
  5386. coroutine.resume(coroutine.create(function()
  5387. dis.Touched:connect(function(hit)
  5388.     if hitted == false and hit.Parent ~= char then
  5389.     hitted = true
  5390.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5391.     MagniDamage(dis, 30, 33,56, 0, "Normal")
  5392.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5393.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5394.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5395.     coroutine.resume(coroutine.create(function()
  5396.         for i = 0, 9 do
  5397. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5398. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5399. local at1 = Instance.new("Attachment",disr)
  5400. at1.Position = vt(-5,0,0)
  5401. local at2 = Instance.new("Attachment",disr)
  5402. at2.Position = vt(5,0,0)
  5403. local trl = Instance.new('Trail',disr)
  5404. trl.Attachment0 = at1
  5405. trl.FaceCamera = true
  5406. trl.Attachment1 = at2
  5407. trl.Texture = "rbxassetid://2342682798"
  5408. trl.LightEmission = 1
  5409. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5410. trl.Color = ColorSequence.new(keptcolor.Color)
  5411. trl.Lifetime = 0.5
  5412. local bv = Instance.new("BodyVelocity")
  5413. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5414. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5415. bv.Parent = disr
  5416. local val = 0
  5417. coroutine.resume(coroutine.create(function()
  5418.     swait(30)
  5419.     for i = 0, 9 do
  5420.         swait()
  5421.         val = val + 0.1
  5422.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5423.     end
  5424. game:GetService("Debris"):AddItem(disr, 3)
  5425. end))
  5426. end
  5427. local eff = Instance.new("ParticleEmitter",dis)
  5428. eff.Texture = "rbxassetid://2273224484"
  5429. eff.LightEmission = 1
  5430. eff.Color = ColorSequence.new(keptcolor.Color)
  5431. eff.Rate = 50
  5432. eff.Lifetime = NumberRange.new(0.5,2)
  5433. 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)})
  5434. 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)})
  5435. eff.Speed = NumberRange.new(20,250)
  5436. eff.Drag = 5
  5437. eff.Rotation = NumberRange.new(-500,500)
  5438. eff.VelocitySpread = 9000
  5439. eff.RotSpeed = NumberRange.new(-50,50)
  5440. wait(0.25)
  5441. eff.Enabled = false
  5442. end))
  5443.     for i = 0, 9 do
  5444.             end
  5445. for i = 0, 19 do
  5446. end
  5447. coroutine.resume(coroutine.create(function()
  5448. for i = 0, 19 do
  5449. swait()
  5450. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5451. end
  5452. hum.CameraOffset = vt(0,0,0)
  5453. end))
  5454. dis.Anchored = true
  5455. dis.Transparency = 1
  5456. wait(8)
  5457. dis:Destroy()
  5458. end
  5459. end)
  5460. end))
  5461. rot = rot - 15
  5462. end
  5463. for i = 0,2,0.1 do
  5464. swait()
  5465. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5466. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5467. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5469. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5470. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5471. end
  5472. attack = false
  5473. hum.WalkSpeed = storehumanoidWS
  5474. end
  5475.  
  5476. function attackthree()
  5477. attack = true
  5478. local keptcolor = MAINRUINCOLOR
  5479. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5480.     for i = 0,2,0.1 do
  5481.         swait()
  5482.         sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5483. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5484. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5485. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5486. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5487. 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)
  5488. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5489.     end
  5490. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5491. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5492. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5493. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5494. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5495. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5496. for i = 0, 24 do
  5497.     end
  5498. for i = 0,4,0.1 do
  5499.         swait()
  5500.         root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5501.         local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5502. CreateMesh(dis,"Sphere",1,1,1)
  5503. dis.Anchored = true
  5504. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5505. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5506. coroutine.resume(coroutine.create(function()
  5507.     swait(30)
  5508.     dis.Transparency = 1
  5509. coroutine.resume(coroutine.create(function()
  5510. for i = 0, 19 do
  5511. swait()
  5512. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5513. end
  5514. hum.CameraOffset = vt(0,0,0)
  5515. end))
  5516. coroutine.resume(coroutine.create(function()
  5517. local eff = Instance.new("ParticleEmitter",dis)
  5518. eff.Texture = "rbxassetid://2273224484"
  5519. eff.LightEmission = 1
  5520. eff.Color = ColorSequence.new(dis.Color)
  5521. eff.Rate = 500000
  5522. eff.Lifetime = NumberRange.new(0.5,2)
  5523. 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)})
  5524. 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)})
  5525. eff.Speed = NumberRange.new(50,450)
  5526. eff.Drag = 5
  5527. eff.Rotation = NumberRange.new(-500,500)
  5528. eff.VelocitySpread = 9000
  5529. eff.RotSpeed = NumberRange.new(-50,50)
  5530. wait(0.125)
  5531. eff.Enabled = false
  5532. end))
  5533. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5534.    for i = 0, 2 do
  5535.         --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)
  5536.     end
  5537.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5538.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5539.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5540.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5541. end))
  5542. game:GetService("Debris"):AddItem(dis, 5)
  5543. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5544. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5545. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5546. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5547. 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)
  5548. 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)
  5549.     end
  5550. attack = false
  5551. end
  5552. ----------------------------------- Abilities
  5553.  
  5554. function ExtinctiveHeartbreak()
  5555. local targetted = nil
  5556. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5557. targetted = mouse.Target.Parent
  5558. end
  5559. if targetted ~= nil then
  5560. attack = true
  5561. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5562. for i = 0, 9 do
  5563. --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)
  5564. end
  5565. for i = 0, 24 do
  5566. --
  5567. end
  5568. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5569. local originalpos = root.CFrame
  5570. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5571. for i = 0, 9 do
  5572. --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)
  5573. end
  5574. for i = 0, 24 do
  5575. end
  5576. hum.WalkSpeed = 0
  5577. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5578. local radm = math.random(1,3)
  5579. if radm == 1 then
  5580. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5581. elseif radm == 2 then
  5582. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5583. elseif radm == 3 then
  5584. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5585. end
  5586. for i = 0,2,0.1 do
  5587. swait()
  5588. 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)
  5589. 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)
  5590. 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)
  5591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5592. 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)
  5593. 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)
  5594. end
  5595. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5596. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5597. for i = 0,2,0.1 do
  5598. swait()
  5599. coroutine.resume(coroutine.create(function()
  5600. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5601. for i,v in pairs(targetted:GetChildren()) do
  5602. if v:IsA("Part") or v:IsA("MeshPart") then
  5603. v.Velocity = vt(0,0,0)
  5604. end
  5605. end
  5606. end))
  5607. 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)
  5608. 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)
  5609. 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)
  5610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5611. 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)
  5612. 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)
  5613. end
  5614. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5615. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5616. for i = 0, 1 do
  5617. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5618. end
  5619. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5620. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5621. for i = 0,4,0.1 do
  5622. swait()
  5623. coroutine.resume(coroutine.create(function()
  5624. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5625. 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)))
  5626. local at1 = Instance.new("Attachment",dis)
  5627. at1.Position = vt(-25000,0,0)
  5628. local at2 = Instance.new("Attachment",dis)
  5629. at2.Position = vt(25000,0,0)
  5630. local trl = Instance.new('Trail',dis)
  5631. trl.Attachment0 = at1
  5632. trl.FaceCamera = true
  5633. trl.Attachment1 = at2
  5634. trl.Texture = "rbxassetid://1049219073"
  5635. trl.LightEmission = 1
  5636. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5637. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5638. trl.Lifetime = 5
  5639. local bv = Instance.new("BodyVelocity")
  5640. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5641. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5642. bv.Parent = dis
  5643. game:GetService("Debris"):AddItem(dis, 5)
  5644. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5645. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5646. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5647. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5648. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5649. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5650. 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)
  5651. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5652. for i = 0, 2 do
  5653. --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"))
  5654. end
  5655. 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)
  5656. for i,v in pairs(targetted:GetChildren()) do
  5657. if v:IsA("Part") or v:IsA("MeshPart") then
  5658. v.Velocity = vt(0,0,0)
  5659. end
  5660. end
  5661. end))
  5662. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5663. 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)
  5664. 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)
  5665. 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)
  5666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5667. 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)
  5668. 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)
  5669. end
  5670. hum.CameraOffset = vt(0,0,0)
  5671. for i = 0, 49 do
  5672. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5673. 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)))
  5674. local at1 = Instance.new("Attachment",dis)
  5675. at1.Position = vt(-50000,0,0)
  5676. local at2 = Instance.new("Attachment",dis)
  5677. at2.Position = vt(50000,0,0)
  5678. local trl = Instance.new('Trail',dis)
  5679. trl.Attachment0 = at1
  5680. trl.FaceCamera = true
  5681. trl.Attachment1 = at2
  5682. trl.Texture = "rbxassetid://1049219073"
  5683. trl.LightEmission = 1
  5684. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5685. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5686. trl.Lifetime = 5
  5687. local bv = Instance.new("BodyVelocity")
  5688. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5689. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5690. bv.Parent = dis
  5691. game:GetService("Debris"):AddItem(dis, 5)
  5692. end
  5693. for i = 0, 49 do
  5694. 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)
  5695. --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"))
  5696. end
  5697. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5698. for i = 0, 1 do
  5699. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5700. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5701. end
  5702. for i = 0, 4 do
  5703. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5704. end
  5705. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5706. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5707. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5708. dmg(targetted)
  5709. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5710. for i = 0, 9 do
  5711. --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)
  5712. end
  5713. for i = 0, 24 do
  5714. end
  5715. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5716. root.CFrame = originalpos
  5717. for i = 0, 9 do
  5718. --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)
  5719. end
  5720. for i = 0, 24 do
  5721. end
  5722. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5723. attack = false
  5724. hum.WalkSpeed = storehumanoidWS
  5725. end
  5726. end
  5727.  
  5728. function CorruptionEvent()
  5729. attack = true
  5730. hum.WalkSpeed = 0
  5731. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5732. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5733. local keptcolor = MAINRUINCOLOR
  5734. for i = 0,4,0.1 do
  5735. swait()
  5736. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5737. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5738. 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)
  5739. 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)
  5740. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5742. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5743. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5744. end
  5745. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5746. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5747. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5748. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5749. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5750. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5751. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5752. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5753. hum.CameraOffset = vt(0,0,0)
  5754. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5755. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5756. for i = 0, 24 do
  5757. --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"))
  5758. end
  5759. local rrot = 0
  5760. coroutine.resume(coroutine.create(function()
  5761. for i = 0, 4 do
  5762. rrot = rrot + 45
  5763. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5764. xa.Anchored = true
  5765. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5766. xb.Anchored = true
  5767. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5768. xc.Anchored = true
  5769. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5770. xd.Anchored = true
  5771. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5772. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5773. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5774. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5775. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5776. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5777. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5778. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5779. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5780. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5781. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5782. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5783. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5784. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5785. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5786. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5787. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5788. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5789. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5790. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5791. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5792. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5793. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5794. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5795. 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)
  5796. 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)
  5797. 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)
  5798. 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)
  5799. 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))
  5800. 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))
  5801. 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))
  5802. 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))
  5803. game:GetService("Debris"):AddItem(xa, 5)
  5804. game:GetService("Debris"):AddItem(xb, 5)
  5805. game:GetService("Debris"):AddItem(xc, 5)
  5806. game:GetService("Debris"):AddItem(xd, 5)
  5807. coroutine.resume(coroutine.create(function()
  5808. for i = 0, 19 do
  5809. swait()
  5810. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5811. end
  5812. hum.CameraOffset = vt(0,0,0)
  5813. end))
  5814. swait(9)
  5815. end
  5816. end))
  5817. for i = 0,2,0.1 do
  5818. swait()
  5819. 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)
  5820. 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)
  5821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5823. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5824. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5825. end
  5826. attack = false
  5827. hum.WalkSpeed = storehumanoidWS
  5828. end
  5829.  
  5830. function EndGROUND()
  5831.     attack = true
  5832. hum.WalkSpeed = 0
  5833. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5834. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5835. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5836. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5837. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5838. local keptcolor = MAINRUINCOLOR
  5839. for i = 0,4,0.1 do
  5840. swait()
  5841. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5842. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5843. --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"))
  5844. 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)
  5845. 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)
  5846. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5847. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5848. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5849. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5850. end
  5851. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5852. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5853. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5854. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5855. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5856. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5857. coroutine.resume(coroutine.create(function()
  5858.     local shval = 10
  5859.     for i = 0, 99 do
  5860.         swait()
  5861.         shval = shval - 0.1
  5862.         hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5863.     end
  5864.     hum.CameraOffset = vt(0,0,0)
  5865. end))
  5866. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5867. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5868. for i = 0, 24 do
  5869. --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"))
  5870. end
  5871. local rrot = 0
  5872. local xam = 1
  5873. coroutine.resume(coroutine.create(function()
  5874. for i = 0, 14 do
  5875. --swait()
  5876. rrot = rrot + 40*xam
  5877. xam = xam + 0.25
  5878. local bonus = xam
  5879. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5880. xa.Anchored = true
  5881. xa.Color = Color3.new(0,0,0)
  5882. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5883. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5884. local xc = 0
  5885. coroutine.resume(coroutine.create(function()
  5886. for i = 0, 99 do
  5887.     swait()
  5888.     xc = xc + 0.01
  5889.     xa.Color = Color3.new(xc,0,0)
  5890. end
  5891. xa.Transparency = 1
  5892. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5893. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5894. for i = 0, 9 do
  5895. --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"))
  5896. end
  5897. 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)
  5898. 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)
  5899. 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))
  5900. game:GetService("Debris"):AddItem(xa, 5)
  5901. coroutine.resume(coroutine.create(function()
  5902. for i = 0, 19 do
  5903. swait()
  5904. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5905. end
  5906. hum.CameraOffset = vt(0,0,0)
  5907. end))
  5908. end))
  5909. end
  5910. end))
  5911. for i = 0,2,0.1 do
  5912. swait()
  5913. 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)
  5914. 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)
  5915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5917. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5918. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5919. end
  5920. attack = false
  5921. hum.WalkSpeed = storehumanoidWS
  5922. end
  5923.  
  5924. function HeavenlyDisk()
  5925. attack = true
  5926. hum.WalkSpeed = 2
  5927. local keptcolor = MAINRUINCOLOR
  5928. local radm = math.random(1,3)
  5929. if radm == 1 then
  5930. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  5931. elseif radm == 2 then
  5932. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5933. elseif radm == 3 then
  5934. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5935. end
  5936. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5937. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  5938. for i = 0, 14 do
  5939. --
  5940. end
  5941. for i = 0,2,0.1 do
  5942. swait()
  5943. 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)
  5944. 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)
  5945. 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)
  5946. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5948. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5949. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5950. end
  5951. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5952. for i = 0,1,0.6 do
  5953. swait()
  5954. 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)
  5955. --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"))
  5956. 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)
  5957. 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)
  5958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5961. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5962. end
  5963. for i = 0,1,0.6 do
  5964. swait()
  5965. 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)
  5966. --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"))
  5967. 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)
  5968. 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)
  5969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5971. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5972. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5973. end
  5974. for i = 0,1,0.6 do
  5975. swait()
  5976. 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)
  5977. --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"))
  5978. 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)
  5979. 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)
  5980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5983. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5984. end
  5985. for i = 0,1,0.6 do
  5986. swait()
  5987. 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)
  5988. --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"))
  5989. 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)
  5990. 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)
  5991. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5994. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5995. end
  5996. local rot = 15
  5997. for i = 0, 2 do
  5998. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5999. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6000. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6001. CreateMesh(dis,"Sphere",10,1,10)
  6002. local at1 = Instance.new("Attachment",dis)
  6003. at1.Position = vt(-5,0,0)
  6004. local at2 = Instance.new("Attachment",dis)
  6005. at2.Position = vt(5,0,0)
  6006. local trl = Instance.new('Trail',wed)
  6007. trl.Attachment0 = at1
  6008. trl.Attachment1 = at2
  6009. trl.Texture = "rbxassetid://1049219073"
  6010. trl.LightEmission = 1
  6011. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6012. trl.Color = ColorSequence.new(dis.Color)
  6013. trl.Lifetime = 0.6
  6014. local a = Instance.new("Part",workspace)
  6015.     a.Name = "Direction"   
  6016.     a.Anchored = true
  6017.     a.BrickColor = bc("Bright red")
  6018. a.Material = "Neon"
  6019. a.Transparency = 1
  6020.     a.CanCollide = false
  6021.     local ray = Ray.new(
  6022.         dis.CFrame.p,                           -- origin
  6023.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6024.     )
  6025.     local ignore = dis
  6026.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6027.     a.BottomSurface = 10
  6028.     a.TopSurface = 10
  6029.     local distance = (dis.CFrame.p - position).magnitude
  6030.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6031.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6032. dis.CFrame = a.CFrame
  6033. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6034. a:Destroy()
  6035. local bv = Instance.new("BodyVelocity")
  6036. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6037. bv.velocity = dis.CFrame.lookVector*250
  6038. bv.Parent = dis
  6039. game:GetService("Debris"):AddItem(dis, 5)
  6040. local hitted = false
  6041. coroutine.resume(coroutine.create(function()
  6042. dis.Touched:connect(function(hit)
  6043.     if hitted == false and hit.Parent ~= char then
  6044.     hitted = true
  6045.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6046.     MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6047.     --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6048.     --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6049.     --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6050.     coroutine.resume(coroutine.create(function()
  6051.         for i = 0, 9 do
  6052. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6053. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6054. local at1 = Instance.new("Attachment",disr)
  6055. at1.Position = vt(-2,0,0)
  6056. local at2 = Instance.new("Attachment",disr)
  6057. at2.Position = vt(2,0,0)
  6058. local trl = Instance.new('Trail',disr)
  6059. trl.Attachment0 = at1
  6060. trl.FaceCamera = true
  6061. trl.Attachment1 = at2
  6062. trl.Texture = "rbxassetid://2342682798"
  6063. trl.LightEmission = 1
  6064. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6065. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6066. trl.Lifetime = 0.5
  6067. local bv = Instance.new("BodyVelocity")
  6068. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6069. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6070. bv.Parent = disr
  6071. local val = 0
  6072. coroutine.resume(coroutine.create(function()
  6073.     swait(30)
  6074.     for i = 0, 9 do
  6075.         swait()
  6076.         val = val + 0.1
  6077.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6078.     end
  6079. game:GetService("Debris"):AddItem(disr, 3)
  6080. end))
  6081. end
  6082. local eff = Instance.new("ParticleEmitter",dis)
  6083. eff.Texture = "rbxassetid://2273224484"
  6084. eff.LightEmission = 1
  6085. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6086. eff.Rate = 500000
  6087. eff.Lifetime = NumberRange.new(0.5,2)
  6088. 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)})
  6089. 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)})
  6090. eff.Speed = NumberRange.new(20,250)
  6091. eff.Drag = 5
  6092. eff.Rotation = NumberRange.new(-500,500)
  6093. eff.VelocitySpread = 9000
  6094. eff.RotSpeed = NumberRange.new(-50,50)
  6095. wait(0.25)
  6096. eff.Enabled = false
  6097. end))
  6098.     for i = 0, 9 do
  6099.         --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"))
  6100.     end
  6101. for i = 0, 19 do
  6102. --
  6103. end
  6104. coroutine.resume(coroutine.create(function()
  6105. for i = 0, 19 do
  6106. swait()
  6107. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6108. end
  6109. hum.CameraOffset = vt(0,0,0)
  6110. end))
  6111. dis.Anchored = true
  6112. dis.Transparency = 1
  6113. wait(8)
  6114. dis:Destroy()
  6115. end
  6116. end)
  6117. end))
  6118. rot = rot - 15
  6119. end
  6120. for i = 0,2,0.1 do
  6121. swait()
  6122. 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)
  6123. 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)
  6124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6125. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6126. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6128. end
  6129. attack = false
  6130. hum.WalkSpeed = storehumanoidWS
  6131. end
  6132.  
  6133. function RapidBurst()
  6134. attack = true
  6135. hum.WalkSpeed = 0
  6136. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6137. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6138. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6139. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6140. local keptcolor = MAINRUINCOLOR
  6141. for i = 0,8,0.1 do
  6142. swait()
  6143. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6144. --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())
  6145. 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)
  6146. 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)
  6147. 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)
  6148. 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)
  6149. 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)
  6150. 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)
  6151. 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)
  6152. end
  6153. for i = 0, 99 do
  6154. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6155. 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)))
  6156. local at1 = Instance.new("Attachment",dis)
  6157. at1.Position = vt(-25000,0,0)
  6158. local at2 = Instance.new("Attachment",dis)
  6159. at2.Position = vt(25000,0,0)
  6160. local trl = Instance.new('Trail',dis)
  6161. trl.Attachment0 = at1
  6162. trl.FaceCamera = true
  6163. trl.Attachment1 = at2
  6164. trl.Texture = "rbxassetid://1049219073"
  6165. trl.LightEmission = 1
  6166. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6167. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6168. trl.Lifetime = 5
  6169. local bv = Instance.new("BodyVelocity")
  6170. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6171. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6172. bv.Parent = dis
  6173. game:GetService("Debris"):AddItem(dis, 5)
  6174. end
  6175. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6176. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6177. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6178. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6179. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6180. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6181. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6182. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6183. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6184. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6185. hum.CameraOffset = vt(0,0,0)
  6186. for i = 0, 24 do
  6187. --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())
  6188. end
  6189. local distam = 0
  6190. coroutine.resume(coroutine.create(function()
  6191. for i = 0, 99 do
  6192.     wait()
  6193. distam = distam + 1
  6194. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6195. xa.Anchored = true
  6196. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6197. game:GetService("Debris"):AddItem(xa, 5)
  6198. for i = 0, 4 do
  6199. --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())
  6200. end
  6201. coroutine.resume(coroutine.create(function()
  6202. local eff = Instance.new("ParticleEmitter",xa)
  6203. eff.Texture = "rbxassetid://2273224484"
  6204. eff.LightEmission = 1
  6205. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6206. eff.Rate = 500000
  6207. eff.Lifetime = NumberRange.new(1,3)
  6208. 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)})
  6209. 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)})
  6210. eff.Speed = NumberRange.new(50,500)
  6211. eff.Drag = 5
  6212. eff.Rotation = NumberRange.new(-500,500)
  6213. eff.VelocitySpread = 9000
  6214. eff.RotSpeed = NumberRange.new(-50,50)
  6215. wait(0.25)
  6216. eff.Enabled = false
  6217. end))
  6218. coroutine.resume(coroutine.create(function()
  6219. for i = 0, 19 do
  6220. swait()
  6221. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6222. end
  6223. hum.CameraOffset = vt(0,0,0)
  6224. end))
  6225. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6226. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6227. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6228. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6229. end
  6230. end))
  6231. attack = false
  6232. hum.WalkSpeed = storehumanoidWS
  6233. end
  6234.  
  6235.  
  6236. function FallenOrbs()
  6237. attack = true
  6238. hum.WalkSpeed = 2
  6239. local keptcolor = MAINRUINCOLOR
  6240. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6241. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6242. local radm = math.random(1,3)
  6243. if radm == 1 then
  6244. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  6245. elseif radm == 2 then
  6246. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6247. elseif radm == 3 then
  6248. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6249. end
  6250. coroutine.resume(coroutine.create(function()
  6251. for i = 0, 29 do
  6252. swait(2)
  6253. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6254. dis.Anchored = true
  6255. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6256. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6257. CreateMesh(dis,"Sphere",2,2,2)
  6258. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6259. --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"))
  6260. coroutine.resume(coroutine.create(function()
  6261. wait(0.5)
  6262. dis.Anchored = false
  6263. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6264. local at1 = Instance.new("Attachment",dis)
  6265. at1.Position = vt(-1,0,0)
  6266. local at2 = Instance.new("Attachment",dis)
  6267. at2.Position = vt(1,0,0)
  6268. local trl = Instance.new('Trail',dis)
  6269. trl.Attachment0 = at1
  6270. trl.FaceCamera = true
  6271. trl.Attachment1 = at2
  6272. trl.Texture = "rbxassetid://1049219073"
  6273. trl.LightEmission = 1
  6274. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6275. trl.Color = ColorSequence.new(dis.Color)
  6276. trl.Lifetime = 0.6
  6277. local a = Instance.new("Part",workspace)
  6278.     a.Name = "Direction"   
  6279.     a.Anchored = true
  6280.     a.BrickColor = bc("Bright red")
  6281. a.Material = "Neon"
  6282. a.Transparency = 1
  6283.     a.CanCollide = false
  6284.     local ray = Ray.new(
  6285.         dis.CFrame.p,                           -- origin
  6286.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6287.     )
  6288.     local ignore = dis
  6289.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6290.     a.BottomSurface = 10
  6291.     a.TopSurface = 10
  6292.     local distance = (dis.CFrame.p - position).magnitude
  6293.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6294.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6295. dis.CFrame = a.CFrame
  6296. a:Destroy()
  6297. local bv = Instance.new("BodyVelocity")
  6298. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6299. bv.velocity = dis.CFrame.lookVector*500
  6300. bv.Parent = dis
  6301. game:GetService("Debris"):AddItem(dis, 5)
  6302. local hitted = false
  6303. coroutine.resume(coroutine.create(function()
  6304. dis.Touched:connect(function(hit)
  6305.     if hitted == false and hit.Parent ~= char then
  6306.     hitted = true
  6307.     CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6308.     MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6309.     --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6310.     --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6311.     coroutine.resume(coroutine.create(function()
  6312. for i = 0, 4 do
  6313. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6314. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6315. local at1 = Instance.new("Attachment",disr)
  6316. at1.Position = vt(-10,0,0)
  6317. local at2 = Instance.new("Attachment",disr)
  6318. at2.Position = vt(10,0,0)
  6319. local trl = Instance.new('Trail',disr)
  6320. trl.Attachment0 = at1
  6321. trl.FaceCamera = true
  6322. trl.Attachment1 = at2
  6323. trl.Texture = "rbxassetid://2342682798"
  6324. trl.LightEmission = 1
  6325. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6326. trl.Color = ColorSequence.new(disr.Color)
  6327. trl.Lifetime = 0.5
  6328. local bv = Instance.new("BodyVelocity")
  6329. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6330. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6331. bv.Parent = disr
  6332. local val = 0
  6333. coroutine.resume(coroutine.create(function()
  6334.     swait(30)
  6335.     for i = 0, 9 do
  6336.         swait()
  6337.         val = val + 0.1
  6338.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6339.     end
  6340. game:GetService("Debris"):AddItem(disr, 3)
  6341. end))
  6342. end
  6343. local eff = Instance.new("ParticleEmitter",dis)
  6344. eff.Texture = "rbxassetid://2273224484"
  6345. eff.LightEmission = 1
  6346. eff.Color = ColorSequence.new(dis.Color)
  6347. eff.Rate = 500000
  6348. eff.Lifetime = NumberRange.new(0.5,2)
  6349. 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)})
  6350. 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)})
  6351. eff.Speed = NumberRange.new(20,250)
  6352. eff.Drag = 5
  6353. eff.Rotation = NumberRange.new(-500,500)
  6354. eff.VelocitySpread = 9000
  6355. eff.RotSpeed = NumberRange.new(-50,50)
  6356. wait(0.5)
  6357. eff.Enabled = false
  6358. end))
  6359.     for i = 0, 4 do
  6360.         --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"))
  6361.     end
  6362. coroutine.resume(coroutine.create(function()
  6363. for i = 0, 19 do
  6364. swait()
  6365. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6366. end
  6367. hum.CameraOffset = vt(0,0,0)
  6368. end))
  6369. dis.Anchored = true
  6370. dis.Transparency = 1
  6371. wait(8)
  6372. dis:Destroy()
  6373. end
  6374. end)
  6375. end))
  6376. end))
  6377. end
  6378. end))
  6379. for i = 0,9,0.1 do
  6380. swait()
  6381. 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)
  6382. 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)
  6383. 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)
  6384. 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)
  6385. 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)
  6386. 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)
  6387. 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)
  6388. end
  6389. attack = false
  6390. hum.WalkSpeed = storehumanoidWS
  6391. end
  6392.  
  6393. function EquinoxOrbs()
  6394. hum.WalkSpeed = 0
  6395. attack = true
  6396. for i = 0,1,0.1 do
  6397. swait()
  6398.     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)
  6399. 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)
  6400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6402. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6403. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6404. end
  6405. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6406. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6407. for i = 0, 24 do
  6408.         --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"))
  6409. end
  6410. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6411. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6412. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6413. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6414. for i = 0,4,0.1 do
  6415. swait()
  6416. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6417. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6418. CreateMesh(dis,"Sphere",1,1,1)
  6419. dis.Anchored = true
  6420. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6421. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6422. CreateMesh(dis2,"Sphere",1,1,1)
  6423. dis2.Anchored = true
  6424. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6425. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6426. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6427. coroutine.resume(coroutine.create(function()
  6428.     swait(60)
  6429.     dis.Transparency = 1
  6430.     dis2.Transparency = 1
  6431. coroutine.resume(coroutine.create(function()
  6432. for i = 0, 19 do
  6433. swait()
  6434. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6435. end
  6436. hum.CameraOffset = vt(0,0,0)
  6437. end))
  6438. coroutine.resume(coroutine.create(function()
  6439. local eff = Instance.new("ParticleEmitter",dis)
  6440. eff.Texture = "rbxassetid://2273224484"
  6441. eff.LightEmission = 1
  6442. eff.Color = ColorSequence.new(dis.Color)
  6443. eff.Rate = 500000
  6444. eff.Lifetime = NumberRange.new(0.5,2)
  6445. 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)})
  6446. 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)})
  6447. eff.Speed = NumberRange.new(50,450)
  6448. eff.Drag = 5
  6449. eff.Rotation = NumberRange.new(-500,500)
  6450. eff.VelocitySpread = 9000
  6451. eff.RotSpeed = NumberRange.new(-50,50)
  6452. local eff2 = eff:Clone()
  6453. eff2.Parent = dis2
  6454. eff2.LightEmission = 0
  6455. eff2.Color = ColorSequence.new(dis2.Color)
  6456. wait(0.25)
  6457. eff.Enabled = false
  6458. eff2.Enabled = false
  6459. end))
  6460. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6461. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6462.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6463.     CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6464.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6465.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6466.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6467.     CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6468.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6469.     sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6470. end))
  6471. game:GetService("Debris"):AddItem(dis, 5)
  6472. game:GetService("Debris"):AddItem(dis2, 5)
  6473. 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)
  6474. 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)
  6475. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6476. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6477. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6478. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6479. end
  6480. attack = false
  6481. hum.WalkSpeed = storehumanoidWS
  6482. end
  6483. function FallenDEMISE()
  6484. attack = true
  6485. hum.WalkSpeed = 0
  6486. local keptcolor = MAINRUINCOLOR
  6487. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6488. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6489. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6490. for i = 0, 15, 0.1 do
  6491. swait()
  6492. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6493. 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)))
  6494. local at1 = Instance.new("Attachment",dis)
  6495. at1.Position = vt(-25000,0,0)
  6496. local at2 = Instance.new("Attachment",dis)
  6497. at2.Position = vt(25000,0,0)
  6498. local trl = Instance.new('Trail',dis)
  6499. trl.Attachment0 = at1
  6500. trl.FaceCamera = true
  6501. trl.Attachment1 = at2
  6502. trl.Texture = "rbxassetid://1049219073"
  6503. trl.LightEmission = 1
  6504. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6505. trl.Color = ColorSequence.new(dis.Color)
  6506. trl.Lifetime = 5
  6507. local bv = Instance.new("BodyVelocity")
  6508. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6509. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6510. bv.Parent = dis
  6511. game:GetService("Debris"):AddItem(dis, 1)
  6512. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6513. --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"))
  6514. --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"))
  6515. 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)
  6516. 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)
  6517. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6519. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6520. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6521. end
  6522. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6523. for i = 0, 30, 0.1 do
  6524. swait()
  6525. coroutine.resume(coroutine.create(function()
  6526. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6527. if v:FindFirstChild('Head') then
  6528. dmg(v)
  6529. end
  6530. end
  6531. end))
  6532. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6533. 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)))
  6534. local at1 = Instance.new("Attachment",dis)
  6535. at1.Position = vt(-50000,0,0)
  6536. local at2 = Instance.new("Attachment",dis)
  6537. at2.Position = vt(50000,0,0)
  6538. local trl = Instance.new('Trail',dis)
  6539. trl.Attachment0 = at1
  6540. trl.FaceCamera = true
  6541. trl.Attachment1 = at2
  6542. trl.Texture = "rbxassetid://1049219073"
  6543. trl.LightEmission = 1
  6544. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6545. trl.Color = ColorSequence.new(dis.Color)
  6546. trl.Lifetime = 10
  6547. local bv = Instance.new("BodyVelocity")
  6548. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6549. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6550. bv.Parent = dis
  6551. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6552. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6553. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6554. --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"))
  6555. --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"))
  6556. --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"))
  6557. --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"))
  6558. for i = 0, 2 do
  6559. --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)
  6560. end
  6561. 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)
  6562. 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)
  6563. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6565. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6566. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6567. end
  6568. attack = false
  6569. hum.WalkSpeed = storehumanoidWS
  6570. end
  6571. -------------------------------------
  6572.  
  6573. Humanoid.Animator.Parent = nil
  6574.  
  6575. -------------------------------------
  6576.  
  6577. local attacktype = 1
  6578. mouse.Button1Down:connect(function()
  6579.  if attack == false and attacktype == 1 then
  6580.    attacktype = 2
  6581.    attackone()
  6582.  elseif attack == false and attacktype == 2 then
  6583.    attacktype = 3
  6584.    attacktwo()
  6585.  elseif attack == false and attacktype == 3 then
  6586.    attacktype = 1
  6587.    attackthree()
  6588.  elseif attack == false and attacktype == 4 then
  6589.    attacktype = 1
  6590.    --attackfour()
  6591.  end
  6592. end)
  6593. mouse.KeyDown:connect(function(k)
  6594. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6595. --normalmog() ---Disabled due to crashing... only in VSB
  6596. ModeOfGlitch = 1
  6597. storehumanoidWS = 16
  6598. hum.WalkSpeed = 16
  6599. rainbowmode = false
  6600. chaosmode = false
  6601. newTheme("rbxassetid://614032233",48.6,1,1.25)
  6602. RecolorTextAndRename("Fei's May",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6603. MAINRUINCOLOR = BrickColor.new("Really red")
  6604. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6605. end
  6606. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6607. ModeOfGlitch = 2
  6608. storehumanoidWS = 16
  6609. hum.WalkSpeed = 16
  6610. rainbowmode = false
  6611. chaosmode = false
  6612. RecolorTextAndRename("Fei's Pure",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6613. newTheme("rbxassetid://1539245059",0,1,1.25)
  6614. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6615. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6616. end
  6617. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6618.               ModeOfGlitch = 3
  6619. storehumanoidWS = 16
  6620. hum.WalkSpeed = 16
  6621. rainbowmode = false
  6622. chaosmode = false
  6623. RecolorTextAndRename("Fei's Corrupt",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6624. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6625. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6626. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6627. end
  6628. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6629.               ModeOfGlitch = 4
  6630. storehumanoidWS = 16
  6631. hum.WalkSpeed = 16
  6632. rainbowmode = false
  6633. chaosmode = true
  6634. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6635. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  6636. MAINRUINCOLOR = BrickColor.new("Black")
  6637. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6638. end
  6639. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6640.               ModeOfGlitch = 5
  6641. storehumanoidWS = 16
  6642. hum.WalkSpeed = 16
  6643. rainbowmode = false
  6644. chaosmode = false
  6645. RecolorTextAndRename("Fei's Div",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6646. newTheme("rbxassetid://661079869",0,1.02,1.25)
  6647. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6648. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6649. end
  6650. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6651.               ModeOfGlitch = 6
  6652. storehumanoidWS = 100
  6653. hum.WalkSpeed = 100
  6654. rainbowmode = false
  6655. chaosmode = false
  6656. RecolorTextAndRename("Fei's Sadness",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6657. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  6658. MAINRUINCOLOR = BrickColor.new("White")
  6659. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6660. end
  6661. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6662.               ModeOfGlitch = 8
  6663. storehumanoidWS = 140
  6664. hum.WalkSpeed = 140
  6665. rainbowmode = false
  6666. chaosmode = false
  6667. RecolorTextAndRename("Fei's Destin",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6668. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6669. MAINRUINCOLOR = BrickColor.new("Alder")
  6670. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6671. end
  6672. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6673.               ModeOfGlitch = 9
  6674. storehumanoidWS = 150
  6675. hum.WalkSpeed = 150
  6676. rainbowmode = false
  6677. chaosmode = false
  6678. RecolorTextAndRename("Fei's Infest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6679. newTheme("rbxassetid://708334127",0,1.01,1.25)
  6680. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6681. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6682. end
  6683. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6684.               ModeOfGlitch = 8889
  6685. storehumanoidWS = 180
  6686. hum.WalkSpeed = 180
  6687. rainbowmode = false
  6688. chaosmode = false
  6689. RecolorTextAndRename("Fei's Calamity",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6690. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6691. MAINRUINCOLOR = BrickColor.new("Lilac")
  6692. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6693. end
  6694. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6695.               ModeOfGlitch = 55469696922
  6696. storehumanoidWS = 275
  6697. hum.WalkSpeed = 275
  6698. rainbowmode = false
  6699. chaosmode = false
  6700. RecolorTextAndRename("Fei's Nano",Color3.new(0.25,0,0.1),BrickColor.new("Realy pink").Color,"Antique")
  6701. newTheme("rbxassetid://582020393",0,1.005,1.25)
  6702. MAINRUINCOLOR = BrickColor.new("Realy pink")
  6703. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6704. end
  6705. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6706.               ModeOfGlitch = 4367677813
  6707. storehumanoidWS = 225
  6708. hum.WalkSpeed = 225
  6709. rainbowmode = false
  6710. chaosmode = false
  6711. RecolorTextAndRename("Fei's Bright",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6712. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6713. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6714. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6715. end
  6716. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6717.               ModeOfGlitch = 9999999921111
  6718. storehumanoidWS = 300
  6719. hum.WalkSpeed = 300
  6720. rainbowmode = false
  6721. chaosmode = false
  6722. RecolorTextAndRename("Fei's Omega,BrickColor.new("Really bluish green").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6723. newTheme("rbxassetid://643309199",0,1.01,1.25)
  6724. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6725. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really bluish green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6726. end
  6727. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6728.                ModeOfGlitch = 999999999556
  6729. storehumanoidWS = 500
  6730. hum.WalkSpeed = 500
  6731. rainbowmode = false
  6732. chaosmode = false
  6733. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6734. newTheme("rbxassetid://719008519",0,1.02,1.25)
  6735. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6736. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6737. end
  6738. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6739.                ModeOfGlitch = 1264532489
  6740. storehumanoidWS = 250
  6741. hum.WalkSpeed = 250
  6742. rainbowmode = false
  6743. chaosmode = false
  6744. RecolorTextAndRename("Fei's Fall",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6745. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  6746. MAINRUINCOLOR = BrickColor.new("Pastel green")
  6747. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6748. end
  6749. if k == "l" and mutedtog == false then
  6750. mutedtog = true
  6751. kan.Volume = 0
  6752. elseif k == "l" and mutedtog == true then
  6753. mutedtog = false
  6754. kan.Volume = 1.25
  6755. end
  6756. if k == "p" and toggleTag == false then
  6757. toggleTag = true
  6758. modet.TextTransparency = 0
  6759. modet.TextStrokeTransparency = 0
  6760. elseif k == "p" and toggleTag == true then
  6761. toggleTag = false
  6762. modet.TextTransparency = 1
  6763. modet.TextStrokeTransparency = 1
  6764. end
  6765. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6766. ExtinctiveHeartbreak()
  6767. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6768. HeavenlyDisk()
  6769. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6770. CorruptionEvent()
  6771. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6772. RapidBurst()
  6773. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6774. --DivineLights()
  6775. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6776. EquinoxOrbs()
  6777. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  6778. FallenOrbs()
  6779. end
  6780. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  6781. FallenDEMISE()
  6782. end
  6783. if k == "x" and attack == false and ModeOfGlitch == 1 then
  6784. EndGROUND()
  6785. end
  6786. end)
  6787.  
  6788. --[[coroutine.resume(coroutine.create(function()
  6789. while true do
  6790. swait(2)
  6791. if chaosmode == true then
  6792. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6793. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6794. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6795. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  6796. for i, v in pairs(mw1:GetChildren()) do
  6797. if v:IsA("Part") then
  6798. v.Transparency = 0.75
  6799. v.BrickColor = BrickColor.random()
  6800. v.Material = "Neon"
  6801. end
  6802. end
  6803. for i, v in pairs(m2:GetChildren()) do
  6804. if v:IsA("Part") then
  6805. v.BrickColor = BrickColor.random()
  6806. v.Material = "Neon"
  6807. end
  6808. end
  6809. end
  6810. end
  6811. end))]]--
  6812. Humanoid.Name = "STARGLITCHER"
  6813. Humanoid.MaxHealth = math.huge
  6814. Humanoid.Health = math.huge
  6815. Instance.new("ForceField",char).Visible = false
  6816.  
  6817. local bguis = Instance.new("BillboardGui",tors)
  6818. bguis.Size = UDim2.new(25, 0, 25, 0)
  6819. local imgca = Instance.new("ImageLabel",bguis)
  6820. imgca.BackgroundTransparency = 1
  6821. imgca.ImageTransparency = 1
  6822. imgca.Size = UDim2.new(1,0,1,0)
  6823. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  6824. imgca.ImageColor3 = Color3.new(0,0,0)
  6825.  
  6826. idleanim=.4
  6827. while true do
  6828. if mutedtog == false then
  6829. kan.Volume = currentVol
  6830. elseif mutedtog == true then
  6831. kan.Volume = 0
  6832. end
  6833. kan.PlaybackSpeed = currentPitch
  6834. kan.Pitch = currentPitch
  6835. kan.SoundId = currentThemePlaying
  6836. kan.Looped = true
  6837. kan.Parent = char
  6838. kan:Resume()
  6839. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  6840. imgca.ImageTransparency = 1
  6841. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  6842. imgca.ImageColor3 = MAINRUINCOLOR.Color
  6843. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  6844. end
  6845. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  6846. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  6847. coroutine.resume(coroutine.create(function()
  6848.     if chaosmode == true then
  6849. for i, v in pairs(mw1:GetChildren()) do
  6850. if v:IsA("Part") then
  6851. v.Transparency = 0
  6852. v.BrickColor = BrickColor.random()
  6853. v.Material = "Neon"
  6854. end
  6855. end
  6856. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6857. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6858. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6859.     RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  6860.     end
  6861. end))
  6862. if chaosmode == false then
  6863. modet.Position = UDim2.new(0,0,0,0)
  6864. modet.Rotation = -5 * math.cos(sine / 32)
  6865. techc.Rotation = techc.Rotation + 1
  6866. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  6867. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  6868. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  6869. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  6870. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  6871. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  6872. else
  6873.     techc.Rotation = techc.Rotation + 1
  6874. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  6875. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  6876. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  6877. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  6878. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  6879. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  6880. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  6881. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  6882. end
  6883. CameraManager()
  6884. swait()
  6885. 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)
  6886. 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)
  6887. 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)
  6888. 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)
  6889. 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)
  6890. 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)
  6891. 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)
  6892. 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)
  6893. 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)
  6894. 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)
  6895. 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)
  6896. 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)
  6897.  sine = sine + change
  6898. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6899. local velderp=RootPart.Velocity.y
  6900. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6901. if equipped==true or equipped==false then
  6902. if attack==false then
  6903. idle=idle+1
  6904. else
  6905. idle=0
  6906. end
  6907. if idle>=500 then
  6908. if attack==false then
  6909. --Sheath()
  6910. end
  6911. end
  6912. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6913. Anim="Jump"
  6914. if attack==false then
  6915. 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)
  6916. 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)
  6917. 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)
  6918. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6919. 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)
  6920. 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)
  6921. end
  6922. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6923. Anim="Fall"
  6924. if attack==false then
  6925. 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)
  6926. 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)
  6927. 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)
  6928. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  6929. 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)
  6930. 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)
  6931. end
  6932. elseif torvel<1 and hitfloor~=nil then
  6933. Anim="Idle"
  6934. if attack==false then
  6935. if ModeOfGlitch == 1 then
  6936. local snap = math.random(1,10)
  6937. if snap == 1 then
  6938. 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)
  6939. end
  6940. 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)
  6941. 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)
  6942. 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)
  6943. 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)
  6944. 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)
  6945. 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)
  6946. elseif ModeOfGlitch == 2 then
  6947. 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)
  6948. 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)
  6949. 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)
  6950. 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)
  6951. 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)
  6952. 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)
  6953. elseif ModeOfGlitch == 3 then
  6954. local snap = math.random(1,32)
  6955. if snap == 1 then
  6956. 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)
  6957. end
  6958. 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)
  6959. 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)
  6960. 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)
  6961. 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)
  6962. 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)
  6963. 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)
  6964. elseif ModeOfGlitch == 4 then
  6965. local snap = math.random(1,5)
  6966. if snap == 1 then
  6967. 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)
  6968. 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)
  6969. 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)
  6970. end
  6971. 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)
  6972. 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)
  6973. 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)
  6974. 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)
  6975. 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)
  6976. 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)
  6977. elseif ModeOfGlitch == 5 then
  6978. 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)
  6979. 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)
  6980. 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)
  6981. 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)
  6982. 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)
  6983. 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)
  6984. elseif ModeOfGlitch == 6 then
  6985. 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)
  6986. 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)
  6987. 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)
  6988. 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)
  6989. 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)
  6990. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine /