CFrame not updating when part is moved

Does CFrame not update in real time or am I missing something? I have a part with a LineForce and a script in it that has the following:

script.Parent:GetPropertyChangedSignal("CFrame"):Connect(function()
	print(script.Parent.Position)
end)

When the part is moved due to the LineForce, this doesn’t print anything, same goes if I switch it out for Position. Is there something I’m missing here?

try this:

script.Parent:GetPropertyChangedSignal("CFrame"):Connect(function()
	local CFrame2 = script.Parent.CFrame
	local newPos = CFrame2.Position
	print(newPos)
end)

My goal isn’t to know the new position but figure out why the event isn’t firing.

I believe properties such as position and orientation don’t work when there is a changed event connected because when the change is due to something physics related, such as a LineForce, the property is actually changing far too many times over a certain period of time. However, I noticed that the event fires when the position is changed manually, probably because the event can detect it since the change was exact.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.