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: Camera Manipulation

Previous Thread :: Next Thread 
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
19 Jul 2011 05:16 PM
Can anybody post examples on manipulating the camera? I just want to know what they do and how to use them, thanks.
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
19 Jul 2011 05:22 PM
Script examples or place examples? And if you look in Freemodels (don't save the thing in your place incase of virus) and check out a 2D script, it messes with Camera.
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
19 Jul 2011 05:24 PM
Any would do but I'd prefer script examples, I'll check free models, I completely forgot about them.
Report Abuse
McBlocker is not online. McBlocker
Joined: 16 Nov 2008
Total Posts: 1721
19 Jul 2011 05:27 PM
Accessing the camera:
~Through a local script
game.Workspace.CurrentCamera
~Through a regular script
local m = workspace:getChildren()
for i,v in pairs(m) do
if v.className=="Instance" then
if v.CameraSubject==game.Players.McBlocker.Character.Humanoid then
print("This is your camera")
end end end

Changing the camera's view:
~Look under you instance in workspace to see what kinds of cameratypes there are.
camera.CameraType=Enum.CameraType.Follow
~Yes, it does have to be "Enum.CameraType.BLAHBLAHBLAH"

Changing what the camera is watching:
camera.CameraSubject = workspace.Part1
~Can be on a part, a humanoid, or a model (I THINK)
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
19 Jul 2011 05:28 PM
I know those ones but what I mean is turning it by degrees and zooming in/out.
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
19 Jul 2011 05:33 PM
Ugh, I have to check something...

CurrentCamera.CoordinateFrame = CFrame.new(Vector3.new(x,y,z))

That's the position of the Camera, and it always focuses on the camerasubject.
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
19 Jul 2011 05:35 PM
Position but not angle :S
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
19 Jul 2011 05:35 PM
By changing the position you can manipulate the angle.
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