Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
|
| 09 Jun 2013 01:05 PM |
| Can someone please explain me how Local Scripts work, i've tried reading the wiki but it confuses the hell out of me. |
|
|
| Report Abuse |
|
|
iceywind
|
  |
| Joined: 10 Aug 2009 |
| Total Posts: 4424 |
|
|
| 09 Jun 2013 01:06 PM |
Scripts don't have functions. LocalScripts do have functions.
Making ROBLOX Better, One Forum Post at a Time™. |
|
|
| Report Abuse |
|
|
Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
|
| 09 Jun 2013 01:08 PM |
Could you be more specific?
I mean, a regular script can have a function too right? |
|
|
| Report Abuse |
|
|
Cupkle
|
  |
| Joined: 18 Jun 2012 |
| Total Posts: 180 |
|
|
| 09 Jun 2013 01:10 PM |
Lol, of course they have functions.
They work just like regular scripts, but they are client-side.
That means you can play sounds locally or manipulate a player's camera, but you can't access some server-side stuff, like the LoadCharacter method or the server's global table. |
|
|
| Report Abuse |
|
|
Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
|
| 09 Jun 2013 01:11 PM |
| So if i make a local script and a player activates it, it will only occur on his screen? |
|
|
| Report Abuse |
|
|
Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
| |
|