firetouchinterest
Makes two parts start or stop touching, as the physics engine would report it.
Syntax
firetouchinterest(part: BasePart, other: BasePart, toggle: boolean | number) -> ()
Also available as
firetouchtransmitterfire_touch_interest
Parameters
| Parameter | Type | Description |
|---|---|---|
part | BasePart | The part that touches, usually a part of your character. |
other | BasePart | The part being touched. |
toggle | boolean or number | false or 0 to begin the touch, true or 1 to end it. |
Description
The engine raises Touched when a touch begins and TouchEnded when it ends, on both parts, and reports the touch to the server the same way a real collision is reported. Server scripts listening to Touched on other therefore receive it. Begin and end a touch as a pair, as a real contact would.
Example
local root = game.Players.LocalPlayer.Character.HumanoidRootPart
local pad = workspace.Checkpoint
firetouchinterest(root, pad, 0)
task.wait()
firetouchinterest(root, pad, 1)
Notes
- The server still applies its own checks, such as distance, to touches it receives.
These are Game executor contracts. Check build requirements and session lifetimes before using them.
