Hi Developers,
Me and my brother have this game, but our leaderstat script is acting up. Like for others players you have 500k but you really have 0 or 100. So we decided were just going to turn off the leaderboard. So I have two questions.
2 Likes
Name the folder to something OTHER than “leaderstats”. For example, “Statistics”.
Use :GetPropertyChangedSignal("Value") to detect when the cash/point values are changed. For example: CashValue:GetPropertyChangedSignal("Value"):Connect(func) and replace “func” with an actual function that will update the text of the label to the value of the cash. So like CashLabel.Text = "$"..CashValue.Value
Hope this helps!
1 Like
How is naming “leaderstats” > “statistics” going to make it turn off. Or is this going to help it that other peiple don’t see 500k for other players?
1 Like
If you’re asking how to turn off the player list COMPLETELY, then you can make a LocalScript in StarterGui and put the code game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
Oh, okay thank you, do you know how to make a Leaderstat GUI?
1 Like
What do you mean? Are you saying you’ll like remake the entire player list?
No, I mean like: let’s say on the leaderboard you have 50 cash. I want a GUI that looks at the leaderstat data and shows the players money in the GUI, did I explain that good enough?
1 Like
I told you how to do this already in post #2.
Ok, so I would make the gui in put that in the child? Sorry, i’m such a bad scripter 
1 Like
You can make a ScreenGui in startergui and have a label in it saying “$0” and use GetPropertyChangedSignal() to detect when the cash/points are changed. Then you can update the label’s text accordingly.
1 Like
Yeah, make a label then put a localscript doing that.
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList false)
It’s showing red underlines under false this is ok right?
1 Like
Ah you forgot to put a comma before “false”.
Still red, Not sure why it’s doing that…
1 Like
Am I formatting it correctly? Or what?
1 Like
Oh is false not supposed to be on a different line?
1 Like
Just copy and paste this into a localscript in StarterGui:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
1 Like
No it’s not it should all be on one line
Oh I accidentally had two “((” thank you so much!
1 Like
I made a money GUI, and then I make a local script under it with the code you gave me above?
1 Like