How To Make 'Time Played' Leaderboard + GUI In Roblox Studio!

Опубликовано: 18 Июнь 2026
на канале: Liminal Space World
3,401
49

If you want to hire me to make a game, go here: https://www.fiverr.com/undersaponjo/s...
Script1:
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("IntValue", plr)
leaderstats.Name = "leaderstats"
local time_ = Instance.new("IntValue", leaderstats)
time_.Name = "Time"
time_.Value = 0
local Second = 1

while true do
wait(Second)
time_.Value += Second
end

end)

Script2:
local Player = game.Players.LocalPlayer

Player.leaderstats.Time.Changed:Connect(function()
script.Parent.Text = "Time: " .. Player.leaderstats.Time.Value
end)

#Roblox
#RobloxScripting