|
| 24 Feb 2012 12:15 PM |
| See subject for more information. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 24 Feb 2012 12:19 PM |
| Yay, thx. That's exactly what I'm doing. :D |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|