-- local targetPosition = Vector3.new(-74, 328, -1184) local teleporting = false -- local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") -- local screenGui = Instance.new("ScreenGui", game.CoreGui) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 200, 0, 50) button.Position = UDim2.new(0, 20, 0, 20) button.Text = "Start Teleport" button.BackgroundColor3 = Color3.fromRGB(0, 170, 255) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Font = Enum.Font.SourceSansBold button.TextSize = 24 button.Parent = screenGui -- button.MouseButton1Click:Connect(function() teleporting = not teleporting button.Text = teleporting and "Stop Teleport" or "Start Teleport" end) -- task.spawn(function() while true do if teleporting then -- character = player.Character or player.CharacterAdded:Wait() hrp = character:FindFirstChild("HumanoidRootPart") if hrp then hrp.CFrame = CFrame.new(targetPosition) end end wait(0.1) end end)