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?
How would you script a gui teleport?
2 answers
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
Where's the end to your function?
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
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.
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
I made a bad teleportation system myself for it. Thanks for your help [sarcasm.]
Well you should've posted your code first and given us the output and the hierarchy. This IS NOT A REQUEST SITE!
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.

1 comment
Where is your attempt?