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 » Scripting Helpers
Home Search
 

Re: difference between

Previous Thread :: Next Thread 
zaniac10 is not online. zaniac10
Joined: 18 Aug 2009
Total Posts: 10000
09 Oct 2014 04:53 PM
..localscript and script?

what does localscript do that's different from a normal script?
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
09 Oct 2014 04:54 PM
Did you even try to look at the wiki?
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
09 Oct 2014 04:55 PM
A localscript is executed by the client (the player's computer), and must be in a player's backpack, character, or playergui.

A script is executed by the server (ROBLOX's end), but does not have access to all of the functions and events that a localscript does.

http://wiki.roblox.com/index.php?title=API:Class/LocalScript
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Oct 2014 04:55 PM
Players.LocalPlayer
Cannot use LoadString
Cannot modify serverwide variables with FilteringEnabled
Has a different _G
Can use require() and somehow get a different return to a server
Has less visible lag on the clientside than when working with server scripts
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
09 Oct 2014 04:58 PM
eLunate mentioned some big ones, but there are also a lot of events and properties that have to do with GUIs that won't work as expected unless it's clientside (in a localscript).
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Oct 2014 05:02 PM
An important thing to note is that you will be using local scripts a lot if you need to work closely with input, advanced GUI, or FilteringEnabled.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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