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

[SOLVED] Stop a Stat from showing in the Player List?

I made a script to add some Stats into my game, but I can't get it to work the way I want. I only want to display a Cash value, but my other value shows as well. Can someone help me?

Script

game.Players.PlayerAdded:connect(function(newPlayer)
	
	local Stats = Instance.new("Model", newPlayer)
	Stats.Name = "leaderstats"

	local Cash = Instance.new("IntValue", Stats)
	Cash.Name = "Cash"

	local isOwner = Instance.new("BoolValue", Stats)
	isOwner.Name = "isOwner"

end)

It displays like this, but I only want the Cash value to show up.

Cash = 0
isOwner = 0

1 answer

✓ Accepted answer

The way Roblox is set up, anything inside 'leaderstats' will show on the leaderboard. Therefore just parent your objects directly inside the player.

Instance.new("BoolValue", newPlayer)

1 comment

0

Thanks!

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