Skip to content
Saiko

firetouchinterest

Simulates a touch between two parts. Pass true or 0 to begin the contact and false or 1 to end it.

Signature

luau
firetouchinterest(part1: BasePart, part2: BasePart, toggle: boolean | number): ()

Parameters

part1BasePart

The part doing the touching.

part2BasePart

The part being touched.

toggleboolean | number

true / 0 starts contact, false / 1 ends it.

Returns

Nothing.

Note

Example

luau
local root = game.Players.LocalPlayer.Character.HumanoidRootPart
local pad = workspace.Pad

firetouchinterest(root, pad, 0) -- touch begins
task.wait()
firetouchinterest(root, pad, 1) -- touch ends