generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: when do you use a local script vs. regular one?

Previous Thread :: Next Thread 
momomarshmallow is not online. momomarshmallow
Joined: 03 Oct 2010
Total Posts: 14347
06 Apr 2015 04:26 PM
?
Report Abuse
Klink45 is not online. 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
momomarshmallow is not online. momomarshmallow
Joined: 03 Oct 2010
Total Posts: 14347
06 Apr 2015 04:30 PM
will a script not work if it isn't the right type?
Report Abuse
Klink45 is not online. 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
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
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
momomarshmallow is not online. momomarshmallow
Joined: 03 Oct 2010
Total Posts: 14347
06 Apr 2015 04:36 PM
okay thanks :))
Report Abuse
Klink45 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image