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 » Scripting Helpers
Home Search
 

Re: How do we lock the camera into a certain position?

Previous Thread :: Next Thread 
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
14 Oct 2014 03:40 AM
?
Report Abuse
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
14 Oct 2014 09:00 PM
Bump
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Oct 2014 09:01 PM
You could set the CameraType to Enum.CameraType.Scriptable
Report Abuse
Hunter4529 is not online. Hunter4529
Joined: 20 Oct 2013
Total Posts: 675
14 Oct 2014 09:09 PM
This is a good way to start although it is a little limited;

http://wiki.roblox.com/index.php?title=Camera_manipulation

Report Abuse
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
14 Oct 2014 09:26 PM
I read it and it just confused me even more.
Report Abuse
Hunter4529 is not online. Hunter4529
Joined: 20 Oct 2013
Total Posts: 675
14 Oct 2014 09:29 PM
Make sure you always use local scripts for camera manipulation


cam = game.Workspace.Camera
cam.CameraType = "Scriptable"
cam:Interpolate(Bricktolockonto.CFrame,Brickyouwanttolookat.CFrame,Timeittakestoreachpoints)
Report Abuse
Jonibus is not online. Jonibus
Joined: 30 Jan 2010
Total Posts: 8985
14 Oct 2014 09:29 PM
Set the players camera to Scriptable in a localscript:

game.Workspace.CurrentCamera.CameraType = "Scriptable"

Then, to position it somewhere, edit the CoordinateFrame

game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(1,2,3)
Report Abuse
Mkhero4433 is not online. Mkhero4433
Joined: 28 Aug 2010
Total Posts: 227
14 Oct 2014 09:38 PM
This is how to do it the easy way


game.Workspace.Camera -- If you got a camera there


Camera.Focus = CFrame.new(?,?,?)

Camera.CoordinateFrame = CFrame.new(?)
Report Abuse
Mkhero4433 is not online. Mkhero4433
Joined: 28 Aug 2010
Total Posts: 227
14 Oct 2014 09:40 PM
^
My mistake

Camera = game.Workspace.Camera
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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