LineForce missing target

In a game where I have a ball to track the target with LineForce, it ends up just rubberbanding around the character after missing the target.

               local Attachment = Instance.new("Attachment", ball)
				Attachment.Name = "ForceAttachment"
				RP.Attachment0 = Attachment
                RP.Magnitude = 500

                local Attachment2 = Instance.new("Attachment", HRP)
				Attachment2.Name = "ForceAttachment2"
				RP.Attachment1 = Attachment2

Anyway to make it precisely track the player, even if the player moves?

  • If the constraint just isn’t working, you might be able to use an AlignPosition instead/in combination?

  • I’m not sure about how LineForces work or other constraints, but in the possibility that there’s an external problem, it would most likely be that the balls’ NetworkOwner is being changed.

You can see network ownership using the “AreOwnersShown” value in the developer console>DebugVisualizations