Teleport behind tool script
Key RequiredUniversal

Teleport behind tool script

Universal ScriptMECHATRONMECHATRON 858 views 2.4K executesUpdated Apr 22, 2026
2.5/ 5(2 votes)
1150% Positive
Lua Script•61 lines (1855 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- Create Tool
local tool = Instance.new("Tool")
tool.Name = "Teleport Behind"
tool.RequiresHandle = false
tool.Parent = player:WaitForChild("Backpack")

-- Cooldown
local cooldown = false
local cooldownTime = 1.2

-- Function to get nearest player
local function getNearestPlayer()
    local character = player.Character
    if not character or not character:FindFirstChild("HumanoidRootPart") then return nil end
    
    local root = character.HumanoidRootPart
    local nearest = nil
    local shortestDistance = math.huge

    for _, otherPlayer in pairs(Players:GetPlayers()) do
        if otherPlayer ~= player and otherPlayer.Character and otherPlayer.Character:FindFirstChild("HumanoidRootPart") then
            local otherRoot = otherPlayer.Character.HumanoidRootPart
            local distance = (root.Position - otherRoot.Position).Magnitude
            
            if distance < shortestDistance then
                shortestDistance = distance
                nearest = otherPlayer
            end
        end
    end

    return nearest
end

-- Tool activation
tool.Activated:Connect(function()
    if cooldown then return end
    cooldown = true

    local character = player.Character
    if not character or not character:FindFirstChild("HumanoidRootPart") then return end
    
    local target = getNearestPlayer()
    if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
        
        local targetRoot = target.Character.HumanoidRootPart
        local myRoot = character.HumanoidRootPart

        -- Position behind target
        local behindPosition = targetRoot.CFrame * CFrame.new(0, 0, 3)

        myRoot.CFrame = behindPosition
    end

    -- Cooldown
    task.wait(cooldownTime)
    cooldown = false
end)

Features & Information

1.2 cooldown; some games could got anticheat; DO NOT USE THE TOOL IF THERE'S ONE Teleport behind someone, by me
#Mechatron#Teleport behind tool#Tool#Teleport tool

Community Comments (1)

MECHATRONMECHATRONApr 26, 2026

Oye also if there's something doesn't work,don't do the dislike,tell me plz I don't Wana be broke😭🙏

More Scripts for Universal Scripts