Teleport System (Beta)

Script Teleport System (Beta) 0.6

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Supported Skript Version
  1. 2.8
  2. 2.9
  3. 2.10
  4. 2.11
  5. 2.12
  6. 2.13
  7. 2.14
  8. 2.15
Supported Minecraft Versions
  1. 1.18
  2. 1.19
  3. 1.20
  4. 1.21
  5. 26.1
Requirements : Skript, Vault

About the Script:
This function handles a fully protected teleportation system with multiple safety checks.
It prevents unsafe teleports, movement exploits, combat escapes, and invalid locations.

⭐ Features:
- Blocks teleporting to unsafe Y levels (too low or too high).
- Prevents teleporting into lava or inside solid blocks.
- Ensures the ground below the destination is safe (not air).
- Cancels teleport if the player is riding a vehicle.
- Cancels teleport if the player moves during the countdown.
- Cancels teleport if the player takes damage.
- Prevents multiple teleports running at the same time.
- Applies cooldown after successful teleport.
- Deducts money only after the teleport succeeds.
- Aternos support.

- NEW : Supports custom prefixes to isolate variables for different teleport systems.

Installation:
Place the script inside: Skript/scripts

Usage:
Code:
TELEPORT_FUNC_tp(p: player, loc: location, locName: string, price: number, cooldown: number, tpTime: number, CancelOnMove: boolean, msgType: string, prefix: string = "TELEPORT_FUNC")
# p: The player who will be teleported.
# loc: The target location.
# locName: Display name of the teleport destination.
# price: Money required to teleport (0 = free).
# cooldown: Time before the player can teleport again.
# tpTime: Countdown duration before teleporting.
# CancelOnMove: If true, teleport cancels when the player moves.
# msgType: Message type ("chat", "actionbar", or "title").
# prefix — (New) Variable namespace used for cooldown and running-state tracking. If empty, the script automatically uses "TELEPORT_FUNC".

Examples:
Code:
TELEPORT_FUNC_tp(player, location(0, 65, 0, world("world")), "Spawn", 0, 0, 0, false, "chat")
# Teleports the player instantly to 0, 65, 0.
# No price, no cooldown, no countdown.
# Movement does NOT cancel the teleport.
# Messages are shown in chat.
# Uses the default prefix.
Code:
TELEPORT_FUNC_tp(player, location(150, 70, -40, world("world")), "Mine", 0, 10, 5, true, "actionbar", "")
# Teleports the player to the Mine after a 5-second countdown.
# Cooldown is 10 seconds after teleport.
# Movement cancels the teleport during countdown.
# Messages appear in the actionbar.
# Uses the default prefix.
Code:
TELEPORT_FUNC_tp(player, location(300, 80, 300, world("world")), "VIP Zone", 500, 20, 3, true, "title", "HOMES")
# Teleports the player to the VIP Zone for $500.
# Money is deducted ONLY after a successful teleport.
# 3-second countdown before teleport.
# Movement cancels the teleport.
# Cooldown is 20 seconds.
# Messages appear as a title/subtitle.
# Uses the "HOMES" prefix.
Code:
TELEPORT_FUNC_tp(player, {homes::%uuid of player%}, "Home", 0, 5, 4, true, "chat", "ANYTHING")
# Teleports the player to their saved home location.
# Free teleport with a 4-second countdown.
# Movement cancels the teleport.
# Cooldown is 5 seconds.
# Messages appear in chat.
# Uses the "ANYTHING" prefix.

Compatibility:
The script supports both Java and Bedrock players.

If you have any feedback or suggestions, I’d love to hear them so I can make it even better
Author
kouro
Downloads
15
Views
129
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. Teleport System - (Beta) 0.6

    Update Log: - Added Prefix Support The new version introduces a prefix argument in the teleport...