Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
|
| 22 Mar 2012 07:13 PM |
So, I'm trying to get a nice, bird's eye view of a model of a Robloxan, and this is what I have so far:
Cam.CameraSubject = rob.Head Cam.CameraType = Enum.CameraType.Track wait(1) while true do wait(.1) rob.Humanoid:MoveTo(goto.Position, goto) local pos = 5 Cam.Focus = CFrame.new(rob.Head.Position.X, rob.Head.Position.Y, rob.Head.Position.Z) end
Now, it's good and all, but after a few seconds, the camera starts to swivel around, until it suddenly starts getting farther, and farther away from it's intended target. Now, working with camera's is a first for me, so I'm sure I messed up somewhere. What would be the recommended camera Enum type, and how to I keep it locked on the target? (Such as Rob's head.) |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2012 07:15 PM |
| Everytime the head moves, refocus the camera, so like Head.move:connect(func). idk why it would be moveing away. |
|
|
| Report Abuse |
|
|
Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
|
| 22 Mar 2012 07:18 PM |
| Head.move() isnt an argument, a connection statement, or apart of LUA in general. (Or is it?) :/ |
|
|
| Report Abuse |
|
|
Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
| |
|
| |
|
|
| 23 Mar 2012 10:47 AM |
| Head.Changed:connect(function(argument) |
|
|
| Report Abuse |
|
|
Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
|
| 23 Mar 2012 10:49 AM |
Never used Head.Changed
Explain? |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2012 10:51 AM |
| Basically, If I am correct. If a property of the "Head" is changed it shall run. |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2012 10:51 AM |
Head.Changed:connect(function(c) end) |
|
|
| Report Abuse |
|
|
Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
|
| 23 Mar 2012 10:52 AM |
| I always associated with .Changed to a value, like a bool, int, etc, in which it's value is changed. I never seen it used on a body part before. Changed as in position? Size? I dont even. |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2012 10:52 AM |
| If ANYTHING of the property is changed it should run! |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2012 10:52 AM |
| late post .. was checking how can I use it for this... before I post :P |
|
|
| Report Abuse |
|
|
Navydev
|
  |
| Joined: 21 Feb 2012 |
| Total Posts: 274 |
|
| |
|