basically im trying to make it so some things like moving camera and opening ui, which i got to work. but i only want this to happen if this value and seat occupant are the same. why isn’t this working?
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if seat.Occupant ~= nil then
print(owner.Value) --returning ANoobyPanda
print(seat.Occupant.Parent.Name) --returning ANoobyPanda
if owner.Value == seat.Occupant.Parent.Name then
print("the things are the same")-- not coming back
if db == true then
db = false
--stuff happens
The value of an ObjectValue is literally just an object, an instance. Whatever you set the value of the ObjectValue to, it will give you all of the properties of that instance when you access the value of it. It’s the exact same as if you just referred to the object in the workspace through its ancestry.