콘텐츠로 건너뛰기
작동 중

Universal Telekinesis

CLclarkdevlinorg797 조회수Universal2026년 7월 25일
공유
Universal Telekinesis

스크립트 코드

Lua
local Plrs = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RS = game:GetService("RunService")

local LP = Plrs.LocalPlayer
local Mouse = LP:GetMouse()
local Cam = workspace.CurrentCamera

-- main config
local REACH = 200 
local FORCE = 150    
local START_DIST = 15 

-- keybinds
local KEY_OUT = Enum.KeyCode.N  -- push object away
local KEY_IN = Enum.KeyCode.M   -- pull object closer
local SPEED = 0.5               -- distance adjustment speed

-- visual customization
local FILL_CLR = Color3.fromRGB(0, 255, 150) 
local LINE_CLR = Color3.fromRGB(255, 255, 255) 

local active = false
local part = nil
local bPos = nil
local bGyro = nil
local hl = nil
local dist = START_DIST

local function getRoot()
    return LP.Character and LP.Character:FindFirstChild("HumanoidRootPart")
end

local function getTarget()
    local t = Mouse.Target
    if not t then return nil end
    if LP.Character and t:IsDescendantOf(LP.Character) then return nil end
    if not t.Anchored then return t end
    return nil
end

local function drop()
    active = false
    if bPos then bPos:Destroy() end
    if bGyro then bGyro:Destroy() end
    if hl then hl:Destroy() end
    part = nil
    hl = nil
end

local function grab()
    local root = getRoot()
    local t = getTarget()
    if not root or not t then return end
    
    part = t
    active = true
    
    dist = (part.Position - root.Position).Magnitude
    if dist > REACH then dist = REACH end
    if dist < 5 then dist = START_DIST end
    
    bPos = Instance.new("BodyPosition")
    bPos.MaxForce = Vector3.new(1e5, 1e5, 1e5)
    bPos.P = 10000
    bPos.D = 500
    bPos.Position = part.Position
    bPos.Parent = part
    
    bGyro = Instance.new("BodyGyro")
    bGyro.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
    bGyro.P = 10000
    bGyro.CFrame = part.CFrame
    bGyro.Parent = part

    hl = Instance.new("Highlight")
    hl.Name = "G_HL"
    hl.FillColor = FILL_CLR
    hl.FillTransparency = 0.6
    hl.OutlineColor = LINE_CLR
    hl.OutlineTransparency = 0
    hl.Adornee = part
    hl.Parent = part
end

local function fling()
    if not active or not part then return end
    local v = Cam.CFrame.LookVector * FORCE
    local p = part
    drop() 
    p.Velocity = v
end

UIS.InputBegan:Connect(function(input, gpe)
    if gpe then return end
    if input.KeyCode == Enum.KeyCode.E then
        if active then drop() else grab() end
    elseif input.UserInputType == Enum.UserInputType.MouseButton1 and active then
        fling()
    end
end)

RS.RenderStepped:Connect(function()
    local root = getRoot()
    if active and part and bPos and bGyro and root then
        if UIS:IsKeyDown(KEY_OUT) then
            dist = math.clamp(dist + SPEED, 5, REACH)
        elseif UIS:IsKeyDown(KEY_IN) then
            dist = math.clamp(dist - SPEED, 5, REACH)
        end
        bPos.Position = root.Position + (Cam.CFrame.LookVector * dist)
        bGyro.CFrame = Cam.CFrame
    elseif active and not root then
        drop()
    end
end)
print("loaded, have fun")

설명

really fun and simple telekinesis script with no ui! you can throw bricks at people now! ## keybinds 1. E - grab/drop, 2. M1 (Click) - throw, 3. N/M - push/pull (by default) ## have fun lol

댓글 (0)

대화에 참여하려면 로그인하세요

  • 첫 댓글을 작성하세요.

자주 묻는 질문

Universal Telekinesis 스크립트는 어떻게 사용하나요?
위의 스크립트 코드를 복사하고 Roblox에서 Universal에 접속한 뒤, 익스큐터에 붙여넣고 실행하세요. 스크립트가 실행되면 기능이 바로 활성화됩니다.
Universal Telekinesis은(는) 아직 작동하나요?
네 — Universal Telekinesis은(는) 현재 작동 중으로 표시되어 있습니다(마지막 업데이트: 2026년 9월 17일). Roblox 업데이트 후 작동하지 않으면 새 버전을 기다려 주세요.
Universal Telekinesis에 호환되는 엑시큐터는?
이 스크립트는 대부분의 인기 Roblox 엑시큐터에서 작동합니다. 기기에 맞는 신뢰할 수 있는 무료 또는 유료 엑시큐터를 찾으려면 엑시큐터 페이지를 확인하세요.