-- Button: Set Teleport Point local setTP = Instance.new("TextButton") setTP.Size = UDim2.new(0.85, 0, 0, 38) setTP.Position = UDim2.new(0.075, 0, 0, 115) setTP.BackgroundColor3 = Color3.fromRGB(255,255,255) setTP.Text = "Set Teleport Point" setTP.Font = Enum.Font.GothamBold setTP.TextSize = 15 setTP.TextColor3 = Color3.fromRGB(70, 90, 110) setTP.BorderSizePixel = 0 setTP.Parent = main Instance.new("UICorner", setTP).CornerRadius = UDim.new(0, 14) -- Button: Allow / Disallow local toggle = Instance.new("TextButton") toggle.Size = UDim2.new(0.85, 0, 0, 38) toggle.Position = UDim2.new(0.075, 0, 0, 160) toggle.BackgroundColor3 = Color3.fromRGB(255,255,255) toggle.Text = "Allow / Disallow" toggle.Font = Enum.Font.GothamBold toggle.TextSize = 15 toggle.TextColor3 = Color3.fromRGB(70, 90, 110) toggle.BorderSizePixel = 0 toggle.Parent = main Instance.new("UICorner", toggle).CornerRadius = UDim.new(0, 14) -- ====================== -- SCRIPT LOGIC -- ====================== -- Save teleport position setTP.MouseButton1Click:Connect(function() local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then teleportPoint = char.HumanoidRootPart.CFrame status.Text = "Teleport Point Set" end end) -- Toggle teleport toggle.MouseButton1Click:Connect(function() teleportEnabled = not teleportEnabled if teleportEnabled then status.Text = "Teleport Enabled" toggle.Text = "Disable" else status.Text = "Teleport Disabled" toggle.Text = "Allow / Disallow" end end) -- Example teleport usage (press G) game:GetService("UserInputService").InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.G then if teleportEnabled and teleportPoint then local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = teleportPoint status.Text = "Teleported" end end end end)