G General

Semicolon; Bidirectional Teleporter

Semicolon; Bidirectional Teleporter
Details
Features
Contents
Reviews

# Bidirectional Teleporter Script Instructions

## How to Use

### 1. Setup
- Place the script in both objects you want to link as teleporters.
- Set the **same `channel` value** in both scripts (e.g. `integer channel your choice;`).
- **Reset the script** after editing.

### 2. Linking Teleporters
- As the owner, **long click (>0.8s)** on the first teleporter to open the menu.
- Click **"Send location"** in the menu.
- Repeat the process on the second teleporter.
- Each teleporter should display: `Destination RECEIVED and updated: <vector>`

### 3. Changing Mode
- As the owner, long click to open menu.
- Select:
- **"Touch to teleport"**: teleport on click.
- **"Step to teleport"**: teleport when stepped on.

### 4. Teleporting
- Any user can:
- **Step on** the teleporter (if in step mode).
- **Click** the teleporter (if in touch mode).
- The owner can **quick click** to teleport (touch mode), **long click** (>0.8s) to open menu.

### 5. Delay/Anti-Spam
- After teleporting, the same user must wait a few seconds before teleporting again.

### 6. Troubleshooting
- If you see `Destination not set!`, make sure both teleporters have sent and received locations.
- If you change the channel or move a teleporter, use **"Send location"** again on both.

---

**Summary:**
- Script must be in both objects, same channel.
- Owner long click (>0.8s) opens menu.
- Use menu to link positions and configure mode.
- Quick click teleports (if enabled).
- Works for any avatar.