TouchedEvent of BasePart
There are members of the same name. See the disambiguation page.
RBXScriptSignal Touched ( BasePart otherPart )Parameters:
- Type: BasePart
Description: Fired when another object comes in contact with this object.
- This event does not fire if the part is being CFramed through something.
- Lots of objects (such as projectiles in weapons) have scripts that remove a part as soon as it hits something. This means that it is possible for the otherPart argument's Parent to be nil. Scripts that use the Touched event should check for this, otherwise they will break if they try to use members of otherPart's parent.
This code would print the name of any object touching the part:
Tutorials Used In