I have scripts in my game that, when triggered, clone a local script to a player's PlayerGui. After the local script has been run, I like to destroy that local script with the destroy function to clean up and remove clutter. However, it only destroys that local script from the client, not the server. I know this doesn't seem much of a problem, but I like having a clean PlayerGui and when it has LocalScripts that have already done their job, it bothers me a lot. This can also cause issues with WaitForChild and Parenting, depending on how the local script works How can I fix this?
Another question that sort of ties into this one: can I perform a server script within a local script? if so, that would make things so much easier. Thanks!
