My leaderboard was working perfectly when I first added the script, but now the stats don't show up. I haven't changed the script one bit.
local function onPlayerJoin(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Coin = Instance.New("IntValue")
Coin.Name = "Coins"
Coin.Value = 0
Coin.Parent = leaderstats
local Die = Instance.new("IntValue")
Die.Name = "Deaths"
Die.Value = 0
Die.Parent = leaderstats
local Insta = Instance.new("IntValue")
Kill.Name = "Kills"
Kill.Value = 0
Kill.Parent = leaderstats
local Wins = Instance.new("IntValue")
Wins.Name = "Wins"
Wins.Value = 0
Wins.Parent = leaderstats
end
game.Players.PlayerAdded:Connect(onPlayerJoin)
I don't even know where to start since I haven't changed the script.

1 comment
THANK YOU. The Kill/Insta is supposed to be that. it's funny how the one letter where I held shift made the whole script fail since it was the first value.