place that inside serverscript service it will help littel
game.Players.PlayerAdded:Connect(function(p)
local add = Instance.new("Folder")
add.Name = "leaderstats"
add.Parent = p
local val = Instance.new("IntValue")
val.Name = "items"
val.Parent = add
end)
while true do
for i,v in pairs(game.Players:GetChildren()) do
if v:IsA("Player") then
back = v:WaitForChild("Backpack")
v.leaderstats.items.Value = #back:GetChildren()
wait()
end
end
wait()
end
How would I put this on a physical leaderboard though? I put in a custom playerlist thing, so it wonβt show up
Once I use the tool i have, the leaderboard will go down one number
Thanks again
UPDATE, i will just make you have a solution, the leaderstats works well, but please fix