How to make bullet trails follow mouse position

Problem: I want the bullet trail to go to mouse position but instead it goes to random places

SCRIPT:

			bullettrail.Parent =  workspace
			bullettrail.Position = character:FindFirstChild("Right Arm").Position + Vector3.new(0, 1, 0)
			bullettrail.AssemblyLinearVelocity = (mouse.Hit.Position - bullettrail.Position).Unit * 300

I have no context (what is bullet trail? Not a Trail instance?) but I think what you’re looking for is the AlignPosition constraint. This lets you move something like a part or model to a specific position you can set in the code.

Edit:

Yeah this definitely looks like you’re looking for an AlignPosition. With an AlignPosition you can just set the position to where you want.