To see your fps for roblox games
336

To see your fps for roblox games

Description

local RunService = game:GetService("RunService")

local player = game.Players.LocalPlayer

local gui = Instance.new("ScreenGui")

gui.Name = "FPSCounter"

gui.Parent = player:WaitForChild("PlayerGui")

local text = Instance.new("TextLabel")

text.Size = UDim2.new(0, 150, 0, 40)

text.Position = UDim2.new(0, 10, 0, 10)

text.BackgroundTransparency = 0.3

text.TextScaled = true

text.Text = "FPS: 0"

text.Parent = gui

local frames = 0

local last = tick()

RunService.RenderStepped:Connect(function()

frames += 1

if tick() - last >= 1 then

text.Text = "FPS: " .. frames

frames = 0

last = tick()

end

end)

Views
336
Likes
0
Dislikes
0
Posted
3w ago
Key System
No
Mobile
Not tested