Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I make a text leaderboard?

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

✓ Accepted answer

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

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.