Hey, I was just curious on how to make an if statement for a physical property. I have a door, when touched it changes material, basically, when this happens, the egg is suppose to detect it and change it's material also, but this doesn't happen. Any help, please?
if script.Parent.Parent.Portal.Material == Enum.Material.Neon then
script.Parent.Material = "Neon"
end

3 comments
Are you sure that script.Parent is the thing you want? Is this in a touch function?
Yes.
When the portal/door is touched, it should light up both parent of the script and the door.