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?

12 comments

0

Why would you do that?

0

That doesn't make scripts any more secure.

0

Why would you be setting the script to nil?

0

This is the third one. Why would you do that?

0

Only legends do dat

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

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.

0

Wait wha...? Why would you ever want to do that tho?

1

This is probably why he’s trying to do this -> http://robloxdev.com/articles/Using-Private-Modules

1

Not too sure as to why this is downvoted.

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". 

0