|
| 24 Jul 2012 10:07 AM |
local camera = game.Workspace.CurrentCamera local newcamera = Instance.new("Camera") camera.Parent = game.Lighting newcamera.Parent = game.Workspace newcamera.CameraSubject = game.Workspace.CutScene1.Cams.Cam1 wait(10) newcamera:remove() camera.Parent = game.Workspace
It is in a LocalScript,which gets cloned into the players PlayerGui.It does change the players camera to the newcamera,but it's subject seems to be the middle of the map,not Cam1. |
|
|
| Report Abuse |
|
|
Windburnt
|
  |
| Joined: 16 Jul 2012 |
| Total Posts: 144 |
|
|
| 24 Jul 2012 10:09 AM |
| Are you sure you can create cameras using 'Instance.new'? |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 10:13 AM |
| Yes,that is what 1dev2 does for his place when you enter,he creates a new camera and puts the old one in the lighting until the script is done. |
|
|
| Report Abuse |
|
|
Windburnt
|
  |
| Joined: 16 Jul 2012 |
| Total Posts: 144 |
|
|
| 24 Jul 2012 10:16 AM |
| I can't find anything wrong in the script, then. Any output? |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 10:17 AM |
| It's in a LocalScript, so you can't see the output from it. |
|
|
| Report Abuse |
|
|
Windburnt
|
  |
| Joined: 16 Jul 2012 |
| Total Posts: 144 |
|
|
| 24 Jul 2012 10:22 AM |
The only thing I can find that might be wrong is this line: "newcamera.CameraSubject = game.Workspace.CutScene1.Cams.Cam1"
Is the hierarchy right? |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 10:29 AM |
Yes it is,but I just fixed it anyway,you have to use camera.CoordinateFrame and camera.Focus But thanks anyway! |
|
|
| Report Abuse |
|
|
Windburnt
|
  |
| Joined: 16 Jul 2012 |
| Total Posts: 144 |
|
|
| 24 Jul 2012 10:30 AM |
| Sorry, I don't have much experience on camera manipulation! |
|
|
| Report Abuse |
|
|