Im currently redoing every gui in my game, i would like to know if putting scripts derectly in my gui is better or if i should put them in StarterPlayerScripts.
I would like to know if it does a difference?
It doesn’t do much difference at all, Look when you are putting your code in StarterPlayerScripts will make your scripts run immediately, now this is bad because you can run into some problems when getting objects from the GUI (like getting nil when getting objects). So it’s not the best choice at all, but if you are putting your scripts in your GUI’s it makes it better because your code only runs whenever the GUI is loaded
do it change anything likefor example there is a exploiter in the server thats hacking?