I want to make a script that only adds a stat to the player who clicked the part once and can't be clicked over and over again. Is there a way for it to be player specific and doesn't effect the entire servers ability to click it?
Here is the code I have:
script.Parent.ClickDetector.MouseClick:connect(function(player) local players = game.Players:FindFirstChild(player.Name) local stat = players:FindFirstChild("leaderstats")["Kirbies Found"] stat.Value = stat.Value + 1 end)

1 comment
Thanks!