I have returned with another problem.
For my core game, I created a reboot system that restarts the coolant when it’s offline. This system works well, but there’s one issue—when the coolant is back online, the buttons that were activated before are still activated after the reboot.
I think I figured out a solution to this, but I would have to apply said solution to TEN different scripts, and I’m wondering if there’s a quicker way to reset everything after it’s been disabled/enabled.
Let me know if you need any of my scripts, and thank you!
Could you make it so that there are scripts stored in ServerStorage and are copied to the buttons once there is a reboot while also removing the old scripts in the process (in these scripts, also make the buttons default to their normal states)?
I’m sorry, I’m a beginning programmer and I barely know what you’re saying.
Do you mean replacing the scripts entirely? Like destroying them and putting a copy in their place?
Yes, there are other possible methods but this is the one I can think of off the top of my head
I believe you can either clone or disable and reenable a script to reset it.
I wouldn’t use that since it is unreliable, though.