fps viewer
Key RequiredUniversal

fps viewer

Universal Scriptbattybatbattybat 33.5K views 140 executesUpdated Jul 14, 2024
2.5/ 5(2 votes)
1150% Positive
Lua Script•34 lines (1673 chars)
-- GUI elemanlarını oluşturmak için kullanacağımız servisleri çağırıyoruz
local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")

-- GUI için ScreenGui objesi oluşturuyoruz
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FPSCounter" -- ScreenGui'nin adını ayarlıyoruz
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui") -- Oyuncunun ekran GUI'sine ekliyoruz

-- FPS değerini gösterecek metin kutusunu oluşturuyoruz
local fpsDisplay = Instance.new("TextLabel")
fpsDisplay.Name = "FPSDisplay" -- Metin kutusunun adını ayarlıyoruz
fpsDisplay.Size = UDim2.new(0, 100, 0, 20) -- Boyutunu ayarlıyoruz
fpsDisplay.Position = UDim2.new(0, 10, 0, 10) -- Konumunu ayarlıyoruz
fpsDisplay.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Arka plan rengini ayarlıyoruz
fpsDisplay.TextColor3 = Color3.fromRGB(255, 255, 255) -- Metin rengini ayarlıyoruz
fpsDisplay.TextSize = 18 -- Metin boyutunu ayarlıyoruz
fpsDisplay.Font = Enum.Font.SourceSans -- Kullanılacak fontu ayarlıyoruz
fpsDisplay.Text = "FPS: --" -- Başlangıç metnini ayarlıyoruz

-- Metin kutusunu ScreenGui içine ekliyoruz
fpsDisplay.Parent = screenGui

-- FPS değerini güncelleyecek olan işlevi tanımlıyoruz
local function updateFPS()
    local fps = 1 / game:GetService("RunService").RenderStepped:Wait() -- Mevcut FPS değerini hesaplıyoruz
    fpsDisplay.Text = string.format("FPS: %.2f", fps) -- Metin kutusunu güncelliyoruz
end

-- Her kare yenilemesinde FPS değerini güncellemek için bir döngü oluşturuyoruz
while true do
    updateFPS() -- FPS değerini güncelliyoruz
    wait(1) -- 1 saniye bekliyoruz (FPS değerini her saniye bir kez güncellemek için)
end

Features & Information

idk

Community Comments (4)

KaGa999KaGa999Jul 15, 2024(edited)

It's good but when I'm die it will disappear

battybatbattybatJul 15, 2024(edited)

kaga999 ok i will fix ty for comment

battybatbattybatJul 15, 2024(edited)

kaga999 or i cant its broked

notfynnnnotfynnnJun 19, 2025

chatgpt

More Scripts for Universal Scripts