Player Group Teleporter

Hello there!
I’m not very familiar with scripting things that are associated with the player, but I am trying to script a teleporter pad that does the following when a player steps on it:

  1. Checks if the player is in a certain group. If yes, it brings up a teleporter GUI. If not, it tells them to join the group in order to use the teleporter.

  2. The GUI list on the teleporter shows different areas that players can teleport to, and when they select a button, it teleports them to that assigned teleporter.

  3. Teleport cooldown (debounce) until they can use the teleporter again.

These are the basics of what I would like to make. Very similar to the Insta-travel pads in Innovation Labs. How would I go about creating this? I appreciate any and all help you can give. Thanks so much!

I’m not sure what you mean by group, but to bring up a GUI, you could have a script on the teleporter that fires a remote event to the client to show the GUI. When the client press a certain button, fire a remote event telling the server which teleporter they want to teleport to. Then, the server changes the CFrame of the player to the desired location. I’m not sure about the debounce.

1 Like

To check if a player is in a certain group, you can use player:GetRankInGroup. For the actual teleportation, you can use what @Pokemoncraft5290 said above.

1 Like

Thanks to you both! I appreciate the help.

1 Like