Can you check if a certain property changed during the instance.Changed event?

I am aware that you can extract the changed properties from the event through “instance.Changed:connect(function(properties) end)”. But what I want, is to be able to check if it contains a certain property to proceed. Is there an enum I am unaware of or can it be checked against some other datatype?

ins.Changed:Connect(function(prop)
    if prop == "Name" then -- or whatever else
        -- super duper fancy logic
    end
end)

you could also do

ins:GetPropertyChangedSignal("Name"):Connect(function()
    -- super duper fancy logic
end)

ah, so checking it against a string suffices

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