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

How do you make a teleport to spawn gui?

Asked by 2 years ago

I want to make a GUI that has an image (image is the default spawn decal) so that when you click it you teleport to a brick I placed at the spawn, how do I make it? Also, I want it to work for both R6 and R15 if that's possible?

1 answer

Log in to vote
1
Answered by
Mr_Pure 129
2 years ago

If you're asking for a script, then good luck(nothing comes without a price), but if you're asking on how to do it then:

1.)Event listening for button1up on image

2.)Define player inside function(so you don't get a bug when you die)

3.)Check for Torso(R6) or HumanoidRootPart(R15)

4.)Move Torso or HumanoidRootPart accordingly to said position via CFrame or Vector3

0
Thank you very much you've been very helpful! Ghostinee 27 — 2y
0
Forgive me for asking again, but is it possible to make the teleport GUI work for both, R6 and R15 at the same time? Ghostinee 27 — 2y
Ad

Answer this question