Universal Script 📌
33.5k Views
228 Executions

fps viewer

Universal Script 📌
battybat
battybat1M views
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

idk

Updates

  1. Script edited: Create script

View Raw
-- 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



Comments

4
Log in to join the conversation. Login
notfynnn's profile picture
notfynnn2 years ago

chatgpt

1
battybat's profile picture
battybatUploader2 years ago(edited)

kaga999 or i cant its broked

1
battybat's profile picture
battybatUploader2 years ago(edited)

kaga999 ok i will fix ty for comment

1
KaGa999's profile picture
KaGa9992 years ago(edited)

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

1

More universal scripts

See all
Script hub
33.1k
298.1k
Bumped 40 minutes ago
Script hub
23.6k
5.2k
Bumped 40 minutes ago
Key System
Paid
High Quality Offering
Universal Script 📌
183
554
Bumped 1 hour ago
Universal Script 📌
1.6k
30.3k
Bumped 1 hour ago
Script hub
4.1M
558.5k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 4 hours ago