Voronthal
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 10 |
|
|
| 16 Jul 2012 05:50 PM |
Okay, so I'm struggling here, I want the camera focus to change to the mouse.Hit, but I only want it to do this when mouse.Hit changes.
I tried this.
mouse.Changed:connect(function() workspace.CurrentCamera.Focus = mouse.Hit end)
However that doesn't work.
in fact, even with printing, I can't seem to get mouse.Changed to fire, so how can I do this? |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 16 Jul 2012 05:56 PM |
You could, alternatively, connect to mouse.Move and get a similar result.
Honestly, the most reliable way to do this, particularly since mouse.Hit changes so often that the performance savings from connecting to an event are insignificant, is a simple infinite loop. |
|
|
| Report Abuse |
|
|
Voronthal
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 10 |
|
|
| 16 Jul 2012 05:57 PM |
| problem with that is that then it would be constantly updating the cameras focus and that's not the desired effect. I'll take a look over mouse.Move and see what that's all about. |
|
|
| Report Abuse |
|
|