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

Teleport to place via Gui?

Asked by 7 years ago

I don't need code, but I would like to know how you can make a GUI teleport a player to another place through an interaction of some sort. It's probably simple, but I'm clueless.

1 answer

Log in to vote
0
Answered by 7 years ago

Whelp, here's what I can think of. I would put a TextButton on the screen and have on :OnClick() event in a local script (inside the TextButton) connect to a server side RemoteFunction and send the LocalPlayer's Humanoid to the server side script. Then the server side RemoteFunction would just teleport the player using the humanoid to the new wanted position. You could even send the new position from the localscript to the server script. The reason I would do it this way is to get around FilteringEnabled. If you aren't using FilteringEnbaled, then just use the same local script to teleport the humanoid to a different position.

Ad

Answer this question