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

Is it possible for leaderboard value to be words?

Is it possible for a leaderstats value to be words? The script works when I put numbers but when I put a string as the value the script doesn't react. Please help? Is there a way around this if it's not possible?

game:GetService('Players').PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
	local level = player.leaderstats.Level 
	if level.Value <= 0 then
		level.Value = "Fresh Meat"
	end
	end)
	end)

2 comments

0

Not as far as I know. You could put them into 'teams' based on level.

0

Actually, just looked it up and the wiki said you can.

1 answer

When the player joins, create the leaderstats, and put a StringValue inside the leaderstat. There is where you can have your words.

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