XSxriptX
(スクリプト)
May 17, 2024, 9:44pm
#1
[Theres more code but it’s unnecessary and like 900 lines]
players.PlayerAdded:Connect(function(plr)
local plrStats = Instance.new("Folder", plr)
plrStats.Name = "PlayerStats"
local publicStats = Instance.new("Folder", plr)
publicStats.Name = "leaderstats"
local Rolls = Instance.new("IntValue", publicStats)
Rolls.Name = "Rolls"
local Cash = Instance.new("IntValue", publicStats)
Cash.Name = "Cash"
local Gems = Instance.new("IntValue", publicStats)
Gems.Name = "Gems"
XSxriptX
(スクリプト)
May 17, 2024, 9:44pm
#2
only one random one shows up sometimes and sometimes all of them show up
They show up if they’re in a folder called “leaderstats” if that’s what you mean.
Note that the built in leaderboard can only hold 4 values. Make a custom leaderboard if necessary.
XSxriptX
(スクリプト)
May 17, 2024, 9:48pm
#4
theres three values. the code isn’t right and they are in a folder
[shown in `local plrStats = Instance.new(“Folder”, plr)
plrStats.Name = “PlayerStats”
local publicStats = Instance.new("Folder", plr)
publicStats.Name = "leaderstats"`
Did you assign values for each variable yet
XSxriptX
(スクリプト)
May 17, 2024, 9:53pm
#6
yes, I’ve also tried checking like every post, can’t fix it…
Can you screenshot the leaderstat folder from the server and client and the ingame leaderboard?
XSxriptX
(スクリプト)
May 18, 2024, 11:32am
#8
I can try give me a second
strangely enough it shows 3 but only 1 has all three???
XSxriptX
(スクリプト)
May 18, 2024, 11:33am
#9
now the thing is i see what the issue is but I can’t seem to fix it…
Why do u have 3 folders bruhhh…
XSxriptX
(スクリプト)
May 18, 2024, 11:34am
#11
basically it’s duplicating the folder 3 times but only one has all three
XSxriptX
(スクリプト)
May 18, 2024, 11:34am
#12
exactly what I’m trying to fix. this is breaking the system
[its like a 33.3333% chance u get all 3]
XSxriptX
(スクリプト)
May 18, 2024, 11:34am
#13
just to note before I added those to the script there was only one folder. I think something in the code caused the folder to be made three times dunno why tho
Obviously in the outer loop which you haven’t shown
XSxriptX
(スクリプト)
May 18, 2024, 11:36am
#15
whats that? I’m confused /?!?!?!?
XSxriptX
(スクリプト)
May 18, 2024, 11:36am
#16
i changed nothing to add the cash and gems value when there was only rolls value and nothing else
XSxriptX
(スクリプト)
May 18, 2024, 11:37am
#17
ok that made no sense lemme rephrase that
I changed only the lines shown originally in the post and nothing else [I added cash and gem value and the roll one was the only one never changed]
XSxriptX
(スクリプト)
May 18, 2024, 11:38am
#18
so basically the issue is nothing but the fact that there are 3 folders which break the leaderstats thats it
XSxriptX
(スクリプト)
May 18, 2024, 11:39am
#19
i may have fixed one of the folders too, let me check