I am using a simple script for doors/light switches that works by having a script in every single on of the interactable parts in the workspace like the physical door or lightswitch. A friend who is a scripter recommended that I don't do this because it will saturate server memory and cause lag. Is this true? If the code is only being triggered by a clickdetector and onMouseClick wouldn't it only draw resources as needed when called to do so?
My final question is, how secure is my practice? Light switches/doors seem non-consequential to me in terms of a exploiter taking advantage of them because I don't see any advantage of them tampering with these sole scripts in the workspace.
Thanks.
Seems to be good, if it doesn't lag for you right now, it probably won't lag ever. If it does start lagging, you can always come back to the forums.