Can't detect when the floormaterial changes?

So im trying to make a script that detects when the “Floormaterial” Property of the humanoid changes.

local chr = script.Parent
local hum = chr:FindFirstChild("Humanoid")

print(chr)
print(hum)

task.wait(5)

print("Starting")

hum:GetAttributeChangedSignal("FloorMaterial"):Connect(function()
	print("Changed")
end)

I thought this would work, but “Changed” Never prints?

What am i doing wrong?

Floor material is a property, not an attribute.

Use GetPropertyChangedSignal, not GetAttributeChangedSignal

3 Likes

Thank you so much! I should have seen this :smile: :man_facepalming:

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