So I'm trying to do when my part hits a part it bounces back to the other way but it keeps erroring saying 14:34:46.706 - Workspace.Part.Script:7: attempt to compare number with userdata
Part = script.Parent BodyVelocity = Part.BodyVelocity Part.Touched:Connect(function(touch) if touch.Name == 'Part' then if BodyVelocity.Velocity > 0 then BodyVelocity.Velocity = Vector3.new(100) elseif BodyVelocity.Velocity< 0 then BodyVelocity.Velocity = Vector3.new(-100) end end end)