local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer -- Made by HUGEboss1 local gui = Instance.new("ScreenGui") gui.Name = "TeleportGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0, 200, 0, 50) button.Position = UDim2.new(0.5, -100, 0.8, 0) button.Text = "Teleport: OFF" button.BackgroundColor3 = Color3.fromRGB(200, 50, 50) button.TextColor3 = Color3.new(1, 1, 1) button.TextScaled = true button.Parent = gui -- Toggle state local running = false -- Teleport loop task.spawn(function() while true do if running then local character = player.Character or player.CharacterAdded:Wait() local root = character:WaitForChild("HumanoidRootPart") root.CFrame = CFrame.new(1350.26, 626.25, 529.72) end task.wait(0.2) end end) -- Button toggle button.MouseButton1Click:Connect(function() running = not running if running then button.Text = "Teleport: ON" button.BackgroundColor3 = Color3.fromRGB(50, 200, 50) else button.Text = "Teleport: OFF" button.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end) ---------------------------------------------------------------- -- DRAGGING LOGIC ---------------------------------------------------------------- local dragging = false local dragStart local startPos local function update(input) local delta = input.Position - dragStart button.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = button.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) button.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then update(input) end end)