This is triggered by multiple scripts. I have a GUI TextButton that enables the disco script. Inside the disco script, I made it print a message. It does that in the log and for some reason, that script does not work.
Weird thing is that the script only works if Disco script is enabled before. Meaning, it does not work with the click button. Yet, the click button enables it.
Yep for sure, your basically wanting to click the button from the client and then the server enables the discoscript for you so in order to do that you will need to use a remote event.
It talks about how the server and the client interact with each other. Since you are using a button, you will need to handle that button locally (on the client) and if you want the Discoscript to be enabled then the server will have to enable it. Anything related to the GUI or the player is only handled on the client, anything else is rather handled on the server.
If you read the page I gave you then you will understand what I’m trying to say, but yeah, if you are still struggling to understand that page you can watch this video: https://youtu.be/wCr5VXJ34T4
You are very welcome, if you think I solved your problem then be sure to hit that solution button so that everybody else will know that this topic has been solved!