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

# firetouchinterest

> เรียกใช้ Real touch interest event สำหรับ BasePart instances สองค่า อาร์กิวเมนต์สองตัวแรกต้องเป็น Instance object และทั้งสองค่าต้องผ่าน IsA("BasePart") อาร์กิวเมนต์ state จำเป็นและต้องเป็น number หรือ boolean เมื่อ state เป็น number เฉพาะ 1 จะกลายเป็น true และ number อื่นทั้งหมดจะเป็น false เมื่อ state เป็น boolean ค่า boolean นั้นจะถูกส่งต่อ หาก part ใดไม่มี touch data หรือ part แรกไม่มี overlap reference function จะกลับโดยไม่เรียกใช้อะไร function นี้ไม่คืนค่าใดๆ ความหมาย begin/end ที่แน่นอนของ boolean ที่ส่งไปยัง helper คือ: Nicht aus der Codebasis verifizierbar.

<div className="real-function-page">
  ```lua theme={null}
  firetouchinterest(partA: Instance, partB: Instance, state: number | boolean)
  ```

  ## Aliases

  * `firetouchtransmitter`

  ## Arguments

  <ParamField path={"partA"} type={"Instance"} required>
    Instance object ตัวแรก ต้องผ่าน IsA("BasePart") touch data และ overlap reference ของค่านี้จะถูกใช้ใน call
  </ParamField>

  <ParamField path={"partB"} type={"Instance"} required>
    Instance object ตัวที่สอง ต้องผ่าน IsA("BasePart") touch data ของค่านี้จะถูกใช้ใน call
  </ParamField>

  <ParamField path={"state"} type={"number | boolean"} required>
    ค่า state ที่จำเป็น numbers จะถูกแปลงด้วย state == 1; booleans จะถูกส่งต่อโดยตรง
  </ParamField>

  ## ตัวอย่าง

  ส่งค่า BasePart สองค่าและค่า state ที่ระบุชัดเจนไปยัง firetouchinterest

  ```lua theme={null}
  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)
  ```
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.