RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 11 Jul 2012 07:55 PM |
I know LocalScripts can do things that normal scripts can't, like accessing the Camera and Mouse.
The question is: Are there things that normal scripts can do that LocalScripts can't? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 11 Jul 2012 08:01 PM |
| You know, like sensing mouse clicks, mouse positions, etc. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 11 Jul 2012 08:03 PM |
The defining difference:
Localscripts run on the client (a user's computer) Scripts run on the server (Roblox's "central" computer)
And all that implies (Camera; Mouse obviously only make sense on the user's computer but being the main scripts of the place only makes sense on Roblox's computer) |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 11 Jul 2012 08:06 PM |
As for things that localscripts can't do:
1) Award badges 2) Use Data Persistence.
For example. |
|
|
| Report Abuse |
|
|
RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
| |
|
RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 11 Jul 2012 08:08 PM |
| @Trioxide You can just wiki it. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 11 Jul 2012 08:19 PM |
| Use a tool/hopperbin's equipped/selected event. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 08:24 PM |
| You have to have a LocalScript within the tool/hopperbin in order to get the Mouse and use various events with said mouse. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 08:25 PM |
| http://wiki.roblox.com/index.php/RBX.lua.Mouse_(Object) |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 08:26 PM |
| You need a LocalScript to do that as it won't work with normal Scripts... |
|
|
| Report Abuse |
|
|