M to tp
Key RequiredUniversal

M to tp

Universal ScriptDaniBoiiDaniBoii 9.3K views 71 executesUpdated Feb 3, 2024
Unrated
00
Lua Script•15 lines (536 chars)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local function teleportToMouse()
    local mouse = player:GetMouse()
    local targetPosition = mouse.Hit.p
    character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
end

game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
    if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.M then
        teleportToMouse()
    end
end)

Features & Information

m to tp

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts