How to make a Gui Button can when you click it teleport you

How to make a GUIButton that can teleport when you click it. I really need this Thank you

2 Likes

local script in the button with this code

script.Parent.MouseButton1Click:Connect(function()
    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(5,5,5);
end);

5,5,5 would be the XYZ coordinates you want it to teleport to.

1 Like

Teleport to another game place or teleport to another spot(inside the game)?

inside the game not outside

Thanks viken it actually work

Yeah so next time remember you have google as an option.

Including a “Let me google that for you” like this is usually considered rude, so I won’t do it officially.

If you ever get stuck anymore on anything first remember to do your google research for faster response solutions to your issue. If it has not helped you solve your issue then you may ask on forums or send me a DM on discord at Viken#0243 . I’ll be sure to gladly assist.
Just wanted to point this out as it may occur multiple times and I might not be availible at that certain time.

Have a great day!! :slight_smile:

2 Likes