How to make a Teleport GUI In Roblox Studio

Опубликовано: 25 Июнь 2026
на канале: Mevo
23
1

The Script Is


-- Wait for the player and teleport destination to load
local player = game.Players.LocalPlayer
local button = script.Parent
local destination = workspace:WaitForChild("TeleportDestination") --- Change to Part Name

-- When the button is clicked, move the player's character
button.MouseButton1Click:Connect(function()
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")

-- Move the player to the destination part's position
rootPart.CFrame = destination.CFrame + Vector3.new(0, 3, 0) -- offset above the ground a bit
end)