RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script inside a text lable that will show how long the game has been running."
-- local script inside the TextLabel local textLabel = script.Parent local startTime = os.time() while true do local currentTime = os.time() local elapsedTime = currentTime - startTime local hours = math.floor(elapsedTime / 3600) local minutes = math.floor((elapsedTime % 3600) / 60) local seconds = elapsedTime % 60 textLabel.Text = string.format("Game running for: %02d:%02d:%02d", hours, minutes, seconds) wait(1) end