alright so like my code works but it doesn’t pop up by the player list thing can anyone tell me why? This is my code
--//local
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderStats"
leaderstats.Parent = plr
local kills = Instance.new("IntValue", leaderstats)
kills.Name = "Kills"
end)
1 Like
MrMoled
(Finch)
May 18, 2021, 6:09pm
2
Roblox’s leaderstats are case sensitive. You should rename it from “leaderStats” to “leaderstats”
1 Like
I previously had it like that and ill try it again.
2 Likes
MrMoled
(Finch)
May 18, 2021, 6:10pm
4
Oh I just noticed the comment. Leaderstats won’t work due to you creating it on the Local Client. You would need to also create it on the server. Basically just change the script to server.
1 Like
This script must be a server script. Also it could be because in studio playerAdded doens’t work well.
1 Like
alr nvm Thanks that worked what a stupid mistake I made thanks for helping!
2 Likes
it is on the client i use local for organizing my local variables
i mean it is on the server sorry
1 Like