I wanted to make it so that when I click on the button, I have one value added to the leaderstats, but I failed Here is my code: local plr = game.Players.LocalPlayer
script.parent.MouseButton1click:Connect(function() plr.leaderstats.Clicks.Value = plr.leadestats.Clicks.Value +1 end)

9 comments
Where is the script located?
ServerScriptService
Your local script has to be in a TextButton. Not really sure but try to capitalize c (MouseButton1Click)
Put this script inside the textbutton and Capitalize the 'C' in MouseButton1Click.
It worked, but there was a new error "leadestats is not a valid member of Player"
You spelled it wrong. It's leadeRstats
plr.leaderstats.Clicks.Value +1
Thanks, it worked
Nice, I would appreciate it if you marked my answer as your solution. That way the thread will be closed and people won't get confused.