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: What's the difference in Local Script and just a Script?

Previous Thread :: Next Thread 
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
03 Apr 2014 12:14 PM
Like do they matter? I know in guns you use local scripts but I never knew why..
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2014 12:16 PM
Local scripts runs client-side
Report Abuse
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
03 Apr 2014 12:21 PM
what do you mean when you say "client-side"?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2014 12:23 PM
On the player's client [their RobloxPlayer pretty much], not on the server.
Somethings are only accessible to the client--like a person's camera
Report Abuse
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
03 Apr 2014 12:25 PM
Oh, thanks!
Report Abuse
LemmJuice is not online. LemmJuice
Joined: 23 Feb 2014
Total Posts: 866
03 Apr 2014 01:09 PM
Don't forget a local script has some special variables and must be place in either A, B or C:

A: In (or inside a gui which is in) Playergui
B: In (or of course inside a tool/hopperbin) the player's backpack
C: In (or also in a tool/hopperbin) the player's character

some useful variables for a localscript:

game.Players.LocalPlayer --get's the player which the localscript is running for
workspace.CurrentCamera --get's the players camera which the localscript is running for
Report Abuse
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
04 Apr 2014 09:06 AM
Thanks Lemm!
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