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 7 years ago
Edited by Goulstem 7 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 — 7y
0
i did i think and it didnt work (srry im new at this) mikethezombiekiller1 5 — 7y
0
ROBLOX probably got confused about you overriding the variable, just ignore it. hiimgoodpack 2009 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

Rename "stats" to something else

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

This should work:

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

Answer this question