I have a tool thats named force grab and it really works in studio but when i try to play it just does not move anything and does not work this is the script holdRadius = 10 maxSelectRadius = 20

local position = Instance.new("BodyPosition") position.Name = "Pos" position.maxForce = Vector3.new(1000000,1000000,1000000)

local effect = script.Parent.Sparkles:clone()

local object = nil

function onButton1Down(mouse) if mouse.Target ~= nil then if (mouse.Target.Position - game.Players.LocalPlayer.Character.Head.Position).magnitude <= maxSelectRadius and not mouse.Target.Anchored then object = mouse.Target effect.Parent = mouse.Target position.Parent = object position.position = game.Players.LocalPlayer.Character.Head.Position + (mouse.Hit.p - game.Players.LocalPlayer.Character.Head.Position).unit * holdRadius down = true end end end

function onButton1Up(mouse) object = nil position.Parent = nil effect.Parent = nil down = false end

function onMove(mouse) if down then position.position = game.Players.LocalPlayer.Character.Head.Position + (mouse.Hit.p - game.Players.LocalPlayer.Character.Head.Position).unit * holdRadius end end

function onSelected(mouse) mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.Button1Up:connect(function() onButton1Up(mouse) end) mouse.Move:connect(function() onMove(mouse) end) end

script.Parent.Selected:connect(onSelected) script.Parent.Deselected:connect(onButton1Up) pls help