| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 06 Apr 2015 04:27 PM |
Use a local script if you want to affect the local player, like for changing GUIs. Use a regular one for stuff regarding the server like a map changing script. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 04:30 PM |
| will a script not work if it isn't the right type? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 06 Apr 2015 04:31 PM |
| Yes, for instance, you can't use a local script for seeing if a part is touched and you can't use a normal script to find the local player's backpack. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 04:34 PM |
in local scripts you can get the player easier
ex.
player=game.Players.LocalPlayer(the player).Character(the model version of the player in workspace which hold body parts like torso and humanoid)
Local scripts only work in the screen gui folder |
|
|
| Report Abuse |
|
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 06 Apr 2015 04:41 PM |
| Milly is wrong, local scripts work anywhere besides Server Storage. |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 06 Apr 2015 04:43 PM |
@Klink
and workspace and ServerScriptService and basically anywhere not in a player |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 06 Apr 2015 04:45 PM |
@ray Actually I think that's right, I'm so sorry. |
|
|
| Report Abuse |
|
|