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
 

having camera problems

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 03:43 PM
I set the currentcamera to scriptable, then proceeded to set the coordinateframe to a specific brick and the focus to another brick. the camera's coordinateframe did set to the brick i set it to but it didnt focus to the other brick. Why?
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
10 Oct 2013 03:48 PM
Your the one with the script here. You tell me
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
10 Oct 2013 03:49 PM
focus and coordinateframe edit the same thing

To make it look at brick2 from brick1 do:

brick1 =
brick2 =
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(brick1.Position.brick2.Position)
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
10 Oct 2013 03:53 PM
I ran some tests. Camera that is set to Scriptable doesn't change in focus.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 04:20 PM
Jetta, did you mean this?
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame - game.Workspace.Gun2.CFrame)

16:19:57.772 - game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(g:1: bad argument #2 to '?' (Vector3 expected, got userdata)
16:19:57.775 - Script 'game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(g', Line 1
16:19:57.777 - stack end
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
10 Oct 2013 04:22 PM
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame.p - game.Workspace.Gun2.CFrame.p)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 04:23 PM
yeah that did something. it made my camera go waaaaaaay away from both of those parts. not even close o.o
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 04:24 PM
I'm trying to create a seated turret where the player sits at a control panel. the camera then switches from the player to the turret camera. thats all. :/
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 04:29 PM
I tried

game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame.p)

I does set the camera cframe, but the camera always points north. :/ It doesn't even point in the direction the brick is facing.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 06:11 PM
what about CFrame.Angles? Is there any way to use that to set the camera to the lookvector of the brick?
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 07:44 PM
bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
10 Oct 2013 08:53 PM
bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
11 Oct 2013 12:11 PM
bump
Report Abuse
08C is not online. 08C
Joined: 26 Jan 2013
Total Posts: 847
11 Oct 2013 12:45 PM
[ Content Deleted ]
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