Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local teleportEnabled = false
local function toggleTeleport()
teleportEnabled = not teleportEnabled
if teleportEnabled then
print("Teleportation enabled")
else
print("Teleportation disabled")
end
end
local function teleportToMouse()
if teleportEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
local targetPosition = mouse.Hit.Position
player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
end
end
mouse.KeyDown:Connect(function(key)
if key:lower() == "f" then
teleportToMouse()
end
end)
game:().InputBegan:((input, gameProcessedEvent)
input.KeyCode == .KeyCode.Insert
()
)press insert to enable the code and press it again to disable it and then press f to teleport anywhere to your mouse position (prints out if its enabled or disabled when you press insert)

Universal