0

# How do I access every players leaderstats in the game?

So I made a leaderstats script and I want to access it into another script is this possible here is my code.

game.Players.PlayerAdded:Connect(function(plr)
local ls = Instance.new("Folder")
ls.Parent = plr
local Levels = Instance.new("IntValue")
Levels.Parent = ls
Levels.Name = "Levels"
Levels.Value = 0
end)



0

In other script refer to it as a leaderstats for example:

Player:FindFirstChild("leaderstats")