My leader stat script won’t work. I want it to display in the leader boards “Souls” and “Coins” So i made a script for that though it won’t work.
game.Players.PlayerAdded:Connect(function(player)
local stats = Instance.new("Folder")
stats.Name = "leaderstats"
stats.Parent = player
local souls = Instance.new("IntValue")
souls.name = "Souls"
souls.Value = 0
souls.Parent = stats
local coins = Instance.new("IntValue")
coins.name = "Coins"
coins.Value = 0
coins.Parent = stats
end)