Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would you script a gui teleport?

I am making an elevator that when you click on a TextButton in a GUI, it will teleport you to another part. I've tried salvaging scripts from teleport pads, etc, but they either teleport everyone or just don't work. Can someone please help?

1 comment

1

Where is your attempt?

2 answers

✓ Accepted answer

Well, first you would make a local script in the text button. Then put this code into it.

char = game.Players.LocalPlayer.Character
destination = game.Workspace.ANYBRICKYOUWANTHERE

function teleporter()
char.Torso.Position = destination.Position + Vector3.new(0,5,0)
script.Parent.MouseButton1Click:connect(teleporter)

4 comments

0

Where's the end to your function?

0

I edited it a bit (changed Position to CFrame and added 'end') and finally got it working! Thanks for being helpful unlike SOME cough yumtaste cough

1

You know, you benefited little to none at all from him supplying you with the script. This site, is in no way for requesting scripts. You claim that you have made an attempt yet showed no evidence.

0

It's not a police interview, I understand what I should have done from this script and know for the future. Go and pull that rod out of your arse.

This is not a request site. Check the ROBLOX wiki, and if you have errors with your script, then you can repost and we will help you.

3 comments

0

I made a bad teleportation system myself for it. Thanks for your help [sarcasm.]

1

Well you should've posted your code first and given us the output and the hierarchy. This IS NOT A REQUEST SITE!

0

I set a community moderation on this question, anyone with 40+ reputation can vote on it, and I also reported his suggestive comment in the answer he accepted to site staff.

This discussion is preserved as it was. New answers, comments, and votes are closed.