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.
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.
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)