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
 

About the camera... Question

Previous Thread :: Next Thread 
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
22 Mar 2012 07:13 PM
So, I'm trying to get a nice, bird's eye view of a model of a Robloxan, and this is what I have so far:

Cam.CameraSubject = rob.Head
Cam.CameraType = Enum.CameraType.Track
wait(1)
while true do
wait(.1)
rob.Humanoid:MoveTo(goto.Position, goto)
local pos = 5
Cam.Focus = CFrame.new(rob.Head.Position.X, rob.Head.Position.Y, rob.Head.Position.Z)
end


Now, it's good and all, but after a few seconds, the camera starts to swivel around, until it suddenly starts getting farther, and farther away from it's intended target. Now, working with camera's is a first for me, so I'm sure I messed up somewhere. What would be the recommended camera Enum type, and how to I keep it locked on the target? (Such as Rob's head.)
Report Abuse
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
22 Mar 2012 07:15 PM
Everytime the head moves, refocus the camera, so like Head.move:connect(func). idk why it would be moveing away.
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
22 Mar 2012 07:18 PM
Head.move() isnt an argument, a connection statement, or apart of LUA in general. (Or is it?) :/
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
23 Mar 2012 10:45 AM
Bump?
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
23 Mar 2012 10:46 AM
Head.Changed
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
23 Mar 2012 10:47 AM
Head.Changed:connect(function(argument)
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
23 Mar 2012 10:49 AM
Never used Head.Changed

Explain?
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
23 Mar 2012 10:51 AM
Basically, If I am correct. If a property of the "Head" is changed it shall run.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
23 Mar 2012 10:51 AM
Head.Changed:connect(function(c)
end)
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
23 Mar 2012 10:52 AM
I always associated with .Changed to a value, like a bool, int, etc, in which it's value is changed. I never seen it used on a body part before. Changed as in position? Size? I dont even.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
23 Mar 2012 10:52 AM
If ANYTHING of the property is changed it should run!
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
23 Mar 2012 10:52 AM
late post .. was checking how can I use it for this... before I post :P
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
23 Mar 2012 11:45 PM
bump.
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