Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 12 Jul 2014 09:54 PM |
| How do I make the player unable to rotate or zoom the camera? I already locked it to a specific brick, but I'm wondering how I would stop rotation and zooming. |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
| |
|
|
| 12 Jul 2014 10:44 PM |
camera.CameraType = 'Scriptable'
Alt. of Jetta765214 |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 12 Jul 2014 10:59 PM |
| How do I script the camera so right click and zoom are disabled? |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 12 Jul 2014 10:59 PM |
| camera.CameraType = 'Scriptable' |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 12 Jul 2014 11:03 PM |
| But what do I write after that is what I mean. How exactly do I use the scriptable camera type? |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 12 Jul 2014 11:13 PM |
| Check the wiki's page on "Camera Manipulation". |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 12 Jul 2014 11:19 PM |
| I checked but it's very basic and doesn't seem to answer my questions. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 12 Jul 2014 11:25 PM |
local origin = Vector3.new(50, 50, 0) local focus = Vector3.new(0, 0, 0)
local camera = Workspace.CurrentCamera camera.CameraType = "Scriptable" camera.CoordinateFrame = CFrame.new(origin, focus) |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 12 Jul 2014 11:28 PM |
| Okay I understand now. Thank you. |
|
|
| Report Abuse |
|
|