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
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
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.
local TeleportService = game:GetService("TeleportService")
local LEVELIid = 408502340
script.Parent.MouseButton1Click:connect(function(player)
TeleportService:Teleport(LEVELid, player)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
He asked for teleporting to a place :P
as in a different game.