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: Does a LocalScript run if it's in a player's CurrentCamera?

Previous Thread :: Next Thread 
ap1ratesl1fe is not online. ap1ratesl1fe
Joined: 17 Nov 2008
Total Posts: 368
24 Feb 2012 12:15 PM
See subject for more information.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:17 PM
Yes, but only if you set the parent of the script to the CurrentCamera using a localscript. I would suggest not using this though because it is a lot more scripting than needed.

[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Report Abuse
ap1ratesl1fe is not online. ap1ratesl1fe
Joined: 17 Nov 2008
Total Posts: 368
24 Feb 2012 12:19 PM
Yay, thx. That's exactly what I'm doing. :D
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:22 PM
What is it for?

[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:25 PM
Sorry I gave you false info apparently, I cannot get it working in the CurrentCamera. So I am guessing you can't :S

[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:26 PM
Only places it can run it:

Character
Backpack
PlayerGui

[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Report Abuse
ap1ratesl1fe is not online. ap1ratesl1fe
Joined: 17 Nov 2008
Total Posts: 368
24 Feb 2012 12:27 PM
Oh darn.
:p
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:28 PM
Yeah, I thought it could. You would assume the camera is a client sided instance; It's not.

[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Report Abuse
ap1ratesl1fe is not online. ap1ratesl1fe
Joined: 17 Nov 2008
Total Posts: 368
24 Feb 2012 12:31 PM
Oh, for what it's for, it's for using a localscript to generate a brick that, when touched, puts a message in PlayerGui.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
24 Feb 2012 12:34 PM
Well sadly using a localscript for that is not very efficient, and probably not gonna work. So use a script inside it to handle the touched event. Then to get to the players PlayerGui you would do this:


game.Players[hit.Parent.Name]:FindFirstChild("PlayerGui")



[[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
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