Universal Script πŸ“Œ
897 Views
2.6k Executions

Teleport behind tool script

Universal Script πŸ“Œ
MECHATRON
MECHATRONFirst script
6 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

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

View Raw
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


Comments

1
Log in to join the conversation. Login
MECHATRON's profile picture
MECHATRONUploader6 months ago

Oye also if there's something doesn't work,don't do the dislike,tell me plz I don't Wana be brokeπŸ˜­πŸ™

1

Tags

More universal scripts

See all
Universal Script πŸ“Œ
37
7
Approved 1 hour ago
Universal Script πŸ“Œ
4.1k
185.5k
Bumped 8 hours ago
Script hub
792
53
10 hours ago
Universal Script πŸ“Œ
29.0k
674.0k
Bumped 11 hours ago
Script hub
14.1k
2.7k
Bumped 13 hours ago
Key System
Paid