> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# firetouchinterest

Simulates a `.Touched` or `.TouchEnded` event between two `BasePart`s.

```luau theme={null}
firetouchinterest(part: BasePart, transmitter: BasePart, toggle: boolean | number): ()
```

`toggle` decides which signal fires. `0` or `true` raises `.Touched`, as if the parts just made contact. `1` or `false` raises `.TouchEnded`, as if they just separated.

## Parameters

| Parameter     | Type                | Description                                                  |
| ------------- | ------------------- | ------------------------------------------------------------ |
| `part`        | `BasePart`          | The first part in the simulated touch.                       |
| `transmitter` | `BasePart`          | The second part in the simulated touch.                      |
| `toggle`      | `boolean \| number` | `0` or `true` for touch start; `1` or `false` for touch end. |

## Returns

<code title="the function does not return a value.">void</code>

## Example

Tycoon games increment your cash when you step on the collector pad. Fire the touch from anywhere instead of walking back to it.

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  firetouchinterest(workspace.Part, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart, 0)
  =======
  -- firetouchinterest(part: BasePart, transmitter: BasePart, toggle: boolean | number): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local character = cloneref(game:GetService('Players')).LocalPlayer.Character

  -- the collector pad banks your cash on .Touched
  firetouchinterest(character.Head, workspace.Tycoon.Collector, 0)
  ```
</CodeGroup>

<Tip>
  Commonly used for collecting items instantly across the map without moving.
</Tip>
