SHARE
TWEET

guest

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