Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a text leaderboard?

Asked by
sssynk 58
5 years ago

I am already using teams, but I would like to have separate roles in the teams which would be shown on the leaderboard. I know it is most likely a problem with IntValue, as it only supports numbers, but I would like to display text on the leaderboard instead. How would I do that?

Code Below

-- Leaderboard Roles
local function onPlayerJoin(player)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player


    local role = Instance.new("IntValue")
    role.Name = "Role"
    role.Value = "Test"
    role.Parent = leaderstats
end

game.Players.PlayerAdded:Connect(onPlayerJoin)

2 answers

Log in to vote
0
Answered by
sssynk 58
5 years ago

Sorry, I just figured it out. It is a StringValue.

Ad
Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
5 years ago

You Know. Free reputation? I'll just post!

local Math = 2+2 equal fish
print(Math)

Answer this question