Instances

firetouchinterest

Fires Real's touch interest event for two BasePart instances.

Syntax

firetouchinterest(partA: Instance, partB: Instance, state: number | boolean)
Aliases firetouchtransmitter

Arguments

NameTypeDescription
partAInstanceFirst Instance object. It must pass IsA("BasePart"). Its touch data are used for the call.
partBInstanceSecond Instance object. It must pass IsA("BasePart"). Its touch data is used for the call.
statenumber | booleanRequired state value. Numbers are converted with state == 1; booleans are passed through. The resulting boolean is passed to the helper.

Description

Fires Real's touch interest event for two BasePart instances. The first two arguments must be Instance object and both values must pass IsA("BasePart"). The state argument is required and must be a number or boolean. When state is a number, only 1 becomes true and every other number becomes false. When state is a boolean, its boolean value is passed through. If either part has no touch data, or the first part has no overlap reference, the function returns without firing anything. The function returns nothing. The exact begin/end meaning of the boolean passed to the helper is: Nicht aus der Codebasis verifizierbar.

Call it with 3 parameter(s): partA, partB, state. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Fire touch interest with two BaseParts and an explicit state.

local players = game:GetService("Players")
local character = players.LocalPlayer.Character or players.LocalPlayer.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")
local targetPart = workspace.TouchTarget

firetouchinterest(rootPart, targetPart, true)