--// ULTRA ANTI LAG V2 --// GUI RGB + IMAGEM + MINIMIZAR + FECHAR local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Stats = game:GetService("Stats") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer pcall(function() game.CoreGui:FindFirstChild("UltraLagOptimizer"):Destroy() end) local gui = Instance.new("ScreenGui") gui.Name = "UltraLagOptimizer" gui.Parent = game.CoreGui gui.ResetOnSpawn = false -- MAIN local main = Instance.new("Frame") main.Parent = gui main.Size = UDim2.new(0,350,0,420) main.Position = UDim2.new(0.35,0,0.2,0) main.BackgroundColor3 = Color3.fromRGB(15,15,15) main.BorderSizePixel = 0 main.Active = true main.Draggable = true Instance.new("UICorner",main).CornerRadius = UDim.new(0,16) local stroke = Instance.new("UIStroke") stroke.Parent = main stroke.Thickness = 2 task.spawn(function() while true do for i=0,255,2 do stroke.Color = Color3.fromHSV(i/255,1,1) task.wait() end end end) -- TOPO local top = Instance.new("Frame") top.Parent = main top.Size = UDim2.new(1,0,0,40) top.BackgroundTransparency = 1 local title = Instance.new("TextLabel") title.Parent = top title.Size = UDim2.new(0.7,0,1,0) title.BackgroundTransparency = 1 title.Text = "ULTRA ANTI LAG" title.Font = Enum.Font.GothamBold title.TextColor3 = Color3.new(1,1,1) title.TextSize = 22 -- BOTÃO MINIMIZAR local minimize = Instance.new("TextButton") minimize.Parent = top minimize.Size = UDim2.new(0,35,0,35) minimize.Position = UDim2.new(0.78,0,0.05,0) minimize.Text = "-" minimize.Font = Enum.Font.GothamBold minimize.TextSize = 24 minimize.TextColor3 = Color3.new(1,1,1) minimize.BackgroundColor3 = Color3.fromRGB(30,30,30) Instance.new("UICorner",minimize).CornerRadius = UDim.new(1,0) -- BOTÃO FECHAR local close = Instance.new("TextButton") close.Parent = top close.Size = UDim2.new(0,35,0,35) close.Position = UDim2.new(0.89,0,0.05,0) close.Text = "X" close.Font = Enum.Font.GothamBold close.TextSize = 18 close.TextColor3 = Color3.new(1,1,1) close.BackgroundColor3 = Color3.fromRGB(255,50,50) Instance.new("UICorner",close).CornerRadius = UDim.new(1,0) -- IMAGEM local image = Instance.new("ImageLabel") image.Parent = main image.Size = UDim2.new(0,300,0,140) image.Position = UDim2.new(0.07,0,0.12,0) image.BackgroundTransparency = 1 image.Image = "rbxassetid://11646943672" -- SUBSTITUA PELO ID DA SUA IMAGEM UPADA -- EXEMPLO: -- image.Image = "rbxassetid://123456789" Instance.new("UICorner",image).CornerRadius = UDim.new(0,14) -- BOTÕES local function createButton(text,posY) local btn = Instance.new("TextButton") btn.Parent = main btn.Size = UDim2.new(0,280,0,42) btn.Position = UDim2.new(0.1,0,0,posY) btn.BackgroundColor3 = Color3.fromRGB(25,25,25) btn.TextColor3 = Color3.new(1,1,1) btn.Font = Enum.Font.GothamSemibold btn.TextSize = 17 btn.Text = text btn.AutoButtonColor = false Instance.new("UICorner",btn).CornerRadius = UDim.new(0,12) local s = Instance.new("UIStroke") s.Parent = btn task.spawn(function() while btn.Parent do for i=0,255,3 do s.Color = Color3.fromHSV(i/255,1,1) task.wait() end end end) return btn end local antiON = createButton("ATIVAR ANTI LAG",210) local antiOFF = createButton("DESATIVAR ANTI LAG",265) local fpsPing = createButton("MOSTRAR FPS / PING",320) -- MINI ICON AO FECHAR local reopen = Instance.new("ImageButton") reopen.Parent = gui reopen.Size = UDim2.new(0,60,0,60) reopen.Position = UDim2.new(0.01,0,0.8,0) reopen.Visible = false reopen.BackgroundColor3 = Color3.fromRGB(20,20,20) reopen.Image = image.Image Instance.new("UICorner",reopen).CornerRadius = UDim.new(1,0) local rs = Instance.new("UIStroke") rs.Parent = reopen rs.Thickness = 2 task.spawn(function() while true do for i=0,255,2 do rs.Color = Color3.fromHSV(i/255,1,1) task.wait() end end end) -- FECHAR close.MouseButton1Click:Connect(function() main.Visible = false reopen.Visible = true end) -- REABRIR reopen.MouseButton1Click:Connect(function() main.Visible = true reopen.Visible = false end) -- MINIMIZAR local minimized = false minimize.MouseButton1Click:Connect(function() minimized = not minimized if minimized then TweenService:Create(main,TweenInfo.new(0.3),{ Size = UDim2.new(0,350,0,40) }):Play() image.Visible = false antiON.Visible = false antiOFF.Visible = false fpsPing.Visible = false else TweenService:Create(main,TweenInfo.new(0.3),{ Size = UDim2.new(0,350,0,420) }):Play() image.Visible = true antiON.Visible = true antiOFF.Visible = true fpsPing.Visible = true end end) -- ANTI LAG local function optimize() for _,v in pairs(workspace:GetDescendants()) do pcall(function() if v:IsA("BasePart") then v.Material = Enum.Material.Plastic v.Reflectance = 0 end if v:IsA("Texture") or v:IsA("Decal") then v:Destroy() end if v:IsA("ParticleEmitter") or v:IsA("Trail") or v:IsA("Smoke") or v:IsA("Fire") or v:IsA("Sparkles") then v.Enabled = false end end) end local lighting = game:GetService("Lighting") lighting.GlobalShadows = false lighting.FogEnd = 9e9 lighting.Brightness = 0 settings().Rendering.QualityLevel = Enum.QualityLevel.Level01 end local function restore() settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic game:GetService("Lighting").GlobalShadows = true end antiON.MouseButton1Click:Connect(optimize) antiOFF.MouseButton1Click:Connect(restore) -- FPS E PING local statsFrame = Instance.new("TextLabel") statsFrame.Parent = gui statsFrame.Size = UDim2.new(0,170,0,55) statsFrame.Position = UDim2.new(0.82,0,0.02,0) statsFrame.BackgroundColor3 = Color3.fromRGB(15,15,15) statsFrame.TextColor3 = Color3.new(1,1,1) statsFrame.Font = Enum.Font.GothamBold statsFrame.TextSize = 16 statsFrame.Visible = false statsFrame.BorderSizePixel = 0 Instance.new("UICorner",statsFrame).CornerRadius = UDim.new(0,12) local showing = false fpsPing.MouseButton1Click:Connect(function() showing = not showing statsFrame.Visible = showing end) local fps = 0 local last = tick() RunService.RenderStepped:Connect(function() fps += 1 if tick()-last >= 1 then local currentFPS = fps fps = 0 last = tick() local ping = math.floor(Stats.Network.ServerStatsItem["Data Ping"]:GetValue()) statsFrame.Text = "FPS: "..currentFPS.."\nPING: "..ping.." ms" end end) -- NOTIFICAÇÃO local notify = Instance.new("Frame") notify.Parent = gui notify.Size = UDim2.new(0,280,0,60) notify.Position = UDim2.new(-0.4,0,0.1,0) notify.BackgroundColor3 = Color3.fromRGB(20,20,20) Instance.new("UICorner",notify).CornerRadius = UDim.new(0,12) local ns = Instance.new("UIStroke") ns.Parent = notify ns.Color = Color3.fromRGB(0,255,120) local txt = Instance.new("TextLabel") txt.Parent = notify txt.Size = UDim2.new(1,0,1,0) txt.BackgroundTransparency = 1 txt.Text = "EXECUTADO COM SUCESSO\n@"..player.Name txt.Font = Enum.Font.GothamBold txt.TextColor3 = Color3.new(1,1,1) txt.TextSize = 16 TweenService:Create(notify,TweenInfo.new(0.5),{ Position = UDim2.new(0.02,0,0.1,0) }):Play() task.wait(4) TweenService:Create(notify,TweenInfo.new(0.5),{ Position = UDim2.new(-0.4,0,0.1,0) }):Play()