SHARE
TWEET

Untitled

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