local/ local p = Instance.new("Part", workspace) p.Size = Vector3.new(10, 10, 10) p.Position = Vector3.new(0, 10, 0) local user = game.Players.LocalPlayer local mouse = user:GetMouse() local button1Down = false local t = tick() local selected = nil local x, y = mouse.X, mouse.Y function euclidean(x1, y1, x2, y2) return math.sqrt((x1 - x2)^2 + (y1 - y2)^2) end mouse.Button1Down:connect(function() if mouse.Target then selected = mouse.Target button1Down = true t = tick() x, y = mouse.X, mouse.Y end end) mouse.Button1Up:connect(function() if selected then button1Down = false local Force = (tick() - t) * euclidean(x, y, mouse.X, mouse.Y) selected.Position = selected.Position + Vector3.new(0, 1, 0) selected.Velocity = mouse.Hit.p/10 selected = nil print'a' end end) mouse.Move:connect(function() if button1Down then -- end end)