game:GetService("UserInputService").InputBegan:Connect(function(p1, p2)
if p2 then
return;
end
if p1.KeyCode == Enum.KeyCode.Q then
if mouse.Target:FindFirstChild("Tele") then
local Obj = mouse.Target
local MoveBV = Instance.new("BodyVelocity", Obj)
MoveBV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
local LiftBV = Instance.new("BodyVelocity", Obj)
LiftBV.Velocity = Vector3.new(0,5,0) * 3
LiftBV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
while true do
wait()
MoveBV.Velocity = mouse.Hit.lookVector * 20
end
end
end
end)
And also it doesn't move when I'm not next to the object. Example: https://gyazo.com/8530a5a7de1356dab337a027b3aebaa6
