ReferenceInstances

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

ParameterTypeDescription
partBasePartThe part that touches, usually a part of your character.
otherBasePartThe part being touched.
toggleboolean or numberfalse 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

These are Game executor contracts. Check build requirements and session lifetimes before using them.