Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the difference?

I always asked myself what the difference is, but I couldn't figure it out. I wanted to know what is the difference between Script, local Script, and Module Script?

Any example of a module script

--Example

1 answer

✓ Accepted answer

Scripts are basically what you use to code your game, and can be put just about anywhere in the game. Scripts basically can only do things via the server, so they cannot do something like edit the players' camera, but instead can do something like move a block or pretty much anything of that nature.

LocalScripts are different, as they only work in the PlayerGui, Backpack, or the Player's CHARACTER (Thanks to Perci1 for finding my mistake) itself. Localscripts are used to do things to only the player contrary to server based scripts. You would use a local script to do something like edit the player's camera.

Module scripts are something I have not really dealt with, but looking at the ROBLOX Wiki can tell you everything you need to know.

More on Scripts

More on LocalScripts

More on Module Scripts

If this didn't make sense, I am super sorry. My brain works in mysterious ways and I understand things in weird ways. Feel free to PM me on ROBLOX if you need any more information.

4 comments

1

LocalScripts run in the PlayerGui, Backpack, or the CHARACTER. Not the Player.

0

Thanks, will change it. So hard to keep track

0

Thanks bro!

0

@Perci Basically it needs to be in one of the children of Player.(Character might count. e.g. Player.Character)

This discussion is preserved as it was. New answers, comments, and votes are closed.