---
title: "Play time | Universal Roblox Script - ScriptBlox"
description: "Play time for any Roblox game: Just for fun"
canonical_url: "https://scriptblox.com/script/Universal-Script-Play-time-63991"
meta:
  "og:description": "Play time for any Roblox game: Just for fun"
  "og:image": "https://scriptblox.com/images/script/0-1762499964316.png"
  "og:title": "Play time | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Play time for any Roblox game: Just for fun"
  "twitter:image": "https://scriptblox.com/images/script/0-1762499964316.png"
  "twitter:title": "Play time | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1762499964316.png)

# **Play time**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![Goofy2427](https://scriptblox.com/images/user-default.webp) [Goofy2427](https://scriptblox.com/u/Goofy2427)First script**

1 year ago

[**Get an executor**](https://scriptblox.com/executors?kind=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](https://scriptblox.com/raw/Universal-Script-Play-time-63991)

```
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 **](https://scriptblox.com/login?redirect=/script/Universal-Script-Play-time-63991)

![DevexProjectSS's profile picture](https://scriptblox.com/images/photo/68f95b5b537a2b30addd4d4f-1761172595842.jpg)

[**DevexProjectSS**](https://scriptblox.com/u/DevexProjectSS)1 year ago

🤠

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Play-time-63991#script","url":"https://scriptblox.com/script/Universal-Script-Play-time-63991","name":"Play time","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Goofy2427","url":"https://scriptblox.com/u/Goofy2427"},"datePublished":"2025-11-07T07:19:24.329Z","image":"https://scriptblox.com/images/script/0-1762499964316.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Play-time-63991#webpage","@type":"WebPage","description":"Play time for any Roblox game: Just for fun","name":"Play time | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Play-time-63991","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Play-time-63991#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Play-time-63991#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Play-time-63991"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Play-time-63991#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Play time","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
