Should you put regular scripts inside tools

I know that you put stuff like local scripts or fx or sounds in the tool but should you put the server script in the tool i was reviewing code from a test place and saw that they put all the tool server scripts in the tool so is it a good idea to do so?

5 Likes

It depends. Sometimes you should use a local script and sometimes you should use a server script. There’s no problem with using a regular script though, it’ll still work.

3 Likes

i mean like is it secure to put scripts in the tool like server scripts

Yes, it is perfectly fine and secure!

how does that work doesnt the server script replicate to the client if its in the tool

Yes, it does, but it should still be fine despite replicating.
I’ve never had security issues using server scripts in tools, so if you’re using it right, you should be completely fine.

10 Likes