zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 09 Oct 2014 04:53 PM |
..localscript and script?
what does localscript do that's different from a normal script? |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2014 04:54 PM |
| Did you even try to look at the wiki? |
|
|
| Report Abuse |
|
|
darthpyro
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 3569 |
|
|
| 09 Oct 2014 04:55 PM |
A localscript is executed by the client (the player's computer), and must be in a player's backpack, character, or playergui.
A script is executed by the server (ROBLOX's end), but does not have access to all of the functions and events that a localscript does.
http://wiki.roblox.com/index.php?title=API:Class/LocalScript |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 Oct 2014 04:55 PM |
Players.LocalPlayer Cannot use LoadString Cannot modify serverwide variables with FilteringEnabled Has a different _G Can use require() and somehow get a different return to a server Has less visible lag on the clientside than when working with server scripts |
|
|
| Report Abuse |
|
|
darthpyro
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 3569 |
|
|
| 09 Oct 2014 04:58 PM |
| eLunate mentioned some big ones, but there are also a lot of events and properties that have to do with GUIs that won't work as expected unless it's clientside (in a localscript). |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 Oct 2014 05:02 PM |
| An important thing to note is that you will be using local scripts a lot if you need to work closely with input, advanced GUI, or FilteringEnabled. |
|
|
| Report Abuse |
|
|