Need help with code

so a part of my game is that you can change the color of a character and i need help creating a way to work around it with out changing everything.


2 Likes

Sorry no one responded, I didn’t see this.

So when the person is clicked, it changes the color of that character, but it also changes the color of the audience (but that part isn’t wanted). This happens because a Global is being updated, which causes all other Globals of the same type to output.
To me the obvious question seems like “Why is a Global being used”? If it’s not needed, it’s best not to have it. If the Global is needed, instead it should be setting the Number behavior after it, not getting it (Same as how it is, just remove the “Get” input).
Also a tip, if you’re setting and getting a number at the same time, it isn’t needed.

2 Likes

Thank you CodeAlpaca

2 Likes