try print statement inside this script
also check whether the script is in server script service or server storage
Is this a local script or a server script?
Its a server scripts in server script service
It prints all the conditions but still no leaderboard
can you show the hierarchy with the script selected and property window
It does work for me when I copy paste your code…
What. It doesnt work for me tho it wont even show. Any Settings or anything?
archivable enabled but disabled is false
Alright, can you send a screenshot of the location of your script. And also the properties tab of your script.
Some times when testing in studio, if your the first player that joins when the server just got created(in test mode) the player added event doesn’t fire.
@it worked for me as well that’s why it would e helpful with screen shot
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
might help as the initial line or you haven’t committed the script. Some users have drafts enabled and you need to open the draft window sometimes.
Make sure that you don’t have multiple folders with the name “leadaerstats”
I have a way(kinda hacky)
Try this script in:
for _,player in pairs(game.Players:GetPlayers()) do
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("NumberValue")
cash.Name = "SoopCoins"
cash.Value = 10
cash.Parent = leaderstats
end
game.Players.PlayerAdded:Connect(function(player)
if not player:FindFirstChild("leaderstats") then
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("NumberValue")
cash.Name = "SoopCoins"
cash.Value = 10
cash.Parent = leaderstats
end
end)
I had a similar problem in my game a few days ago, however I am not sure if it will be applicable to you. Ima post this if incase you can identify your problem.
After like an hour of searching:
(These were the messages from my scripter, I am not sure where he found them-)
Also yes I just realized one of the person said that above^^ :Leaderstats not working - #18 by Operatik
Your script works perfectly fine, the must be another script that’s interfering with this. Try disabling all other scripts and turning one on at a time to see which ones causing the conflict. Send me the results afterwards. Also, do a test with all ServerScriptService scripts being disabled, except the leaderboard script.
I disabled all serverscriptservice scripts except leaderstats but still and error. here.rbxl (1.5 MB)
and here is the copy of the game
RE-ENABLE ALL SERVESCRIPTSERVICE SCRIPTS
Well, for one… you don’t have the default leaderboard GUI enabled so you won’t be able to access the leaderboard…
The Fix, simply enable it.
Then boom… it works!

Oh god It finally worked. Thank you so much