game.Players.PlayerAdded:connect(function(player)
stats = Instance.new("IntValue",player)
stats.Name = "Leaderstats"
end)
######Edited ~ Format your code correctly!
game.Players.PlayerAdded:connect(function(player)
stats = Instance.new("IntValue",player)
stats.Name = "Leaderstats"
end)
######Edited ~ Format your code correctly!
Rename "stats" to something else
This should work:
game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue",player)
stats.Name = "Leaderstats"
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
make it local stats
i did i think and it didnt work (srry im new at this)
ROBLOX probably got confused about you overriding the variable, just ignore it.