Universal Script 📌
656 Views
533 Executions

Telekenises

Universal Script 📌
pooschristian99
pooschristian99First script
10 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
2
0
1 hour ago
Key System
Script hub
272.2k
143.3k
Bumped 6 minutes ago
Key System
Script hub
182.0k
1.8M
Bumped 2 hours ago
Key System

Script hub

#18 this week

Verified script badgeAirflow HUB

Script hub
71.2k
235.0k
Bumped 2 hours ago
Key System
Script hub
91
7
2 hours ago
Universal Script 📌
25.0k
90.0k
Bumped 3 hours ago