Universal Script 📌
2.7k Views
484 Executions

Play time

Universal Script 📌
Goofy2427
Goofy2427First script
1 year 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

Just for fun

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TextService = game:GetService("TextService")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "PlayTimeGui"
screenGui.Parent = playerGui

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 60)
frame.Position = UDim2.new(0, 10, 0, 10)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.BorderSizePixel = 0
frame.Parent = screenGui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 8)
corner.Parent = frame

local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, 0, 1, 0)
label.BackgroundTransparency = 1
label.Text = "Play Time: 00:00:00"
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextScaled = true
label.Font = Enum.Font.Gotham
label.Parent = frame

local startTime = os.time()
local connection

local function updateTime()
    local currentTime = os.time()
    local elapsed = currentTime - startTime
    
    local hours = math.floor(elapsed / 3600)
    local minutes = math.floor((elapsed % 3600) / 60)


Comments

1
Log in to join the conversation. Login
DevexProjectSS's profile picture
DevexProjectSS1 year ago

🤠

1

Tags

More universal scripts

See all
Universal Script 📌
3.7k
184.5k
Bumped 2 hours ago
Script hub
263
23
3 hours ago
Universal Script 📌
28.5k
663.4k
Bumped 5 hours ago
Script hub
13.7k
2.7k
Bumped 7 hours ago
Key System
Paid
Script hub
263.5k
88.1k
Bumped 7 hours ago
Key System
Universal Script 📌
2.8k
9.4k
Bumped 8 hours ago
Universal Script 📌
545
37
Approved 8 hours ago
Universal Script 📌
571
33
Approved 8 hours ago