I made two scripts that do the same thing. They both do not work. I only need one working.
Script 1:
Button = script.Parent.Frame.TextButton
Player = game.Players.LocalPlayer
Button.MouseButton1Down:connect(function()
Player.leaderstats.Money.Value = Player.leaderstats.Clicks.Value + 1
end)
I made a other script that was to do the same thing and its a localscript here it is
Script 2 (Localscript):
repeat
wait()
until game.Players.LocalPlayer:FindFirstChild("stats")~=nil
function addCash()
game.Players.LocalPlayer.stats.cash.Value=game.Players.LocalPlayer.stats.Clicks.Value+1
end
script.Parent.MouseButton1Down:connect(addCash)
You will wanna click view source to view the full script
