Universal Script 📌
2.4k Views
135 Executions

TP Tool

Universal Script 📌
utemporary471
utemporary471Published 10
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

CTRL+left mouse click(LMC) = TP to mouse position

View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local mouse = player:GetMouse()

local function tryTeleportToMouse()
    local hitCFrame = mouse.Hit
    if not hitCFrame then return end

    if not mouse.Target then return end

    local targetPos = hitCFrame.p + Vector3.new(0, 2.5, 0)
    local character = player.Character
    if not character then return end
    local hrp = character:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    hrp.CFrame = CFrame.new(targetPos)
end

mouse.Button1Down:Connect(function()
    if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) or UserInputService:IsKeyDown(Enum.KeyCode.RightControl) then
        tryTeleportToMouse()
    end
end)


Comments

2
Log in to join the conversation. Login
deniselol's profile picture
deniselol11 months ago

skid

1
utemporary471's profile picture
utemporary471Uploader11 months ago

@deniselol skid or not, you probably still used the script

1

More universal scripts

See all
Universal Script 📌
4.0k
26.6k
4 months ago
Script hub
1.1k
28
4 days ago
Key System
Script hub
3.5M
1.0M
1 year ago
Key System
Script hub
2.7M
643.6k
4 months ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated