So, I have been making a small project that is practicing my scripting. I ran into an issue when trying to make an if statement. I want this GUI text button to only do change the material of this part when a different part is at a specific location in the map. SO when the part is at the certain place and you click the text button, it changes the material of the other part, but if the part is at a different location and you click the text button, there is no change with the other part. I don’t know if this makes sense or not, but here are some pictures…
Note: I am not a professional scripter, so I won’t be offended if you point something out to me, this is all learning for me!
Is this script even right? What do I need to change? I am open to anything.