Need help with leaderstats

So I was just trying to make leaderstats but Its not working can anyone please help me
leader

in your code you type:

Hobby.Value = leaderstats

How can a Value Base be an instance!?

Also you mean Hobby.Parent = leaderstats, and money.Parent = leaderstats instead

Edit:

Not a place for free code, but this is as basic a demonstration can get

@ImagineTyping

 local players = game:GetService("Players")

    players.PlayerAdded:Connect(function(player)
 
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
 
    local money = Instance.new("IntValue")
    money.Value = 0
 
    local Hobby = Instance.new("IntValue")
    Hobby.Value = 0

    Hobby.Parent = leaderstats
    money.Parent = leaderstats

    leaderstats.Parent =  player

end)

I myself use a different method but this works too

You have to parent the instance inside player not change the value, for example:

money.Parent = leaderstats

So what am I supposed to do or how do I change it?

So what am I supposed to do or how do I change it ?

Change the part I sent you here, inside of the code.

Thanks to of both you I really love the dev forums