Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make touched event run once for each specific part?

It would be pretty broken if one hitbox inflicts multiple damage if it registers one part multiple times, whats the solution to this?

1 answer

You would have to get a table of all objects in the workspace and remove them from the table when they activate the Touched function, then make sure one of the conditions for damage to be taken is that the touched object must be present in the table.

This discussion is preserved as it was. New answers, comments, and votes are closed.