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

What is the script needed for Text Button Teleportation?

Hello,

Is anyone able to give me a script that will **teleport **said player to a different game by clicking on a text-button.

Thanks, Matt

2 answers

Even though this website is for helping I will make this for you.

local btn = script.Parent
local debounce = false
local plr = game.Players.LocalPlayer
local pos = Vector3.new(0,0,0) --edit here

btn.MouseButton1Down:connect(function()
	if debounce == false then
		debounce = true
		plr.Character.HumanoidRootPart:MoveTo(pos)
		wait(3)
		debounce = false
	end
end)

Hope I helped!

Function.

2 comments

0

He asked for teleporting to a place :P

0

as in a different game.

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