Hi Guys, I have a problem with my leaderstats. I’m trying to create a folder inside of my player called leaderstats with all of the intvalues but it isin’t working it seems, here is the code:
game.Players.PlayerAdded:Connect(function()
local leaderstats = Instance.new("Folder")
leaderstats.Name = leaderstats
leaderstats.Parent = player
local Coins = Instance.new("IntValue")
Coins.Value = 0
Coins.Name = "Coins"
local prestige = Instance.new("IntValue")
prestige.Value = 0
prestige.Name = "Prestige"
end)
One problem that I identified is that there is a orange line under player in the script meaning that I haven’t referenced it but I thought you didn’t need to reference the player.