local blacklisted = {}
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not table.find(blacklisted, player.UserId) then
table.insert(blacklisted, player.UserId)
-- reward the player
else
return
end
end
end)
EDIT: oh shoot i didnt read that you meant a certain point
Let me try this, I think it will solve my problem. I can give the reward before the blacklist and then the player won’t be able to keep on going back and forth. Thanks! I will let you know
Make it so they can only claim the reward once, for example have a “HasClaimed” value in the player. Make a localscript where you turn on/off collisions depending on the HasClaimed value.