local player = game.Players.LocalPlayer local UIS = game:GetService("UserInputService") local targetPosition = Vector3.new(2033, 541, -1627) local enabled = false -- ss local gui = Instance.new("ScreenGui") gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0, 240, 0, 110) frame.Position = UDim2.new(0, 100, 0, 100) frame.BackgroundColor3 = Color3.fromRGB(25,25,25) frame.BorderSizePixel = 0 local corner = Instance.new("UICorner", frame) corner.CornerRadius = UDim.new(0, 10) -- ss local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, 0, 0, 30) title.Text = "Teleport Panel" title.TextColor3 = Color3.new(1,1,1) title.BackgroundTransparency = 1 title.Font = Enum.Font.GothamBold title.TextSize = 16 -- ss local button = Instance.new("TextButton", frame) button.Size = UDim2.new(1, -20, 0, 45) button.Position = UDim2.new(0, 10, 0, 45) button.Text = "TP: OFF" button.BackgroundColor3 = Color3.fromRGB(40,40,40) button.TextColor3 = Color3.new(1,1,1) button.Font = Enum.Font.GothamBold button.TextSize = 14 local btnCorner = Instance.new("UICorner", button) btnCorner.CornerRadius = UDim.new(0, 8) -- ss local dragging = false local dragInput, dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) UIS.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- ss button.MouseButton1Click:Connect(function() enabled = not enabled button.Text = enabled and "TP: ON" or "TP: OFF" button.BackgroundColor3 = enabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(40,40,40) end) -- Insert UIS.InputBegan:Connect(function(input, gp) if not gp and input.KeyCode == Enum.KeyCode.Insert then frame.Visible = not frame.Visible end end) -- ss local function teleportLoop(character) local root = character:WaitForChild("HumanoidRootPart") while character.Parent do if enabled then root.CFrame = CFrame.new(targetPosition) end task.wait(1) end end if player.Character then task.spawn(teleportLoop, player.Character) end player.CharacterAdded:Connect(function(char) task.spawn(teleportLoop, char) end)