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

How to get rid of leaderstats in PlayerList?

Asked by 7 years ago

If I had a leaderstats with coins and points and I wanted to keep default roblox player list (I can't make my own) how would I get rid of the coins and points near their name on the player list.

I've seen some games do it

0
Its easy, Usally in the Player there is a Number or Int value, Remove this or change it to 0 Conmmander 479 — 7y
0
So you want it to show everyone else's coins and points, just not your own in the topbar? M39a9am3R 3210 — 7y
0
M39 I want only the play name and no coins or points XxSHjokerxX 18 — 7y

3 answers

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago

To get rid of the stats on the player list, yet still keep the player list, you can simply store the 'points' and 'coins' value somewhere else.


The way a leaderboard is constructed is when you have some sort of folder(this can be an actual folder object, or a Model, StringValue, IntValue, etc) named 'leaderstats' inside of the player. That folder should contain all of the stats present on the leaderboard.


By placing these stats somewhere else, such as inside the player, you remove it from the leaderboard gui. But note that you will need to reference the values from here as well.


So say you had a script that would award the player points.. because you moved the location of the actual 'points' value you're going to need to redefine where the 'points' stats are. This transition would looks something like this;

local points = game.Players.LocalPlayer.leaderstats.Points

to this;

local points = game.Players.LocalPlayer.Points
Ad
Log in to vote
0
Answered by 7 years ago

Put a new script into workspace. Edit it's contents to say:

game.Players.PlayerAdded:connect(function(player)
    player.leaderstats:Destroy()
end)

This should work perfectly. If I does not, let me know.

Log in to vote
-2
Answered by
korj5 0
7 years ago
game.StarterGui:SetCoreGuiEnabled("Health",false)

Make sure its local script!

0
This is not even close. Please remove your answer. MessorAdmin 598 — 7y

Answer this question