I have such a problem in this script when I click does not give me these points in leaderstats is that there is such an error: attempt to index local 'player' (a nil value) line 3 and here is the script:
script.Parent.MouseClick:Connect(function(Player)
Player = game.Players.LocalPlayer
Player.leaderstats.Strength.Value = Player.leaderstats.Strength.Value + 1
please help

3 comments
Is this script in a local script?
When you use .LocalPlayer the script has to be in a localscript
You don't need to define Player cause you already defined it, remove the 2nd line and it will work