LeaderStats Not showing up

so im new to coding and i made an script to add a leaderstat foulder and a numvalue to my player

heres t he script

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new(“Folder”)
leaderstats.Name = “leaderStats”
leaderstats.Parent = player

local kills = Instance.new("IntValue")
kills.Name = "Kills"
kills.Value = 5
kills.Parent = leaderstats


while true do
	task.wait(1)
	kills.Value = kills.Value + 1
end

end)

when i play test the game the value dpesnt show up on the leaderboard

image
but the player have the leaderstats folder and the stuff inside it is just not displaying it for some reason
image

1 Like

I think its the capital ‘S’ in leaderStats that your screenshot shows. Try changing the name to ‘leaderstats’ instead

2 Likes

thank you very much it worked, I didnt even notice the typo in the code lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.