
336

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)
Tap a chip for community notes

99 Nights in the Forest 🔦

@LxWxDev

@Lsantas

Arsenal

Murder Duels

@Mur4Scripts
36 lines · 989 B
Comments
Join the discussion about this script.
No comments yet. Be the first to share your experience with this script.