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: How do you assign local scripts to one's computer?

Previous Thread :: Next Thread 
Glicon is not online. Glicon
Joined: 26 Feb 2009
Total Posts: 981
03 Dec 2012 11:12 PM
I've known about local scripts for awhile now, but I've actually never figured out how to use them. It was until now that it'll be any use to me, and I can't seem to find a tutorial on the wiki at all. Especially because it's search engine searches in keywords, when I search "local script," a bunch of "local"'s pop up.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
04 Dec 2012 07:22 AM
LocalScripts are a client side class. They have to be within an object owned by the player object such as the character or anything in the player such as the backpack or playergui.
Report Abuse
Glicon is not online. Glicon
Joined: 26 Feb 2009
Total Posts: 981
04 Dec 2012 08:01 AM
Alright, so if I placed it in their Player's backpack or something, only they would be able to experience what the local script does?
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
04 Dec 2012 02:29 PM
Localscripts can access client side things

game.Players.LocalPlayer

returns the player that owns the script

game.Workspace.CurrentCamera

returns the players camera

game.Players.LocalPlayer:GetMouse()

returns the players mouse. Very useful for binding things to keys.
Report Abuse
Glicon is not online. Glicon
Joined: 26 Feb 2009
Total Posts: 981
04 Dec 2012 04:15 PM
Alright, I'll look into it. Thank you.
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