Hi! I’m really a noob, but I don’t know why my script isn’t working? (bare in mind I tried to make it myself, and didn’t follow a tutorial other than the one i watched about a week ago.) I’ve tried making the folder a model, and I’m kind of stuck here. I asked my friend as he said it should work. It just won’t show up in game, it even prints Leaderstats Creation Successful and there are no error messages. Any help please?
function onPlayerJoin(Player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("IntValue")
cash.Name = ("Cash")
cash.Value = 0
cash.Parent = leaderstats
end
game.Players.PlayerAdded:Connect(onPlayerJoin)
print ("Leaderstats Creation Successful")