Город МОСКОВСКИЙ
00:05:45

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

Аватар
Геймерские Секреты
Просмотры:
74
Дата загрузки:
29.10.2023 20:15
Длительность:
00:05:45
Категория:
Лайфстайл

Описание

If you want to hire me to make a game, go here: https://www.fiverr.com/undersaponjo/script-and-build-your-roblox-game
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

Рекомендуемые видео