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?

script.Parent.Touched:Connect(function(t)
	
	local a0 = Instance.new("Attachment")
	a0.Parent = t.Parent.HumanoidRootPart
	
	local a1 = Instance.new("Attachment")
	a1.Parent = script.Parent
	
	local line = Instance.new("LineForce")
	line.Visible = true
	line.ApplyAtCenterOfMass = true
	line.Attachment0 = a1
	line.Attachment1 = a0
	line.Magnitude = 1000
	
	line.Parent = t.Parent.HumanoidRootPart
	
	
end)

thank you for your time

1 Like

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