So I recently came across a set of UIs which contain not only localscripts but server scripts as well as remote events within the UI - allowing these server scripts to modify server workspace.
I was wondering what the drawbacks of this was and why anybody would do this.
Depending on the use for the UI, the local scripts, server scripts and remote events might be needed if the UI is used to manipulate/interact with the server. Do note, that exploiters can fire RemoteEvents, so it is advised to implement checks in the local and server scripts.
I’m not that advanced in scripting, but I believe it’s to find the event easier. It’s probably like that because it’s the only required event that will be needed. I am not sure though, sorry if this is wrong.
Usually I see this inside of toolbox items, where they put everything in one place so all you have to do to set it up is to move the item into a Service and it works