Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script = Nil is not working in my ModuleScript, does anyone have a solution?

Asked by 6 years ago

Hi, so I am extremely new to module scripts, and I want to ensure security on my script. I have tried putting 'script = nil' everywhere, but it seems to return an error. WO10: Built-in global 'script' is overwritten here; consider using a local or changing the name. Any suggestions?

0
Why would you do that? User#19524 175 — 6y
0
That doesn't make scripts any more secure. User#19524 175 — 6y
0
Why would you be setting the script to nil? PolyyDev 214 — 6y
0
This is the third one. Why would you do that? SirDerpyHerp 262 — 6y
View all comments (8 more)
0
Only legends do dat User#17685 0 — 6y
0
is he nilling the script because he thinks the script can't be read that way?, its still there in memory if its still executing Omega_bs 40 — 6y
0
Module scripts are already secure if they are in a location the client cannot access. I have no idea why on earth you would write script = nil. It makes absolutely 0 sense. User#21908 42 — 6y
0
Wait wha...? Why would you ever want to do that tho? SCP774 191 — 6y
1
This is probably why he’s trying to do this -> http://robloxdev.com/articles/Using-Private-Modules User#20279 0 — 6y
1
Not too sure as to why this is downvoted. Zafirua 1348 — 6y
0
I only use `script = nil` when working with Private Modules anyway. Elsewhere, you do not really need it at all. If you are using a Private Module, make sure you have uploaded on Roblox and named it "MainModule".  Zafirua 1348 — 6y
0
This question has already been answered https://scriptinghelpers.org/questions/28712/how-does-script-nil-work User#9949 0 — 6y

Answer this question