generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: How to lock the camera?

Previous Thread :: Next Thread 
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
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 is not online. 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
SingleSided is not online. SingleSided
Joined: 23 Mar 2012
Total Posts: 1241
03 Jul 2016 07:09 PM
cam=game.Workspace.CurrentCamera

cam.CameraType = "Scriptable"
cam.CoordinateFrame=CFrame.new(0,0,0)
Report Abuse
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
03 Jul 2016 08:09 PM
Thanks singlesided
Report Abuse
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
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
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
03 Jul 2016 08:16 PM
Nevermind, i figured out why that was happening
Report Abuse
crbn is not online. 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
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
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
SingleSided is not online. SingleSided
Joined: 23 Mar 2012
Total Posts: 1241
03 Jul 2016 09:51 PM
cam.CameraType = "Custom"
Report Abuse
iDerpyDogez is not online. iDerpyDogez
Joined: 05 Feb 2012
Total Posts: 1781
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
JarheadTech is not online. JarheadTech
Joined: 05 Oct 2015
Total Posts: 310
04 Jul 2016 11:58 AM
Actually I am using CoordinateFrame right now and it works fine.
Report Abuse
SingleSided is not online. SingleSided
Joined: 23 Mar 2012
Total Posts: 1241
04 Jul 2016 12:13 PM
Why is CFrame better then Coordinate Frame?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image