|
| 03 Jul 2016 06:44 PM |
| I have been working on a script, and part of it involves the camera being locked into one specific position with no way to zoom out or rotate it. Any ideas on how to do this? |
|
|
| Report Abuse |
|
|
Briicks
|
  |
| Joined: 03 Apr 2015 |
| Total Posts: 1796 |
|
|
| 03 Jul 2016 06:45 PM |
change camera type to scriptable and set the position of the camera.
Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2016 07:09 PM |
cam=game.Workspace.CurrentCamera
cam.CameraType = "Scriptable" cam.CoordinateFrame=CFrame.new(0,0,0) |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jul 2016 08:15 PM |
| The camera does get locked, but it is not going to the CFrame that it should be. |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2016 08:16 PM |
| Nevermind, i figured out why that was happening |
|
|
| Report Abuse |
|
|
crbn
|
  |
| Joined: 16 Jul 2012 |
| Total Posts: 2713 |
|
|
| 03 Jul 2016 08:16 PM |
might need this so I tracked this
idk lol |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2016 08:36 PM |
| Ok, i have figured out the part about locking the camera, but now the problem is getting it to go to the player again afterwards. Is this possible to do? |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jul 2016 09:55 PM |
@Single im pretty sure CoordinateFrame is deprecated, new one is cam.CFrame
#code while true do end |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2016 11:58 AM |
| Actually I am using CoordinateFrame right now and it works fine. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2016 12:13 PM |
| Why is CFrame better then Coordinate Frame? |
|
|
| Report Abuse |
|
|