local Taps = game.Players.LocalPlayer.leaderstats.Taps.Value + 1 local cd = false script.Parent.MouseButton1Click:Connect(function() if cd == false then cd = true Taps + 1 script.Parent.Sound:Play() script.Parent.Active = false wait(.05) script.Parent.Active = true cd = false end end)
Firstly, Taps
is defined as the current leaderstats.Taps.Value in client + 1. Secondly, you did Taps + 1
instead of Taps += 1
or Taps = Taps + 1
. Thirdly, change the value in the server instead of the client. Use remote events and server scripts to make the change visible to the server and to prevent complications.