Advertisement
feigum777

E

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