Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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
	ls.Name = "leaderstats"
	local Levels = Instance.new("IntValue")
	Levels.Parent = ls
	Levels.Name = "Levels"
	Levels.Value = 0
end)

1 answer

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

Player:FindFirstChild("leaderstats")

This discussion is preserved as it was. New answers, comments, and votes are closed.