Universal Script 📌
608 Views
25.2k Executions

Teleport tool

10K executions
Universal Script 📌
L1laqxz
L1laqxz10K executions
8 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

Teleport

View Raw
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

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

local maxDistance = 500

tool.Activated:Connect(function()
    local char = player.Character
    if not char then return end
    
    local root = char:FindFirstChild("HumanoidRootPart")
    if not root then return end
    
    local target = mouse.Hit.Position
    local distance = (root.Position - target).Magnitude
    
    if distance <= maxDistance then
        root.CFrame = CFrame.new(target + Vector3.new(0,3,0))
    else
        warn("Too far!")
    end
end)


Comments

1
Log in to join the conversation. Login
tan99's profile picture
tan998 months ago

s

1

More universal scripts

See all
Universal Script 📌
227
1.6k
Bumped 51 minutes ago
Key System
Script hub
158.1k
496.8k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.7k
4.2M
Bumped 3 hours ago
Script hub
51.0k
321.2k
Bumped 4 hours ago

Script hub

Nameless Admin

Script hub
176.9k
1.6M
Bumped 6 hours ago
Key System