Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i make a "teleport player to location" command?

Asked by 4 years ago

Trying to figure out how to send a specific player to a location by just saying a command like "!Teleport Bob to cage". Reason why im having trouble is that i know very little about chat commands/detectors and taking a specific player to a new location just makes the job harder for me. Any comment about this would be helpful.

0
:MoveTo() AndriusTheGreat 140 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

This wiki article actually covers just that kind of use case, friend.

https://developer.roblox.com/en-us/articles/Chat-Modules

As for teleporting on itself, you can try and set the Player's Character's HumanoidRootPart's CFrame to the CFrame of the destination, and keep a list of those in a dictionary or something.

Ad
Log in to vote
0
Answered by
Farsalis 369 Moderation Voter
4 years ago

Seems like you want the command in chat, and for chat to pickup on it. If so, go here: https://developer.roblox.com/en-us/articles/Lua-Chat-System

Answer this question