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: how to change rotation of camera

Previous Thread :: Next Thread 
chrislojet5533 is not online. chrislojet5533
Joined: 15 Jun 2015
Total Posts: 2419
14 Dec 2016 03:10 PM
i dont know how to make the camera like for exp: the character is facing left but the camera facing foward so that would be awkward and make the controls weird. anyone know how to change rotation


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Dec 2016 03:15 PM
In what context? Do you want it to follow the direction the head is facing, or just affect the CFrame.Angles(x,y,z)?

while wait() do
cam.CFrame = cam.CFrame*CFrame.Angles(0,math.rad(1),0)
end
-- you gotch'yer'self a spinnin' camera


Report Abuse
chrislojet5533 is not online. chrislojet5533
Joined: 15 Jun 2015
Total Posts: 2419
14 Dec 2016 03:21 PM
like i want to edit the rotation of the camera


Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
14 Dec 2016 03:30 PM
Get the camera using a localscript and

cam.CoordinateFrame = CFrame.Angles(your choice goes here)
Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
14 Dec 2016 03:31 PM
no, krit. that isn't right at all.
Report Abuse
chrislojet5533 is not online. chrislojet5533
Joined: 15 Jun 2015
Total Posts: 2419
14 Dec 2016 03:32 PM
uh i get a error so that doesnt work


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Dec 2016 03:36 PM
You want the camera to face a certain point?

lookAt = Vector3.new(0,0,0) -- or workspace.SomePart.Position

while wait() do
Camera.CFrame = CFrame.new(Camera.CFrame.p,lookAt)
end


Report Abuse
chrislojet5533 is not online. chrislojet5533
Joined: 15 Jun 2015
Total Posts: 2419
14 Dec 2016 03:46 PM
the camera view is different its like the camera in facing me inside the ground


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