script tp CFrame
Key RequiredUniversal

script tp CFrame

Universal Scriptgiabaoscriptbloxgiabaoscriptblox 488 views 301 executesUpdated Apr 6, 2026
Unrated
00
Lua Script•41 lines (1349 chars)
--[[
    Script: tp CFrame
    Description: Dịch chuyển tức thời đến vị trí chuột trỏ bằng CFrame.
    Tương thích: Xeno, Solara, và các Executor khác.
--]]

local Players = game:GetService("Players")
local lp = Players.LocalPlayer
local mouse = lp:GetMouse()

-- Kiểm tra và dọn dẹp Tool cũ nếu có để tránh trùng lặp
if lp.Backpack:FindFirstChild("tp CFrame") then
    lp.Backpack["tp CFrame"]:Destroy()
end

-- Khởi tạo Tool
local tool = Instance.new("Tool")
tool.Name = "tp CFrame"
tool.RequiresHandle = false -- Không cần cầm vật phẩm, nhấn là dùng luôn
tool.Parent = lp.Backpack

-- Logic xử lý khi nhấn (Click chuột khi đang cầm tool)
tool.Activated:Connect(function()
    local char = lp.Character
    local hrp = char and char:FindFirstChild("HumanoidRootPart")
    
    if hrp and mouse.Hit then
        -- Dịch chuyển bằng CFrame (vị trí chuột + 3 đơn vị chiều cao để tránh kẹt sàn)
        local targetPosition = mouse.Hit.p + Vector3.new(0, 3, 0)
        
        -- Thực hiện dịch chuyển trong 1 khung hình duy nhất
        hrp.CFrame = CFrame.new(targetPosition) * hrp.CFrame.Rotation
    end
end)

-- Hiển thị thông báo nhỏ ở góc màn hình (Hệ thống mặc định của Roblox)
game:GetService("StarterGui"):SetCore("SendNotification", {
    Title = "Script Loaded",
    Text = "Tool 'tp CFrame' đã được thêm vào túi đồ!",
    Duration = 3
})

Features & Information

you can tp
#script tp CFrame so OP

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts