Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What is the problem? It says the Global "stats" is deprecated? (leaderboard)

Asked by 6 years ago
Edited by Goulstem 6 years ago
game.Players.PlayerAdded:connect(function(player)
    stats = Instance.new("IntValue",player)
    stats.Name = "Leaderstats"
end)
Edited ~ Format your code correctly!
2
make it local stats PolyyDev 214 — 6y
0
i did i think and it didnt work (srry im new at this) mikethezombiekiller1 5 — 6y
0
ROBLOX probably got confused about you overriding the variable, just ignore it. hiimgoodpack 2009 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

Rename "stats" to something else

Ad
Log in to vote
0
Answered by
welt101 12
6 years ago

This should work:

game.Players.PlayerAdded:connect(function(player)
    local stats = Instance.new("IntValue",player)
    stats.Name = "Leaderstats"
end)

Answer this question