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 » Scripters
Home Search
 

Re: Changing camera position and focus?

Previous Thread :: Next Thread 
bigboy77584 is not online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
28 May 2017 02:59 PM
I wrote this script under StarterPlayerScripts and it doesnt seem to be working correctly:

local camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer

local function setupCamera()
camera.CFrame = CFrame.new(workspace.pos.Position, workspace.Part.Position)
end

setupCamera()

Instead of placing the camera where I want it, it places the camera on some position based on where my camera was before I clicked "play" in studio. Why is this happening?


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
28 May 2017 03:02 PM
you're giving the rotation of the CFrame a Position Vector3 value, try giving it a Rotation Vector3 value?


Report Abuse
bigboy77584 is not online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
28 May 2017 03:12 PM
A rotation vector3 value? I thought the camera just places itself at the first ####### ##### ### ###### at the second vector3 value.
Report Abuse
bigboy77584 is not online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
28 May 2017 03:14 PM
places itself at the first VectorthreeValue and pointsAt the secondVector 3 value.


Report Abuse
bigboy77584 is not online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
28 May 2017 03:36 PM
ahhh I got it. I had to change the camera type to "scriptable"


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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