firetouch
Alias of firetouchinterest.
Syntax
firetouch(origin: BasePart, target: BasePart, state: number) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
origin | BasePart | Part reported as the toucher. |
target | BasePart | Part whose Touched or TouchEnded connection should fire. |
state | number | 0 starts the touch, 1 ends it. |
Returns
No return value.
Description
This calls the same implementation as firetouchinterest. The target is temporarily overlapped with the origin and restored when state 1 is called.
Example
firetouch(player.Character.HumanoidRootPart, workspace.Coin, 0)
task.wait()
firetouch(player.Character.HumanoidRootPart, workspace.Coin, 1)
Notes
- Requires Hybrid Luau and a focused Roblox window.
- The state argument is mandatory.
- Call state 1 so the target part is not left displaced.