Syntax
firetouchinterest(partA: Instance, partB: Instance, state: 0 | 1 | boolean)Aliases
firetouchtransmitterArguments
| Name | Type | Description |
|---|---|---|
partA | Instance | First BasePart used in the touch simulation. |
partB | Instance | Second BasePart used in the touch simulation. |
state | 0 | 1 | boolean | Use 0 or false to begin touching; use 1 or true to end touching. |
Description
Simulates touch begin or touch end between two BasePart instances.
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
Begin and then end a touch interaction between two BaseParts.
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, 0)
task.wait()
firetouchinterest(rootPart, targetPart, 1)