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 help

Previous Thread :: Next Thread 
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 12:43 AM
So this works perfectly in play solo mode but online when I enter the game it does not go where I coordinate but, it works after death. Why is that?


workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0)
workspace.CurrentCamera.Camera.CameraType = "Scriptable"



workspace.CurrentCamera.Camera.Focus = CFrame.new(5, -340, 0) --- Should I add this to the second line?
Report Abuse
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 12:44 AM
Whoops... sorry my bad. Here:

workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0)
workspace.CurrentCamera.CameraType = "Scriptable"



workspace.CurrentCamera.Focus = CFrame.new(5, -340, 0) --- Should I add this to the second line?

I added camera twice for some reason but still having problem.



Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
31 Dec 2013 12:45 AM
Try adding a wait() at the beginning of the script.
Report Abuse
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 12:47 AM
Did that no change, should I put a amount of my choice?
Report Abuse
Slewth is not online. Slewth
Joined: 09 Jul 2012
Total Posts: 5951
31 Dec 2013 12:54 AM
Here:

game.Workspace.CurrentCamera.CoordinateFrame = Vector3.new(5, -340, 0)
game.Workspace.CurrentCamera.CameraType = "Scriptable"
Report Abuse
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 01:15 AM
That did not work.

I tried what you did with Vector3

then I switched to CFrame I don't get why this does not work when entering a game but when you respawn it works fine...
Report Abuse
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 01:18 AM
Anyone?
Report Abuse
Airennor is online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
31 Dec 2013 01:24 AM
.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 Dec 2013 01:41 AM
I'm pretty sure the Camera has to be scriptable first.

game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0)
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
31 Dec 2013 01:44 AM
What cnt said.
Report Abuse
badguy1233 is online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
31 Dec 2013 01:57 AM
repeat wait() until game.Workspace.CurrentCamera
-- do stuff
Report Abuse
blockyblox1231 is not online. blockyblox1231
Joined: 31 Aug 2010
Total Posts: 156
31 Dec 2013 02:19 AM
game.Players.PlayerAdded:connect(function(cam)
workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0)
workspace.CurrentCamera.Camera.CameraType = "Scriptable"
end)

try this maybe? idk if it will work, havent tested it
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