Universal Script πŸ“Œ
923 Views
2.9k Executions

Teleport behind tool script

Universal Script πŸ“Œ
MECHATRON
MECHATRONFirst script
7 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
MECHATRONUploader7 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
Script hub
178.8k
1.7M
Bumped 4 hours ago
Key System
Universal Script πŸ“Œ
9.1k
31.9k
Bumped 5 hours ago
Script hub
49.9k
12.4k
Bumped 6 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 10 hours ago
Key System
Script hub
20.7k
4.0k
Bumped 11 hours ago
Key System
Paid
Universal Script πŸ“Œ
753
231
Approved 17 hours ago
Universal Script πŸ“Œ
657
2.9k
Approved 17 hours ago