Universal Script ๐Ÿ“Œ
659 Views
659 Executions

Telekenises

Universal Script ๐Ÿ“Œ
pooschristian99
pooschristian99First script
11 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

R to bring closer T to bring farther and Y to throw

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local lp = Players.LocalPlayer
local mouse = lp:GetMouse()
local camera = workspace.CurrentCamera

-- 1. Create the Tool
local tool = Instance.new("Tool")
tool.Name = "Telekinesis"
tool.RequiresHandle = false
tool.Parent = lp.Backpack

-- 2. Settings
local targetPart = nil
local att0, att1, ap, ao = nil, nil, nil, nil
local currentDistance = 20
local throwPower = 1000 

-- 3. Cleanup Function
local function release()
    if att0 then att0:Destroy() att0 = nil end
    if att1 then att1:Destroy() att1 = nil end
    if ap then ap:Destroy() ap = nil end
    if ao then ao:Destroy() ao = nil end
    targetPart = nil
end

tool.Deactivated:Connect(release)

tool.Activated:Connect(function()
    local target = mouse.Target
    if target and not target.Anchored and not target:IsDescendantOf(lp.Character) then
        targetPart = target
        -- Calculate initial distance based on where the part is right now
        currentDistance = (camera.CFrame.Position - target.Position).Magnitude
        
        -- Create Modern Physics Constraints
        att0 = Instance.new("Attachment", targetPart)
        att1 = Instance.new("Attachment", workspace.Terrain)


Comments

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

More universal scripts

See all
Script hub
198.9k
2.2M
Bumped 2 hours ago
Key System

Script hub

#23 this week

Verified script badgeAirflow HUB

Script hub
22.4k
4.4k
Bumped 5 hours ago
Key System
Paid
High Qualityย Offering
Script hub
3.6M
881.7k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeFlow Hub | 73 Games | Updated

Script hub
13.5k
25.4k
Bumped 7 hours ago
Script hub
193
362
Approved 7 hours ago
Script hub
2.0M
2.4M
Bumped 7 hours ago
Key System
Universal Script ๐Ÿ“Œ
125
41
Approved 8 hours ago
Paid