Lineforce not working?

when the player touches the part, i try to pull the player towards the part using a lineforce.
but for some reason the lineforce doesn’t do anything.

not exactly sure what is wrong here but maybe i got the properties wrong or something?

	local a0 ="Attachment")
	a0.Parent = t.Parent.HumanoidRootPart
	local a1 ="Attachment")
	a1.Parent = script.Parent
	local line ="LineForce")
	line.Visible = true
	line.ApplyAtCenterOfMass = true
	line.Attachment0 = a1
	line.Attachment1 = a0
	line.Magnitude = 1000
	line.Parent = t.Parent.HumanoidRootPart

thank you for your time

1 Like

You could try setting the line’s Attachment0 to a0 and Attachment1 to a1.