humanoidrootpart:GetPropertyChangedSignal("Orientation"):Connect(function()
print("hi")
end)
doesnt print anything
humanoidrootpart:GetPropertyChangedSignal("Orientation"):Connect(function()
print("hi")
end)
doesnt print anything
Orientation never changes on the HumanoidRootPart. Only the CFrame does.
humanoidrootpart:GetPropertyChangedSignal("CFrame"):Connect(function()
print("hi")
end)
like this?
This would work either, GetPropertyChangedSignal does not detect CFrame being changed. If anything, a while loop would work for this.
local lastpos
while wait() do
if lastpos then
if lastpos ~= humanoidrootpart.CFrame then
print("hi")
end
end
lastpos = humanoidrootpart.CFrame
end