I made this code that if a player clicks on a part they get five cash, how do I add that if the player has already clicked on the part once the second time they press it it doesn't award the player with money?
My Clickdetector event code:
workspace.MyClickDetectorEvent.OnServerEvent:connect(function(plr)
plr.leaderstats.Cash.Value = plr.leaderstats.Cash.Value + (5)
end)
Thank You and help is appreciated
