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

What is the difference?

Asked by 9 years ago

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

Log in to vote
1
Answered by 9 years ago

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.

1
LocalScripts run in the PlayerGui, Backpack, or the CHARACTER. Not the Player. Perci1 4988 — 9y
0
Thanks, will change it. So hard to keep track Tempestatem 884 — 9y
0
Thanks bro! User#5689 -1 — 9y
0
@Perci Basically it needs to be in one of the children of Player.(Character might count. e.g. Player.Character) EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question