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 Help?

Previous Thread :: Next Thread 
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
26 Dec 2013 11:44 AM
So I have this Camera effect where it spins around the baseplate for a few seconds and then goes to your character. However, when I set the CameraType to Scriptable while it is spinning around the baseplate, the Camera's Focus (where the Camera is looking at) seems to move to a random spot in the sky (it could be that the camera itself, or the CoordinateFrame, moved).

Please help! I'm trying to get a ROBLOX Battle effect where the camera spins around the map for a few seconds then moves to your character. Please help!

cam:Interpolate(CFrame.new(character.Torso.Position),CFrame.new(character.Torso.Position),5)

This is what I have for the Interpolate method. Is this the right way to do this, or am I doing something wrong? I want the camera to move from the map to the character for regular gameplay in 5 seconds. Please help! Thanks!
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
27 Dec 2013 10:27 AM
Help plz!
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
27 Dec 2013 10:58 AM
Add in
cam.CameraType = "Custom"
cam.CameraSubject = character.Humanoid
after that piece of code.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Dec 2013 10:59 AM
@wa

CameraType must be Scriptable for Interpolate to work.

@OP

The second argument should be where you are looking at.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
27 Dec 2013 11:01 PM
Oh ok, and what should the first argument be :P?
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
28 Dec 2013 07:42 AM
@evo notice the word AFTER
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
28 Dec 2013 07:42 AM
qq I lost my 1337 posts
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
28 Dec 2013 04:53 PM
What should the first argument be? I concluded from reading it that both arguments should be the part's position that I want to look at, hence the above code, but I dout that's it :P.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
29 Dec 2013 11:50 AM
Please help. Show me what I need to do for the Interpolate method for this to work :P.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
29 Dec 2013 01:22 PM
Bump come on guys dont make me post this a third time O.O.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
29 Dec 2013 08:59 PM
Guess not that many users know enough about the camera to help me :P.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
01 Jan 2014 08:56 AM
Last bump before I post this a third time lol.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
01 Jan 2014 09:07 AM
The first argument is the Camera's position, or the CoordinateFrame.
Report Abuse
seanb117 is not online. seanb117
Joined: 03 Feb 2010
Total Posts: 1020
01 Jan 2014 09:11 AM
Super, learn to use the wiki.
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
01 Jan 2014 09:19 AM
Sorry lol. Now it works, but it seems to teleport directly to that spot and focus, when I added the duration number as 5 seconds, with a comma. Same code as before. Help!

Report Abuse
seanb117 is not online. seanb117
Joined: 03 Feb 2010
Total Posts: 1020
01 Jan 2014 09:31 AM
Post the new code
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
01 Jan 2014 10:38 AM
cam:Interpolate(CFrame.new(character.Torso.Position-Vector3.new(0,0,20)),CFrame.new(character.Torso.Position),5)

Just added the -Vector3.new(0,0,20) part to the CFrame to make the Camera move to behind the player where it is normally. Not quite sure how to do this either. Is this correct?
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
02 Jan 2014 12:25 PM
Bump I posted the new code help plz!
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
03 Jan 2014 02:19 PM
Halp!
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
04 Jan 2014 03:17 PM
Can someone tell me whats wrong with this???
Report Abuse
superswordfish is not online. superswordfish
Joined: 14 Jun 2013
Total Posts: 1336
05 Jan 2014 03:24 PM
Guess last bump before I repost a third time :P.
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