-- FPS Counter Mobile -- Contador visual no canto superior direito local RunService = game:GetService("RunService") local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- Evita duplicar o contador local old = playerGui:FindFirstChild("FPSCounter") if old then old:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "FPSCounter" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = playerGui local label = Instance.new("TextLabel") label.Name = "FPSLabel" label.Size = UDim2.new(0, 145, 0, 38) label.Position = UDim2.new(1, -155, 0, 12) label.BackgroundColor3 = Color3.fromRGB(20, 20, 20) label.BackgroundTransparency = 0.2 label.BorderSizePixel = 0 label.TextColor3 = Color3.fromRGB(0, 255, 100) label.TextSize = 18 label.Font = Enum.Font.GothamBold label.Text = "FPS: calculando..." label.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = label local frames = 0 local elapsed = 0 RunService.RenderStepped:Connect(function(dt) frames = frames + 1 elapsed = elapsed + dt if elapsed >= 0.5 then local fps = math.floor(frames / elapsed + 0.5) label.Text = "FPS: " .. fps if fps >= 50 then label.TextColor3 = Color3.fromRGB(0, 255, 100) elseif fps >= 30 then label.TextColor3 = Color3.fromRGB(255, 200, 0) else label.TextColor3 = Color3.fromRGB(255, 75, 75) end frames = 0 elapsed = 0 end end) print("FPS Counter ativado!")