What I want to happen is once you touch an object, if you touch it again, it won’t do the same thing as when you first touched it.
Here’s the code
deb = {}
script.Parent.Torso.Touched:Connect(function(hit)
if hit.Parent == game.Workspace.Food and not table.find(deb, hit) then
print(hit)
print(hit.Weight)
print(hit.Worth)
Eat(hit)
table.insert(deb, hit)
print(deb)
elseif hit.Parent == game.Workspace.Food and table.find(deb, hit) then
warn(hit)
end
wait(0.1)
end)