Universal Script 📌
3.2k Views
2.4k Executions

Best Teleporting Script

Universal Script 📌
scripter132
scripter132Published 10
9 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

WHAT IT HAS M to tp to mouse (CLICK 2 TIMES CUS 1ST IS BYPASSING MOST ACS) Made by scripter123 Works in almost any game Not detected in these popular games: Slap battles Bedwars (Might tp u back if go too far) Doors Emergency response liberty county The strongest battle grounds

View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")

local targetPosition = nil
local teleporting = false

local function isPositionValid(position)
    local rayOrigin = position + Vector3.new(0, 5, 0)
    local rayDirection = Vector3.new(0, -10, 0)
    local raycastParams = RaycastParams.new()
    raycastParams.FilterDescendantsInstances = {workspace}
    raycastParams.FilterType = Enum.RaycastFilterType.Whitelist

    local raycastResult = workspace:Raycast(rayOrigin, rayDirection, raycastParams)
    return raycastResult and raycastResult.Instance ~= nil
end

local function moveToMouse()
    local mouse = LocalPlayer:GetMouse()
    targetPosition = mouse.Hit.Position

    if isPositionValid(targetPosition) then
        HumanoidRootPart.CFrame = CFrame.new(targetPosition)
        teleporting = true
    end
end

local function checkPosition()
    while teleporting do
        wait(0.1)
        if (HumanoidRootPart.Position - targetPosition).magnitude > 2 then
            if isPositionValid(targetPosition) then
                HumanoidRootPart.CFrame = CFrame.new(targetPosition)
            end
        else
            teleporting = false
        end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
3.8k
184.5k
Bumped 3 hours ago
Script hub
336
31
4 hours ago
Universal Script 📌
28.6k
663.4k
Bumped 5 hours ago
Script hub
13.7k
2.7k
Bumped 8 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.9k
9.5k
Bumped 9 hours ago
Universal Script 📌
610
38
Approved 9 hours ago
Universal Script 📌
645
36
Approved 9 hours ago