ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 03 Apr 2014 12:14 PM |
| Like do they matter? I know in guns you use local scripts but I never knew why.. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2014 12:16 PM |
| Local scripts runs client-side |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 03 Apr 2014 12:21 PM |
| what do you mean when you say "client-side"? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2014 12:23 PM |
On the player's client [their RobloxPlayer pretty much], not on the server. Somethings are only accessible to the client--like a person's camera |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
| |
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 03 Apr 2014 01:09 PM |
Don't forget a local script has some special variables and must be place in either A, B or C:
A: In (or inside a gui which is in) Playergui B: In (or of course inside a tool/hopperbin) the player's backpack C: In (or also in a tool/hopperbin) the player's character
some useful variables for a localscript:
game.Players.LocalPlayer --get's the player which the localscript is running for workspace.CurrentCamera --get's the players camera which the localscript is running for |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
| |
|