daily pastebin goal
91%
SHARE
TWEET

Untitled

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