Hey guys! Haven't asked a question in quite a while, but this topic happened to cross my mind. Say I load a script in via loadstring() and I then want to disable it/delete it, how would I do so? I've tried script.Disabled
within the loadstring, but it didn't seem to work. I plan to have several scripts loaded in via loadstring(), and some will need to disable/delete itself so it doesn't lag up the game. Any suggestions?
No. loadstring
doesn't create a new Script object, it simply interprets a string and returns a function to execute it. Furthermore, it is not a Roblox feature, it is a standard Lua function.