This is really giving me a headache,
what I’m trying to do is, whenever I hover over any button it will play a cool animation
for example, it enlarges, kind of like this:
Im going to have alot of buttons, and I might add more in the future. So for maximum optimization I wanted to make it so that I won’t need to configure my script and manually wire them to work for each button I add.
I decided to make a folder of objectValues, and assign a button for each one. then a script is going to loop through each one and make a :Connect() function.
^uses MouseButton1Down instead
It has a similar principle to this, Everytime a player is added, it automatically wires it so that it can detect if that player’s character was added or removed.
Everything looks right, I don’t get any errors, but it just doesn’t work. Whenever I click the button it doesnt print “click”
It is correctly looping through all the values!, but it just doesn’t do :connect() function.
I try to do this with parts, the same principle except its when u touch it
^And for some odd reason this works
I dont get it.
Next I try to go through the buttons inside the screengui instead
^AND THiS wOrks???
its literally the same thing! Why cant I use object values for gui buttons?
I open-sourced the place to test for yourself:
Am I doing something wrong or is studio broken?
Also is my method a good way for optimization GUIs?
Any help would be appreciated THANKS!