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
 

Camera help?

Previous Thread :: Next Thread 
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Sep 2015 01:01 PM
How can i set the camera position and direction it is looking at?


~davisky~
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Sep 2015 01:02 PM
Oh and btw how do i get the player's camera?


~davisky~
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Sep 2015 01:14 PM
Tried wiki script, but it still errors :/

repeat wait() until game.Workspace.CurrentCamera --Wait for the camera to load if it hasn't already
local cam = game.Workspace.CurrentCamera --Get the camera and store it as a variable
cam.CameraSubject = game.Workspace.JumperStart

Error:
21:11:31.620 - Camera is not a valid member of Player


~davisky~
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
23 Sep 2015 01:17 PM
#code
Workspace.CurrentCamera.CoordianteFrame = CFrame.new(
pos, --where it is
focus --what it looks at
)


#code return
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Sep 2015 01:17 PM
I fixed it, but the view still isnt at the part. Can anyone help me please, im new to cameras.


~davisky~
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Sep 2015 01:22 PM
I already tried that, but found out a way how to do it. Localscript:
repeat wait() until game.Workspace.CurrentCamera --Wait for the camera to load if it hasn't already
while true do
wait()
local cam = game.Workspace.CurrentCamera --Get the camera and store it as a variable
cam.CameraSubject = game.Workspace.JumperStart
cam.Focus = CFrame.new(game.Workspace.JumperStart.Position)
cam.CoordinateFrame = CFrame.new(game.Workspace.JumperStart.Position)
end



~davisky~
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