|
| 04 Apr 2013 10:42 AM |
I want it so the player cannot move the camera, here's the LocalScript...
local cam = workspace.CurrentCamera cam.CameraSubject = workspace.Spawn cam.CameraType = "Attach" cam.CoordinateFrame = CFrame.new(40, 40, 40) cam.Focus = CFrame.new(20, 3, 2)
(P.S: New to Camera Manipulation! :P)
|
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 04 Apr 2013 10:46 AM |
| Try using a while loop to set the CoordinateFrame. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 04 Apr 2013 10:54 AM |
| Players can't move Scriptable camera. That's best way to prevent them from moving it. |
|
|
| Report Abuse |
|
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 04 Apr 2013 12:13 PM |
| dekkonots method of freezing it will give a buggy look, zars one will work! |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 04 Apr 2013 12:17 PM |
You can also use a GUI element to prevent this.
|
|
|
| Report Abuse |
|
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 04 Apr 2013 12:21 PM |
But if you want to keep a clear look on the map you're playing in, I would suggest using CurrentCamera.CameraType = "Scriptable"
!!! |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 12:37 PM |
| Thanks! Yes I used Scriptable and it worked perfectly! Just had to change the CFrame bit to the correct position. |
|
|
| Report Abuse |
|
|