tutorial de como hacer un leaderboard

Поділитися
Вставка
  • Опубліковано 1 лип 2024
  • script para el leaderstats:
    game.Players.PlayerAdded:Connect(function(player)
    local leaderstats= Instance.new("Folder")
    leaderstats.Name= ("leaderstats")
    leaderstats.Parent= player
    local Money= Instance.new("IntValue")
    Money.Name= ("Money")
    Money.Parent = leaderstats
    Money.Value = 1000
    end)
    localscript para el leaderboard
    local player = game.Players.LocalPlayer
    local Money = player:waitForChild("leaderstats").Money
    while true do
    wait(0.0)
    script.Parent.Text = Money.Value
    end
    player:WaitForChild("Currency").Changed:Connect(function(val)
    script.Parent.Money.Text = "$"..val
    end)

КОМЕНТАРІ •