-- Professional FPS Optimizer with Sleek UI local RunService = game:GetService("RunService") local Lighting = game:GetService("Lighting") local Players = game:GetService("Players") local StarterGui = game:GetService("StarterGui") local CoreGui = game:GetService("CoreGui") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local Stats = game:GetService("Stats") -- Configuration local MINIMIZED_SIZE = UDim2.new(0, 220, 0, 30) local EXPANDED_SIZE = UDim2.new(0, 240, 0, 210) -- Slightly wider for better spacing local EXTREME_MODE_ENABLED = false -- Color Scheme local COLORS = { Background = Color3.fromRGB(25, 25, 35), Card = Color3.fromRGB(40, 40, 55), TitleBar = Color3.fromRGB(30, 30, 45), Accent = Color3.fromRGB(0, 150, 255), Text = Color3.fromRGB(240, 240, 240), Success = Color3.fromRGB(50, 200, 100), Warning = Color3.fromRGB(255, 200, 50), Danger = Color3.fromRGB(230, 70, 70) } -- Notification function local function showNotification(title, text, duration) StarterGui:SetCore("SendNotification", { Title = title, Text = text, Duration = duration, Icon = "rbxassetid://6726571521" }) end -- Create main UI local screenGui = Instance.new("ScreenGui") screenGui.Name = "FPSOptimizerUI" screenGui.Parent = CoreGui screenGui.ResetOnSpawn = false -- Main container with enhanced styling local mainFrame = Instance.new("Frame") mainFrame.Size = EXPANDED_SIZE mainFrame.Position = UDim2.new(0.5, -120, 0, 10) mainFrame.BackgroundColor3 = COLORS.Card mainFrame.BackgroundTransparency = 0.35 -- Medium transparency mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui -- Enhanced corner rounding (more rounded) local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) -- Increased corner radius corner.Parent = mainFrame -- Subtle drop shadow for depth local shadow = Instance.new("ImageLabel") shadow.Name = "Shadow" shadow.Image = "rbxassetid://1316045217" shadow.ImageColor3 = Color3.new(0, 0, 0) shadow.ImageTransparency = 0.85 shadow.ScaleType = Enum.ScaleType.Slice shadow.SliceCenter = Rect.new(10, 10, 118, 118) shadow.Size = UDim2.new(1, 20, 1, 20) shadow.Position = UDim2.new(0, -10, 0, -10) shadow.BackgroundTransparency = 1 shadow.Parent = mainFrame shadow.ZIndex = -1 -- Title bar with matching transparency and rounded corners local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 30) titleBar.BackgroundColor3 = COLORS.TitleBar titleBar.BackgroundTransparency = 0.35 -- Matching transparency titleBar.BorderSizePixel = 0 titleBar.Parent = mainFrame titleBar.Name = "TitleBar" -- Title bar corner rounding local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 12) titleCorner.Parent = titleBar local title = Instance.new("TextLabel") title.Text = "FPS OPTIMIZER" title.Size = UDim2.new(0.7, 0, 1, 0) title.BackgroundTransparency = 1 title.TextColor3 = COLORS.Accent title.Font = Enum.Font.GothamBold title.TextSize = 16 title.Parent = titleBar -- Close button with professional styling local closeButton = Instance.new("ImageButton") closeButton.Image = "rbxassetid://3926305904" closeButton.ImageRectOffset = Vector2.new(924, 724) closeButton.ImageRectSize = Vector2.new(36, 36) closeButton.Size = UDim2.new(0, 22, 0, 22) closeButton.Position = UDim2.new(1, -28, 0.5, -11) closeButton.BackgroundTransparency = 1 closeButton.Parent = titleBar -- Minimize button with professional styling local minimizeButton = Instance.new("ImageButton") minimizeButton.Image = "rbxassetid://3926305904" minimizeButton.ImageRectOffset = Vector2.new(364, 364) minimizeButton.ImageRectSize = Vector2.new(36, 36) minimizeButton.Size = UDim2.new(0, 22, 0, 22) minimizeButton.Position = UDim2.new(1, -56, 0.5, -11) minimizeButton.BackgroundTransparency = 1 minimizeButton.Parent = titleBar -- Content frame local contentFrame = Instance.new("Frame") contentFrame.Size = UDim2.new(1, 0, 1, -30) contentFrame.Position = UDim2.new(0, 0, 0, 30) contentFrame.BackgroundTransparency = 1 contentFrame.Parent = mainFrame contentFrame.Name = "ContentFrame" -- Status indicators container local statusFrame = Instance.new("Frame") statusFrame.Size = UDim2.new(1, -20, 0, 90) statusFrame.Position = UDim2.new(0, 10, 0, 10) statusFrame.BackgroundTransparency = 1 statusFrame.Parent = contentFrame -- Create status rows with cleaner design local fpsValue, qualityValue, shadowsValue, pingValue local function createStatusRow(text, yPos) local row = Instance.new("Frame") row.Size = UDim2.new(1, 0, 0, 22) -- Slightly taller for better spacing row.Position = UDim2.new(0, 0, 0, yPos) row.BackgroundTransparency = 1 row.Parent = statusFrame local label = Instance.new("TextLabel") label.Text = text label.Size = UDim2.new(0.6, 0, 1, 0) label.BackgroundTransparency = 1 label.TextColor3 = COLORS.Text label.Font = Enum.Font.GothamMedium label.TextSize = 14 label.TextXAlignment = Enum.TextXAlignment.Left label.Parent = row local value = Instance.new("TextLabel") value.Name = "Value" value.Text = "---" value.Size = UDim2.new(0.4, 0, 1, 0) value.Position = UDim2.new(0.6, 0, 0, 0) value.BackgroundTransparency = 1 value.Font = Enum.Font.GothamBold value.TextSize = 14 value.TextXAlignment = Enum.TextXAlignment.Right value.Parent = row return value end -- Create status rows with increased vertical spacing fpsValue = createStatusRow("FPS:", 0) qualityValue = createStatusRow("QUALITY LEVEL:", 24) shadowsValue = createStatusRow("SHADOWS:", 48) pingValue = createStatusRow("PING:", 72) -- Set initial colors fpsValue.TextColor3 = COLORS.Success qualityValue.TextColor3 = COLORS.Text shadowsValue.TextColor3 = COLORS.Text pingValue.TextColor3 = COLORS.Success -- Divider for better visual separation local divider = Instance.new("Frame") divider.Size = UDim2.new(1, 0, 0, 1) divider.Position = UDim2.new(0, 0, 0, 100) divider.BackgroundColor3 = COLORS.Accent divider.BackgroundTransparency = 0.7 divider.BorderSizePixel = 0 divider.Parent = statusFrame -- Extreme Mode Toggle local extremeFrame = Instance.new("Frame") extremeFrame.Size = UDim2.new(1, -20, 0, 32) extremeFrame.Position = UDim2.new(0, 10, 0, 108) extremeFrame.BackgroundTransparency = 1 extremeFrame.Parent = contentFrame local extremeLabel = Instance.new("TextLabel") extremeLabel.Text = "EXTREME MODE:" extremeLabel.Size = UDim2.new(0.6, 0, 1, 0) extremeLabel.BackgroundTransparency = 1 extremeLabel.TextColor3 = COLORS.Text extremeLabel.Font = Enum.Font.GothamMedium extremeLabel.TextSize = 14 extremeLabel.TextXAlignment = Enum.TextXAlignment.Left extremeLabel.Parent = extremeFrame local extremeToggle = Instance.new("Frame") extremeToggle.Size = UDim2.new(0, 50, 0, 24) extremeToggle.Position = UDim2.new(0.6, 0, 0.5, -12) extremeToggle.BackgroundColor3 = COLORS.Danger extremeToggle.Parent = extremeFrame -- Toggle styling local toggleCorner = Instance.new("UICorner") toggleCorner.CornerRadius = UDim.new(1, 0) -- Fully rounded toggleCorner.Parent = extremeToggle local toggleSwitch = Instance.new("Frame") toggleSwitch.Size = UDim2.new(0, 20, 0, 20) toggleSwitch.Position = UDim2.new(0, 3, 0.5, -10) toggleSwitch.BackgroundColor3 = Color3.new(1, 1, 1) toggleSwitch.Parent = extremeToggle local switchCorner = Instance.new("UICorner") switchCorner.CornerRadius = UDim.new(1, 0) -- Circular switch switchCorner.Parent = toggleSwitch local toggleText = Instance.new("TextLabel") toggleText.Text = "OFF" toggleText.Size = UDim2.new(1, 0, 1, 0) toggleText.BackgroundTransparency = 1 toggleText.TextColor3 = Color3.new(1, 1, 1) toggleText.Font = Enum.Font.GothamBold toggleText.TextSize = 12 toggleText.Parent = extremeToggle -- UI Drag Functionality local dragging, dragInput, dragStart, startPos local function updateInput(input) local delta = input.Position - dragStart mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end titleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) titleBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then updateInput(input) end end) -- Minimize Functionality local isMinimized = false minimizeButton.MouseButton1Click:Connect(function() isMinimized = not isMinimized local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) if isMinimized then -- Minimize local tween = TweenService:Create(mainFrame, tweenInfo, {Size = MINIMIZED_SIZE}) tween:Play() contentFrame.Visible = false else -- Expand contentFrame.Visible = true local tween = TweenService:Create(mainFrame, tweenInfo, {Size = EXPANDED_SIZE}) tween:Play() end end) -- Close Functionality closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) -- Apply client-side optimizations settings().Rendering.QualityLevel = 1 Lighting.GlobalShadows = false Lighting.FogEnd = 100000 Lighting.Brightness = 1.0 -- Update UI with applied settings qualityValue.Text = tostring(settings().Rendering.QualityLevel) shadowsValue.Text = Lighting.GlobalShadows and "ON" or "OFF" shadowsValue.TextColor3 = Lighting.GlobalShadows and COLORS.Danger or COLORS.Success -- Character optimization local function optimizeCharacter(char) for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.CastShadow = false end end end if Players.LocalPlayer.Character then optimizeCharacter(Players.LocalPlayer.Character) end Players.LocalPlayer.CharacterAdded:Connect(optimizeCharacter) -- Extreme Mode Functionality local function applyExtremeMode() EXTREME_MODE_ENABLED = true -- Update toggle UI local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local tween = TweenService:Create(toggleSwitch, tweenInfo, {Position = UDim2.new(1, -23, 0.5, -10)}) tween:Play() task.wait(0.2) extremeToggle.BackgroundColor3 = COLORS.Success toggleText.Text = "ON" -- Remove textures from everything local function removeTextures(object) for _, child in ipairs(object:GetDescendants()) do if child:IsA("Decal") then child.Transparency = 1 elseif child:IsA("Texture") then child.Transparency = 1 elseif child:IsA("SurfaceAppearance") then child:Destroy() elseif child:IsA("BasePart") then child.Material = Enum.Material.Plastic child.Reflectance = 0 if child:IsA("MeshPart") then child.TextureID = "" end end end end -- Apply to workspace removeTextures(workspace) -- Apply to lighting removeTextures(Lighting) -- Apply to current characters for _, player in ipairs(Players:GetPlayers()) do if player.Character then removeTextures(player.Character) end end -- Apply to future characters Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) removeTextures(char) end) end) showNotification("EXTREME MODE", "All textures removed for max performance!", 5) end extremeToggle.MouseButton1Click:Connect(function() if not EXTREME_MODE_ENABLED then -- Show confirmation dialog local confirmFrame = Instance.new("Frame") confirmFrame.Size = UDim2.new(1, -40, 0, 120) -- Taller for better spacing confirmFrame.Position = UDim2.new(0, 20, 0.5, -60) confirmFrame.BackgroundColor3 = COLORS.Card confirmFrame.BackgroundTransparency = 0.35 confirmFrame.Parent = screenGui local confirmCorner = Instance.new("UICorner") confirmCorner.CornerRadius = UDim.new(0, 12) confirmCorner.Parent = confirmFrame local confirmShadow = Instance.new("ImageLabel") confirmShadow.Image = "rbxassetid://1316045217" confirmShadow.ImageColor3 = Color3.new(0, 0, 0) confirmShadow.ImageTransparency = 0.85 confirmShadow.ScaleType = Enum.ScaleType.Slice confirmShadow.SliceCenter = Rect.new(10, 10, 118, 118) confirmShadow.Size = UDim2.new(1, 20, 1, 20) confirmShadow.Position = UDim2.new(0, -10, 0, -10) confirmShadow.BackgroundTransparency = 1 confirmShadow.Parent = confirmFrame confirmShadow.ZIndex = -1 local confirmTitle = Instance.new("TextLabel") confirmTitle.Text = "CONFIRM EXTREME MODE" confirmTitle.Size = UDim2.new(1, 0, 0, 30) confirmTitle.BackgroundColor3 = COLORS.TitleBar confirmTitle.BackgroundTransparency = 0.35 confirmTitle.TextColor3 = COLORS.Text confirmTitle.Font = Enum.Font.GothamBold confirmTitle.TextSize = 16 confirmTitle.Parent = confirmFrame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 12) titleCorner.Parent = confirmTitle local confirmText = Instance.new("TextLabel") confirmText.Text = "This will remove ALL textures including characters!\n\nGame visuals will be simplified but FPS will significantly increase." confirmText.Size = UDim2.new(1, -20, 0.5, 0) confirmText.Position = UDim2.new(0, 10, 0, 35) confirmText.BackgroundTransparency = 1 confirmText.TextColor3 = COLORS.Text confirmText.Font = Enum.Font.Gotham confirmText.TextSize = 13 confirmText.TextWrapped = true confirmText.TextYAlignment = Enum.TextYAlignment.Top confirmText.Parent = confirmFrame local buttonContainer = Instance.new("Frame") buttonContainer.Size = UDim2.new(1, -20, 0, 30) buttonContainer.Position = UDim2.new(0, 10, 1, -40) buttonContainer.BackgroundTransparency = 1 buttonContainer.Parent = confirmFrame local yesButton = Instance.new("TextButton") yesButton.Text = "ENABLE" yesButton.Size = UDim2.new(0.45, 0, 1, 0) yesButton.Position = UDim2.new(0, 0, 0, 0) yesButton.BackgroundColor3 = COLORS.Success yesButton.TextColor3 = Color3.new(1, 1, 1) yesButton.Font = Enum.Font.GothamBold yesButton.TextSize = 14 yesButton.Parent = buttonContainer local yesCorner = Instance.new("UICorner") yesCorner.CornerRadius = UDim.new(0, 8) yesCorner.Parent = yesButton local noButton = Instance.new("TextButton") noButton.Text = "CANCEL" noButton.Size = UDim2.new(0.45, 0, 1, 0) noButton.Position = UDim2.new(0.55, 0, 0, 0) noButton.BackgroundColor3 = COLORS.Danger noButton.TextColor3 = Color3.new(1, 1, 1) noButton.Font = Enum.Font.GothamBold noButton.TextSize = 14 noButton.Parent = buttonContainer local noCorner = Instance.new("UICorner") noCorner.CornerRadius = UDim.new(0, 8) noCorner.Parent = noButton -- Button functionality yesButton.MouseButton1Click:Connect(function() applyExtremeMode() confirmFrame:Destroy() end) noButton.MouseButton1Click:Connect(function() confirmFrame:Destroy() end) end end) -- FPS Monitoring local function measureFPS() local frames = 0 local lastUpdate = os.clock() while true do frames = frames + 1 local currentTime = os.clock() if currentTime - lastUpdate >= 1 then local fps = math.floor(frames) -- Update UI fpsValue.Text = tostring(fps) fpsValue.TextColor3 = fps > 50 and COLORS.Success or fps > 30 and COLORS.Warning or COLORS.Danger frames = 0 lastUpdate = currentTime end RunService.RenderStepped:Wait() end end -- Ping Monitoring local function measurePing() while true do -- Get ping from Roblox stats local ping = 0 local success, result = pcall(function() return Stats.Network.ServerStatsItem["Data Ping"]:GetValue() end) if success then ping = math.floor(result) end -- Update UI pingValue.Text = tostring(ping) .. "ms" -- Color coding for ping pingValue.TextColor3 = ping < 100 and COLORS.Success -- Good: <100ms or ping < 250 and COLORS.Warning -- Fair: 100-250ms or COLORS.Danger -- Poor: >250ms task.wait(1) -- Update every second end end -- Start monitoring task.spawn(measureFPS) task.spawn(measurePing) -- Initial notifications showNotification("FPS OPTIMIZER", "Professional optimizations applied", 3) task.delay(1, function() showNotification("UI CONTROLS", "Drag, minimize, or close the panel", 3) end) print("Professional FPS Optimizer is running")