Yuari
Documentation
Docs/Instances/firetouch

firetouch

Alias of firetouchinterest.

Syntax

firetouch(origin: BasePart, target: BasePart, state: number) -> nil

Parameters

ParameterTypeDescription
originBasePartPart reported as the toucher.
targetBasePartPart whose Touched or TouchEnded connection should fire.
statenumber0 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.