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)
The p has to be capitalized and the c in MouseButton1Click. And I made it MouseButton1Down so people on mobile can click it.
local plr = game.Players.LocalPlayer script.Parent.MouseButton1Down:Connect(function() plr.leaderstats.Clicks.Value = plr.leaderstats.Clicks.Value + 1 end)