My leaderstats script:
game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("Folder")
stats.Name = "Stats"
stats.Parent = plr
local DR = Instance.new("IntValue")
DR.Name = "Dice Rolls"
DR.Parent = stats
end)
My leaderstats script:
game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("Folder")
stats.Name = "Stats"
stats.Parent = plr
local DR = Instance.new("IntValue")
DR.Name = "Dice Rolls"
DR.Parent = stats
end)
In order for the stats to show up on the leaderboard, the stats folder needs to actually be named "leaderstats" (must be all lowercase). Here's the corrected code:
game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("Folder")
stats.Name = "leaderstats"
stats.Parent = plr
local DR = Instance.new("IntValue")
DR.Name = "Dice Rolls"
DR.Parent = stats
end)
Hope this helps.
The name of the stats must be "leaderstats":
game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("Folder")
stats.Name = "leaderstats"
stats.Parent = plr
local DR = Instance.new("IntValue")
DR.Name = "Dice Rolls"
DR.Parent = stats
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you!